M-Systems Flash Disk Pioneers DiskOnChip, 91-SR-005-10-7L Booting the Compiled Kernel from HDD

Page 10

Using the DiskOnChip with Linux OS

Make[1]:Leaving directory ‘/usr/src/ linux-2.0.32/arch/i386/boot’

If there are any compilation errors, refer to Chapter 6 “Troubleshooting”.

4.2.3 Booting the Compiled Kernel from HDD

The new compiled kernel needs to be booted from the HDD. The following steps need to be performed:

1.Type the following commands:

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

#vi /etc/lilo.conf

2.Add the following lines at the bottom of the file (press ‘INS’ to edit the file and save and exit by typing <Esc>, ‘:’, ‘w’, ‘q’):

image = /doc2000 root = /dev/hda1 label = doc2000 read-only

Note: The device /dev/hda1 points to the HDD that Linux boots from. hda1 is the first partition (1) on the first IDE hard disk (a), hdb2 is the second partition (2) on the second IDE hard disk (b), etc. If it is not clear which device it is, look at the start of the file lilo.conf and search for the line first root = ...)

3.Make the inodes for the DiskOnChip:

#cd /dev

#mknod fla b 62 0

#mknod fla1 b 62 1

#mknod fla2 b 62 2

#mknod fla3 b 62 3

#mknod fla4 b 62 4

Number 62 stands for major device number. Since it is hard coded into the driver, no other number would work.

4.Run Lilo (Linux Loader) to create the map for the kernel and make sure that “doc2000” is listed (if not, return to the beginning of paragraph 4.2.3):

# lilo

5.Load the updated kernel with the TrueFFS, perform the following steps:

6.Reboot the computer and load Linux.

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

10

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