[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Failed making boot-CD with aic79xx driver :(



I have a new Adaptec SCSI card and the "debian-31r0a-i386-netinst.iso"
can not work on it.
So, I want to make a iso with the new driver:
First.
Download both the kernel-source-2.6.8 from apt(because the install CD
use 2.6.8 kernel)and SCSI driver from Adaptec website on another debian box.
Untar the driver to the source tree and overwrite the aic7xxx dir in the
driver path.
make menuconfig
select the scsi driver of aic79xx as module.
make modules
Then I got an aic79xx.ko. modinfo aic79xx.ko,it said it's from Adaptec
and with BSD Licence.
Second.
Take out the initrd.gz in 2.6 kernel dir from
"debian-31r0a-i386-netinst.iso"
Unzip and mount initrd wr.
Copy the new aic79xx.ko to the modules dir and overwrite the old one.
umount and gzip initrd to initrd.gz
Put the initrd.gz to ISO and overwite the old one.
Rebuild a new ISO.

Ok, all the above has been done perfectly.
But when I use the new ISO in qemu VM, after boot the linux26 kernel,
use alt-F2 got a shell, modprobe -v aic79xx.
Then insmod said "Invalid module format".
I've tried to change the CPU type to P4,P3,P2,i386 and P5 when "make
menuconfig", but all the same "Invalid module format".
How can I make a "Valid module format"?



Reply to: