I thought I would update the list with some new info I have now that I am running a PC engines alix2d2 and OpenBSD 4.5-stable.
When I received the alix board I just swapped the CF card out of my Soekris net4501 and put it in the alix board. At that time I was running OpenBSD 4.4-stable. After making the swap the ral card was still behaving the same as it was before, so I decided to upgrade to 4.5 as I was planning to do this anyhow. After upgrading to 4.5 the ral card (SparkLan WMIR-200N) started working just fine. I decided to check the changelog to see what had changed since 4.4 and noticed: Fix HW crypto on ral(4) devices. Because my card has a RT2860 chip and the driver supports offloading of encryption & decryption to the hardware, I suspect this could have been the isse. The ral card is running in host-ap mode and has been working flawlessly ever since. See dmesg below. Cheers, -Chris OpenBSD 4.5 (GENERIC) #0: Wed Mar 18 13:35:27 MDT 2009 r...@obsd45.localdomain:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 499 MHz cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX real mem = 268009472 (255MB) avail mem = 250859520 (239MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/05/08, BIOS32 rev. 0 @ 0xfd088 pcibios0 at bios0: rev 2.1 @ 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: 0xe0000/0xa800 cpu0 at mainbus0: (uniprocessor) pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33 "AMD Geode LX Crypto" rev 0x00 at pci0 dev 1 function 2 not configured vr0 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10, address 00:0d:b9:17:7b:b8 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr1 at pci0 dev 11 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 15, address 00:0d:b9:17:7b:b9 ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 ral0 at pci0 dev 12 function 0 "Ralink RT2860" rev 0x00: irq 9, address 00:0e:8e:20:84:94 ral0: MAC/BBP RT2860 (rev 0x0102), RF RT2850 (MIMO 2T3R) hifn0 at pci0 dev 14 function 0 "Hifn 7955/7954" rev 0x00: LZS 3DES ARC4 MD5 SHA1 RNG AES PK, 32KB dram, irq 11 glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 0, 32-bit 3579545Hz timer, watchdog, gpio gpio0 at glxpcib0: 32 pins pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: <SILICONSYSTEMS INC 1GB> wd0: 1-sector PIO, LBA, 999MB, 2046240 sectors wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 pciide0: channel 1 ignored (disabled) ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 12, version 1.0, legacy support ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 12 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1 isa0 at glxpcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 usb1 at ohci0: USB revision 1.0 uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1 biomask 71e7 netmask ffe7 ttymask ffff mtrr: K6-family MTRR support (2 registers) nvram: invalid checksum softraid0 at root root on wd0a swap on wd0b dump on wd0b clock: unknown CMOS layout Chris Jones wrote: > Good evening, > > I just picked up a SparkLan WMIR-200N which I've put in my Soekris > net4501. The ral(4) driver says it supports the Ralink RT2860 and RT2850 > chips on this card. OpenBSD detects the card however when I configure it > in hostap mode with WPA2-PSK, my Macbook or any wifi capable computer > will connect momentarily and then disconnects. > > Has anyone had any experience with this card running under OpenBSD? > Also, how can I debug the ral(4) driver? Here is my dmesg output as > well as my hostname.if configuration. > > Thanks, > -Chris > > dmesg > ----- > > OpenBSD 4.4 (GENERIC) #0: Sat Nov 15 07:42:40 PST 2008 > r...@ob44dev.localdomain:/usr/src/sys/arch/i386/compile/GENERIC > cpu0: AMD Am5x86 W/B 133/160 ("AuthenticAMD" 486-class) > cpu0: FPU > real mem = 66678784 (63MB) > avail mem = 55017472 (52MB) > mainbus0 at root > bios0 at mainbus0: AT/286+ BIOS, date 20/80/03, 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 > hifn0 at pci0 dev 16 function 0 "Hifn 7951" rev 0x01: LZS 3DES ARC4 MD5 > SHA1 RNG PK, 128KB sram, irq 10 > ral0 at pci0 dev 17 function 0 "Ralink RT2860" rev 0x00: irq 11, address > 00:0e:8e:20:84:94 > ral0: MAC/BBP RT2860 (rev 0x0102), RF RT2850 (2T3R) > sis0 at pci0 dev 18 function 0 "NS DP83815 10/100" rev 0x00, DP83815D: > irq 5, address 00:00:24:c0:7a:ac > nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1 > sis1 at pci0 dev 19 function 0 "NS DP83815 10/100" rev 0x00, DP83815D: > irq 9, address 00:00:24:c0:7a:ad > nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1 > sis2 at pci0 dev 20 function 0 "NS DP83815 10/100" rev 0x00, DP83815D: > irq 12, address 00:00:24:c0:7a:ae > nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1 > isa0 at mainbus0 > isadma0 at isa0 > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > com0: console > com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo > 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: <SILICONSYSTEMS INC 1GB> > wd0: 1-sector PIO, LBA, 999MB, 2046240 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: reported by CPUID; using exception 16 > biomask e1c5 netmask ffe5 ttymask ffff > softraid0 at root > root on wd0a swap on wd0b dump on wd0b > > > hostname.ral0 > ------------- > > up media autoselect mode 11g mediaopt hostap \ > nwid MYNWID wpa wpaprotos wpa2 \ > wpapsk MYPRESHAREDKEY \ > chan 7