Date: Wed, 28 Aug 2013 12:31:54 -0700 From: hiren panchasara <hiren.panchasara@gmail.com> To: Luiz Otavio O Souza <lists.br@gmail.com> Cc: freebsd-embedded <freebsd-embedded@freebsd.org> Subject: Re: Making Picostation m2HP work Message-ID: <CALCpEUFdgE0x_yEvFJ_4vZeznB57Z%2BpFQcaQBg3E_XFTt4Mj=g@mail.gmail.com> In-Reply-To: <CALCpEUGxAFOLmL4rKO4Orn--Sns2L1PQ45x_zAZf8bFSYwKthw@mail.gmail.com> References: <CALCpEUHyqyq2WShNfu1ARFGHH6s6yPeojkq3M5Dfg0veaSy7KQ@mail.gmail.com> <CAJ-Vmokh4uSy2RkNoyGnYbm9k0B3YBD96B7Kvn5b8zJgU0KVkg@mail.gmail.com> <CALCpEUFXrdST43Nz2m-y__htXjLdmds8B5_JV2P9oFtGCEAr1g@mail.gmail.com> <CALCpEUHu0FONekw%2BF4bvef-qLjmtwMso31GJpJd5BP_6JsH0fQ@mail.gmail.com> <CALCpEUFbk-0eE_HQRhF48YA7KgiyW=AB9G8F0UC3Uwti977m4A@mail.gmail.com> <20130826225420.GF29777@funkthat.com> <CALCpEUFgZW88C4RVCQzsE00%2B8YGvKDx28SPhYRwGe8dyZ2vxag@mail.gmail.com> <20130826230843.GH29777@funkthat.com> <CALCpEUEWPZ%2BWS1SZCw=UqQah3EnWiTG0f=70q-JFzq%2BuQ_yaBw@mail.gmail.com> <CALCpEUEqEMr-BXDzOzjKnXPbEGM5g6Rjmxmj8JaOYxtgxaL50A@mail.gmail.com> <20130827055547.GK29777@funkthat.com> <CALCpEUF0WZvGcv0P0zpG6Eerp7Yzu9bQQLt9=AsBLJkA4vEx2w@mail.gmail.com> <CAJ-VmomkYfhO4w2ZEWOHbac0RzVaW2ST9QdWt8nE%2B6dZFczYdQ@mail.gmail.com> <CALCpEUHpaU7Tzs6mAkpOgFYvc2OaxRKMh0g04KnsTJptfOxEPQ@mail.gmail.com> <CAKYr3zzZOd=c_pjDLgkvDjeWZ4apq_4oL9X0d6%2BPJueSkREd9A@mail.gmail.com> <CALCpEUE_7C6K4xLw4FB=W2oCaPTnHcpuALyQt38Q54%2B8=o13kg@mail.gmail.com> <CALCpEUGxAFOLmL4rKO4Orn--Sns2L1PQ45x_zAZf8bFSYwKthw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 28, 2013 at 10:20 AM, hiren panchasara < hiren.panchasara@gmail.com> wrote: > > > > On Tue, Aug 27, 2013 at 3:48 PM, hiren panchasara < > hiren.panchasara@gmail.com> wrote: > >> >> >> >> On Tue, Aug 27, 2013 at 3:14 PM, Outback Dingo <outbackdingo@gmail.com>wrote: >> >>> >>> >>> >>> On Tue, Aug 27, 2013 at 3:12 PM, hiren panchasara < >>> hiren.panchasara@gmail.com> wrote: >>> >>>> On Tue, Aug 27, 2013 at 11:38 AM, Adrian Chadd <adrian@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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALCpEUFdgE0x_yEvFJ_4vZeznB57Z%2BpFQcaQBg3E_XFTt4Mj=g>