M-Systems Flash Disk Pioneers DiskOnChip, 91-SR-005-10-7L You now have pLilo sources

Page 22

Using the DiskOnChip with Linux OS

Appendix II: Booting from a HDD when the DiskOnChip Firmware is Active

Since Lilo and the DiskOnChip firmware (i.e. doc121.exb) share the same area in RAM, the system will hang during boot when using an unpatched Lilo. Updating Lilo solves this problem. The existing boot loader needs to be updated as follows:

# /tmp/doc-driver/plilo -i /tmp/doc-driver/boot.b

This command uses the patched Lilo supplied by the TrueFFS driver and patched boot.b, and your default /etc/lilo.conf. Make sure that you run this command in the Linux that booted from the HDD.

pLilo is actually forcing you to use smaller kernels because it allocates part of the physical memory to the driver. Therefore, big kernels (around 470 KB) will have a problem with pLilo (pLilo will stop with an error ‘Kernel xxx is too big’). There are two solutions to this problem:

1.Compile the kernel with the bzImage option (‘make bzImage’). Refer to

/usr/doc/HOWTO/Kernel-HOWTO.gz for more information.

2.Comment out all big kernels from lilo.conf (only during the installation procedure).

M-Systems provides a patch file to Lilo sources to make pLilo. To activate the patch, you must have the Lilo sources available on your system. After you verify that the sources are available, type the following command:

# patch -p0 < lilo-patch

You now have pLilo sources.

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

22

Image 22
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 Reboot and load DOS, and reinstall the original firmware TroubleshootingLinux 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 Atidim Industrial Park P.O.B How to Contact UsTel Aviv 61580, Israel