From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 28 22:33:28 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 0E4BA15E for ; Wed, 28 Aug 2013 22:33:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x22a.google.com (mail-qc0-x22a.google.com [IPv6:2607:f8b0:400d:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B69BE2D59 for ; Wed, 28 Aug 2013 22:33:27 +0000 (UTC) Received: by mail-qc0-f170.google.com with SMTP id i8so3942039qcq.1 for ; Wed, 28 Aug 2013 15:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=poZrpmEnZJgAy5KdWzdB45dOuyjp/sLs3pyfbtPUFWM=; b=SpN9BOx1uefqreVbiIvaa4+H2tLQ9o/lJyY2H4V8SFqz0x07rt8brr5zeu+oDoHlN4 45To0e6TVLA5GU23PpuKmbAUPrGDzBZ8ZmryxK4VhENbWgdh/1tHm5jOtvOujs9aKQeR UHByjzhZw7ApfgyE/PMNYRtWTb6P0ttJsQxzZ5CGM9ntH3nWZRIQWemqki6mS36nxkdt czwOZnA3KiYPW8jwXi20Ft88vWCO9Qq7vJTA9le3oMXdr1qdPK3ZCykiXwvSLikl5X3G hHwrdwe63WAhUntQOz3MdoTtNhzYC5xIWceiaFynj+LOtvNKnpkQVKhFsoGr+Siebs5J HCtA== MIME-Version: 1.0 X-Received: by 10.49.16.103 with SMTP id f7mr120222qed.68.1377729206942; Wed, 28 Aug 2013 15:33:26 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.128.70 with HTTP; Wed, 28 Aug 2013 15:33:26 -0700 (PDT) In-Reply-To: References: <20130826225420.GF29777@funkthat.com> <20130826230843.GH29777@funkthat.com> <20130827055547.GK29777@funkthat.com> Date: Wed, 28 Aug 2013 15:33:26 -0700 X-Google-Sender-Auth: 5f-GNoh7k3EudXmDp-7qFoyLoYs Message-ID: Subject: Re: Making Picostation m2HP work From: Adrian Chadd To: hiren panchasara Content-Type: text/plain; charset=ISO-8859-1 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 22:33:28 -0000 Yes and I have no idea what regdomain that is. It's not in the atheros reference code, our driver or the linux code. So I'm stumped. Just override it with 0x0 for now and see if it attaches. I'll hunt down a contact at ubiquiti to figure this out. -adrian On 28 August 2013 15:25, hiren panchasara wrote: > > > > On Wed, Aug 28, 2013 at 2:52 PM, hiren panchasara < > hiren.panchasara@gmail.com> wrote: > >> >> >>> 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 >>> >> >> Turning on debugging: >> >> # sysctl hw.ath.hal.debug=25600000000 >> hw.ath.hal.debug: 0 -> 2147483647 >> >> >> # kldload if_ath_pci >> ath0: mem 0x10000000-0x1000ffff irq 0 at device 0.0 on pci0 >> >> ath0: ath_pci_attach: EEPROM firmware @ 0x8046c000 >> ar9280Attach: sc 0xc090d000 st 0x803006b4 sh 0xb0000000 >> ar5416SetReset Applying descriptor swap >> ar5416SetPowerMode: AWAKE -> AWAKE (set chip ) >> ar9280Attach: ID 0x802ff VERSION 0x2 TYPE 0x0 REVISION 0x2 >> ath_hal_v14EepromAttach Eeprom Version 14.22 >> v14EepromReadCTLInfo Numctls = 11 >> ar5416SetPowerMode: AWAKE -> AWAKE (set chip ) >> ar9280RfAttach: attach AR9280 radio >> [ath]: default pwr offset: -5 dBm != EEPROM pwr offset: 0 dBm; curves >> will be adjusted. >> enableAniMIBCounters: Enable mib counters: OfdmPhyErrBase 0xbffe0c >> cckPhyErrBase 0xbfff38 >> ar9280Attach: return >> getchannels: cc 0 regDmn 0xf0 mode 0xffffff ecm >> isEepromValid: invalid regulatory domain/country code 0x2a >> > Adrian: > > Do we need to update hal regdomain entries with country code 0x2a? > > cheers, > Hiren > > getregstate: invalid EEPROM contents >> ath0: ath_getchannels: unable to collect channel list from hal, status 12 >> ar5416Detach: >> ar5416SetPowerMode: AWAKE -> AWAKE (set chip ) >> Detaching Ani >> Disable MIB counters >> ar5416SetPowerMode: AWAKE -> AWAKE (set chip ) >> ar5416SetReset Applying descriptor swap >> ar5416SetPowerMode: AWAKE -> FULL-SLEEP (set chip ) >> >> device_attach: ath0 attach returned 22 >> >> >> cheers, >> Hiren >> > >