Instruction/ maintenance manual of the product DiskOnChip M-Systems Flash Disk Pioneers
Go to page of 25
Installation Manual IM - DOC - 021 Using the DiskOnChip ® with Linux OS DEC - 99 91 - SR - 005 - 10 - 7L REV . 2.0.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 2 LIMITED WARRANTY (a) M - Systems warrants that the Licensed Software — prior to modification and adaptation by Licensee — will conform to the documentati on provided by M - Systems.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 3 Contents 1 Introduction ................................................................................................................................... 4 2 Hardware Requirements for the Disk OnChip .
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 4 1 Introduction M - Systems’ DiskOnChip is a family of flash disks. It contains built - in firmware that provides full hard disk emulation and allows the DiskOnChip to operate as a boot device.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 5 DiskOnChip 1 2 3 29 28 4 25 23 26 27 5 6 A12 A11 A10 A9 A8 A7 A6 7 8 9 A5 A4 A3 10 11 12 A2 A1 A0 NC NC (A16) NC (A15) NC (A14) NC.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 6 dformat DiskOnChip formatting utility dupdate Utility for updating DiskOnChip firmware docpmap Utility to retrieve information about the DiskOnChip doc121.ex b DiskOnChip firmware image.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 7 4 Installing the DiskOnChip as an Addit ional Drive Before the DiskOnChip can be used as the boot disk for Linux (see Chapter 5), it first needs to be installed as an additional disk in the system (Linux is booted from a HDD).
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 8 1. The floppy drive must be active. Verify this by typing: # mount If the /dev/fd0 doesn’t appear in the first column, type: # mount/dev/fd0 /mnt From this point, it is assumed that the diskette that c ontains the TrueFFS driver for Linux is mounted at /mnt .
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 9 5. Configure the kernel as follows: # cd /usr/src/linux # make menuconfig or # make config if the last command doesn’t work. Define your system by marking the correct devices. If you aren’t sure what the purpose of the device is, then leave it as it is.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 10 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.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 11 7. When the Lilo prompt is displayed, press <Ctrl> or <Alt> or <Tab>.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 12 7. Recheck the partition table: Command (m for help): p Disk /dev/fla: 16 heads, 9 sectors, 1002 Cylinder units = cylinders of 144 * 512 bytes Device boot begin Start End Blocks Id System /dev/fla1 * 1 1 1002 72139+ 83 Linux native 8.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 13 5 Booting Linux from the DiskOnChip Being able to boot Linux from the DiskOnChip makes it possible to use the DiskOnChip as the only disk in the system, holding th e OS itself in addition to all other applications and files.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 14 5 . 1 . 2 Overview A root file system must contain everything that is needed to support a full Linux system.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 15 Press <ESC>, ‘:’, ‘w’, ‘q’ to save the file. It is possible to add more devices here (for more information, refer to the man pages).
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 16 # cp /tmp/doc-driver/boot.b /diskonchip/boot # cp /tmp/doc-driver/lilo.conf /diskonchip/etc # /diskonchip/sbin/plilo -C /diskonchip/etc/lilo.conf -i /diskonchip/boot/boot.b -m /diskonchip/boot/map 2.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 17 VFS: Unable to mount -. Most likely, you forgot to do: # rdev /diskonchip/boot/doc2000 /dev/fla1 • If the DiskOnChip boots and the kernel is loading, b ut it gets stuck after: VFS: Mounted root (ext 2 filesystem) readonly.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 18 7 Additional Information and Tools Additional information about the DiskOnChip, incl uding Application Notes, can be found at http://www.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 19 Appendix I: Making a Root File System To create your own root file system, perform the following steps: 1. Make the following directories: # cd /diskonchip # mkdir bin dev etc lib mnt proc sbin tmp usr var 2.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 20 not listed below are considered optional. Copy these programs to the directories /bin or /sbin as follows: # cp /bin/{program_nam.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 21 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 .
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 22 Appendix II: Booting from a HDD when the DiskOnChip Firmware is Active Since Lilo and the DiskOnChip firmware (i.e. doc121.exb) share the same area in RAM, the system will hang during boot when using an unpatched Lilo.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 23 Appendix III: Applying a Patch Manually There are two ways to integrate the Tr ueFFS driver into the kernel: manually or with a patch utility. The TrueFFS driver for kernel versions 2.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 24 In the above example, the file /usr/src/linux/include/linux/major.h is patched. The two lines that start with the ‘+’ mark are added to the current source code, and the lines that start with the ‘ - ‘ mark are removed from the source code.
Using the DiskOnChip with Linux OS 91 - SR - 005 - 10 - 7L REV. 2.0 25 How to Contact Us Internet: http://www.m - sys.com E - mail: info@m - sys.com USA Office: M - Systems Inc. 8371 Central Ave, Suite A Newark CA 94560, U.S.A Phone: 1 - 510 - 494 - 2090 Fax: 1 - 510 - 494 - 5545 Taiwan Office: M - System Asia Ltd.
An important point after buying a device M-Systems Flash Disk Pioneers DiskOnChip (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought M-Systems Flash Disk Pioneers DiskOnChip yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data M-Systems Flash Disk Pioneers DiskOnChip - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, M-Systems Flash Disk Pioneers DiskOnChip you will learn all the available features of the product, as well as information on its operation. The information that you get M-Systems Flash Disk Pioneers DiskOnChip will certainly help you make a decision on the purchase.
If you already are a holder of M-Systems Flash Disk Pioneers DiskOnChip, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime M-Systems Flash Disk Pioneers DiskOnChip.
However, one of the most important roles played by the user manual is to help in solving problems with M-Systems Flash Disk Pioneers DiskOnChip. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device M-Systems Flash Disk Pioneers DiskOnChip along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center