M-Systems Flash Disk Pioneers Troubleshooting, Linux will now boot from the DiskOnChip

Page 16

Using the DiskOnChip with Linux OS

#cp /tmp/doc-driver/boot.b /diskonchip/boot

#cp /tmp/doc-driver/lilo.conf /diskonchip/etc

#/diskonchip/sbin/plilo -C /diskonchip/etc/lilo.conf -i /diskonchip/boot/boot.b -m /diskonchip/boot/map

2.Verify that after the last command, the device doc2000 is listed on the screen.

3.If it is required to load other partitions, then the file /diskonchip/etc/lilo.conf should be edited.

Note: pLilo is the patched Lilo, which ensures that the DiskOnChip firmware will not collide with the Linux bootloader.

The final steps in the process of making the DiskOnChip bootable for Linux are as follows:

1.Unmount the DiskOnChip:

#cd /

#unmount /dev/fla1

2.Reboot and load DOS, and reinstall the original firmware:

A:> dupdate /win:D000 /s:doc121.exb

Note: Always use the latest firmware version. The latest version can be downloaded from M -Systems website (www.m- sys.com)

3.Reboot the machine and disable the HDD in the BIOS setup or make the DiskOnChip the first boot device in the system by using the following command:

A:> dupdate /win:D000 /s:DOC110.EXB /FIRST

4.Linux will now boot from the DiskOnChip.

6 Troubleshooting

Adding more programs to Linux root file system

If the DiskOnChip boots Linux without a problem and it is required to add more programs to the Linux root file system, then mount the HDD and copy the required files.

DiskOnChip does not boot Linux

There are several errors that you can encounter during boot:

If the DiskOnChip does not boot at all, follow all the instructions from the start of this Installation Manual. In addition, remember to update the original firmware of the DiskOnChip (i.e. doc121.exb) with the alternate firmware (doc2.fff) in order to boot Linux from your HDD.

If the kernel boots, but it gets stuck on:

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

16

Image 16
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 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