From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 28 19:31:55 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D06F3E75; Wed, 28 Aug 2013 19:31:55 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-vc0-x22e.google.com (mail-vc0-x22e.google.com [IPv6:2607:f8b0:400c:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 74B6E21B4; Wed, 28 Aug 2013 19:31:55 +0000 (UTC) Received: by mail-vc0-f174.google.com with SMTP id gd11so4304597vcb.19 for ; Wed, 28 Aug 2013 12:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jG218P9KjFgngdv0cMEd17BmsCz276FXYwvrAvRZEL8=; b=BJxus7dCM63Lh0s4RtaPFC5ZwQ6NPskXjeI5tj2Xoyf2bi1wFRpX1b/VmAezqdhHCo nIJ0r0bIxKgEZdNSUYbtIASg+ZgpTbkhja0Z2NHxntjw33UXiZD0ZUqXSIKQ0dHXSI20 SBNrqrfQHoryP3lqEW/F1kiHtD0bADsbIikxwOcXuLKzlXGLGC88YhdGUmEV8OlWuCWl 2nlIyucrCe69ZkruuTAI2AilnChuzQ4nG3T3F6SRBG96RLXNZYEu33Mw7T0pN+kEdg2Y f/Ogh81ilkrIyZVd23xXxDiMMR5AQwEVHCGfeNSKmz5YZlaEO/9NgIZld+CXzD/uYu30 9NIg== MIME-Version: 1.0 X-Received: by 10.52.23.113 with SMTP id l17mr15130577vdf.23.1377718314535; Wed, 28 Aug 2013 12:31:54 -0700 (PDT) Received: by 10.59.8.34 with HTTP; Wed, 28 Aug 2013 12:31:54 -0700 (PDT) In-Reply-To: References: <20130826225420.GF29777@funkthat.com> <20130826230843.GH29777@funkthat.com> <20130827055547.GK29777@funkthat.com> Date: Wed, 28 Aug 2013 12:31:54 -0700 Message-ID: Subject: Re: Making Picostation m2HP work From: hiren panchasara To: Luiz Otavio O Souza Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-embedded X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Aug 2013 19:31:55 -0000 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 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 >>>> 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: 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