M-Systems Flash Disk Pioneers 91-SR-005-10-7L installation manual Linux Driver for DiskOnChip

Page 6

 

Using the DiskOnChip with Linux OS

dformat

DiskOnChip formatting utility

dupdate

Utility for updating DiskOnChip firmware

docpmap

Utility to retrieve information about the DiskOnChip

doc121.ex

DiskOnChip firmware image. “121” is the firmware version, the actual diskette might

b

contain higher versions of the firmware, e.g. doc122.exb, doc123.exb, etc.

doc2.fff

Alternative firmware image for the DiskOnChip

Note: The file doc2.fff can be found in the \AP012 directory when using DiskOnChip DOS utilities version 1.21 or higher.

3.2 Linux Driver for DiskOnChip

The compressed file driver.tgz contains the following files:

/usr/src/linux/drivers/block/flash_doc/flobj.obj

TrueFFS device driver core object file

/usr/src/linux/drivers/block/flash_doc/fldrvlnx.c

Source code for driver integration with

 

kernel

/usr/src/linux/drivers/block/flash_doc/makefile

TrueFFS driver’s makefile

/tmp/doc-driver/lilo-patch

Patch for Lilo to make pLilo

/tmp/doc-driver/plilo

Linux loader, patched to use with the

 

DiskOnChip

/tmp/doc-driver/lilo.conf

Lilo sample configuration file

/tmp/doc-driver/boot.b

Boot loader, udpated to use with

 

DiskOnChip

/tmp/doc-driver/copy2doc

Sample scripts, aid tool to create a root file

 

system

/tmp/doc-driver/pam.d/other

File meant only for Redhat & Caldera,

 

defines permission access

/tmp/doc-driver/samplefs.txt

Sample root file system listing

/tmp/doc-driver/doc-patch-2.0.##

Patch for kernel sources 2.0.## (only

 

attached to TrueFFS driver for kernel

 

versions 2.0.##)

/tmp/doc-driver/doc-patch-example

Example patch for kernel sources 2.2.##

 

(only attached to TrueFFS driver for kernel

 

versions 2.2.##)

Note: The included patch files are different for the two TrueFFS drivers. When using the TrueFFS driver for kernel versions 2.2.##, the kernel needs to patched manually and only an example patch file (/tmp/doc-driver/doc-patch-example) is provided. Refer to appendix III on how to manually patch your kernel.

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

6

Image 6
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, typeRemove the old object files Configure the kernel as followsAdding the Driver to the Kernel Check dependenciesBooting the Compiled Kernel from HDD Make the inodes for the DiskOnChipCreating a Linux Partition on the DiskOnChip Save the new partition table disregard any fdisk warnings Creating a Native Linux File System on the DiskOnChipRecheck the partition table Mount the file system to a directoryBooting Linux from the DiskOnChip Creating a Root File System IntroductionRun the script OverviewPopulating the File System 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