From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 28 17:20:56 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 382E83B0; Wed, 28 Aug 2013 17:20:56 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ee0-x22c.google.com (mail-ee0-x22c.google.com [IPv6:2a00:1450:4013:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 83F092988; Wed, 28 Aug 2013 17:20:55 +0000 (UTC) Received: by mail-ee0-f44.google.com with SMTP id b47so3126121eek.31 for ; Wed, 28 Aug 2013 10:20:53 -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=ROvR7VJffWRaFH6eORlRw+vOeobOHKMpPeNaLKLPCUY=; b=RCSD/LzyxTua1n3HCMhZYb86c2p3/FsheDei9yrBi/WLxybnyl0dCXwMZnCbPDyTIo BjFOQ2N0sPxJAk5lqEVDC1y6lt3s42eyOd3TowB3fnJoQ/l/y2CkcD1uFovR4mPrVrA9 d9z2ZA+tX2V08pXX6AOcEL+ZzXc1zgQl9OBQEDFOcWS7HDqWEIUu1YMavU3EOWknQCth UyB+stfGBOt9c7HEbezAdwsPvfh71/JgTRIO2cRRB55V82tF7aaMO+rKWwOywMWFc8DS K6tzcCfrMQHvwf++ViyjZgx7wT9KOHtbiBeat9iux32RE9sn3VoaONvAK6tYI+ji7+S5 yIqQ== MIME-Version: 1.0 X-Received: by 10.14.207.132 with SMTP id n4mr1904420eeo.102.1377710453789; Wed, 28 Aug 2013 10:20:53 -0700 (PDT) Received: by 10.14.105.137 with HTTP; Wed, 28 Aug 2013 10:20:53 -0700 (PDT) In-Reply-To: References: <20130826225420.GF29777@funkthat.com> <20130826230843.GH29777@funkthat.com> <20130827055547.GK29777@funkthat.com> Date: Wed, 28 Aug 2013 10:20:53 -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 17:20:56 -0000 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. Cheers, Hiren