Marvell Serial ATA PCI-X Adapter RedHat Installation Disk README
----------------------------------------------------------------

This README file explains how to create a boot disk for RedHat
Linux based distributions.

The result of the process is a single boot disk that is suitable for
UP,SMP and bigmem kernels.

The supported RedHat distributions are:
RedHat 8, RedHat 9 and RedHat Enterprise 3.
Fedora Core 2, Fedora Core 3 (FC3).
The supported platforms:
i386, x86_64
The supported cpus:
i386, i686, athlon and x86_64 compatible cpus (AMD64, Intel EM64T).

Precompiled drivers for the listed systems above are provided under the 
directory precompiled_drivers. To use those drivers, copy the suitable 
driver (modules.cgz.system) to the files directory, then rename it to 
modules.cgz then go to step 7 below.

The provided precompiled drivers are:
modules.cgz.FC3-x86: for i386 Fedora Core 3.
modules.cgz.FC3-x86_64: for x86_64 Fedora Core 3.
modules.cgz.RH-2.4: for i386 RedHat 8,9 and Redat Enterprise 3.


The creation process must run on a machine with one of the supported cpus
and under a RedHat Linux kernel without SMP, BOOT or bigmem configurations.

For RedHat Enterprise 3 targets, binary drivers will be created for i686 and
athlon cpus in the same package.

For RedHat 8, 9 and Fedora Core 2/3 the created package will include binary 
drivers suitable only for the cpu type of the machine where the compilation 
process ran.


Instructions -
--------------
1.. Create a directory where the kernel sources will be installed later on.
    For this README file, assume that the directory is /tmp/kernel_sources.

2.. for kernel 2.4 based systems (RedHat 8,9,Enterprize 3)Put the sources tree
    of each target kernel under /tmp/kernel_sources/ and name it with it's 
    kernel release.
    for example, to create drivers for RedHat 8:
	- download the kernel-source rpm of RedHat 8 (kernel-source-2.4.18-14.i386.rpm)
    	- run rpm2cpio kernel-source-2.4.18-14.i386.rpm | cpio -id
	- run mv usr/src/linux-2.4.18-14 /tmp/kernel_sources/2.4.18-14

3.. for kernel 2.6 based systems (Fedora Core 2/3), create directory under 
    /tmp/kernel_sources/ with the name of the kernel release, and under that
    directory create directory for each kernel configuration then put the
    kernel sources tree for that configuration.
    for example, to create drivers for Fedora Core 3 for x86 cpu:
        - mkdir /tmp/kernel_sources/2.6.9-1.667
	- mkdir /tmp/kernel_sources/2.6.9-1.667/i586
	- mkdir /tmp/kernel_sources/2.6.9-1.667/i686
	- mkdir /tmp/kernel_sources/2.6.9-1.667/smp
	- download the kernel rpm for i586 (kernel-2.6.9-1.667.i586.rpm)
	- run rpm2cpio kernel-2.6.9-1.667.i586.rpm | cpio -id
	- run mv lib/modules/2.6.9-1.667/sources/* /tmp/kernel_sources/2.6.9-1.667/i586
	- do the last 3 steps for i686 and smp kernels.
	

4.. Go to the RedHat directory in LinuxIAL within the driver's source files.

5.. Execute 'dos2unix gen_module.sh files/*'

6.. Execute 'sh gen_module.sh /tmp/kernel_sources'
    The gen_module.sh (bash script) will scan all available kernels and will produce
    a boot diskette according to all kernel versions available in the
    /tmp/kernel_sources directory.

7.. The content of the 'files' directory is the boot diskette. Copy it to
    a diskette.

8.. Start the RedHat Linux installation on the required machine with
    Marvell Serial ATA adapter.

9.. During installation, select Expert Mode and follow the installation
    instruction. When a driver disk is requested, insert the boot diskette
    in drive A and continue the installation.
