M-Systems Flash Disk Pioneers Creating a Native Linux File System on the DiskOnChip

Page 12

Using the DiskOnChip with Linux OS

7.Recheck the partition table:

Command (m for help): p

Disk /dev/fla: 16 heads, 9 sectors, 1002 Cylinder units = cylinders of 144 * 512 bytes

Device

boot begin Start

End Blocks Id System

 

/dev/fla1

*

1

1

1002 72139+ 83 Linux

native

8.Save the new partition table (disregard any fdisk warnings):

Command (m for help): w

9.Reboot the machine to let the new partition table load into memory and load Linux again with the new compiled kernel. If there is more than one partition, this step is vital.

4.2.5 Creating a Native Linux File System on the DiskOnChip

To initialize the file system on the newly created Linux partition on the DiskOnChip

1.Type the following command:

# mke2fs /dev/fla1

Note: When a small capacity DiskOnChip is used (4MB or smaller), more space for inodes needs to be allocated. Type the following command:

#mke2fs -i 2048 /dev/fla1

2.Mount the file system to a directory:

#mkdir /diskonchip

#mount /dev/fla1 /diskonchip

From now on, it is possible to use the DiskOnChip as an additional disk in your system.

Note: If you have created more than one partition, repeat the last step for each partition (dev/fla1, /dev/fla2,

etc.).

91-SR-005-10-7L REV. 2.0

12

Image 12
Contents Using the DiskOnChip with Linux OS Limited Warranty Contents Introduction Hardware Requirements for the DiskOnChipRequirements for Installation of the DiskOnChip into Linux Utilities Diskette ContentLinux Driver for DiskOnChip Installing the DiskOnChip as an Additional Drive Updating the FirmwareFloppy drive must be active. Verify this by typing If the /dev/fd0 doesn’t appear in the first column, typeConfigure the kernel as follows Adding the Driver to the KernelRemove the old object files Check dependenciesBooting the Compiled Kernel from HDD Make the inodes for the DiskOnChipCreating a Linux Partition on the DiskOnChip Creating a Native Linux File System on the DiskOnChip Recheck the partition tableSave the new partition table disregard any fdisk warnings Mount the file system to a directoryBooting Linux from the DiskOnChip Creating a Root File System IntroductionOverview Populating the File SystemRun the script Create the list of files to be mountedCopying the Kernel, Updating the Boot Sector and Rebooting Troubleshooting Reboot and load DOS, and reinstall the original firmwareLinux will now boot from the DiskOnChip Most likely, you forgot to do Additional Information and Tools Sys.comAppendix I Making a Root File System Diskonchip/bin/programname For example Copy the library loaders as followsYou now have pLilo sources Appendix III Applying a Patch Manually There are 5 files that you will need to patchUsing the DiskOnChip with Linux OS How to Contact Us Atidim Industrial Park P.O.BTel Aviv 61580, Israel