Fedora Linux Support Community & Resources Center
  #1  
Old 5th July 2004, 11:13 AM
fjleal's Avatar
fjleal Offline
Registered User
 
Join Date: Feb 2004
Location: Portugal, Europe
Age: 43
Posts: 519
Unhappy Ndiswrapper works no more with new kernel

I've been using the ndis wrapper software available at http://sourceforge.net/projects/ndiswrapper/ to be able to use my wireless nic on FC2 (a Broadcom 4301, no native drivers are available). It worked well until I upgraded to kernel 2.6.6-1.435.2.3. Now, when I try to "modprobe ndiswrapper", I get the message:

"FATAL: Error inserting ndiswrapper (/lib/modules/2.6.6-1.435.2.3/misc/ndiswrapper.ko): Invalid module format"

I worked well with 2.6.6-1.435 and 2.6.6-1.435.2.1. May someone know what is that "invalid format" due to?

Thanks a lot!
__________________
"I'd crawl over an acre of 'Visual This++' and 'Integrated Development That' to get to gcc, Emacs, and gdb. Thank you."
-- Vance Petree, Virginia Power
Reply With Quote
  #2  
Old 5th July 2004, 12:32 PM
micha's Avatar
micha Offline
Registered User
 
Join Date: Feb 2004
Location: France
Age: 35
Posts: 533
Yeah, I guess there's something wrong with the new kernel. I've got the same error with ndiswrapper and the ATI driver....
Reply With Quote
  #3  
Old 5th July 2004, 12:41 PM
fjleal's Avatar
fjleal Offline
Registered User
 
Join Date: Feb 2004
Location: Portugal, Europe
Age: 43
Posts: 519
Thanks, micha, thought I had messed up! I guess I'll keep on using 2.6.6-1.435.2.1, then...
__________________
"I'd crawl over an acre of 'Visual This++' and 'Integrated Development That' to get to gcc, Emacs, and gdb. Thank you."
-- Vance Petree, Virginia Power
Reply With Quote
  #4  
Old 5th July 2004, 12:46 PM
micha's Avatar
micha Offline
Registered User
 
Join Date: Feb 2004
Location: France
Age: 35
Posts: 533
Quote:
Originally Posted by fjleal
I guess I'll keep on using 2.6.6-1.435.2.1, then...
That's what I do
Reply With Quote
  #5  
Old 14th July 2004, 02:04 PM
merith Offline
Registered User
 
Join Date: Jul 2004
Location: Australia
Posts: 23
I had upgraded already to 2.6.6-1.435.2.3, then I installed the ndiswrapper. All appears ok, modprobe works fine for me. I am running HP nx7010. I followed the basic setup instructions on this link, http://www.linuxelectrons.com/articl...40507104718960, though once I got it running I configured it through the gui and not the wrapper itself.
Reply With Quote
  #6  
Old 19th July 2004, 07:39 AM
Arthur Offline
Registered User
 
Join Date: Jul 2004
Location: London
Posts: 5
Did you recompile ndiswrapper for your new kernel?

Might be an obvious question, but thought I'd better check. Did you update the ndiswrapper module to go with the new kernel?

Since ndiswrapper is a kernel module, its specific to the kernel you compiled it for. If you upgrade the kernel you'll have to update the module.

If you grabbed it from rpm (already compiled), then hunt down a newer version for the kernel you've just put on. If you installed from source, just recompile it (make clean; make; make install).

This will also be true for any other kernel modules you've added to the base kernel e.g. nvidia/ati drivers, connexant modem drivers, zero-install lazyfs etc.
Reply With Quote
  #7  
Old 19th July 2004, 11:38 AM
fjleal's Avatar
fjleal Offline
Registered User
 
Join Date: Feb 2004
Location: Portugal, Europe
Age: 43
Posts: 519
Quote:
Originally Posted by Arthur
Did you update the ndiswrapper module to go with the new kernel? (...) If you installed from source, just recompile it (make clean; make; make install).
Yes Arthur, I did recompile it and followed the instructions in the README file to install it against the new kernel, like I had done with the previous one. It didn't help, but I can perfectly work with kernel 435.2.1, so it's no big problem... I was just wondering if i'd done something wrong. I'll try recompiling and reinstalling it again when a new kernel version becomes available. In the meantime, it's working perfectly with kernel 2.6.6-1.435.2.1.

Thank you all folks for your answers!
__________________
"I'd crawl over an acre of 'Visual This++' and 'Integrated Development That' to get to gcc, Emacs, and gdb. Thank you."
-- Vance Petree, Virginia Power
Reply With Quote
  #8  
Old 11th August 2004, 04:34 PM
Marty Offline
Registered User
 
Join Date: Aug 2004
Posts: 1
hey I had the INVALID FORMAT error before.. I kinda fixed it later
it has to do with the kernel source code compiled with ndiswrapper not matching with the current running one
these are the steps I did:

Installing Ndiswrapper
1. Downloaded kernel source to /usr/src/kernel/linux-2.6.3/
2. Created a symbolic link in /lib/modules/2.6.3-7mdk called build that references the kernel source
ln -sf /usr/src/kernel/linux-2.6.3/ build
3. Downloaded ndiswrapper 0.9 to /usr/local/ndiswrapper/ndiswrapper-0.9/
4. "make install" prompt error (need to configure kernel to accept modules)
5. Ran "make oldconfig" within the kernel source directory (oldconfig reverts to old configuration)
6. Ran "make install" again, no errors
7. Ran "modprobe ndiswrapper", prompt error "INVALID FORMAT". Possibly due to new kernel configuration not compatible with the current kernel build. Resolved to rebuild kernel
8. After rebuilding kernel, "make install" and "modprobe ndiswrapper" does not register error
9. At this stage, using iwconfig does not gain connection to wireless. AP shows up in the interface (wlan0) but no connection is established.
10. Various measures were taken :
a). edited the file ifcfg-wlan0 in /etc/sysconfig/network-scripts with
DEVICE=wlan0
BOOTPROTO=dhcp
TYPE=Wireless
ONBOOT=yes
HWADDR=your MAC address
MII_NOT_SUPPORTED=1
NEEDHOSTNAME=yes
GATEWAY=your gateway
KEY=your WEP encryption key
ESSID=your essid
(see bunnymechanics.com/toshiba.html for more details)

b). Mandrake Control Center (configuration --> configure your computer --> network & internet --> manage connections) and click Apply to wlan0
c). Set Key, Set ESSID, and use "ifconfig wlan0 up"

At this stage, still have no improvement. But after restarting comp, it works.

Last edited by Marty; 11th August 2004 at 04:53 PM. Reason: remove unnecessary parts
Reply With Quote
  #9  
Old 11th August 2004, 06:52 PM
fjleal's Avatar
fjleal Offline
Registered User
 
Join Date: Feb 2004
Location: Portugal, Europe
Age: 43
Posts: 519
Thanks, Marty, but I'm now using kernel 2.6.7-1.494.2.2 and ndiswrapper 0.9, and it works like a charm! I simply uninstalled ("make clean") ndiswrapper-0.8 and did the installation procedure for ndiswrapper-0.9 again.

It works great!
__________________
"I'd crawl over an acre of 'Visual This++' and 'Integrated Development That' to get to gcc, Emacs, and gdb. Thank you."
-- Vance Petree, Virginia Power
Reply With Quote
  #10  
Old 25th August 2004, 08:37 PM
burgeke Offline
Registered User
 
Join Date: Jul 2004
Posts: 3
I know this is an older thread but in case anyone has the same issue, just remove the "custom" take from the kernel source makefile. Marty had it dead on - the kernel source from Fedora has a "custom" version add on while the running kernel does not. Once you remove this your modules will compile and load just fine.

BTW: I got this info from here - http://ipw2100.sourceforge.net/faq.php#qa_1_9 when I had the same problem myself.

Keith
Reply With Quote
Reply

Tags
kernel, ndiswrapper, works

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A wireless card that works with linux without ndiswrapper? DigitalDuality Servers & Networking 3 13th April 2008 04:30 PM
ndiswrapper works on Ubuntu but not Fedora (Dell E1505) concoran Servers & Networking 53 4th March 2008 09:26 AM
Wifi (pcmcia wl-100g) halts FC8 but works after modprobe ndiswrapper Sparcky Servers & Networking 0 11th November 2007 11:34 AM
wpa_gui/ndiswrapper works but no connection? murmel90 Servers & Networking 2 28th March 2006 07:41 PM
How ndiswrapper works?! Doo Hardware & Laptops 12 11th May 2005 06:24 PM


Current GMT-time: 13:16 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat