Making Picostation m2HP work

hiren panchasara hiren.panchasara at gmail.com
Wed Aug 28 19:31:55 UTC 2013


On Wed, Aug 28, 2013 at 10:20 AM, hiren panchasara <
hiren.panchasara at gmail.com> wrote:

>
>
>
> On Tue, Aug 27, 2013 at 3:48 PM, hiren panchasara <
> hiren.panchasara at gmail.com> wrote:
>
>>
>>
>>
>> On Tue, Aug 27, 2013 at 3:14 PM, Outback Dingo <outbackdingo at gmail.com>wrote:
>>
>>>
>>>
>>>
>>> On Tue, Aug 27, 2013 at 3:12 PM, hiren panchasara <
>>> hiren.panchasara at gmail.com> wrote:
>>>
>>>> On Tue, Aug 27, 2013 at 11:38 AM, Adrian Chadd <adrian at freebsd.org>
>>>> wrote:
>>>>
>>>> > Hi!
>>>> >
>>>> > Great work! feel free to commit the config and hints file for this
>>>> thing!
>>>> >
>>>>
>>>> I will let loos@ do that as he prepared that patch.
>>>>
>>>> But, as we were discussing on irc, do all AP91 boards have same hints?
>>>>
>>>> If not, should we create separate kernconf conf for picostation?
>>>>
>>>
> We have to look at how to create config files and commit them but before
> that:
>
> So, I've setup things for wlan and hostapd and did "cfg_save" and reboot.
>
> But I do not see "ath0" in o/p of ifconfig.
>
> The drivers are there:
>  # kldstat
> Id Refs Address    Size     Name
>  1   16 0x80050000 2d8f10   kernel
>  2    2 0xc0081000 4924     bridgestp.ko
>  3    1 0xc0086000 6d90     if_bridge.ko
>  4    1 0xc008d000 a5e0     random.ko
>  6    1 0xc0098000 11e4bc   if_ath.ko
>  7    1 0xc01b7000 606fc    wlan.ko
> #
>
> And ath wireless card is on pci0.
>
>
> # pciconf -lv
> none0 at pci0:0:0:0:       class=0x028000 card=0xe3020777 chip=0x002a168c
> rev=0x01 hdr=0x00
>     vendor     = 'Atheros Communications Inc.'
>     device     = 'AR928X Wireless Network Adapter (PCI-Express)'
>     class      = network
> #
>
> If I look at the AP91.hints file we are using:
>
> # ath0 hint - pcie slot 0
> hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff1000
> hint.pcib.0.bus.0.0.0.ath_fixup_size=4096
>
> # ath
> hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"
>
> I am not sure if this is correct. Also, looking at sysctls:
>
> # sysctl -a | grep dev.pci
> dev.pcib.0.%driver: pcib
> dev.pcib.0.%parent: nexus0
> dev.pci.0.%desc: PCI bus
> dev.pci.0.%driver: pci
> dev.pci.0.%parent: pcib0
> #
>
> I believe something is not correct here.
>

Alright. I was not loading if_ath_pci and that was the reason.
(Thanks to Sean for yelling at me from across the isle).

But now, it fails at:

ath0: <Atheros 9280> at device 0.0 on pci0
ath0: ath_pci_attach: EEPROM firmware @ 0x8046c000
[ath]: default pwr offset: -5 dBm != EEPROM pwr offset: 0 dBm; curves will
be adjusted.
ath0: ath_getchannels: unable to collect channel list from hal, status 12
device_attach: ath0 attach returned 22

Just for reference:
# kldstat
Id Refs Address    Size     Name
 1   22 0x80050000 2d8f10   kernel
 2    1 0xc0081000 1078     if_ath_pci.ko
 3    1 0xc0083000 11e4bc   if_ath.ko
 4    4 0xc01a2000 606fc    wlan.ko
 5    2 0xc0203000 4924     bridgestp.ko
 6    1 0xc0208000 6d90     if_bridge.ko
 7    1 0xc020f000 a5e0     random.ko
 8    1 0xc021a000 3ac      wlan_xauth.ko
 9    1 0xc021b000 27e4     wlan_tkip.ko
#


cheers,
Hiren


More information about the freebsd-embedded mailing list