Subject: Re: Ralink (cardbus) problem
To: NetBSD-current Discussion List <current-users@netbsd.org>
From: Chavdar Ivanov <ci4ic4@gmail.com>
List: current-users
Date: 10/11/2005 16:57:28
Details of the panic:

ral0 detached.

uvm_fault(0xc0690040, 0xcb182000, 0, 2) -> 0xe
kernel: page fault trap, code=3D0
Stopped in pid 14.1 (aiodoned) at    netbsd:ral_intr+0x13e: movl
$0xffffffff,0x20(%ecx)

The trace goes as follows:

uvm_aiodone_daemon
uvm_aio_aiodone
Xspllower
--- interrupt ---
Xintr_legacy10
pccbbintr_function
ral_intr

(backwards).

...if that is of any help; I may compile a debug kernel to see if I
can gather something more.



2005/10/11, Chavdar Ivanov <ci4ic4@gmail.com>:
> Hi,
>
> I managed at last to swap my Prism54 based SMC card for a Belkin
> RA2560 cardbus wireless. The card is supposed to be supported - even
> the ral man page lists it (well, very close). Added 'ral* on cardbus*'
> to my kernel definition, rebuilt it and rebooted. The card is
> recognized correctly -
>
> ---
> al0 at cardbus0 function 0: irq 10
> ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525, address 00:11:50:4a:40:d4
> ral0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> ral0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps
> 24Mbps 36Mbps 48Mbps 54Mbps
> ---
>
> ifconfig ral0 gives status: no network:
>
> ral0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         ssid 3com nwkey 0xc0ffeec0ffeec0ffeec0ffeec0
>         powersave off
>         address: 00:11:50:4a:40:d4
>         media: IEEE802.11 autoselect mode 11g (DS1 mode 11g)
>         status: no network
>         inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
>         inet6 fe80::211:50ff:fe4a:40d4%ral0 prefixlen 64 scopeid 0x3
>
> wiconfig ral0 :
>
> NIC serial number:                      [  ]
> Station name:                           [ maggie ]
> SSID for IBSS creation:                 [ 3com ]
> Current netname (SSID):                 [  ]
> Desired netname (SSID):                 [ 3com ]
> Current BSSID:                          [ 00:00:00:00:00:00 ]
> Channel list:                           [ 2 3 4 5 6 7 8 9 10 11 12 13 14 =
]
> IBSS channel:                           [ 11 ]
> Current channel:                        [ 11 ]
> Comms quality/signal/noise:             [ 0 0 0 ]
> Promiscuous mode:                       [ Off ]
> Port type:                              [ 1 ]
> MAC address:                            [ 00:11:50:4a:40:d4 ]
> TX rate (selection):                    [ 0 ]
> TX rate (actual speed):                 [ 1 ]
> Beacon Interval (current) [msec]:       [ 100 ]
> Maximum data length:                    [ 2346 ]
> RTS/CTS handshake threshold:            [ 2312 ]
> fragmentation threshold:                [ 2346 ]
> RSSI -> dBm adjustment:                 [ ]
> Create IBSS:                            [ Off ]
> Microwave oven robustness:              [ 0 ]
> Roaming mode(1:firm,3:disable):         [ 1 ]
> Access point density:                   [ 1 ]
> Power Mgmt (1=3Don, 0=3Doff):               [ 0 ]
> Max sleep time (msec):                  [ 100 ]
> Vendor info:
> WEP encryption:                         [ On ]
> Authentication type
> (1=3DOpenSys, 2=3DShared Key):              [ 1 ]
> TX encryption key:                      [ 1 ]
> Encryption keys:                        [ 0xc0ffeec0ffeec0ffeec0ffeec0 ][=
  ][  ][  ]
>
> The lights on the card never come up.
>
> If I 'ifconfig ral0 down' and then take out the card, nothing happens
> to begin with, the system seems to be working (the message that ral
> has been disconnected is seen), but then second attach panics the
> system, as well as normal poweroff. I can't point the exact place for
> the panic (the system is in use right now to repeat it), but it is in
> the ral.c module.
>
> Any ideas?
>