M-Systems Flash Disk Pioneers 91-SR-005-10-7L, DiskOnChip installation manual

Page 15

Using the DiskOnChip with Linux OS

Press <ESC>, ‘:’, ‘w’, ‘q’ to save the file. It is possible to add more devices here (for more information, refer to the man pages).

6.For RedHat and Caldera it is also necessary to copy the configuration file for the pam library (responsible for making authentic users):

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

/diskonchip/etc/pam.d/other

Note: Appendix I explains how to create your own root file system manually. Although this is more complicated than using the above mentioned sample script, it is highly recommended.

All modules should be placed in /lib/modules/. It is necessary to include at least the programs insmod, rmmod and lsmod. If it is required to load the modules automatically, then also include modprobe, depmod and swapout. When using kerneld, include it along with /etc/conf.modules.

Some system programs, such as login, complain when the file /var/run/utmp and the directory /var/log do not exist. To solve this, type the following commands:

#mkdir -p /diskonchip/var/{log,run}

#touch /diskonchip/var/run/utmp

After all the needed libraries and programs are set up, run ldconfig to remake /etc/ld.so.cache on the root file system. The cache tells the loader where to find the libraries. To remake ld.so.cache, type the following command:

#cd /diskonchip

#chroot /diskonchip /sbin/ldconfig

The command chroot is necessary, because ldconfig always remakes the cache for the root file system.

5.1.4 Copying the Kernel, Updating the Boot Sector and Rebooting

To copy the kernel and to update the boot loader files.

1.Type the following commands:

#mkdir /diskonchip/boot

#cp /usr/src/linux/arch/i386/boot/zImage /diskonchip/boot/doc2000

#rdev /diskonchip/boot/doc2000 /dev/fla1

#cp /tmp/doc-driver/plilo /diskonchip/sbin

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

15

Image 15
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 typingCheck dependencies Configure the kernel as followsAdding the Driver to the Kernel Remove the old object filesMake the inodes for the DiskOnChip Booting the Compiled Kernel from HDDCreating a Linux Partition on the DiskOnChip Mount the file system to a directory Creating a Native Linux File System on the DiskOnChipRecheck the partition table Save the new partition table disregard any fdisk warningsCreating a Root File System Introduction Booting Linux from the DiskOnChipCreate the list of files to be mounted OverviewPopulating the File System Run the scriptCopying 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