ITE RAIDExpress 133 Red Hat 7.3 Installation Guide and Release Note April 30, 2003 Mark Lu (C) Copyright 2003 ITE, Inc. 1. Component Name(s) and Version #: =================================== Components : For Redhat 7.3 Kernels Tested : 2.4.18-3 Driver Version : v1.3 Release Date : April 30, 2003 2. Files Listing ( in linux directory) ====================================== redhat73.txt RedHat 7.3 installation guide redhat80.txt RedHat 8.0 installation guide mandrake90.txt Mandrake 9.0 installation guide | | +- md90 Mandrake 9.0 directory | |- iteraid.o Driver module for Mandrake 9.0 | +- rh73 RedHat 7.3 directory | |- modinfo Module info file | |- modules.cgz Compressed driver modules | |- modules.dep Module dependence file | |- pcitable IT8212 pci info | |- rhdd-6.1 Driver disk label | +- iteraid.o Driver module for RedHat 7.3 | +- rh80 RedHat 8.0 directory | |- modinfo Module info file | |- modules.cgz Compressed driver modules | |- modules.dep Module dependence file | |- pcitable IT8212 pci info | |- rhdd-6.1 Driver disk label | +- iteraid.o Driver module for RedHat 8.0 | +- rh90 RedHat 9.0 directory |- modinfo Module info file |- modules.cgz Compressed driver modules |- modules.dep Module dependence file |- pcitable IT8212 pci info |- rhdd-6.1 Driver disk label +- iteraid.o Driver module for RedHat 9.0 3. Revision History =================== v1.0 01/16/2003 First release v1.1 02/07/2003 Fixed module install problem v1.2 02/18/2003 Fixed interrupt service routine. v1.3 04/30/2003 ATAPI support. Fixed performance issue under Red Hat. Fixed the unstable problem when using Gigabyte's motherboard with SIS southbridge 962L and 963. 4. Installation Guide ===================== 4.1. **** Installing IT8212 Linux Driver into an EXISTING SYSTEM **** 01. Boot linux system and login as root. 02. Copy iteraid.o (/linux/rh73/iteraid.o) to any directory you want, then go to that driectory. 03. You can test out the module to ensure that it works by the following commands: # modprobe sr_mod # modprobe sd_mod # insmod iteraid.o To ensure the modules has been loaded successfully, you can check the driver module loading status by using the "dmesg" command. # dmesg Then you will see the following messages. (depend on your RAID configuration). ... ... Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 SCSI device sda: 120103200 512-byte hdwr sectors (61493 MB) .. .. 04. Most likely, you will not want to type in "insmod iteraid.o" each time you boot up the system. Therefore you must install the module and tell the system about it. To install the module, type in the following commands (first change directory to where the proper iteraid.o can be loacted): On Red Hat 7.3, use # install -d /lib/modules/2.4.18-3/kernel/drivers/scsi # install -c iteraid.o /lib/modules/2.4.18-3/kernel/drivers/scsi Then you should inform the system when to load the module. You can add the driver to the existing RAM disk image (in RedHat 7.3, it will be /boot/initrd-2.4.18-3.img). Using the following commands: # gzip -dc /boot/initrd-2.4.18-3.img > /tmp/initrd.ext2 # mkdir /mnt/initrd # mount -o loop /tmp/initrd.ext2 /mnt/initrd # cp iteraid.o /mnt/initrd/lib/ # cp /lib/modules/2.4.18-3/kernel/drivers/scsi/scsi_mod.o /mnt/initrd/lib/ # cp /lib/modules/2.4.18-3/kernel/drivers/scsi/sd_mod.o /mnt/initrd/lib/ Now, add following lines to the file /mnt/initrd/linuxrc, you can use the editor that you fimilar with like vi. Example of linuxrc: # vi /mnt/initrd/linuxrc =============================================================== #!/bin/sh echo "Loading scsi_mod module" <-- new insert line insmod /lib/scsi_mod.o <-- new insert line echo "Loading sd_mod module" <-- new insert line insmod /lib/sd_mod.o <-- new insert line echo "Loading IT8212 module" <-- new insert line insmod /lib/iteraid.o <-- new insert line ... ... ... =============================================================== # umount /mnt/initrd # gzip -c /tmp/initrd.ext2 > /boot/initrd-2.4.18-3.img If you are using Lilo to boot your system, you also need to run lilo: # lilo Then reboot your system and the driver will be loaded. 05. Configure system to mount volumes when startup. Now you can inform the system to automatically mount the array by modifying the file /etc/fstab. E.g. You can add the following line to tell the system to mount /dev/sda1 to location /mnt/raid after startup: /dev/sda1 /mnt/raid ext2 defaults 0 0 4.2. **** Installing Red Hat Linux on IT8212 Controller **** 01. Prepare your hardware for installation After you attach your hard disks to IT8212 controller, you can use IT8212 BIOS to configure your hard disks as RAID 0, RAID 1, RAID 0/1 or JBOD arrays, or just use them as single disks. Remember to set the BOOT disk when you in the IT8212 BIOS config menu. Before installation, you must remove all the disk drives, which are not physcially attached to IT8212 controller, from your system. 02. Check system BIOS setting In your system bios setup menu, change Boot Sequence in such a way that the system will first boot from CDROM, and then from SCSI. Refer to your BIOS manual to see how to set boot sequence. 03. Prepare the driver diskette Copy all the files under /linux/rh73/ directory to a new dos formatted disk. 04. Install Red Hat 7.3 (1) Start installing Red Hat 7.3 by booting with the CDROM. (2) On "welcome to Red Hat Linux 7.3!" installation screen, a prompted label "boot:" will appear at the bottom of the screen. Then type in "expert" and press enter. (3) Then you will be asked "Do you have a driver disk?". Select "Yes". (4) When prompted "Insert your driver disk and press "OK" to continue", insert the driver disk in the floppy driver and then select "OK". Then the IT8212 driver will be loaded. (5) Continue the installation as normal. You can reference the Red Hat Linux installation guide. 5. The note for using ATAPI CD-ROM =================================== 01. If you want reading the data disk, just insert the disk into CD-ROM, then mount as iso9660 file type: # mount -t iso9660 /dev/scd0 /mnt/cdrom/ Then you can access the disk data via /mnt/cdrom/. Remember to umount the /mnt/cdrom/ if you want to access another one. # umount /mnt/cdrom/ 02. If you want listening the music CD, insert the disk into CD-ROM, then you do not need to mount like the data disk. Just open the CD Player(like KsCD in KDE..), then you can start listening the music.