M-Systems Flash Disk Pioneers 91-SR-005-10-7L Creating a Linux Partition on the DiskOnChip

Page 11

Using the DiskOnChip with Linux OS

7.When the Lilo prompt is displayed, press <Ctrl> or <Alt> or <Tab>. The screen will show :

Lilo boot:

8.Load the recompiled kernel:

Lilo boot:doc2000

4.2.4 Creating a Linux Partition on the DiskOnChip

To create a Linux partition on the DiskOnChip, all the DOS partitions on the DiskOnChip need to be removed and a Linux partition with the native Linux File system [ext2] needs to be created.

1.Run the fdisk utility.

# fdisk /dev/fla

Note: You may create more than one primary partition. Just make sure that the boot flag of the main partition boot is active.

Note: For further information on the fdisk utility, refer to the man pages.

2.Display the contents of the partition table:

Command(m for help):p

3.Delete all existing partitions, enter each partition number for deletion:

Command(m for help):d

4.Create a new Linux native partition:

Command(m for help): n Command action e extended p primary partition (1-4)p Partition number (1-4): 1 First cylinder (1-XXX): 1

Last cylinder or +size or +sizeM or +sizeK ([1] XXX):XXX

5.Change the type of the partition to Linux native:

Command (m for help): t

Partition number (1-4): 1

Hex code (type L to list codes): 83

6.Make the partition bootable:

Command (m for help): a

Partition number (1-4): 1

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

11

Image 11
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 Linux will now boot from the DiskOnChip TroubleshootingReboot and load DOS, and reinstall the original firmware 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 Tel Aviv 61580, Israel How to Contact UsAtidim Industrial Park P.O.B