(possibly) broken drivers (ral and rum)
-
Do you have another system to try those cards in? Or perhaps reorder the cards in the PCI slots?
My system has only a single PCI slot (mini-ITX motherboard). To avoid the hassle of removing and replacing the card to test things I've been concentrating on the problem with the rum driver since the USB NIC is far easier to remove and replace than the PCI card. If I'm lucky it will turn out to be the same or very simiar problem with both drivers.
Using the USB NIC the system reliably panics on clicking on Apply all changes IF the interface mode is set to Access Point but doesn't panic if the interface mode is set to Infrastructure.
Here's the latest panic on applying all changes to the rum interface:
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0xffff
fault code = supervisor read, page not present
instruction pointer = 0x20:0xc0a777ab
stack pointer = 0x28:0xd50ddba4
frame pointer = 0x28:0xd50ddbb0
code segment = base 0x0, limit 0xfffff type 16
DPL 0, pres 1, def32 1, gram 1
processor eflags = interrupt enabled, resume, IOPL=0
current process = 0 (rum0 taskq) -
It may help to get some ifconfig output from that card when plugged in, before you configure it all the way.
Something like:
ifconfig -m rum0_wlan0
Or just
ifconfig -m rum0
And perhaps:
ifconfig rum0_wlan0 list caps
-
I currently have rum0 configured in Infrastructure mode rather than Access Point. Here's the output you requested:
ifconfig rum0_wlan1 list caps
drivercaps=2181e501 <sta,ibss,hostap,txpmgt,shslot,shpreamble,monitor,wpa1,wpa2,bgscan># ifconfig -m rum0_wlan1
rum0_wlan1: flags=8843 <up,broadcast,running,simplex,multicast>metric 0 mtu 1500
ether 00:1b:11:b5:c1:c8
inet6 fe80::21b:11ff:feb5:c1c8%rum0_wlan1 prefixlen 64 scopeid 0xa
nd6 options=3 <performnud,accept_rtadv>media: IEEE 802.11 Wireless Ethernet autoselect mode 11b
status: no carrier
supported media:
media OFDM/54Mbps mode autoselect
media OFDM/48Mbps mode autoselect
media OFDM/36Mbps mode autoselect
media OFDM/24Mbps mode autoselect
media OFDM/18Mbps mode autoselect
media OFDM/12Mbps mode autoselect
media OFDM/9Mbps mode autoselect
media OFDM/6Mbps mode autoselect
media DS/11Mbps mode autoselect
media DS/5.5Mbps mode autoselect
media DS/2Mbps mode autoselect
media DS/1Mbps mode autoselect
media OFDM/54Mbps mode 11g
media OFDM/48Mbps mode 11g
media OFDM/36Mbps mode 11g
media OFDM/24Mbps mode 11g
media OFDM/18Mbps mode 11g
media OFDM/12Mbps mode 11g
media OFDM/9Mbps mode 11g
media OFDM/6Mbps mode 11g
media DS/11Mbps mode 11g
media DS/5.5Mbps mode 11g
media DS/2Mbps mode 11g
media DS/1Mbps mode 11g
media autoselect mode 11g
media DS/11Mbps mode 11b
media DS/5.5Mbps mode 11b
media DS/2Mbps mode 11b
media DS/1Mbps mode 11b
media autoselect mode 11b
media autoselect mode autoselect
ssid zzzz channel 1 (2412 Mhz 11b)
country US authmode WPA2/802.11i privacy ON deftxkey UNDEF txpower 0
bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250
roam:rssi 7 roam:rate 1 roaming MANUALifconfig -m rum0
rum0: flags=8843 <up,broadcast,running,simplex,multicast>metric 0 mtu 2290
ether 00:1b:11:b5:c1:c8
media: IEEE 802.11 Wireless Ethernet autoselect mode 11b
status: associated
supported media:
media OFDM/54Mbps mode autoselect mediaopt monitor
media OFDM/54Mbps mode autoselect mediaopt hostap
media OFDM/54Mbps mode autoselect mediaopt adhoc
media OFDM/54Mbps mode autoselect
media OFDM/48Mbps mode autoselect mediaopt monitor
media OFDM/48Mbps mode autoselect mediaopt hostap
media OFDM/48Mbps mode autoselect mediaopt adhoc
media OFDM/48Mbps mode autoselect
media OFDM/36Mbps mode autoselect mediaopt monitor
media OFDM/36Mbps mode autoselect mediaopt hostap
media OFDM/36Mbps mode autoselect mediaopt adhoc
media OFDM/36Mbps mode autoselect
media OFDM/24Mbps mode autoselect mediaopt monitor
media OFDM/24Mbps mode autoselect mediaopt hostap
media OFDM/24Mbps mode autoselect mediaopt adhoc
media OFDM/24Mbps mode autoselect
media OFDM/18Mbps mode autoselect mediaopt monitor
media OFDM/18Mbps mode autoselect mediaopt hostap
media OFDM/18Mbps mode autoselect mediaopt adhoc
media OFDM/18Mbps mode autoselect
media OFDM/12Mbps mode autoselect mediaopt monitor
media OFDM/12Mbps mode autoselect mediaopt hostap
media OFDM/12Mbps mode autoselect mediaopt adhoc
media OFDM/12Mbps mode autoselect
media OFDM/9Mbps mode autoselect mediaopt monitor
media OFDM/9Mbps mode autoselect mediaopt hostap
media OFDM/9Mbps mode autoselect mediaopt adhoc
media OFDM/9Mbps mode autoselect
media OFDM/6Mbps mode autoselect mediaopt monitor
media OFDM/6Mbps mode autoselect mediaopt hostap
media OFDM/6Mbps mode autoselect mediaopt adhoc
media OFDM/6Mbps mode autoselect
media DS/11Mbps mode autoselect mediaopt monitor
media DS/11Mbps mode autoselect mediaopt hostap
media DS/11Mbps mode autoselect mediaopt adhoc
media DS/11Mbps mode autoselect
media DS/5.5Mbps mode autoselect mediaopt monitor
media DS/5.5Mbps mode autoselect mediaopt hostap
media DS/5.5Mbps mode autoselect mediaopt adhoc
media DS/5.5Mbps mode autoselect
media DS/2Mbps mode autoselect mediaopt monitor
media DS/2Mbps mode autoselect mediaopt hostap
media DS/2Mbps mode autoselect mediaopt adhoc
media DS/2Mbps mode autoselect
media DS/1Mbps mode autoselect mediaopt monitor
media DS/1Mbps mode autoselect mediaopt hostap
media DS/1Mbps mode autoselect mediaopt adhoc
media DS/1Mbps mode autoselect
media OFDM/54Mbps mode 11g mediaopt monitor
media OFDM/54Mbps mode 11g mediaopt hostap
media OFDM/54Mbps mode 11g mediaopt adhoc
media OFDM/54Mbps mode 11g
media OFDM/48Mbps mode 11g mediaopt monitor
media OFDM/48Mbps mode 11g mediaopt hostap
media OFDM/48Mbps mode 11g mediaopt adhoc
media OFDM/48Mbps mode 11g
media OFDM/36Mbps mode 11g mediaopt monitor
media OFDM/36Mbps mode 11g mediaopt hostap
media OFDM/36Mbps mode 11g mediaopt adhoc
media OFDM/36Mbps mode 11g
media OFDM/24Mbps mode 11g mediaopt monitor
media OFDM/24Mbps mode 11g mediaopt hostap
media OFDM/24Mbps mode 11g mediaopt adhoc
media OFDM/24Mbps mode 11g
media OFDM/18Mbps mode 11g mediaopt monitor
media OFDM/18Mbps mode 11g mediaopt hostap
media OFDM/18Mbps mode 11g mediaopt adhoc
media OFDM/18Mbps mode 11g
media OFDM/12Mbps mode 11g mediaopt monitor
media OFDM/12Mbps mode 11g mediaopt hostap
media OFDM/12Mbps mode 11g mediaopt adhoc
media OFDM/12Mbps mode 11g
media OFDM/9Mbps mode 11g mediaopt monitor
media OFDM/9Mbps mode 11g mediaopt hostap
media OFDM/9Mbps mode 11g mediaopt adhoc
media OFDM/9Mbps mode 11g
media OFDM/6Mbps mode 11g mediaopt monitor
media OFDM/6Mbps mode 11g mediaopt hostap
media OFDM/6Mbps mode 11g mediaopt adhoc
media OFDM/6Mbps mode 11g
media DS/11Mbps mode 11g mediaopt monitor
media DS/11Mbps mode 11g mediaopt hostap
media DS/11Mbps mode 11g mediaopt adhoc
media DS/11Mbps mode 11g
media DS/5.5Mbps mode 11g mediaopt monitor
media DS/5.5Mbps mode 11g mediaopt hostap
media DS/5.5Mbps mode 11g mediaopt adhoc
media DS/5.5Mbps mode 11g
media DS/2Mbps mode 11g mediaopt monitor
media DS/2Mbps mode 11g mediaopt hostap
media DS/2Mbps mode 11g mediaopt adhoc
media DS/2Mbps mode 11g
media DS/1Mbps mode 11g mediaopt monitor
media DS/1Mbps mode 11g mediaopt hostap
media DS/1Mbps mode 11g mediaopt adhoc
media DS/1Mbps mode 11g
media autoselect mode 11g mediaopt monitor
media autoselect mode 11g mediaopt hostap
media autoselect mode 11g mediaopt adhoc
media autoselect mode 11g
media DS/11Mbps mode 11b mediaopt monitor
media DS/11Mbps mode 11b mediaopt hostap
media DS/11Mbps mode 11b mediaopt adhoc
media DS/11Mbps mode 11b
media DS/5.5Mbps mode 11b mediaopt monitor
media DS/5.5Mbps mode 11b mediaopt hostap
media DS/5.5Mbps mode 11b mediaopt adhoc
media DS/5.5Mbps mode 11b
media DS/2Mbps mode 11b mediaopt monitor
media DS/2Mbps mode 11b mediaopt hostap
media DS/2Mbps mode 11b mediaopt adhoc
media DS/2Mbps mode 11b
media DS/1Mbps mode 11b mediaopt monitor
media DS/1Mbps mode 11b mediaopt hostap
media DS/1Mbps mode 11b mediaopt adhoc
media DS/1Mbps mode 11b
media autoselect mode 11b mediaopt monitor
media autoselect mode 11b mediaopt hostap
media autoselect mode 11b mediaopt adhoc
media autoselect mode 11b
media autoselect mode autoselect mediaopt monitor
media autoselect mode autoselect mediaopt hostap
media autoselect mode autoselect mediaopt adhoc
media autoselect mode autoselectI have had this same card successfully operating in Access Point mode under pfSense 1.2.3 Release.</up,broadcast,running,simplex,multicast></performnud,accept_rtadv></up,broadcast,running,simplex,multicast></sta,ibss,hostap,txpmgt,shslot,shpreamble,monitor,wpa1,wpa2,bgscan>
-
If I apply all changes after setting the rum interface into adhoc mode I see a similar crash (at ieee80211_getcapinfo+0x56) but with slightly different stacktrace.
Summary: Infrastructure mode is ok, Access Point and adhoc cause crashes.
-
If that's the case, then it's either going to end up being a driver bug, or a bug with your particular chip.
Not sure you'd get any real response on a driver bug here, but if you can reproduce that with a stock FreeBSD 8 installation, you could report it directly to FreeBSD.
-
I'm happy to report it as FreeBSD bug. What does a click on Apply all changes map into? At most a couple of ifconfig shell commands? If so, what?
-
Some ifconfig commands and it writes out a config for hostapd.
Check the contents of /tmp and /var/etc - I'm not sure if it still does, but it used to write out a script with the ifconfig commands in it. I know the hostapd config should be in /var/etc
-
Thanks for the hints jimp. /etc/inc/interfaces.php writes the hostapd and wpa_supplicant configuration and associated shell commands into /tmp/rum0_wlan_setup.sh but it doesn't save the other ifconfig commands anywhere. Nonetheless, reading through the code I worked out a fairly simple set to demonstrate the problem.
The following shell commands are sufficient to crash my FreeBSD 8.0 Release system and my pfSense 2.0 BETA box.
ifconfig wlan create wlandev rum0 wlanmode adhoc bssid
ifconfig wlan0 mode 11b
ifconfig wlan0 up mode 11b ssid Bree protmode off -mediaopt hostap mediaopt adhoc -hidessid -pureg -puren -apbridge -mediaopt turbo -wme authmode open wepmode off
There is a noticeable pause between the shell prompt after the last command and the system crash.
I'll arrange for a FreeBSD problem report to be submitted.
-
Try changing that last command to:
ifconfig wlan0 up mode 11b ssid Bree -apbridge -wme authmode open wepmode off
See if it still does the same with that. You could also try removing bssid, but that was added after you already saw the issue on your system and is likely unrelated. You could even try just a very basic command:
ifconfig wlan0 up mode 11b ssid Bree
If that still doesn't work, also try leaving off the mode 11b.
-
-
I'm guessing it probably is the same without bssid, since you reported this before it was added to the commands used (and probably only applies for hostap mode anyway). Removing that, you would pretty much have it reduced to the bare minimum commands to get it operational.
-
The ral problem I reported earlier in this thread is also easily reproduced. The two commands:
ifconfig wlan create wlandev ral0 wlanmode hostap bssid
ifconfig wlan0 up ssid Bree
are sufficient to crash the pfSense system, again after a pause of no more than a few seconds after the second command completes.
The same two commands with hostap replaced by adhoc have a similar result.
When I issued the two commands
ifconfig wlan create wlandev ral0 bssid
ifconfig wlan0 up ssid Bree
the system successfully continued for some minutes until I forced a reboot.
-
ral update:
I have further investigated the ral problem and found that ral wasn't interrupting, even when in infrastructure mode. Close inspection showed the PCI card wasn't seated evenly in the PCI socket; the edge closer to the back panel protruded a little more than the edge further from the back panel. So I evened out it and rebooted and the system did not crash on clicking Apply all changes in any of the three modes: ad-hoc, access point or Infrastructure.
However when the NIC was configured in Infrastructure mode it repeatedly reported "device timout" and my netbook saw no evidence of a signal corresponding to the ssid I had configured. I saw a problem report about this ( http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/117655 ) but I thought the explanation was unconvincing. I'm using a 90W PicoPS and a 48W switch mode PS (12V @ 4A) so I suppose the surge current capability of this is a fair bit lower than that of a more standard computer power supply. I can get a pretty cheap card with a more recent ral chip (rt2561) so I might get that to try out.