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

Re: adding modules to an initrd image



I tried to load the SATA modules from the installer into my install on
the PATA drive, and receive this output:

debian:~# modprobe sata_uli
WARNING: Error inserting scsi_mod
(/lib/modules/2.6.8-2-386/kernel/drivers/scsi/scsi_mod.ko): Invalid
module format
WARNING: Error inserting libata
(/lib/modules/2.6.8-2-386/kernel/drivers/scsi/libata.ko): Invalid
module format
FATAL: Error inserting sata_uli
(/lib/modules/2.6.8-2-386/kernel/drivers/scsi/sata_uli.ko): Invalid
module format
debian:~#

I did the following to try to get this to work.
Loaded the installer, and mounted my PATA partition.
loaded the sata_uli module, and noticed that the other two modules
loaded before it, and figured that I would need a modules.dep addition
to include the dependencies.
So I copied all three modules to the scsi module location on my PATA
drive, and updated the /etc/modules (PATA) to include sata_uli
I also updated the PATA modules.dep like so:
/lib/modules/2.6.8-2-386/kernel/drivers/scsi/sata_uli.ko:
/lib/modules/2.6.8-2-386/kernel/drivers/scsi/libata.ko
/lib/modules/2.6.8-2-386/kernel/drivers/scsi/scsi_mod.ko
This is the weird thing: the line above this also has the scsi_mod.ko
entry after the :
They path to the scsi_mod is exactly the same on both lines, so I
figure that the entry is not a problem.

I do seem to remember that the installer used kernel 2.6.11 ro 2.6.12,
but installs 2.6.8. I wonder if the installer kernel is new enough to
warrant a module incompatiblity...

Looks like I'm stuck for the moment...



Reply to: