Making Picostation m2HP work

hiren panchasara hiren.panchasara at gmail.com
Wed Aug 28 17:20:56 UTC 2013


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.

Cheers,
Hiren


More information about the freebsd-embedded mailing list