View previous topic :: View next topic |
Author |
Message |
flamingspinach n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Sep 2005 Posts: 5
|
Posted: Fri Sep 30, 2005 4:13 am Post subject: [SOLVED] Kernel panic on network activity |
|
|
Well, I have a rather serious problem. I seem to get a kernel panic every time there is any network activity. Here's the story:
I installed Gentoo 2005.1 using a full install CD, stage3, using a wired ethernet connection (eth0) for all internet activities. After some inital trouble, I recompiled my kernel so that it too could detect eth0 (besides the live CD's kernel I mean), and emerged ndiswrapper to use with the mrv8ka51.inf driver I have for my PCI wireless NIC. This is the Marvell W8300 chipset on the D-Link DWL-G510 (rev A) card - PCI ID "11AB:1FA6".
I then created /etc/init.d/net.wlan0 -> /etc/init.d/net.lo, and edited /etc/conf.d/wireless to include settings for encrypted connections, preferred APs, and whatnot, in compliance with my wireless network.
Now whenever I boot up, both eth0 and wlan0 are loaded. They both say they are connected (or at least don't show an error or red '*' during the init sequence), although I have nothing plugged into my eth0. Using `iwconfig` shows that it is connected to the correct AP, with the correct key and settings. However, when I try to ping google.com, there is an interminable silence, and when I try to ping my router (192.168.1.1), I get a kernel panic.
I know ndiswrapper recommends compiling the kernel with CONFIG_4KSTACKS turned off, but I couldn't find it in the menuconfig, so I just added it to the bottom of /usr/src/linux/.config before `make && make modules_install`.
Any ideas as to what's going on and how I should fix it? I'm a complete newbie at setting up linux (though I have used it at an abstracted level a couple of times), so please be explicit, and point out things that may seem obvious... sorry...
Thanks.
-fs
Last edited by flamingspinach on Sun Oct 02, 2005 6:23 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MrUlterior Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 22 Mar 2005 Posts: 511 Location: Switzerland
|
Posted: Fri Sep 30, 2005 12:36 pm Post subject: Re: Kernel panic on network activity |
|
|
Running your new kernel, post the output of:
Code: | gzcat /proc/config.gz | egrep "CONFIG_4K" |
It should return:
Quote: | # CONFIG_4KSTACKS is not set |
If this is correct, the other problem may be that you are using the portage version of ndiswrapper, which was pretty ancient the last time I checked. Download a current version from the ndiswrapper site and compile it manually.
That final option is to attempt to locate different .INF win32 files to use with ndiswrapper. _________________
Misanthropy 2.0 - enough hate to go around
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flamingspinach n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Sep 2005 Posts: 5
|
Posted: Fri Sep 30, 2005 3:30 pm Post subject: |
|
|
Oh, one detail I forgot to mention - the last line displayed on the screen during the kernel panic is "kernel panic - not synced" and then something about interrupts... because I remembered something about interrupts on the ndiswrapper site, I went and checked - turns out that they recommend using Code: | rmmod ndiswrapper
modprobe ndiswrapper
dmesg|less | in order to check for any sort of IRQ problems. Quote: | If, instead, the module loading never finishes or immediately you see "Disabling IRQ", then you have issues with interrupts in the kernel (nothing ndiswrapper can do about it). You may try booting with "acpi=noirq" if ACPI is being used. Alternately, try a different kernel or disable ACPI. |
I don't really understand what this means - where would I put "acpi=noirq"? And is it all right if I disable ACPI? I seem to remember it has something to do with power management but I'm not sure...
To MrUlterior:
`gzcat /proc/config.gz | egrep "CONFIG_4K"` outputs exactly nothing. I am using the gentoo-sources kernel, and as I said, the CONFIG_4KSTACKS option was not anywhere in the menuconfig or in the menuconfig-generated .config file - I guess the gentoo-sources kernel either has this enabled or disabled by default? BTW, I'm using specifically gentoo-sources-2.6.12-r6.
I will first proceed to recompile the kernel with module unloading support so that I can follow the procedure given by the ndiswrapper site. Then I will use this procedure - if I do find the problem they say I might, I'll try their their method though I'm not sure exactly where I'll put "acpi=noirq". As a preliminary test I looked at dmesg anyway without using `rmmod` and `modprobe`, and I found that ndiswrapper is using IRQ 16, though the ndiswrapper site's example shows it using IRQ 10 - is this evidence of the IRQ problem?
If none of this works I'll try updating ndiswrapper (I have 1.1 and the latest is 1.4-rc1). I'm sure the .inf is correct since it is listed on the site as working for my card...
-fs |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MrUlterior Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 22 Mar 2005 Posts: 511 Location: Switzerland
|
Posted: Fri Sep 30, 2005 3:36 pm Post subject: |
|
|
For my card:
Quote: |
0000:00:06.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03) |
and several other ra2500 cards
I've had kernel panics with .INF files that many other people reported as working, in the end I downloaded another one. Don't trust that it will work for you simply because it worked for others. Ndiswrapper is flakey. _________________
Misanthropy 2.0 - enough hate to go around
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flamingspinach n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Sep 2005 Posts: 5
|
Posted: Fri Sep 30, 2005 7:09 pm Post subject: |
|
|
All right, fair enough - I'll try out my original D-Link DWL-G510 Rev. A driver as well (I'm currently using the Asus WL-138G driver, which ndiswrapper's site recommends).
Any ideas as to where to put the "acpi=noirq"?
Thanks
-fs |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flamingspinach n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Sep 2005 Posts: 5
|
Posted: Sun Oct 02, 2005 6:23 pm Post subject: |
|
|
o_O Well, I found a solution, which makes no sense to me, but what the heck, it works...
This is where I got the solution, if anyone is interested. So I guess it was simply a driver compatibility issue after all.
Thanks for your help, MrUlterior.
-fs |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|