M-Systems Flash Disk Pioneers 91-SR-005-10-7L Adding the Driver to the Kernel, Check dependencies

Page 9

Using the DiskOnChip with Linux OS

5.Configure the kernel as follows:

#cd /usr/src/linux

#make menuconfig

or

#make config if the last command doesn’t work.

Define your system by marking the correct devices. If you aren’t sure what the purpose of the device is, then leave it as it is. Make sure that you mark the DiskOnChip as “Y”es under ‘Floppy, IDE and other devices’. When you are finished, exit and the new configuration will be saved.

For further details about compiling the kernel or how to apply a patch, refer to http://sunsite.unc.edu/LDP/ or type:

#zcat /usr/doc/HOWTO/Kernel-HOWTO.gz more

6.Remove the old object files:

#make clean

4.2.2 Adding the Driver to the Kernel

To compile the TrueFFS driver for Linux:

1.Type the following command:

#cd /usr/src/linux/drivers/block/flash_doc

#make

2.Check dependencies:

#cd/usr/src/linux

#make dep

3.Compile the kernel (this may take up to 15 minutes):

#make zImage

If the kernel is compiled successfully, a message similar to the one below should be shown:

Root device is (3, 3)

Boot sector 512 bytes

Setup is 4332 bytes

System is 374 kB

Sync

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

9

Image 9
Contents Using the DiskOnChip with Linux OS Limited Warranty Contents Hardware Requirements for the DiskOnChip IntroductionUtilities Diskette Content Requirements for Installation of the DiskOnChip into LinuxLinux Driver for DiskOnChip Updating the Firmware Installing the DiskOnChip as an Additional DriveIf the /dev/fd0 doesn’t appear in the first column, type Floppy drive must be active. Verify this by typingAdding the Driver to the Kernel Configure the kernel as followsRemove the old object files Check dependenciesMake the inodes for the DiskOnChip Booting the Compiled Kernel from HDDCreating a Linux Partition on the DiskOnChip Recheck the partition table Creating a Native Linux File System on the DiskOnChipSave the new partition table disregard any fdisk warnings Mount the file system to a directoryCreating a Root File System Introduction Booting Linux from the DiskOnChipPopulating the File System OverviewRun 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 Sys.com Additional Information and ToolsAppendix I Making a Root File System Diskonchip/bin/programname Copy the library loaders as follows For exampleYou now have pLilo sources There are 5 files that you will need to patch Appendix III Applying a Patch ManuallyUsing the DiskOnChip with Linux OS How to Contact Us Atidim Industrial Park P.O.BTel Aviv 61580, Israel