Thread: [Ndiswrapper-general] Ralink RT2500 + ndiswrapper 0.8 + Mdk 10.0 (kernel 2.6.3-7) system locks up
Status: Beta
Brought to you by:
pgiri
From: John S. <jo...@st...> - 2004-07-22 23:06:49
|
Card is badged "Edimax EW-7108PCG" but the .INF file indicates that it is a Ralink Technology Corp RT2500 series Wireless LAN Card. Platform is Dell Latitute CPx H500GT. OS is Mandrake 10.0 download edition, uname -r says 2.6.3-7mdk ndiswrapper 0.8 I've renamed the ndiswrapper.ko.gz file (which came with mdk) to something else, checked modprobe.conf, and commented out a line in modules.conf 'alias ra0 rt2500' (inserted by Ralink's driver install script which I tried earlier, unsuccessfully[1]). I compiled and installed ndiswrapper as per the INSTALL file, and tried to get it to work. The system would always hang up sooner or later, sometimes after doing various iwconfig operations and bringing the link up & down etc. When it has remained un-hungup for a while iwconfig did seem to indicate that the card is talking to the aether - getting s/n readings in db rather than x/y figures etc. I've now recompiled with make DEBUG=1 [2]. I did 'modprobe ndiswrapper' and then 'dmesg' and got the following: ndiswrapper version 0.8 loaded ndiswrapper adding RT2500.sys PCI: Enabling device 0000:02:00.0 (0000 -> 0002) PCI: setting latency timer of device 0000:02:00.0 to 64 wlan0: ndiswrapper ethernet device 00:50:fc:d8:b8:f9 using driver rt2500.sys spurious 8259A interrupt: IRQ7. [rootprompt]# After a few seconds the system hangs up (with DEBUG=1 it now hangs up quite repeatably :-|) The Tx/Rx and Link LEDs come on solidly on on card, then a second or so later the system stops reposnding to mouse and keyboard input, and ther is no change in the clock on the taskbar. It reminds me rather of the symptom of having a wired network card set to an interrupt used by some other device in the system (back in the days of IBM PCs, XTs and ATs, DOS 3.x and PC-NFS :-). That would lock the system up as soon as a packet came in which caused the network card to generate an interrupt request. [1] Ralink's driver is for 2.6.3-4mdk instead of -7, and to compile from their source requires modversions.h which Mandrake doesn't have. [2] just that - should I also have done ndiswrapper -i <module name> too? -- John Stumbles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
From: <az...@se...> - 2004-07-22 23:45:43
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Stumbles wrote: | Card is badged "Edimax EW-7108PCG" but the .INF file indicates that it | is a Ralink Technology Corp RT2500 series Wireless LAN Card. | Platform is Dell Latitute CPx H500GT. | OS is Mandrake 10.0 download edition, uname -r says 2.6.3-7mdk | ndiswrapper 0.8 Get a matching kernel-source tree. | I've now recompiled with make DEBUG=3D1 [2]. | I did 'modprobe ndiswrapper' and then 'dmesg' and got the following: | | ndiswrapper version 0.8 loaded | ndiswrapper adding RT2500.sys | PCI: Enabling device 0000:02:00.0 (0000 -> 0002) | PCI: setting latency timer of device 0000:02:00.0 to 64 | wlan0: ndiswrapper ethernet device 00:50:fc:d8:b8:f9 using driver | rt2500.sys | spurious 8259A interrupt: IRQ7. | [rootprompt]# Seams correct.. | After a few seconds the system hangs up (with DEBUG=3D1 it now hangs up | quite repeatably :-|) | The Tx/Rx and Link LEDs come on solidly on on card, then a second or | so later the system stops reposnding to mouse and keyboard input, and | ther is no change in the clock on the taskbar. Then your inside X, try using the commandline and write down the oops. | [1] Ralink's driver is for 2.6.3-4mdk instead of -7, and to compile | from their source requires modversions.h which Mandrake doesn't have. See above. | [2] just that - should I also have done ndiswrapper -i <module name> | too? Where? 'ndiswrapper -i driver.inf' just needs to be run once. When the driver is installed the module will take care of the rest. - -- ~ .''`. Torbj=F6rn Svensson, azoff (at) se (dot) linux (dot) org ~ : :' : 7EB9 2DC5 61AE DAB5 7099 BAC6 798E E39A DBDB 0CFD ~ `. `' http://azoff.homeip.net | http://azoff.tty0.org ~ `-- http://www.se.linux.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBAFGieY7jmtvbDP0RAox2AKCL5pIlcfp1TAd0AdVVTIpYSzCGZQCgh3Ak Rs9x5PFqD1MfwwM5rCwR1/w=3D =3DioTT -----END PGP SIGNATURE----- |
From: John S. <jo...@st...> - 2004-07-23 00:53:00
|
Torbjörn Svensson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > John Stumbles wrote: > | Card is badged "Edimax EW-7108PCG" but the .INF file indicates that it > | is a Ralink Technology Corp RT2500 series Wireless LAN Card. > | Platform is Dell Latitute CPx H500GT. > | OS is Mandrake 10.0 download edition, uname -r says 2.6.3-7mdk > | ndiswrapper 0.8 > > Get a matching kernel-source tree. I've installed the kernel sources package from the same distro > | I've now recompiled with make DEBUG=1 [2]. > | I did 'modprobe ndiswrapper' and then 'dmesg' and got the following: > | > | ndiswrapper version 0.8 loaded > | ndiswrapper adding RT2500.sys > | PCI: Enabling device 0000:02:00.0 (0000 -> 0002) > | PCI: setting latency timer of device 0000:02:00.0 to 64 > | wlan0: ndiswrapper ethernet device 00:50:fc:d8:b8:f9 using driver > | rt2500.sys > | spurious 8259A interrupt: IRQ7. > | [rootprompt]# > > Seams correct.. > > | After a few seconds the system hangs up (with DEBUG=1 it now hangs up > | quite repeatably :-|) Sod's Law: now it's not hanging. I was experimenting: I turned off wireless on my DSL router/AP box before modprobe-ing this time. I've turned wireless back on and off and still no hangup on the laptop! I've done iwconfig wlan0 essid "FOOBAR" iwconfig wlan0 mode managed ifconfig wlan0 up ifconfig wlan0 down ifconfig wlan0 shakeitallaround and it's till running, though not seeing the AP or anything from what 'iwconfig' shows, and no LED activity on the card > | The Tx/Rx and Link LEDs come on solidly on on card, then a second or > | so later the system stops reposnding to mouse and keyboard input, and > | ther is no change in the clock on the taskbar. > > Then your inside X, try using the commandline and write down the oops. Do you mean Ctrl-Alt-F1 to get to a non-windowed shell? (Assuming Ctrl-Alt-F1 still works!) What do you mean by "write down the oops"? (I think I understand what an "oops" is - kind of like "Oh sh*t" are the last words on a black box flight recorder ;-) - but what do I run to get something to write down?) > | [1] Ralink's driver is for 2.6.3-4mdk instead of -7, and to compile > | from their source requires modversions.h which Mandrake doesn't have. > > See above. Do you mean get a 2.6.3-4 rather than -7 source? I googled and found somewhere with one, described as 'alpha' :-( Do you mena that I should then compile a new -4 kernel? (BTW what does the number after the '-' mean?) > > | [2] just that - should I also have done ndiswrapper -i <module name> > | too? > > Where? 'ndiswrapper -i driver.inf' just needs to be run once. When the > driver is installed the module will take care of the rest. That's what I thought + hoped -- John Stumbles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
From: <az...@se...> - 2004-07-23 07:34:11
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Stumbles wrote: | I've installed the kernel sources package from the same distro So, you have the -7 sources installed? | Do you mean Ctrl-Alt-F1 to get to a non-windowed shell? | (Assuming Ctrl-Alt-F1 still works!) Yes, that's one way :) | What do you mean by "write down the oops"? | (I think I understand what an "oops" is - kind of like "Oh sh*t" are th= e | last words on a black box flight recorder ;-) - but what do I run to ge= t | something to write down?) An OOPS is the message your kernel will print just befor it krashes. This is very helpful while debuging. | Do you mean get a 2.6.3-4 rather than -7 source? I googled and found | somewhere with one, described as 'alpha' :-( | Do you mena that I should then compile a new -4 kernel? | | (BTW what does the number after the '-' mean?) It's your distors version of the package. - -- ~ .''`. Torbj=F6rn Svensson, azoff (at) se (dot) linux (dot) org ~ : :' : 7EB9 2DC5 61AE DAB5 7099 BAC6 798E E39A DBDB 0CFD ~ `. `' http://azoff.homeip.net | http://azoff.tty0.org ~ `-- http://www.se.linux.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD4DBQFBAL9veY7jmtvbDP0RAuSJAJwOy87Nc3NbnD1LwDOgEwgbUck5sACYoH7w 2rkTFgS+S/vHkVjMRuOQYg=3D=3D =3DiRKp -----END PGP SIGNATURE----- |
From: <az...@se...> - 2004-07-23 10:48:27
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Stumbles wrote: |> | Do you mean Ctrl-Alt-F1 to get to a non-windowed shell? |> | (Assuming Ctrl-Alt-F1 still works!) |> |> Yes, that's one way :) | are there other ways? Just su to root and turnoff ?dm and logout of X. |> An OOPS is the message your kernel will print just befor it krashes. |> This is very helpful while debuging. | | so where will it print it? how do I find it? It will be printed to vc/1 (1:st terminal. - -- ~ .''`. Torbj=F6rn Svensson, azoff (at) se (dot) linux (dot) org ~ : :' : 7EB9 2DC5 61AE DAB5 7099 BAC6 798E E39A DBDB 0CFD ~ `. `' http://azoff.homeip.net | http://azoff.tty0.org ~ `-- http://www.se.linux.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBAOz5eY7jmtvbDP0RAhBPAJ9Y39XDSpDXRbnTBP1Ni8sLdOIO6wCgjF3J kx4l0ijntcg9q7IUD10R/YM=3D =3DTPb+ -----END PGP SIGNATURE----- |
From: John S. <jo...@st...> - 2004-07-23 12:12:45
|
Torbjörn Svensson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > John Stumbles wrote: > |> | Do you mean Ctrl-Alt-F1 to get to a non-windowed shell? > |> | (Assuming Ctrl-Alt-F1 still works!) > |> > |> Yes, that's one way :) > | are there other ways? > > Just su to root and turnoff ?dm and logout of X. D'oh! (I am getting weenified by this gui stuff :-) > |> An OOPS is the message your kernel will print just befor it krashes. > |> This is very helpful while debuging. > | > | so where will it print it? how do I find it? > > It will be printed to vc/1 (1:st terminal. OK: rebooted ctrl+alt+F1 pkill kdm modprobe ndiswrapper dmesg iwconfig iwconfig wlan0 essid foobar iwconfig wlan0 mode managed ifconfig wlan0 up dmesg now I get at the end of dmesg output the lines: ndiswrapper version 0.8 loaded ndiswrapper adding RT2500.sys PCI: Enabling device 0000:02:00.0 (0000 -> 0002) PCI: setting latency timer of device 0000:02:00.0 to 64 wlan0: ndiswrapper ethernet device 00:50:fc:d8:b8:f9 using \ driver rt2500.sys PCI: Enabling device 0000:02:00.0 (0000 -> 0002) PCI: setting latency timer of device 0000:02:00.0 to 64 wlan0: ndiswrapper ethernet device 00:50:fc:d8:b8:f9 using \ driver rt2500.sys rt2500: no version for "struct_module" found: kernel tainted. rt2500: version magic '2.6.3-4mdk 586 gcc-3.3' should be \ '2.6.3-7mdk 586 ' [rootprompt]# OK, now I got a crash! What I can see is a load of stuff - I'm not sure how much is useful (I've put a photo of the screen at http://homepage.ntlworld.com/john.stumbles/rt2500/crash.jpg) The bottom line is: Code: Bad EIP value. <0> Kernel panic: Fatal exception in interrupt In interrupt handler - not syncing -- John Stumbles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
From: <az...@se...> - 2004-07-23 12:25:38
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Stumbles wrote: | rt2500: no version for "struct_module" found: kernel tainted. | rt2500: version magic '2.6.3-4mdk 586 gcc-3.3' should be \ | '2.6.3-7mdk 586 ' | [rootprompt]# You have compiled against the wrong source. Download and install this file: http://ftp.sunet.se/pub/Linux/distributions/mandrakelinux/official/10.0/i= 586/Mandrake/RPMS/kernel-2.6.3.7mdk-1-1mdk.i586.rpm | OK, now I got a crash! | What I can see is a load of stuff - I'm not sure how much is useful | (I've put a photo of the screen at | http://homepage.ntlworld.com/john.stumbles/rt2500/crash.jpg) Hmm, can you try recompile using the source above, and try enable frambuffer so you can see the -whole- OOPS, you have mised like 5rows at the screenshot. Regards, - -- ~ .''`. Torbj=F6rn Svensson, azoff (at) se (dot) linux (dot) org ~ : :' : 7EB9 2DC5 61AE DAB5 7099 BAC6 798E E39A DBDB 0CFD ~ `. `' http://azoff.homeip.net | http://azoff.tty0.org ~ `-- http://www.se.linux.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBAQO9eY7jmtvbDP0RAubFAKCcRp1uLP5mGf7RrHf+30VQYVGWXgCePQ89 On5Bw7A0utKeTydZn+iKy8Q=3D =3Dy+3X -----END PGP SIGNATURE----- |
From: John S. <jo...@st...> - 2004-07-26 13:04:07
|
Torbjörn Svensson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > John Stumbles wrote: > | rt2500: no version for "struct_module" found: kernel tainted. > | rt2500: version magic '2.6.3-4mdk 586 gcc-3.3' should be \ > | '2.6.3-7mdk 586 ' > | [rootprompt]# > > You have compiled against the wrong source. > Download and install this file: > http://ftp.sunet.se/pub/Linux/distributions/mandrakelinux/official/10.0/i586/Mandrake/RPMS/kernel-2.6.3.7mdk-1-1mdk.i586.rpm OK, thanks. (And thanks - NOT! - Mandrake: I installed the kernel source off the original installation CD!) > > > | OK, now I got a crash! > | What I can see is a load of stuff - I'm not sure how much is useful > | (I've put a photo of the screen at > | http://homepage.ntlworld.com/john.stumbles/rt2500/crash.jpg) > > Hmm, can you try recompile using the source above, and try enable > frambuffer so you can see the -whole- OOPS, you have mised like 5rows at > the screenshot. STFW suggests you mean vga=791 in lilo.conf - yes? cheers -- John Stumbles mobile 0780 866 8204 plumbing:heating:electrical:property maintenance home 0118 954 2406 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
From: <az...@se...> - 2004-07-26 15:21:54
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Stumbles wrote: | OK, thanks. | (And thanks - NOT! - Mandrake: I installed the kernel source off the | original installation CD!) Then you must have upgraded your kernel after you installed mdk? | STFW suggests you mean vga=3D791 in lilo.conf - yes? Yes, or just write 'linux vga=3D791' when you liloprompt apears. Ofcourse= , change 'linux' to your kernelname in the list ;) - -- ~ .''`. Torbj=F6rn Svensson, azoff (at) se (dot) linux (dot) org ~ : :' : 7EB9 2DC5 61AE DAB5 7099 BAC6 798E E39A DBDB 0CFD ~ `. `' http://azoff.homeip.net | http://azoff.tty0.org ~ `-- http://www.se.linux.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBBSGTeY7jmtvbDP0RAjSKAJ9U4bTF+HaaYEqlqcTkjpLMx31QSQCgyxJs 2lREpwFjt4p8Iy91l4MRnAw=3D =3DFw6q -----END PGP SIGNATURE----- |
From: John S. <jo...@st...> - 2004-07-28 23:28:15
|
Torbjörn Svensson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > John Stumbles wrote: > | rt2500: no version for "struct_module" found: kernel tainted. > | rt2500: version magic '2.6.3-4mdk 586 gcc-3.3' should be \ > | '2.6.3-7mdk 586 ' > | [rootprompt]# > > You have compiled against the wrong source. > Download and install this file: > http://ftp.sunet.se/pub/Linux/distributions/mandrakelinux/official/10.0/i586/Mandrake/RPMS/kernel-2.6.3.7mdk-1-1mdk.i586.rpm Hmmmn. Did that: [rootprompt]# rpm --install /path/to/kernel-2.6.3.7mdk-1-1mdk.i586.rpm package kernel-2.6.3.7mdk is already installed I've now installed 0.9-pre1 Initially I got the messages (struct_module etc, above) again, but since rebooting they no longer occur. Now what I get is the machine seems to lock up after I do 'modprobe ndiswrapper' if the access point is enabled[1] at the time. I don't get any 'oops' on tty1. The lockup isn't instantaneous, but occurs between a few seconds and several minutes afterwards. I have done 'make DEBUG=1' on ndiswrapper. If the AP has wireless disabled at the time I boot the machine and do modprobe the machine seems to stay up (not hang) even when I subsequently enable wireless on the AP. If the AP is on at the time I modprobe then I always seem to get the message: spurious 8259A interrupt: IRQ7 reported by dmesg, but I've had that also when the AP was off and the machine didn't lock up (at least, not for 4 hours or so). Even when the machine doesn't lock up it doesn't seem to access the network: iwconfig shows that it hasn't taken the SSID I've set it to, and it doesn't report an address for the AP. I'm a bit stuck here. Are there any other diagnostic tools I could be using to find out what's going on? [1] It's a Linksys BEFW11s4 and when I say the access point is enabled I mean that I've checked The Wireless 'Enable' button in the GUI. -- John Stumbles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
From: Giridhar P. <gi...@lm...> - 2004-07-24 18:47:02
|
It seems this driver calls an unimplemented function. I have now implemented and tested it (it turns out one of the cards I have has this chipset). In fact, this mail comes over a card using this chipset. I will commit the code soon. -- Giri |
From: John S. <jo...@st...> - 2004-07-26 22:32:58
|
Giridhar Pemmasani wrote: > It seems this driver calls an unimplemented function. I have now > implemented and tested it (it turns out one of the cards I have has > this chipset). In fact, this mail comes over a card using this > chipset. I will commit the code soon. And it's taken you a whole _day_ to fix this bug?!! Tut! tut! I'm sure Microsoft would have fixed it _much_ faster ;-) Thanks, look forward to seeing it - and seeing if it works for me too! -- John Stumbles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |