Hi, I was trying to get a <Ralink RT2500 Wireless LAN Card> to work. The NDIS code compiles fine, ifconfig sees it, but as soon as I give a "ifconfig ndis0 up" or "dhclient ndis0" the box panics shortly after with a fatal trap 12, at eip=0xdeadc0de in swi33:ndis0 (kernel dumps don't seem to give much more info :( ) This mean I can give a ssid to it, but not a dynamic IP address, which is returned by the wireless router. More info on the card: Preloaded elf module "/boot/kernel/ndis.ko" at 0xc085f0c4. Preloaded elf module "/boot/kernel/if_ndis.ko" at 0xc085f170. ndis0: <Ralink RT2500 Wireless LAN Card> mem 0x88000000-0x88001fff irq 11 at device 0.0 on cardbus1 ndis0: [MPSAFE] ndis0: NDIS API version: 5.1 ndis0: bpf attached ndis0: Ethernet address: 00:50:fc:8c:40:78 ndis0: bpf attached ndis0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps ndis0: 11g rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps I'm running FreeBSD 5.4-PRERELEASE #4: Tue Mar 22 17:49:32 CET 2005 root@82-168-140-74-bbxl.xdsl.tiscali.nl:/usr/obj/usr/src/sys/RENE with sources from 2005-03-21 21:27 UTC I have INVARIANTS turned on. The following (relevant) modules are in /boot/loader.conf: mem_load="YES" io_load="YES" random_load="YES" intpm_load="YES" vesa_load="YES" speaker_load="YES" snd_cs4281_load="YES" cd9660_iconv_load="YES" fdc_load="YES" msdosfs_iconv_load="YES" bioschar_load="YES" #if_fxp_load="YES" uplcom_load="YES" loader_color="YES" cbb_load="YES" cardbus_load="YES" ndis_load="YES" if_ndis_load="YES" wlan_load="YES" If more info is needed, I can give it. Does anyone know a solution to this problem? Regards, Rene -- "It won't fit on the line." -- me, 2001 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050322/6b6b0fe1/attachment.bin
On Tue, 2005-03-22 at 21:51 +0100, Rene Ladan wrote:> I was trying to get a <Ralink RT2500 Wireless LAN Card> to work.Why don't you just try the shinny new native driver? http://damien.bergamini.free.fr/ral/download.html __ Markus
----- Forwarded message from Rene Ladan <r.c.ladan@student.tue.nl> ----- Forgot to CC this self-replied message... Date: Tue, 22 Mar 2005 23:37:38 +0100 From: Rene Ladan <r.c.ladan@student.tue.nl> To: Rene Ladan <r.c.ladan@student.tue.nl> Subject: Re: ndis crash on 5.4pre with Ralink RT2500 In-Reply-To: <20050322214915.GA796@82-168-75-155-bbxl.xdsl.tiscali.nl> User-Agent: Mutt/1.4.2.1i On Tue, Mar 22, 2005 at 10:49:15PM +0100, Rene Ladan wrote:> On Tue, Mar 22, 2005 at 10:21:04PM +0100, Markus Trippelsdorf wrote: > > On Tue, 2005-03-22 at 21:51 +0100, Rene Ladan wrote: > > > I was trying to get a <Ralink RT2500 Wireless LAN Card> to work. > > > > Why don't you just try the shinny new native driver? > > http://damien.bergamini.free.fr/ral/download.html > > Well, the NDIS driver _ought_ to work, and I'm on 5-STABLE right now > (-CURRENT is too risky as I need to do university work on this box too), > but ral only works on -CURRENT according to above site.I tried to compile it on 5-STABLE, but the top-level Makefile bombs out with a lot of declaration and structure errors. The card itself is a Sweex LC500050, which might not work on PCIBIOS 2.1 motherboards according to ral(4) (mine is old enough to be one of these). Maybe this helps the panic? I captured a panic (hand-written), after a "ndis0 up" message from the kernel, with inet address still 0.0.0.0 : fatal trap 12: page fault while in kernel mode fault virtual address = 0xdeadc0de fault code = supervisor read, page not present instruction pointer = 0x8:0xdeadc0de stack pointer = 0x10:0xca3f7c40 frame pointer = 0x10:0xca3f7ca4 code segment = base 0x0, limit 0xfffff, type 0x1b DPL 0, pres 1, def32 1, gran 1 eflags = interrupt enabled, resume, IOPL=0 current proc = 32 (ndis swi) tid = 100031 show pciregs gives: ndis0@pci4:0:0 class 0x28000 card 0x25601814 chip 0x02011814 rev 0x01 hdr 0x00> Regards, > Rene > > > __ > > Markus > > -- > "It won't fit on the line." > -- me, 2001-- "It won't fit on the line." -- me, 2001 ----- End forwarded message ----- -- "It won't fit on the line." -- me, 2001 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050322/ea212f55/attachment.bin
On Thu, Mar 24, 2005 at 05:45:34PM +0100, Rene Ladan wrote:> On Tue, Mar 22, 2005 at 11:39:23PM +0100, Rene Ladan wrote: > > On Tue, Mar 22, 2005 at 10:49:15PM +0100, Rene Ladan wrote:[snip]> > The card itself is a Sweex LC500050, which might not work on PCIBIOS 2.1 > > motherboards according to ral(4) (mine is old enough to be one of > > these). Maybe this helps the panic? > > > > I captured a panic (hand-written), after a "ndis0 up" message from the > > kernel, with inet address still 0.0.0.0 : > >[snip panic/pciregs/trace] I recompiled the kernel with WITNESS turned on, but no LOR arises. It seems that the panic is triggered by card<->router traffic. As long as the ssid or WEP settings are wrong, dhclient(8) cannot panic the box, but once they're set, it can. I'm willing to test patches for RELENG_5. Regards, Rene -- "It won't fit on the line." -- me, 2001 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050329/f88b93d3/attachment.bin