insmod problem

Submitted by quixotic
on April 5, 2004 - 9:22pm

I had a driver for a compactflash card for 2.4.20. I made the necessary changes to port it to 2.6.x. The new driver compiled successfully. Used the kbuild process to compile my module. The module name is Pci9656.ko.
When i try to do 'insmod /root/PlxLinux/linux/driver/common/Pci9656.o' the module load fails with the following message.
Error inserting '/root/PlxLinux/linux/driver/common/Pci9656.o': -1 Invalid module format
The corresponding 'dmesg' output is 'No module found in object'.
Doing a 'modprobe /root/PlxLinux/linux/driver/common/Pci9656.ko' gives the following error message,

FATAL: Module /root/PlxLinux/linux/driver/common/Pci9656.o not found.

Been trying to figure out the problem since morning in vain.
Can anybody shed some light on this.

Re: insmod

Anonymous
on
April 5, 2004 - 10:02pm

do you hava module-init-tools installed ?

module-init-tools installed

quixotic
on
April 6, 2004 - 8:09am

yes i have version 0.9.13 of mofule-init-tools installed. I am able to install other modules.

re: module-init-tools installed

Anonymous
on
April 6, 2004 - 10:25pm

"When i try to do 'insmod /root/PlxLinux/linux/driver/common/Pci9656.o' the module load fails with the following message.
Error inserting '/root/PlxLinux/linux/driver/common/Pci9656.o': -1 Invalid module format" -

If you successfully ported the module from 2.4 to 2.6 then the module should be 'Pci9656.ko', you cannot insmod a '.o' module into a 2.6.x kernel.
try 'insmod /root/PlxLinux/linux/driver/common/Pci9656.ko'

and

you cannot modprobe a module by giving its path, modprobe looks in the directory /lib/modules/2.6.x/* by default

I even did what you have sugg

quixotic
on
April 7, 2004 - 7:41am

I even did what you have suggested. I tried to insmod the .ko module without success.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.