/***********************************************************************
*   PROMISE FastTrak100 TX2/TX2000 Series Linux Driver README          *
*								       *
*   PROMISE Linux support team <support@promise.com.tw>                *
***********************************************************************/

How to make Driver module (UP/SMP) of FastTrak , and load it?
How to make and load a Driver module (UP/SMP) for FastTrak

1.) Make sure you have linux kernel source code in /usr/src/linux,
    and the gcc version is 3.x by issuing the command -
    # gcc -v

2.) Set the Kernel Compiling Environment -
    # cd /usr/src/linux/
    # make config(or menuconfig/xconfig)
	To set kernel config items as you wish as below,
	Processor type and features/Processor family
	Processor type and features/High Memory Support
	Processor type and features/Symmetric multi-processing support
    # make dep clean

3.) Go to the directory where PROMISE driver code is located and edit
    Makefile.

4.) Choose the parameters in Makefile (default parameter is INDEP586)
     ex:	INDEP586 for most common case
		DEP586   for most common case including module version
		SuSE_TB  for SuSE linux and Turbolinux,
		MDK      for Mandrake linux
 
5.) Issue Linux command to make a FastTrak(UP/SMP) driver: ft3xx.o

    	#make clean all

6.) Be sure to load scsi_mod.o before "insmod ft3xx.o".

7.) Copy this module to /lib/modules/2.4.x/kernel/drivers/scsi/

8.) Linux Kernels 2.4.x misidentify Promise ATA-RAID controllers as simple
    IDE controllers. This results in the built-in Linux IDE driver trying to
    handle the controller, which can prevent the proper FastTrak ATA RAID driver
    being loaded. This status is referred to as "IDE issue".

    If you are using Linux kernel 2.4.x, follow installation instructions 
    a.) through c.).

    NOTE: All IDE channels except the first and second one are disabled for the
    "IDE issue". It can be enable by removing 'ide2=0 ide3=0 ide4=0 ide5=0
    ide6=0 ide7=0 ide8=0 ide9=0' in /etc/lilo.conf or /boot/grub/menu.lst.

   a.) "linux ide0=0x1f0,0x3f6,14 ide1=0x170,0x376,15 ide2=0 ide3=0 ide4=0
        ide5=0 ide6=0 ide7=0 ide8=0 ide9=0"

   b.) If using lilo:
	/etc/lilo.conf
       	image=/boot/vmlinuz-2.4.20
		label=linux-2.4.20
		append="ide0=0x1f0,0x3f6,14 ide1=0x170,0x376,15 ide2=0 ide3=0
		ide4=0 ide5=0 ide6=0 ide7=0 ide8=0 ide9=0"
		initrd=/boot/initrd-2.4.20.img
		root=/dev/sda1
		read-only

   c.) If using grub: 
	/boot/grub/menu.lst
       	title Red Hat Linux (2.4.20)
       	root (hd0,0)
       	kernel /vmlinuz-2.4.20 ro root=/dev/sda1 ide0=0x1f0,0x3f6,14
	ide1=0x170,0x376,15 ide2=0 ide3=0 ide4=0 ide5=0 ide6=0 ide7=0 ide8=0 ide9=0
       	initrd /initrd-2.2.20.img

9.) Issue "cat /proc/scsi/ft3xx/x" (x is a SCSI host number) to get the
    RAID array status.
