LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 03-17-2005, 08:29 AM   #1
quarry_06
Member
 
Registered: Oct 2004
Posts: 77

Rep: Reputation: 15
ndiswrapper module not loadable


hi
I just downloaded the new source of ndiswrapper 0.12 as a .deb
i made make distclean
make
make install
everything worked fine.

installed the driver with ndiswrapper -i bcmwla5.inf
worked fine, ndiswrapper -l is listing driver and hardware present.

but when I try to modprobe ndiswrapper, I get following error:

modprobe ndiswrapper
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.8-1-386/misc/ndiswrapper.ko): Invalid module format

any idea?

thanks alot

quarry
 
Old 03-17-2005, 10:53 AM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
This probably happens because your kernel is from another version than the ndiswrapper module. Can you try install it from source?
 
Old 03-17-2005, 11:46 AM   #3
quarry_06
Member
 
Registered: Oct 2004
Posts: 77

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by darkleaf
This probably happens because your kernel is from another version than the ndiswrapper module. Can you try install it from source?
if i understood it right, the .deb is a source package, which is then compiled with make?
or you mean downlad .gz package from the ndiswrapper page and compile it?

thanks for help
 
Old 03-18-2005, 07:38 AM   #4
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Yes I mean the .gz package. That'll ensure there's no version conflict between the two. Jope it helps.
 
Old 03-19-2005, 11:53 AM   #5
ambelos
Member
 
Registered: Nov 2003
Location: npr, fl, usa
Distribution: suse 9.3 / xp pro sp2
Posts: 226

Rep: Reputation: 30
i am having the same trouble. i have suse 9.2 and installed ndiswrapper using yast. are you saying that i should remove what i have and install it from source? also, will ndiswrapper confilict with driverloader?

thnx
 
Old 03-19-2005, 12:27 PM   #6
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
I'd try the source way as well. Then you make sure everything's right. I think it might conflict with driverloader if you have both the modules in the kernel. You could try removing one from the kernel or just delete it completely.
 
Old 08-09-2005, 05:48 PM   #7
quarry_06
Member
 
Registered: Oct 2004
Posts: 77

Original Poster
Rep: Reputation: 15
here is what I get from dmesg

ndiswrapper: disagrees about version of symbol struct_module
ndiswrapper: no version for "struct_module" found: kernel tainted.
ndiswrapper: no version magic, tainting kernel.
ndiswrapper: Unknown symbol __per_cpu_offset
ndiswrapper: Unknown symbol __preempt_spin_lock
ndiswrapper: Unknown symbol del_timer_sync

after executing modprobe -f ndiswrapper

thanks for any help
 
Old 08-10-2005, 02:47 PM   #8
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
quarry_06 the reason why you are getting this error is because of conflict wiht your kernel headers. The best way to resolve it is to download the source of ndiswrapper (probably the lastest). You might want to get it via cvs. compile it so it uses your 'patched' 2.6.8-1-386 kernel source. That is what i had to do. Let me know if that doesn't work.


-djgerbavor3
 
Old 08-10-2005, 08:14 PM   #9
nevereverend
LQ Newbie
 
Registered: Jan 2004
Distribution: SuSE 9.0 Professional
Posts: 12

Rep: Reputation: 0
I was having the same problem, and I figured I might have to compile ndiswrapper from source.

My only question is about how to do that. I've mostly used RPM based distros, and recently switched to minislack. Discovering now I have no idea how to compile from source.
 
Old 08-10-2005, 08:25 PM   #10
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
this is taken from coindood's post at http://www.linuxquestions.org/questi...&pagenumber=53

this is a very good tutorial on gettting ndiswrapper from source, compiling, installing, configuring and getting on the internet. have fun :)

Getting Ndiswrapper to work is so much easier than the Realtek drivers! This is how I got my setup working (btw, i tried this on most of the knoppix derivitives, so it should work on debian too, with kernels ranging from 2.4.24 and up):

Note: These are all console commands (for those VERY new to this!)

First you must download the newest version at
ndiswrapper.sourceforge.net

If you want to be on the edge, you can download the CVS by using:
Code:
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/ndiswrapper login
Code:
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/ndiswrapper co ndiswrapper

Untar the ndiswrapper file and go to http://www.realtek.com.tw/downloads...px?Keyword=8180
and downloaded the latest WindowsXP drivers.

I unzipped the drivers into my ndiswrapper directory (/home/user_name/ndiswrapper/), and per the INSTALL text, I typed

Code:
make install
then

Code:
ndiswrapper -i NET8180.INF
to install the driver. Typing

Code:
ndiswrapper -l
will tell you if the driver is present, and for good measure I typed

Code:
dmesg | grep "wlan0"
and looked at the last line to see if it mentioned wlan0.

After all that I did

Code:
modprobe ndiswrapper
to install the module, then proceeded to setup my card using iwconfig:

Code:
iwconfig wlan0 mode Managed
iwconfig wlan0 key YOUR_KEY  //if you use a key use this!
iwconfig wlan0 essid YOUR_ESSID
iwconfig wlan0 channel YOUR_CHANNEL
/sbin/ifconfig wlan0 192.168.0.10  up  //an unused ip within your network!

/sbin/route add default gw 192.168.0.1 wlan0
OR
dhcpcd wlan0
The last ip number is the one to your router (thanks RoyBatty).

Try using

Code:
ping google.com
, and if it is successful, you are all set!

To save the "modprobe" settings, use:

Code:
ndiswrapper -m
Thanks to everyone on this thread once again!

Knoppix (and other knoppix-based distros, or those with netcardconfig):
You can omit the last three lines (only configure with iwconfig up to setting the essid) and run "netcardconfig", either from the knoppix menu under Network, where it is called "Network Card Configuration", and select "yes" in the "Use DHCP broadcast" window. Now you are all set!

Last edited by djgerbavore; 08-10-2005 at 08:26 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add new loadable module to kernel? Mistreated Linux - Software 7 02-02-2005 10:22 AM
Compiled source files. Why no loadable module? Darrell22 Linux - Newbie 4 01-30-2004 01:01 PM
RedHat 9 (2.4.20-8) kernel rebuild without loadable module support RedHatDude Linux - Software 4 09-09-2003 09:32 PM
RedHat 9 (2.4.20-8) kernel rebuild without loadable module support RedHatDude Red Hat 1 09-09-2003 09:20 PM
loadable kernel module brajesh Linux - General 2 01-17-2003 12:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 06:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration