LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-28-2006, 12:42 AM   #1
derfaust
Member
 
Registered: Feb 2004
Location: TX, USA
Distribution: slack 9.1, 10, and 10.2
Posts: 144

Rep: Reputation: 15
FATAL: Error inserting ndiswrapper


hello all... i am running slackware 10.2 with kernel 2.6.16.18 and am trying to use ndiswrapper to get the wifi to work --> 01:00.0 Ethernet controller: Marvell Technology Group Ltd. 88W8310 and 88W8000G [Libertas] 802.11g client chipset (rev 07)

the 88W8310(wired NIC) works fine natively(using sky2) ........................

to compile ndiswrapper i had to 'installpkg gcc-3.4.5-i486-1.tgz'(got it from slackware-current)... it compiled....

boom so i loaded the windows driver... 'ndiswrapper -i mrv8ka51.inf' then 'ndiswrapper -l" gives me -->

root@derfaust:~/ndiswrapper-1.16# ndiswrapper -l
Installed drivers: mrv8ka51 driver installed, hardware present

all seems to be good thus far, but when i 'modprobe ndiswrapper' i get -->

root@derfaust:~/ndiswrapper-1.16# modprobe ndiswrapper FATAL: Error inserting ndiswrapper (/lib/modules/2.6.16.18/misc/ndiswrapper.ko): Invalid module format

a 'dmesg' gives me --> ndiswrapper: version magic '2.6.16.18 SMP PENTIUM4 gcc-3.4' should be '2.6.16.18 SMP PENTIUM4 gcc-3.3

so, i think i see the format issue...it has something to do with gcc....but how do i fix it?.... in advance, thank you for the help....

Last edited by derfaust; 05-28-2006 at 07:45 PM.
 
Old 05-28-2006, 12:48 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,816

Rep: Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889
the problem is that you upgraded your gcc and your kernel was built using a different gcc version that you are using now. (You are using GCC 3.4 and the kernel was built using GCC 3.3). The solution is to downgrade your GCC or recompile your kernel using GCC 3.4
 
Old 05-28-2006, 12:56 AM   #3
derfaust
Member
 
Registered: Feb 2004
Location: TX, USA
Distribution: slack 9.1, 10, and 10.2
Posts: 144

Original Poster
Rep: Reputation: 15
ah...i will try that now......
 
Old 05-28-2006, 01:28 AM   #4
derfaust
Member
 
Registered: Feb 2004
Location: TX, USA
Distribution: slack 9.1, 10, and 10.2
Posts: 144

Original Poster
Rep: Reputation: 15
rock!...that did it..... lol

thanks again.....

'modprobe ndiswrapper"

answered back without any grips.... now 'ifconfig' shows me 'wlan0'

WOOT!!

now it is off to 'iwconfig'

thanks again!
 
Old 05-28-2006, 07:48 PM   #5
derfaust
Member
 
Registered: Feb 2004
Location: TX, USA
Distribution: slack 9.1, 10, and 10.2
Posts: 144

Original Poster
Rep: Reputation: 15
ok....now if i 'iwconfig' i get --->

wlan0 IEEE 802.11b ESSIDff/any
Mode:Managed Channel:0 Access Point: 00:00:00:00:00:00
Bit Rate:54 Mb/s Sensitivity=-200 dBm
RTS thr:2346 B Fragment thr:2346 B
Encryption keyff
Power Managementff
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

cool...now the next step is 'ifconfig wlan0 inet 10.0.0.172 broadcast 10.0.0.255 netmask 255.255.255.0 up'

now a 'ifconfig' will give me --->

wlan0 Link encap:Ethernet HWaddr 00:11:2F:3C:XX:XX
inet addr:10.0.0.172 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::211:2fff:fe3c:157a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:22 Memory:cfdd0000-cfde0000

all is as it should be thus far....i then 'iwconfig wlan0 essid derfaust' to connect to my network.

it will connect.....now the final step ---> 'iwconfig wlan0 key XXXXXXXXXXXXXXXXXXXXXXXXXX'

and poof....i am surfing the internet using my wifi....

but after a short while my computer/kernel will crash.....locking up the system and i have to hard reboot.

it seems that 'iwconfig wlan0 essid derfaust' is the culprit....i can assign the IP info......but soon after i set the ESSID the computer will crash....

i used the suggested drivers from ndiswrapper.wiki...

thanks for the help.......

Last edited by derfaust; 05-28-2006 at 07:49 PM.
 
Old 05-28-2006, 08:48 PM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,816

Rep: Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889
i usually use iwlist eth0 scan (yes, i'm using Centrino, so it is detected as eth0) to scan any available networks and i do something like this iwconfig eth0 essid ukdw mode Ad-Hoc key restricted XXXXXXXX (see man iwconfig for this) and when i'm in, i will get the IP address by typing /sbin/dhcpd -d -t 10 eth0. After this, i can surf again

here are my articles : http://www.informatix.or.id/willy/ac...o-on-linux.php
 
Old 05-28-2006, 08:53 PM   #7
derfaust
Member
 
Registered: Feb 2004
Location: TX, USA
Distribution: slack 9.1, 10, and 10.2
Posts: 144

Original Poster
Rep: Reputation: 15
the problem is that when i set the essid my system locks up.....

after some searching, I think that it may have something to do CONFIG_4KSTACKS in .config....which is set to off

so i am running a 8KSTACK kernel.....but looking here(third paragraph) -->
http://www.slackware.com/~alien/doku...re:ndiswrapper

i may need a 32K STACK?........how do i do that?......

Last edited by derfaust; 05-28-2006 at 08:55 PM.
 
Old 05-28-2006, 08:59 PM   #8
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,816

Rep: Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889
i think you may have to reconfigure your kernel for that.
 
Old 05-28-2006, 09:02 PM   #9
derfaust
Member
 
Registered: Feb 2004
Location: TX, USA
Distribution: slack 9.1, 10, and 10.2
Posts: 144

Original Poster
Rep: Reputation: 15
the kernel hacking section only has one option about the STACK size.....that option is to use 4k stacks.....

hmmmmm
 
Old 05-29-2006, 02:20 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119
The kernel configurator allows only to set 4Kb stacks instead of the default 8Kb. I read about the 16 or 32 Kb stack size question in non-Slackware mailing lists, and the kernel needs patching to support this. So, for Slackware and as long as you do not experience weird kernel crashes, the stock Slackware kernel will be fine. I will update that Wiki page with this info as well... don't want people to go hunting the kernel config for non-existing options.

Eric
 
Old 05-29-2006, 02:22 AM   #11
derfaust
Member
 
Registered: Feb 2004
Location: TX, USA
Distribution: slack 9.1, 10, and 10.2
Posts: 144

Original Poster
Rep: Reputation: 15
awesome...thanks....

would have any other ideas why this crash is happening?

nice site btw.....
 
Old 06-03-2006, 03:41 PM   #12
derfaust
Member
 
Registered: Feb 2004
Location: TX, USA
Distribution: slack 9.1, 10, and 10.2
Posts: 144

Original Poster
Rep: Reputation: 15
update....

i tried the 16KSTACK idea... the patch installed correctly....all was well...but, alas; it didnt work...

the patch can be found patch here...

still having the crash when i assign the essid......like i said before, all is good until i assign the essid.....you can set the IP, subnet mask, broadcast, etc.... no crashes.... but a 'iwconfig wlan0 essid put.yours.here' is like lighting a bomb fuse.....within 3 minutes the computer will crash...

it does work while the fuse is burning......i can probe it with wireless scanning tools, browse the internet, ping til infinity, etc.....

so any ideas?....thank you again for your time....
 
  


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
FATAL: Error inserting ndiswrapper raxxal Mandriva 7 07-06-2007 02:27 PM
FATAL: Error inserting acpi cpufreq in fedora 4 CapCavernaX Linux - Newbie 14 10-21-2006 02:01 PM
FATAL: Error inserting ivtv xvalentinex Linux - Software 2 01-31-2006 01:45 AM
modprobe: FATAL: Error inserting hw_random logicalfuzz Linux - General 7 09-14-2005 11:37 PM
modprobe: FATAL: Error inserting apm OneManArmy Linux - Software 2 08-21-2004 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:16 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