M-Systems Flash Disk Pioneers 91-SR-005-10-7L For example, Copy the library loaders as follows

Page 21

Using the DiskOnChip with Linux OS

For example:

# ldd /sbin/mke2fs

libext2fs.so.2 /lib/libext2fs.so.2

libcom_err.so.2 /lib/libcom_err.so.2

libuuid.so.1 lib/libuuid.so.1

libc.so.5 /lib/libc.so.5

This will show which libraries are needed for the program mke2fs. In this example, it is necessary to copy the following four libraries:

#cp /lib/ext2fs.so.2 /diskonchip/lib

#cp /lib/libcom_err.so.2 /diskonchip/lib

#cp /lib/libuuid.so.1 /diskonchip/lib

#cp /lib/libc.so.5 /diskonchip/lib

If you have a long list of files to be copied, it is also possible to run the following command:

#

ldd /bin/* >

lib_list

 

# more lib_list

 

Copy the library loaders as follows:

 

#

cp lib/ld.so

/diskonchip/lib

(a.out loader)

# cp /lib/ld_linux.so /diskonchip/lib

(elf loader)

It is possible to use objcopy to reduce the size of the libraries. For example:

# objcopy -strip-debug /diskonchip/lib/lib.so.5

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

21

Image 21
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 typingAdding the Driver to the Kernel Configure the kernel as followsRemove the old object files Check dependenciesMake the inodes for the DiskOnChip Booting the Compiled Kernel from HDDCreating a Linux Partition on the DiskOnChip Recheck the partition table Creating a Native Linux File System on the DiskOnChipSave the new partition table disregard any fdisk warnings Mount the file system to a directoryCreating a Root File System Introduction Booting Linux from the DiskOnChipPopulating the File System OverviewRun the script Create the list of files to be mountedCopying the Kernel, Updating the Boot Sector and Rebooting Troubleshooting Reboot and load DOS, and reinstall the original firmwareLinux will now boot from the DiskOnChip 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 How to Contact Us Atidim Industrial Park P.O.BTel Aviv 61580, Israel