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
do you hava module-init-tools installed ?
module-init-tools installed
yes i have version 0.9.13 of mofule-init-tools installed. I am able to install other modules.
re: module-init-tools installed
"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
I even did what you have suggested. I tried to insmod the .ko module without success.