Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error modprobing ndiswrapper
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Fri Mar 25, 2005 12:10 pm    Post subject: Error modprobing ndiswrapper Reply with quote

Hi,

I'm getting an error when using the command:
Code:
# modprobe ndiswrapper


The exact error I get is:

Code:
# modprobe ndiswrapper
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.11-gentoo-r4/misc/ndiswrapper.ko): Invalid module format


When I check my /var/log/everything/current log I see this line:

Code:
[kernel] ndiswrapper: version magic '2.6.11-gentoo-r4 preemt PENTIUM4 gcc-3.4' should be '2.6.11-gentoo-r4 preempt PENTIUM4 4KSTACKS gcc-3.4'


I'm not too sure whats causing this error, as I've even written my own howto on setting up ndiswrapper here.

I'm sure it something to do with recompiling my kernel, which I did last night.
I checked my /usr/src/linux/.config file and 'CONFIG_4KSTACKS' is not set, as I was advised by the ndiswrapper emerge procedure, though I have noticed that there is a -/+4kstacks option for emerging ndiswrapper by doing:

Code:
# emerge ndiswrapper -v -p


I also unmerged and (re)emerged ndiswrapper, and reinstalled the WG511 drivers (For my Netgear WG511 PCMCIA card) which worked on my T41 laptop after I upgraded the kernel. Didnt work on this PC though...

Does anyone have any idea what I need to do exactly?

Thanks...
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here


Last edited by plonka2000 on Fri Mar 25, 2005 12:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Fri Mar 25, 2005 12:16 pm    Post subject: Reply with quote

UPDATE: Just checked my kernel .config again and recompiled again then re-emerged AGAIN...

Still no joy...
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here
Back to top
View user's profile Send private message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Fri Mar 25, 2005 1:11 pm    Post subject: Reply with quote

Hi,

I've made progress but I'm stuck again...

I've changed the "4KSTACKS" option in my /usr/src/linux/.config file to:

Code:
CONFIG_4KSTACKS=y


and recompiled ndiswrapper with this command:

Code:
# emerge --unmerge ndiswrapper && USE="4kstacks" emerge ndiswrapper


And now I get a different error:

Code:
# modprobe ndiswrapper
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.11-gentoo-r4/misc/ndiswrapper.ko): Unknown symbol in module, or unknown parameter (see dmesg)


And when I check my /var/log/everything/current I see:

Code:
[kernel] ndiswrapper: Unknown symbol wireless_send_event


Is there anyone else who is had this issue and how did you solve it?

Thanks.
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here
Back to top
View user's profile Send private message
jmahler
n00b
n00b


Joined: 30 Mar 2004
Posts: 42

PostPosted: Fri Mar 25, 2005 4:04 pm    Post subject: Reply with quote

this is so cool that I get to help solve a Gentoo problem. Probably my first time EVER in fact. :)

https://forums.gentoo.org/viewtopic-t-303560-highlight-ndiswrapper+unknown+symbol+error+inserting.html

that thread has your answer.

Essentially, my guess is that you didn't turn on Wireless support in your kernel config.

I'm recompiling my kernel right now, in fact. :)

EDIT: crap. didn't work. Anyone else?

Edit2: Trying version 1.1 of ndiswrapper rather than the unmasked one.
http://packages.gentoo.org/search/?sstring=ndiswrapper

edit3: Okay, it's working now. I used 1.1, recompiled kernel and modules THEN unmerged/merged ndiswrapper, and i think i might be good now.
Back to top
View user's profile Send private message
MarkG
Tux's lil' helper
Tux's lil' helper


Joined: 28 Apr 2002
Posts: 90
Location: Dorset, UK

PostPosted: Fri Mar 25, 2005 11:01 pm    Post subject: Reply with quote

I seem to remember having this problem, I enabled
Code:
Device Drivers --->
      Networking support --->
            Wireless LAN (non-hamradio) --->
                 [*] Wireless LAN Drivers (non-hamradio) & Wireless Extensions
but this appeared to have no effect, so I randomly selected one of the drivers as a module
Code:
     <M>   Intersil Prism GT/Duette/Indigo PCI/Cardbus
and rebuilt the kernel, this fixed the problem.

MarkG
Back to top
View user's profile Send private message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Sat Mar 26, 2005 2:51 pm    Post subject: Reply with quote

I've been trying all these things and have now recompiled my kernel for the uptenth time... I just dont get it...
Works fine on my laptop, but refuses on my PC (also using a PCMCIA card).

The card is recognised, the driver is installed but it refuses to modprobe...
I changed the selection in the kernel config from in-built to module to off and same result...

Does anyone have any other ideas?
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here
Back to top
View user's profile Send private message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Sun Mar 27, 2005 7:58 pm    Post subject: Reply with quote

Does no-one have any idea why this is happening?

I've pretty much hit a wall...
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here
Back to top
View user's profile Send private message
Ekengren
n00b
n00b


Joined: 27 Mar 2005
Posts: 1

PostPosted: Tue Mar 29, 2005 10:19 pm    Post subject: Correct mounted boot partition? Reply with quote

I had a similar problem trying to get the ndiswrapper to work.
I recompiled the kernel with 8k stacks and wlan extensions, emerged ndiswrapper and still got the error "Invalid module".

Then I discovered my silly mistake...

I had updated the kernel in the boot directory of my root partition (/dev/hda3), not on the boot partition. So I was still trying to use the ndiswrapper with a 4k stacks kernel without wlan extensions. :oops:

A simple mount /dev/hda1 and a recompile solved my problems...

kernel = 2.6.11.4 w/wlan extensions & 8kstacks
ndiswrapper = 1.1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum