M-Systems Flash Disk Pioneers DiskOnChip, 91-SR-005-10-7L Diskonchip/bin/programname

Page 20

Using the DiskOnChip with Linux OS

not listed below are considered optional. Copy these programs to the directories /bin or /sbin as follows:

# cp /bin/{program_name}

/diskonchip/bin/{program_name}

/bin directory:

cat

echo

mount

chmod

hostname

mv

chown

kill

ps

cp

Ln

rm

cut

login

rmdir

dd

Ls

sh

df

mkdir

su

dircolors

mke2fs

sync

du

mknod

umount

e2fsck

more

uname

/sbin directory:

haltShutdown

initSwapoff

ldconfigSwapon

mingetty Telinit

mkswap Update

reboot

rdev

runlevel

The file name of mingetty varies with the distribution, i.e. RedHat and SuSE use mingetty, Slackware uses agetty. To find out what the name of this file in your distribution is, perform a grep on “getty”:

#grep getty /etc/inittab

8.The /lib directory contains all the shared libraries and loaders. Only the appropriate libraries need to be copied to the /lib directory. To check which libraries are needed, type the following command for each file in these two directories:

#ldd /sbin/{filename}

or

# ldd /bin/{filename}

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

20

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