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/17/2005 13:35:51
I seem to talking to myself in public...

2005/10/17, Chavdar Ivanov <ci4ic4@gmail.com>:
> Here is a screenshot of a ddd session to the laptop (attached).
> Usually the panic happens when the card is connected second or third
> time, but on occasion it might be just trying various ifconfig
> options. I don't know if there is anything I could do in the ddd
> session to get better information.
>
> I can always connect to my home SMC Barricade router (WEP disabled);
> in the office I can't get to the 3com we have, even with WEP disabled.
>
> I just installed 3.99.9 from yesterday with /usr/sbin/wap*; this will

/usr/sbin/wpa*

> be the next attempt. BTW, this userland refused to work with the debug
> kernel,built today with the sources from about four days ago, which is
> a bit strange, but understandable (I wouldn't know what changes have
> been introduced this moment).
>

Starting to get even more interesting...

Again no luck connecting to the office 3com router (OfficeConnect
Wireless 11G BTW) either with WEP or without any encryption; WPA
worked first time [;^). The only trouble I am having now is that the
interface goes down ever so often -
....
ral0: link state changed to DOWN
ral0: link state changed to UP
ral0: link state changed to DOWN
ral0: link state changed to UP
ral0: link state changed to DOWN
ral0: link state changed to UP
ral0: link state changed to DOWN
ral0: link state changed to UP
ral0: link state changed to DOWN
ral0: link state changed to UP
ral0: link state changed to DOWN
ral0: link state changed to UP
ral0: link state changed to DOWN
ral0: link state changed to UP
ral0: link state changed to DOWN
ral0: link state changed to UP
.....
I seem to be keeping the link up most of the time with constant ping
to the router (which is  about 8m away from the laptop in clear line
of sight).

I wonder if there is some timeout value to be tweaked; I will start
the supplicant in debug mode next time to see if this will make any
change.

> 2005/10/11, Chavdar Ivanov <ci4ic4@gmail.com>:
> > 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:                        [ 0xc0ffeec0ffeec0ffeec0ffeec=
0 ][  ][  ][  ]
> > >
> > > 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?
> > >
> >
>
>
>