-----------------------------------------------------------------------------
      	     Initio 162x SATA Linux driver for Fedora 5
-----------------------------------------------------------------------------


1. File Signature
====================
./driver/			Initio 162x SATA driver
./sample/			sample pci_ids.h, Kconfig and Makefile
readme.txt                     	this file

2. Fedora linux source
====================
Download Fedora 6 Linux source package kernel-2.6.15-1.2054_FC5.src.rpm
from http://download.fedora.redhat.com/pub/fedora/linux/core/5/source/SRPMS/

use root to do the following command

rpm -ivh kernel-2.6.15-1.2054_FC5.src.rpm

cd /usr/src/redhat/SPECS
rpmbuild -bp --target $(uname -m) kernel-2.6.spec

cd /usr/src/
ln -s ./redhat/BUILD/kernel-2.6.15/linux-2.6.15.i686/ linux

cd /usr/src/linux
cp configs/kernel-2.6.15-i686.config .config
vi Makefile 
	modify EXTRAVERSION = -prep 
	to EXTRAVERSION = -1.2054_FC5

make mrproper
make oldconfig

3.Driver Installation Guide
====================
To install the driver, you should reconfigure and recompile your Linux 
kernel as follows:

Make sure your kernel version number is 2.6.15

Copy sata_initio162x.c to /usr/src/linux/drivers/scsi , and modify the
following file in this directory.

1. /usr/src/linux/include/linux/pci_ids.h
add the following lines to pci_ids.h

#define PCI_DEVICE_ID_INIT_1622		0x1622


2./usr/src/linux/driver/scsi/Kconfig
add the following lines to Kconfig.(refer to the Kconfig we provide to you)

config BLK_DEV_INITIO162x
	tristate "Initio SATA 162x chipset support"
	help
		This driver Support Initio Sata 162x Chipset

3./usr/src/linux/driver/scsi/Makefile
add the following lines to Makefile.(refer to the Makefile we provide to you)

obj-$(CONFIG_BLK_DEV_INITIO162x)	+= libata.o sata_initio162x.o

------------------------------------
Install driver with kernel image
------------------------------------

  Step 1: 
        Change directory to /usr/src/linux
        Use the command "make menuconfig" or "make xconfig", and make 
        sure "Initio SATA 162x chipset support" and is set as kernel build in.
	
	Example:	
	1. SCSI device support
		Select "Device Drivers"
        	Select "SCSI device Support"
        	Select "SCSI device support" as "*"
        
	2.Initio SATA 162x chipset support
		Select "Device Drivers"
        	Select "SCSI device Support"
		Select "SCSI low-level drivers"
        	Select "Initio SATA 162x chipset support" as "*"
	
  Step 3:
	make
	make install

  Step 4:
	reboot the linux and boot from new kernel image

------------------------------------
Install as a kernel module
------------------------------------

  Step 1: 
        Change directory to /usr/src/linux
        Use the command "make menuconfig" or "make xconfig", and make 
        sure "Initio SATA 162x chipset support" is set as module.
	
	Example:	
	Select "Device Drivers"
        Select "SCSI device Support"
	Select "SCSI low-level drivers"
        Select "Initio SATA 162x chipset support" as "M"

  Step 3:
	make
	make modules_install

  Step 4:
	insmod /lib/modules/2.6.15-1.2054_FC5/kernel/drivers/scsi/scsi_mod.ko
	insmod /lib/modules/2.6.15-1.2054_FC5/kernel/drivers/scsi/libata.ko
        insmod /lib/modules/2.6.15-1.2054_FC5/kernel/drivers/scsi/sata_initio162x.ko


4. Revision History
===================
         0711	- First release. 
         0719	- Add readme.txt 
	 0724   - Support Fedora 5, 6
	 0809	- Change driver to SCSI class, only support Fedora 5
	 	  Add IDMA function

