Краткое содержание страницы № 1
Installation Manual
IM-DOC-021
®
Using the DiskOnChip
with Linux OS
DEC-99
91-SR-005-10-7L REV. 2.0
Краткое содержание страницы № 2
Using the DiskOnChip with Linux OS LIMITED WARRANTY (a) M-Systems warrants that the Licensed Software — prior to modification and adaptation by Licensee — will conform to the documentation provided by M-Systems. M-Systems does not warrant that the Licensed Software will meet the needs of the Licensee or of any particular customer of Licensee, nor does it make any representations whatsoever about Licensed Software that has been modified or adapted by Licensee. (b) Subsection (a) above set
Краткое содержание страницы № 3
Using the DiskOnChip with Linux OS Contents 1 Introduction...................................................................................................................................4 2 Hardware Requirements for the DiskOnChip ..........................................................................4 3 Requirements for Installation of the DiskOnChip into Linux.................................................5 3.1 Utilities Diskette Content...........................................
Краткое содержание страницы № 4
Using the DiskOnChip with Linux OS 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. ® When used under Linux, the DiskOnChip is managed by a device driver, based on M-Systems’ TrueFFS (True Flash File System) technology. The TrueFFS driver is attached to the standard Linux file system [ext2]. M-Systems provides two different TrueFFS drivers for Li
Краткое содержание страницы № 5
Using the DiskOnChip with Linux OS 1 NC 5V 2 NC (A16) 30 3 NC (A15) 29 32 NC (A14) VCC 28 NC (A13) 0.1 16 4 GND SA12 A12 25 SA11 A11 23 SA10 A10 26 SA9 A9 27 SA8 A8 DiskOnChip 5 13 SA7 A7 D0 SD0 6 14 SA6 A6 D1 SD1 7 15 SA5 A5 D2 SD2 8 17 SA4 A4 D3 SD3 9 18 SA3 A3 D4 SD4 10 19 SA2 A2 D5 SD5 11 20 SA1 A1 D6 SD6 12 21 SA0 A0 D7 SD7 22 Active Low Chip Enable CE 24 Active Low Output Enable OE 31 Active Low Write WR Figure 1: DiskO
Краткое содержание страницы № 6
Using the DiskOnChip with Linux OS dformat DiskOnChip formatting utility dupdate Utility for updating DiskOnChip firmware docpmap Utility to retrieve information about the DiskOnChip doc121.ex DiskOnChip firmware image. “121” is the firmware version, the actual diskette might b contain higher versions of the firmware, e.g. doc122.exb, doc123.exb, etc. doc2.fff Alternative firmware image for the DiskOnChip Note: The file doc2.fff can be found in the \AP012 directory when using DiskOn
Краткое содержание страницы № 7
Using the DiskOnChip with Linux OS 4 Installing the DiskOnChip as an Additional 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). This chapter describes how to prepare the DiskOnChip and Linux to configure the DiskOnChip as an additional disk in the system. To achieve this, the firmware on the DiskOnChip needs to be updated (par. 4.1) and then the TrueFFS devi
Краткое содержание страницы № 8
Using the DiskOnChip with Linux OS 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 contains the TrueFFS driver for Linux is mounted at /mnt. 2. The kernel sources must be installed. To check this, type: # ls /usr/src/linux If this directory exists, then the kernel sources are installed. If not, refer to http://sunsite.unc.edu/LDP/ or t
Краткое содержание страницы № 9
Using the DiskOnChip with Linux OS 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. Make sure that you mark the DiskOnChip as “Y”es under ‘Floppy, IDE and other devices’. When you are finished, exit and the new configuration will be saved. For further details about compiling the kerne
Краткое содержание страницы № 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
Краткое содержание страницы № 11
Using the DiskOnChip with Linux OS 7. When the Lilo prompt is displayed, press or or . 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 cr
Краткое содержание страницы № 12
Using the DiskOnChip with Linux OS 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. Save the new partition table (disregard any fdisk warnings): Command (m for help): w 9. Reboot the machine to let the new partition table load into memory and load Linux again with the new compiled kernel. If
Краткое содержание страницы № 13
Using the DiskOnChip with Linux OS 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 the OS itself in addition to all other applications and files. In order to make a block device bootable on Linux, the kernel and the Lilo program should be copied to the block device and a root file system needs to be created. Creating a root file system on Linux is necessary, as from this root f
Краткое содержание страницы № 14
Using the DiskOnChip with Linux OS 5.1.2 Overview A root file system must contain everything that is needed to support a full Linux system. To achieve this, the disk must include the minimum requirements for a Linux system: • Basic file system structure • Minimum set of directories: /dev, /proc, /bin, /etc, /lib, /usr, /tmp • Basic set of commands: sh, ls, cp, mv, etc. • Minimum set of config files: rc, inittab, fstab, etc. • Devices: /dev/hd*, /dev/tty*, /dev/fd0, etc. • Runtime libra
Краткое содержание страницы № 15
Using the DiskOnChip with Linux OS Press , ‘:’, ‘w’, ‘q’ to save the file. It is possible to add more devices here (for more information, refer to the man pages). 6. For RedHat and Caldera it is also necessary to copy the configuration file for the pam library (responsible for making authentic users): # cp /tmp/doc-driver/pam.d/other /diskonchip/etc/pam.d/other Note: Appendix I explains how to create your own root file system manually. Although this is more complicated than using
Краткое содержание страницы № 16
Using the DiskOnChip with Linux OS # 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. Verify that after the last command, the device doc2000 is listed on the screen. 3. If it is required to load other partitions, then the file /diskonchip/etc/lilo.conf should be edited. Note: pLilo is the patched Lilo, which ensures that the DiskOnChip
Краткое содержание страницы № 17
Using the DiskOnChip with Linux OS 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, but it gets stuck after: VFS: Mounted root (ext 2 filesystem) readonly. Most likely, the init program or some if its configuration files weren’t copied. Cannot log in If you cannot login when booting Linux from the DiskOnChip, make sure that: • Your default shell is installed. • The pam libraries were
Краткое содержание страницы № 18
Using the DiskOnChip with Linux OS 7 Additional Information and Tools Additional information about the DiskOnChip, including Application Notes, can be found at http://www.m- sys.com. Additional tools and documents are listed in the following table: Document/Tool Description AP-DOC-10 Designing with the DiskOnChip 2000 AP-DOC-15 Obtaining DiskOnChip 2000 Information AP-DOC-30 Designing with the DiskOnChip Millennium in a RISC Environment AP-DOC-31 Designing with the DiskOnChip Millenni
Краткое содержание страницы № 19
Using the DiskOnChip with Linux OS 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. Create devices in the /dev directory. You can either do this manually or just copy the /dev directory from the HDD. If you wish to save space, it is possible to remove non-required devices (i.e. if you don’t have a SCSI drive, then remove all the
Краткое содержание страницы № 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: halt Shutdown init Swapoff ldconfig Swapon mingetty Telinit mkswap Update reboot rdev runle