7.0 BETA1 and Thinkpad T61p : Wireless misadventure
Abdullah Ibn Hamad Al-Marri
wearabnet at yahoo.ca
Fri Oct 26 09:41:13 PDT 2007
----- Original Message ----
> From: Luis Neves <luis.neves at co.sapo.pt>
> To: freebsd-mobile at freebsd.org; freebsd-stable at freebsd.org
> Sent: Friday, October 26, 2007 5:24:40 PM
> Subject: 7.0 BETA1 and Thinkpad T61p : Wireless misadventure
>
>
> Hi all.
> So far I've failed to have a working wireless connection with
> this
> combination.
>
> There are no FreeBSD drivers for the included intel 4965AG card.
> I've tried to use the ndiswrapper framework without success.
> The
> ndisgen wizard
> runs without issues, but kldloading the driver freezes and reboots
> the
> machine.
>
> I've also tried two cardbus devices.
>
> The Cisco Aironet - AIR CB21AG (ath driver):
>
> Oct 26 13:30:27 t61p kernel: cardbus0: Expecting link target, got 0x0
> Oct 26 13:30:27 t61p kernel: ath0:
> mem
> 0xbfeb0000-0xbfebffff irq
> 16 at device 0.0 on cardbus0
> Oct 26 13:30:27 t61p kernel: ath0: [ITHREAD]
> Oct 26 13:30:27 t61p kernel: ath0: unable to attach hardware;
> HAL
> status 13
> Oct 26 13:30:27 t61p kernel: device_attach: ath0 attach returned 6
>
> and the Conceptronic C54RC (ral driver):
>
> Oct 26 13:40:59 t61p kernel: cardbus0: Expecting link target, got 0x0
> Oct 26 13:40:59 t61p kernel: ral0: mem
> 0xbfeb0000-0xbfeb1fff irq 16 at device 0.0 on cardbus0
> Oct 26 13:40:59 t61p kernel: ral0: MAC/BBP RT2560 (rev 0x00), RF RT2522
> Oct 26 13:40:59 t61p kernel: ral0: [ITHREAD]
> Oct 26 13:41:40 t61p kernel: ral0: could not read from BBP
> Oct 26 13:41:40 t61p kernel: ral0: could not write to BBP
> Oct 26 13:41:40 t61p kernel: ral0: could not read from BBP
> Oct 26 13:41:40 t61p kernel: ral0: could not write to BBP
> Oct 26 13:41:40 t61p kernel: ral0: could not read from BBP
> Oct 26 13:41:40 t61p last message repeated 99 times
> Oct 26 13:41:40 t61p kernel: ral0: timeout waiting for BBP
>
> I'm running:
> uname -a
> FreeBSD t61p 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Fri Oct 26 13:10:37
> WEST
> 2007
> root at t61p:/usr/obj/usr/src/sys/GENERIC i386
>
> GENERIC kernel with ULE and without debugging.
>
> Is there anything I can do to diagnose these issues?
>
> Thanks!
>
> --
> Luis Neves
---------- Forwarded message ----------
From: Marcin Simonides <marcin at studio4plus.com>
Date: Oct 18, 2007 7:32 PM
Subject: Re: NDIS: intel 4965 panic
To: freebsd-drivers at freebsd.org
Marcin Simonides wrote:
> I've tried using an XP ndis wrapper for my intel 4965 wifi adapter.
> After loading the driver the device is recognized and then kernel panics
> during driver attachement.
[...]
Previously I didn't mention that there are some functions missing from
the FreeBSD's NDIS api. These are:
NdisIMCopySendPerPacketInfo
strncat
KeQuerySystemTime
KeBugCheckEx
KeTickCount
With the help of NDIS reference and Linux ndiswrapper I have been able
to implement all but KeBugCheckEx (they are all rather simple but I
can't be 100% sure they're correct and exported appropriately).
Now I'm able to load the driver and don't get any of the "ntoskrnl dummy
called..." messages which probably means that there are no missing
functions the driver tries to call.
Unfortunately I'm still left with the:
ndis0: NDIS ERROR: 40001b7c (unknown error)
error message and the device doesn't work.
ifconfig ndis0 shows:
ndis0: flags=8806<BROADCAST,DEBUG,SIMPLEX,MULTICAST> mtu 1500
ether 00:13:e8:64:aa:f7
media: IEEE 802.11 Wireless Ethernet autoselect
status: no carrier
ssid "" channel 1
authmode OPEN privacy OFF txpowmax 100 bmiss 7 protmode CTS
The LED indicating whether WLAN is on doesn't light up. Calling ifconfig
ndis0 up results with the following kernel messages:
ndis0: NDIS ERROR: 40001b7c (unknown error)
ndis0: NDIS NUMERRORS: 2
ndis0: argptr: 0x56524457
ndis0: argptr: 0xdd
And that's all I have been able to achieve so far :)
I'll try to read some more of NDIS specification, locate the source of
the aforementioned error message and generally try to blindly find
something.
Maybe someone has some suggestions? Maybe I should also try to post my
questions to some other list?
The diff of my changes: http://marcin.studio4plus.com/ndis/ndis.diff
All changes are confined to the /usr/src/sys/compat/ndis directory. The
functions I have added are implemented in a quick and dirty way :)
--
Marcin Simonides
---
Check it, it may work for you with ndis.
Regards,
-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the freebsd-mobile
mailing list