Recompile of aic79xx Driver

Hello,

The aic79xx driver v.1.3 as supplied by RedHat and Scientific Linux for the Adaptec U320 SCSI adapter cards 39320 and 29320 does not work in a mixed U320 SCSI and 20 MB/s SCSI. We had a lot of problems with an Overland Tapelibrary, where the LTO drives are U160 or U320 and the loader is 20 MB/s SCSI. But the same is true in any mixed SCSI environment.

The exact problem is outlined at the Adaptec web page and Adaptec supplies a new version of this driver, the actual version is 2.0.15, this driver works fine.

This driver is supplied as a rpm package for RHEL 3.0 update 5, 4.0, and 4.0 update 1, both in 32-bit and 64-bit. There is also a source tarball availabel for 32-bit and 64-bit.

Unfortunately there is no rpm available which fits to SL 4.2 (RHEL 4.0 Update 2)

So I tried to recompile the driver on SL 4.2 (x86_64) on my opteron system as I did formerly on SL 3.5 when the rpm package was not yet available.

I tried the following steps:
I installed kernel-smp-devel-2.6.9-22.0.1.EL.x86_64.rpm
The tarball was untarred to /usr/src/kernels/2.6.9-22.EL-smp-x86_64/drivers/scsi/aic7xxx/
# cd /usr/src/kernels/2.6.9-22.EL-smp-x86_64
# make oldconfig
# make
  CHK     include/linux/version.h
  SPLIT   include/linux/autoconf.h -> include/config/*
  CHK     include/asm-x86_64/offset.h
  HOSTCC  scripts/genksyms/genksyms.o
  HOSTCC  scripts/genksyms/lex.o
  HOSTCC  scripts/genksyms/parse.o
  HOSTLD  scripts/genksyms/genksyms
  CC      scripts/mod/empty.o
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'.  Stop.
make: *** [init] Error 2

Any hint / instruction how to compile a driver in the kernel 2.6 environment of SL 4.2?

Best regards

Peter

        Dr. Peter Stauffert
        Boehringer Ingelheim Pharma GmbH & Co. KG

        e-mail: [log in to unmask]