tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Atheros HAL opensourced



On Sun, Nov 30, 2008 at 6:02 AM, Arnaud Lacombe <lacombar%gmail.com@localhost> 
wrote:
> On Sun, Nov 30, 2008 at 1:10 AM, Quentin Garnier <cube%cubidou.net@localhost> 
> wrote:
>> On Sun, Nov 30, 2008 at 12:57:20AM -0500, Arnaud Lacombe wrote:
>>> Hi Folks,
>>>
>>> It seems that the HAL has been opensourced with a BSD compatible
>>> licence[1]. It seems to include support for recent chipset.
>>>
>>> Is anyone willing to port it ?
>>
>> I've started to look at it.  It's not a terribly complicated task,
>> although if_ath.c probably needs some changes to adapt to it.  I might
>> start with a copy of if_ath.c so that the two HALs can live in the tree
>> so that it can be more thoroughly tested before we ditch the horrendous
>> blob for good.
>>
> FWIW:
>
> % file netbsd
> netbsd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> statically linked, for NetBSD 5.99.1, not stripped
>
> Yes, still my -current snapshot from early november, but wait, the
> better follows:
>
> % nm --size-sort netbsd | grep ' r a' | tail -18 | head -12
> 00000888 r adcs.6480
> 00000888 r adcs.6498
> 00000888 r adcs.6504
> 00000888 r adcs.6580
> 00000bb8 r ar5416Common
> 00000bb8 r ar9160Common
> 00001028 r adesc
> 00003274 r ar5210hal
> 00003274 r ar5211hal
> 00003274 r ar5212hal
> 00005014 r alc260_loox_mixer_items
> 00006680 r ad1983_mixer_items
>
> Next mail will (hopefully) go through my AR5424, but right now, I need
> to jump into DreamLand and get a bit of sleep.
>
>  - Arnaud
>
As promised:

~/% uname -a
NetBSD nybbas 5.99.01 NetBSD 5.99.01
~/% dmesg| grep ath0
ath0 at pci2 dev 0 function 0
ath0: interrupting at ioapic0 pin 17
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps
24Mbps 36Mbps 48Mbps 54Mbps
ath0: mac 14.2 phy 7.0 radio 10.2
ath0: device timeout (txq 1, txintrperiod 5)
ath0: device timeout (txq 1, txintrperiod 4)
ath0: device timeout (txq 1, txintrperiod 3)
ath0: device timeout (txq 1, txintrperiod 2
~/% sudo pcictl pci2 list
002:00:0: Atheros Communications product 0x001c (ethernet network,
revision 0x01)
~/% ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        ssid XXX nwkey *****
        powersave off
        bssid 00:xx:xx:xx:xx:xx chan 1
        address: 00:xx:xx:xx:xx:xx
        media: IEEE802.11 autoselect (OFDM48 mode 11g)
        status: active
        inet 192.168.xxx.xxx netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::xxxx:xxxx:xxxx:xxxx%ath0 prefixlen 64 scopeid 0x1

For those who need more details, Atheros product ID 0x001c is an
AR5424. I still need to sort out a panic triggered though sysctl, some
nasty graphics artefacts and made the config(1) interface a bit less
static.

If some people are interested, I think I'll put a snapshot of my work
tree sometime tomorrow.

 - Arnaud


Home | Main Index | Thread Index | Old Index