Ticket #1504 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

Invalid module format - Linux 2.6.22

Reported by: anonymous Assigned to:
Priority: major Milestone:
Component: madwifi: driver Version: trunk
Keywords: Cc:
Patch is attached: 0 Pending:

Description (Last modified by mentor)

Hello, as far as I know, there was some API change in Linux 2.6.22 release. I have tried the madwifi-ng-current from 11-Aug-2007 (latest). It compiled successfully, but modules wont load. Both the kernel and madwifi driver compiled with the same gcc.

# uname -srm
Linux 2.6.22.2 i686

# modprobe ath_pci
WARNING: Error inserting ath_hal (/lib/modules/2.6.22.2/net/ath_hal.ko): Invalid module format
WARNING: Error inserting wlan (/lib/modules/2.6.22.2/net/wlan.ko): Invalid module format
FATAL: Error inserting ath_pci (/lib/modules/2.6.22.2/net/ath_pci.ko): Invalid module format

# gcc -v
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.1.2/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.1.2/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.1.2

Am I missing something?

Attachments

Change History

08/11/07 18:25:19 changed by mentor

  • description changed.

08/11/07 18:27:55 changed by mentor

  • summary changed from MadWifi seems to be not ready for 2.6.22+ kernel. to Invalid module format - Linux 2.6.22.

At a guess you didn't compile your modules correctly. You need to compile the modules with the same compiler version as you did the kernel. You can check the versions in /proc/version and using 'modinfo'

08/14/07 02:32:20 changed by anonymous

As wrote in primary description - the compiler version is the same.

$ cat /proc/version
Linux version 2.6.22.2 (root@y) (gcc version 4.1.2) #1 SMP Sat Aug 11 18:52:40 UTC 2007

# modinfo ath_pci | grep ver
version:        svn r2650
srcversion:     714EE5C7DCF9534B83F0A68
vermagic:       2.6.22.2 SMP mod_unload CORE2 
parm:           countrycode:Override default country code (int)

However, pre-2.6.22 kernels works fine.

08/14/07 03:01:56 changed by mentor

What does your kernel log say after you have tried loading the module?

08/14/07 20:25:06 changed by anonymous

# modprobe -v ath_pci
insmod /lib/modules/2.6.22.2/net/ath_hal.ko 
WARNING: Error inserting ath_hal (/lib/modules/2.6.22.2/net/ath_hal.ko): Invalid module format
insmod /lib/modules/2.6.22.2/net/wlan.ko 
WARNING: Error inserting wlan (/lib/modules/2.6.22.2/net/wlan.ko): Invalid module format
insmod /lib/modules/2.6.22.2/net/ath_pci.ko 
FATAL: Error inserting ath_pci (/lib/modules/2.6.22.2/net/ath_pci.ko): Invalid module format

From syslog:

Aug 14 19:20:01 y kernel: ath_hal: module has no symbols (stripped?)
Aug 14 19:20:01 y kernel: wlan: module has no symbols (stripped?)
Aug 14 19:20:01 y kernel: ath_pci: module has no symbols (stripped?)

Other modules works fine, of course..

08/15/07 00:42:43 changed by mentor

Yes yes, it must be all our fault.

08/15/07 00:53:22 changed by mentor

Hmmm, so it appears the modules have been stripped. This isn't something that the MadWiFi build process should be doing. How are you compiling?

08/15/07 05:20:00 changed by anonymous

Yes yes, it must be all our fault.

I did not said that :-).

Actually, I have found the problem. The checkinstall utility did not created a correct MadWifi package. Normally it handles "make modules_install" and creates the scripts accordingly. I had not such problem with 0.9.3.1 version, perhaps something new was invented in current MadWifi make script.

Sorry for noise. The ticket might be closed, thanks.

08/15/07 06:36:59 changed by mrenzmann

  • status changed from new to closed.
  • resolution set to invalid.

Add/Change #1504 (Invalid module format - Linux 2.6.22)