[Ndiswrapper-general] Re: ndiswrapper 1.6/1.7, kernel 2.6.14, mandriva 2006
Status: Beta
Brought to you by:
pgiri
From: Larry F. <Lar...@lw...> - 2005-12-23 19:27:19
|
engage wrote: > On Tuesday 20 December 2005 06:15, Olivier Blin wrote: > >>engage <en...@n0...> writes: >> >>>I just upgraded to Mandriva 2006 and I can't get ndiswrapper to load. >>>Since it was OK with kernel 2.6.14 & Mandriva 2005, it must be a distro >>>version issue. Currently, I'm using the stock kernel for Mandriva 2006 and >>>ndiswrapper 1.7. Anyone have a clue as to why it's broken with >>>Mandriva2006/kernel2.6.14/ndiswrapper1.7 (and 1.6)? >>> >>>FATAL: Error inserting ndiswrapper >>>(/lib/modules/2.6.14/misc/ndiswrapper.ko): Invalid module format >> >>The module version is probably incorrect, have a look in your system >>logs (/var/log/messages) to check that. >>To fix that, you have to modify the EXTRAVERSION field in >>/usr/src/linux/Makefile (removing "custom" is probably enough) >> >>Regards > > > Since kernel 2.6.14 is a vanilla kernel there is nothing in EXTRAVERSION in > the Makefile. As I have already stated, I successfully used ndiswrapper 1.7 > with kernel 2.6.14 with Mandriva *2005* but it doesn't work with Mandriva > *2006* unless I use the stock kernel for Mandriva *2006*. I've installed > ndiswrapper many times before so ndiswrapper should be working. I do have one > other machine that I upgraded to Mandriva 2006 and kernel 2.6.14 and it's > working fine with ndiswrapper 1.7 using either a Linksys or Netgear PCMCIA > wireless card. The machine I'm having trouble with is using a Linksys PCI > wireless card. From the output of /var/log/messages I get the impression that > it's a compiler issue? This log output occurs when trying to use the 2.6.14 > kernel. The card works fine with stock kernel 2.6.12-12mdk. But, I'm still > trying to research these error messages. > > [engage@ws ~]$ su -c "lspci | grep Broadcom" > Password: > 00:05.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless > LAN Controller (rev 03) > [engage@ws ~]$ su -c "/usr/sbin/lshw | less" > Password: > *-network:0 > description: Wireless interface > product: BCM4306 802.11b/g Wireless LAN Controller > vendor: Broadcom Corporation > physical id: 5 > bus info: pci@00:05.0 > logical name: wlan0 > version: 03 > serial: 00:0f:66:6d:8d:c9 > width: 32 bits > clock: 33MHz > capabilities: bus_master ethernet physical wireless > configuration: broadcast=yes driver=ndiswrapper ip=###.###.#.# > link > =yes multicast=yes wireless=IEEE 802.11g > resources: iomemory:dfffc000-dfffdfff irq:16 > [engage@ws ~]$ su -c "/usr/sbin/ndiswrapper -l" > Password: > Installed drivers: > bcmwl5 driver present, hardware present > [engage@ws ~]$ su -c "grep ndiswrapper /var/log/messages" > Password: > Dec 23 10:23:59 ws kernel: ndiswrapper: version magic '2.6.14 K7 gcc-4.0' > should be '2.6.14 K7 gcc-3.4' > Dec 23 10:23:59 ws kernel: ndiswrapper: version magic '2.6.14 K7 gcc-4.0' > should be '2.6.14 K7 gcc-3.4' > Dec 23 10:23:59 ws kernel: ndiswrapper: version magic '2.6.14 K7 gcc-4.0' > should be '2.6.14 K7 gcc-3.4' > Dec 23 10:24:14 ws modprobe: FATAL: Error inserting ndiswrapper > (/lib/modules/2.6.14/misc/ndiswrapper.ko): Invalid module format > Dec 23 10:24:14 ws kernel: ndiswrapper: version magic '2.6.14 K7 gcc-4.0' > should be '2.6.14 K7 gcc-3.4' The message is very clear. Modules must be compiled against the same kernel source that will be used, and using the same compiler. In your case, gcc-3.4 was used to compile the kernel and gcc-4.0 was used to compile ndiswrapper. You have 2 easy choices: (1) If the full kernel sources are installed, recompile and reinstall the kernel, or (2) There is a python module that will change the version magic in modules. Google for "change version magic module". |