-----------------------------------------------------------------------------
      	     Initio 162x SATA Linux driver for 2.6.15
-----------------------------------------------------------------------------


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  linux-2.6.15.tar.gz
from ftp://ftp.kernel.org/pub/linux/kernel/v2.6/
and copy it to /usr/src/

use root to do the following command
tar zxvf linux-2.6.15.tar.gz

cd /usr/src/linux-2.6.15

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 modules_install
	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/kernel/drivers/scsi/scsi_mod.ko
	insmod /lib/modules/2.6.15/kernel/drivers/scsi/libata.ko
        insmod /lib/modules/2.6.15/kernel/drivers/scsi/sata_initio162x.ko

