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

Models: DiskOnChip 91-SR-005-10-7L

1 25
Download 25 pages 22.19 Kb
Page 10
Image 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

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