[wplug] Small Linux

Sal Mangiapane salm at servanttechnology.com
Thu Sep 25 12:10:38 EDT 2003


How about a windows program that writes to the RAW device.  You could create the flash on a Linux then dd to copy it to a file (this
does create an image right???).

Copy the image to your windows pc and write it to the flash.

I tried to install Slackware, anyway....  In the bootdisks section there are RAWRITE, RAWRITE12, RAWRITENT, and RAWRITEXP
executables that may do what I'm talking about.

Here is an excerpt from the RAWRITE documentation:

*******************************************************************************

Equipment/Software Requirements
-------------------------------

PC/XT/AT with a floppy disk drive capable of reading and writing a 360K
diskette.

This program uses generic low-level BIOS diskette read/write functions.  It
should be portable to nearly every PC in existance.  PS/2's should be able
to run RawWrite but this has not been tested.


CAVEAT
------

This program will write ANY disk file to a floppy, overwriting any previous
information that may have been present.  If you wish to re-use a diskette
under MS-DOS thats been written to by RawWrite then the disk will need to be
reformatted; all MS-DOS specific information will have been erased.


How to Compile
--------------

TCC rawrite.c

The source code is specific to Borland International's Turbo C 2.01 and has
been tested in all memory models.


---snip---


Sample Run
----------

C> RAWRITE
RaWrite 1.2 - Write disk file to raw floppy diskette

Enter source file name: DEMODISK
Enter destination drive: B
Please insert a formatted 360K diskette into drive B: and press -ENTER- :
Writing image to drive B:


Errors
------

RaWrite attempts to determine if the diskette is a 360K, 720K, 1.2M, or
1.44M diskette by reading specific sectors.  If the inserted diskette is not
one of the mentioned types, then RaWrite will abort with a short error
message.

Errors such as write protect, door open, bad disk, bad sector, etc. cause a
program abort with a short error message.

**********************************************************************************

sal

> -----Original Message-----
> From: wplug-admin at wplug.org [mailto:wplug-admin at wplug.org]On Behalf Of
> Weber, Larry A
> Sent: Thursday, September 25, 2003 9:28 AM
> To: 'wplug at wplug.org'
> Subject: [wplug] Small Linux
>
>
> I have developed a small product using Linux as the OS.  The OS and
> application reside on a 64Meg compact flash.  Now that the design is done, I
> need to have our manufacturing plant program blank compact flash devices.
> This is easily done in Linux but they do not want to be restricted to using
> and maintaining specific (i.e. Linux) PC's for the task, and dual booting is
> out of the question.   They want to drop in a CD and run a batch file.  All
> of their PC's are running Win9x or XP.
>
> So I need either a program that will enable Windows to create/write/read
> ext3 filesystem (not likely).  Or, a version of Linux that will run off of a
> floppy, CD or combination floppy+CD.  All it needs to do is fdisk,
> mkfs.ext3, mount (sda1), and copy (tar) the OS (I have the embedded OS
> tarred) and copy the application (second tar ball).  I looked into Tom's
> Rootboot but it doesn't have the capabilities.  Any suggestion?
>
> -laweber
>
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>
>





More information about the wplug mailing list