LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-19-2005, 07:36 PM   #1
mclinkor
Member
 
Registered: Nov 2005
Posts: 63

Rep: Reputation: 15
Ndiswrapper failure in gentoo


So, I've installed gentoo on my laptop, which has a Dell TrueMobile 1300 WLAN Mini-PCI card. Therefore, I got the appropreiate driver from dell (R94826.exe) and unzipped bcmwl5.inf from it (since that is apparently the driver I should be using). So, I install ndiswrapper with make and make install. But when I do make install, I get

WARNING: Kernel seems to have a 4K size stack option (CONFIG_4KSTACKS) removed; many Windows drivers will need at least 8K size stacks. You should read wiki about 4K size stack issue. Don't complain about crashes until you resolve this.

But, back to the main point: after I install, then I ndiswrapper -i bcmwl5.inf and get ndiswrapper to find the device and the driver no problem (it says driver present, hardware present when I run ndiswrapper -l). So, I try modprobe ndiswrapper and get the following:

FATAL: Error inserting ndiswrapper (/lib/modules/2.6.14-gentoo-r5/misc/ndiswrapper.ko): Unknown symbol in module, or unknown parameter (see dmesg).

dmesg says:
ndiswrapper: Unknown symbol wireless_send_event

So, this seems unrelated to the earlier warning, but I'm not sure of anything really. It seems that my kernel doesn't like the ndiswrapper.ko file, but I'm not sure how to fix that. Thanks.

- Ryan
 
Old 12-19-2005, 10:27 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Ryan,

You'll want to recompile your kernel without CONFIG_4KSTACKS to avoid the warning message, though it may not be a problem for your particular driver. In either case, I strongly urge you to emerge the ndiswrapper ebuild rather than compiling from your own source. This will make sure you have the proper wireless tools and extensions installed as well. You'll also need to have wireless support enabled in the kernel.

Hope that helps.
 
Old 12-19-2005, 10:36 PM   #3
mclinkor
Member
 
Registered: Nov 2005
Posts: 63

Original Poster
Rep: Reputation: 15
Where in the kernel config menu is CONFIG_4STACKS?
 
Old 12-19-2005, 10:47 PM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
It's under Kernel Hacking->Kernel Debugging. On my kernel, it is DISABLED by default (aka, 8k stack mode).
 
Old 12-19-2005, 11:31 PM   #5
mclinkor
Member
 
Registered: Nov 2005
Posts: 63

Original Poster
Rep: Reputation: 15
Sorry to be stupid, but I don't see any suboptions under kernel debugging. The kernel debugging module itself is disabled by default though. So, do I need to install the kernel debugging in order to disable CONFIG_4STACKS?

On another note, when I try to emerge ndiswrapper, it brings up an error and quits:

make[2]: *** [/var/tmp/portage/ndiswrapper-1.2/work/ndiswrapper-1.2/driver/wrapper.o] Error 1
make[1]: *** [_module_/var/tmp/portage?ndiswrapper-1.2/work/ndiswrapper-1.2/driver ] Error 2
make[1]: Leaving directory '/usr/src/linux-2.6.14-gentoo-r5'
make: *** [default] Error 2

!!! ERROR: net-wireless/ndiswrapper-1.2 failed.
!!! Function linux-mod_src_compile, Line 505, Exitcode 2
!!! Unable to make KRSC=//usr/src/linux KVERS=2 6 all.

I've tried looking around to make some sense of this error, but all to no avail.
 
Old 12-20-2005, 08:12 AM   #6
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
You haven't shown any actual error, just build scripts discovering the error. Look higher up.
 
Old 12-20-2005, 08:19 AM   #7
mclinkor
Member
 
Registered: Nov 2005
Posts: 63

Original Poster
Rep: Reputation: 15
There are a number of warnings just above no errors, but I can't find any other errors. How can I copy text out of eterm so that I can paste it in here?

And about the CONFIG_4STACKS, I found it by including Kernel Debugging and then the list showed up. So, I have done that and manually made sure that CONFIG_4STACKS had a no in .config, and it is recompling now.
 
Old 12-20-2005, 08:29 AM   #8
mclinkor
Member
 
Registered: Nov 2005
Posts: 63

Original Poster
Rep: Reputation: 15
So, I attempted to do emerge ndiswrapper > errors to access the errors, but it just printed the non-error prone part to the file, but it did make it easier for me to find the errors, so here are the warnings:

/var/tmp/portage/ndiswrapper-2.3/work/ndiswrapper-1.2/driver/loader.c: In function 'register_devides':
/var/tmp/portage/ndiswrapper-2.3/work/ndiswrapper-1.2/driver/loader.c:963: warning: assignment from incompativle pointer type
/var/tmp/portage/ndiswrapper-2.3/work/ndiswrapper-1.2/driver/ndis.c:1721:5: warrning: "LINUX_KERNEL_VERSION" is not defined
/var/tmp/portage/ndiswrapper-2.3/work/ndiswrapper-1.2/driver/wrapper.c:287:54: macro "halt" passed 1 arguments, but takes just 0
/var/tmp/portage/ndiswrapper-2.3/work/ndiswrapper-1.2/driver/wrapper.c: In functon 'miniport_halt':
/var/tmp/portage/ndiswrapper-2.3/work/ndiswrapper-1.2/driver/wrapper.c:287: warning: statement with no effect

And then the stuff I tpyed in the earlier post.

The rest of the stuff looks brutally routine, but I can put it all in if this still isn't the part generating the error.
 
Old 12-20-2005, 08:41 AM   #9
mclinkor
Member
 
Registered: Nov 2005
Posts: 63

Original Poster
Rep: Reputation: 15
Resolved

OK, so I just realized that I have not been copying my kernel over to boot after recompiling it each time. So, one of the modules that I had recompiled in the last 24 hours or so did the trick.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Gentoo Emerge Failure, Now HDD is Full ! tionik06 Linux - Software 2 07-08-2005 08:33 PM
ndiswrapper failure on Braodcom 54 g MaxPerformance ayers Mandriva 0 06-25-2005 09:25 PM
Ndiswrapper on gentoo. Coag Linux - Software 10 06-12-2005 06:18 PM
gentoo emerge failure MadnessASAP Linux - Software 3 05-06-2005 05:28 PM
Can't get ndiswrapper on Gentoo! :( kiker Linux - Wireless Networking 10 12-29-2004 09:09 AM


All times are GMT -5. The time now is 10:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration