Hi,
I just got me a Ralink minipci for my Soekris 4501. Chipset is:
----begin
ral0 at pci0 dev 16 function 0 "Ralink RT2561" rev 0x00: irq 10, address
00:08:a1:xx:xx:xx
ral0: MAC/BBP RT2661B, RF RT2527
----end
I'm running a 3.9-current snapshot (5 June).
I got it working in 11b without a problem. When changing to 11g I get a
lot of drops (e.g. when I ping ral0 from my portable I receive a lot of
request time-outs. I don't have this when running in 11b).
When changing ral0 back to 11b I got a kernel panic; I used "sh -x
/etc/netstart ral0" to reconfigure ral0. Hostname.ral0 is:
----begin
inet 192.168.1.254 255.255.255.0 NONE
media autoselect \
mediaopt hostap \
nwkey 0xXXXXXXXXXXXXXXXXXXXXXXXXXX \
nwid WIRELESS \
mode 11b \
chan 6
----end
The kernel panic is (starting from "netstart" command):
----begin
# sudo sh -x /etc/netstart ral0
+ . /etc/rc.conf
+ routed_flags=NO
----snip output----
+ pf_rules=/etc/pf.conf
+ ipsec_rules=/etc/ipsec.conf
+ pflogdpanic: _flags=
+ afsd_ieee80211_newstate: bogus xmit rate 11 setup
flags=
+ shlib_
dirs=
+ local_rStopped at Debugger+0x4: leave
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
----end
trace output is:
----begin
ddb> trace
Debugger(cf7f0010,10,6b0010,0,d09b6800) at Debugger+0x4
panic(d0641a39,d0641a58,b,4,d038cabe) at panic+0x63
ieee80211_rssadapt_choose(d09ab030,4,ffffffff,6,64000004) at
ieee80211_rssadapt
_choose
rt2661_newstate(d09ab030,4,ffffffff,64,50) at rt2661_newstate+0x5c
ieee80211_create_ibss(d09ab030,d09ab2a2,0,1a394,d06c8ec8) at
ieee80211_create_i
bss+0x11b
ieee80211_fix_rate(d09ab030,1,ffffffff,0,d09ab000) at
ieee80211_fix_rate+0x527
rt2661_newstate(d09ab030,1,ffffffff,d09a8843) at rt2661_newstate+0x5c
rt2661_init(d09ab030,1,646,d09ab030) at rt2661_init+0x43f
rt2661_media_change(d09ab030,20280,0,0) at rt2661_media_change+0x39
ifmedia_ioctl(d09ab030,d6805e68,d09ab9e8,c0206935,d06c8ec8) at
ifmedia_ioctl+0x
195
ieee80211_ioctl(d09ab030,c0206935,d6805e68,40000004,0) at
ieee80211_ioctl+0x8a3
rt2661_ioctl(d09ab030,c0206935,d6805e68,2d,3036800) at rt2661_ioctl+0x58
ifioctl(d2a9259c,c0206935,d6805e68,d2ba5e14,0) at ifioctl+0x3ff
sys_ioctl(d2ba5e14,d6805f68,d6805f58,5,43) at sys_ioctl+0x125
syscall() at syscall+0x2ea
--- syscall (number 54) ---
0x1c00784d:
----end
ps output is:
----begin
ddb> ps
PID PPID PGRP UID S FLAGS WAIT COMMAND
*17643 6685 6685 0 7 0x4006 ifconfig
6685 30683 6685 0 3 0x4086 pause sh
30683 1 30683 1000 3 0x4086 pause sh
14713 1 14713 0 3 0x84 select cron
12545 1 23 0 3 0x86 nanosleep perl
14883 1 14883 0 3 0x40184 select sendmail
29466 1 29466 0 3 0x84 select sshd
21165 1 21165 77 3 0x184 poll dhcpd
26255 11957 11957 83 3 0x184 poll ntpd
11957 1 11957 0 3 0x84 poll ntpd
13829 15574 15574 70 3 0x184 select named
15574 1 15574 0 3 0x184 netio named
5512 1812 1812 74 3 0x184 bpf pflogd
1812 1 1812 0 3 0x84 netio pflogd
4483 17799 17799 73 3 0x184 poll syslogd
17799 1 17799 0 3 0x84 netio syslogd
7605 1 7605 77 3 0x184 poll dhclient
20153 1 23 0 3 0x86 poll dhclient
10 0 0 0 3 0x100204 crypto_wa crypto
9 0 0 0 3 0x100204 aiodoned aiodoned
8 0 0 0 3 0x100204 syncer update
7 0 0 0 3 0x100204 cleaner cleaner
6 0 0 0 3 0x100204 reaper reaper
5 0 0 0 3 0x100204 pgdaemon pagedaemon
4 0 0 0 3 0x100204 pftm pfpurge
3 0 0 0 3 0x100204 wait wskbd_hotkey
2 0 0 0 3 0x100204 kmalloc kmthread
1 0 1 0 3 0x4084 wait init
0 -1 0 0 3 0x80204 scheduler swapper
----end
dmesg is:
----begin
OpenBSD 3.9-current (GENERIC) #866: Mon Jun 5 00:31:37 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Am5x86 W/B 133/160 ("AuthenticAMD" 486-class)
cpu0: FPU
real mem = 66678784 (65116K)
avail mem = 52989952 (51748K)
using 839 buffers containing 3436544 bytes (3356K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 20/50/27, BIOS32 rev. 0 @ 0xf7840
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0x9000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
elansc0 at pci0 dev 0 function 0 "AMD ElanSC520 PCI" rev 0x00: product 0
stepping 1.1, CPU clock 133MHz, reset 40<SCP>
gpio0 at elansc0: 32 pins
ral0 at pci0 dev 16 function 0 "Ralink RT2561" rev 0x00: irq 10, address
00:08:a1:xx:xx:xx
ral0: MAC/BBP RT2661B, RF RT2527
hifn0 at pci0 dev 17 function 0 "Hifn 7955/7954" rev 0x00: LZS 3DES ARC4
MD5 SHA1 RNG AES PK, 32KB dram, irq 11
sis0 at pci0 dev 18 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 5, address 00:00:24:xx:xx:xx
nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
sis1 at pci0 dev 19 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 9, address 00:00:24:xx:xx:xx
nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
sis2 at pci0 dev 20 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 12, address 00:00:24:xx:xx:xx
nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
isa0 at mainbus0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
wdc0 at isa0 port 0x1f0/8 irq 14
wd0 at wdc0 channel 0 drive 0: <SanDisk SDCFB-512>
wd0: 4-sector PIO, LBA, 488MB, 1000944 sectors
wd0(wdc0:0:0): using BIOS timings
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask e1c5 netmask ffe5 ttymask ffe7
pctr: no performance counters in CPU
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
----end
You can reproduce this panic by changing from 11g to 11b.
Anyone has a solution for this?
-SA