Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Oct 2014 11:15:53 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Luke <lukek@fastmail.fm>
Cc:        "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>
Subject:   Re: Atheros AR9300 unable to collect channel data status 12, error 22
Message-ID:  <CAJ-VmokO-ZEF5dgaW7AaH_TJWZcYndL3DeR8xkipBpbazD7Bkg@mail.gmail.com>
In-Reply-To: <CAJ-Vmomeaf7V=vHJpBdd6D9Qwxy=%2Biw5fTTfTdso=-bqTT_PQg@mail.gmail.com>
References:  <1413150344.3645853.178107757.0A3C2EFC@webmail.messagingengine.com> <CAJ-VmomdL5k6Zdiba22i_MG-TdASOjEzDxgWUG8aUqTuyzP6-w@mail.gmail.com> <1413166890.3701270.178170157.32FD408D@webmail.messagingengine.com> <CAJ-Vmomeaf7V=vHJpBdd6D9Qwxy=%2Biw5fTTfTdso=-bqTT_PQg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ok, please file a FreeBSD problem report with the EEPROM code and
details you put in your previous email.

I'll go look at the reference source later today and figure out what
the regulatory domain is.

https://bugs.freebsd.org/submit/


-a


On 12 October 2014 19:24, Adrian Chadd <adrian@freebsd.org> wrote:
> Hi,
>
> Yes, you have to recompile the whole kernel. Sorry, GENERIC ships with
> both modules _and_ everything in-kernel. :(
>
>
> -a
>
>
> On 12 October 2014 19:21, Luke <lukek@fastmail.fm> wrote:
>> Thanks for the quick reply Adrian. I have hacked the if_ath_pci.ko
>> module but am unable to load it for testing since it is already present
>> in the kernel. Is there a simple way around this or do I have to rebuild
>> the whole kernel?
>> Thanks for the help.
>>
>> Luke
>>
>> --
>>   l k
>>   lukek@fastmail.fm
>>
>> On Sun, Oct 12, 2014, at 03:00 PM, Adrian Chadd wrote:
>>> Hi!
>>>
>>> I bet it is. Can you patch ath_hal_getchannels() to print out the
>>> regulatory EEPROM code?
>>>
>>>
>>> -a
>>>
>>> On 12 October 2014 14:45, Luke <lukek@fastmail.fm> wrote:
>>> > Hi there, I am running PCBSD on my desktop and am unable to connect to
>>> > wireless with my Atheros AR9300 PCI-E card. During boot I get the
>>> > following messages:
>>> >     ath0: ath_getchannels: unable to collect channel list from hal,
>>> >     status 12
>>> >     device_attach: ath0 attach returned 22
>>> > Some research suggests that this may be due to an unrecognized country
>>> > code or something? Can anyone advise a fix to get me up and running
>>> > online or erhaps point me in the right direction? I think I have to
>>> > start in /sys/dev/ath/if_ath.c.
>>> > Below I have pasted some relevant info. Thanks for reading this.
>>> >
>>> > -----------------------------uname -a
>>> > --------------------------------------
>>> > FreeBSD 10.1-RELEASE-p2 #12 02b9957(stable/10)
>>> > root@bellicose:/usr/obj/root/pcbsd-build-10-STABLE/git/freebsd/sys/GENERIC
>>> > amd64
>>> >
>>> > -----------------------------pciconf--------------------------------
>>> > none2@pci0:4:0:0:       class=0x028000 card=0x3a7e1186 chip=0x0030168c
>>> > rev=0x01 hdr=0x00
>>> >     vendor     = 'Atheros Communications Inc.'
>>> >     device     = 'AR9300 Wireless LAN adaptor'
>>> >     class      = network
>>> > -----------------------------dmesg---------------------------------
>>> > hdac1: <ATI (0x9902) HDA Controller> mem 0xfeb44000-0xfeb47fff irq 18 at
>>> > device 1.1 on pci0
>>> > hdac1: hdac_get_capabilities: Invalid corb size (0)
>>> > device_attach: hdac1 attach returned 6
>>> > ath0: <Atheros AR938x> mem 0xfea00000-0xfea1ffff irq 16 at device 0.0 on
>>> > pci4
>>> > ar9300_set_stub_functions: setting stub functions
>>> > ar9300_set_stub_functions: setting stub functions
>>> > ar9300_attach: calling ar9300_hw_attach
>>> > ar9300_hw_attach: calling ar9300_eeprom_attach
>>> > ar9300_flash_map: unimplemented for now
>>> > Restoring Cal data from DRAM
>>> > Restoring Cal data from EEPROM
>>> > ar9300_hw_attach: ar9300_eeprom_attach returned 0
>>> > ath0: RX status length: 48
>>> > ath0: RX buffer size: 4096
>>> > ath0: TX descriptor length: 128
>>> > ath0: TX status length: 36
>>> > ath0: TX buffers per descriptor: 4
>>> > ar9300_freebsd_setup_x_tx_desc: called, 0x0/0, 0x0/0, 0x0/0
>>> > ath0: ath_getchannels: unable to collect channel list from hal, status
>>> > 12
>>> > device_attach: ath0 attach returned 22
>>> > hdac1: <ATI (0x9902) HDA Controller> mem 0xfeb44000-0xfeb47fff irq 18 at
>>> > device 1.1 on pci0
>>> > hdac1: hdac_get_capabilities: Invalid corb size (0)
>>> > device_attach: hdac1 attach returned 6
>>> > ath0: <Atheros AR938x> mem 0xfea00000-0xfea1ffff irq 16 at device 0.0 on
>>> > pci4
>>> > ar9300_set_stub_functions: setting stub functions
>>> > ar9300_set_stub_functions: setting stub functions
>>> > ar9300_attach: calling ar9300_hw_attach
>>> > ar9300_hw_attach: calling ar9300_eeprom_attach
>>> > ar9300_flash_map: unimplemented for now
>>> > Restoring Cal data from DRAM
>>> > Restoring Cal data from EEPROM
>>> > ar9300_hw_attach: ar9300_eeprom_attach returned 0
>>> > ath0: RX status length: 48
>>> > ath0: RX buffer size: 4096
>>> > ath0: TX descriptor length: 128
>>> > ath0: TX status length: 36
>>> > ath0: TX buffers per descriptor: 4
>>> > ar9300_freebsd_setup_x_tx_desc: called, 0x0/0, 0x0/0, 0x0/0
>>> > ath0: ath_getchannels: unable to collect channel list from hal, status
>>> > 12
>>> > device_attach: ath0 attach returned 22
>>> >
>>> > -----------------------------kldstat---------------------
>>> > Id Refs Address            Size     Name
>>> >  1  163 0xffffffff80200000 14e9000  kernel
>>> >  2    4 0xffffffff81994000 337c9    crypto.ko
>>> >  3    2 0xffffffff819c8000 4f19     aesni.ko
>>> >  4    1 0xffffffff819cd000 1f636    geom_eli.ko
>>> >  5    2 0xffffffff819ed000 5a9d     opensolaris.ko
>>> >  6    1 0xffffffff819f3000 24e431   zfs.ko
>>> >  7    1 0xffffffff81c42000 106ad    tmpfs.ko
>>> >  8    3 0xffffffff81c53000 a8678    linux.ko
>>> >  9    1 0xffffffff81cfc000 22969    geom_journal.ko
>>> > 10    1 0xffffffff81d1f000 22c02    geom_mirror.ko
>>> > 11    1 0xffffffff81d42000 63aa     ums.ko
>>> > 12    1 0xffffffff81e11000 9cf1     linprocfs.ko
>>> > 13    5 0xffffffff81e1b000 42a1     libiconv.ko
>>> > 14    3 0xffffffff81e20000 1566     libmchain.ko
>>> > 15    1 0xffffffff81e22000 7dd      msdosfs_iconv.ko
>>> > 16    1 0xffffffff81e23000 3098e    if_bwn.ko
>>> > 17    1 0xffffffff81e54000 6ed1     siba_bwn.ko
>>> > 18    1 0xffffffff81e5b000 1fa30    if_bwi.ko
>>> > 19    1 0xffffffff81e7b000 273d     runfw.ko
>>> > 20    1 0xffffffff81e7e000 4eee     ng_ubt.ko
>>> > 21    3 0xffffffff81e83000 b9ba     netgraph.ko
>>> > 22    1 0xffffffff81e8f000 9398     ng_hci.ko
>>> > 23    2 0xffffffff81e99000 1078     ng_bluetooth.ko
>>> > 24    1 0xffffffff81e9b000 4680     cuse4bsd.ko
>>> > 25    1 0xffffffff81ea0000 661c     sem.ko
>>> > 26    2 0xffffffff81ea7000 8ed2     udf.ko
>>> > 27    1 0xffffffff81eb0000 7d1      udf_iconv.ko
>>> > 28    1 0xffffffff81eb1000 13c3c    ext2fs.ko
>>> > 29    1 0xffffffff81ec5000 232d     geom_uzip.ko
>>> > 30    1 0xffffffff81ec8000 11ba7    pefs.ko
>>> > 31    1 0xffffffff81eda000 a81b     reiserfs.ko
>>> > 32    1 0xffffffff81ee5000 1d0b1    smbfs.ko
>>> > 33    1 0xffffffff81f03000 52f5     fdescfs.ko
>>> > 34    1 0xffffffff81f09000 5513     linsysfs.ko
>>> > 35    1 0xffffffff81f0f000 2e58c    iwn4965fw.ko
>>> > 36    1 0xffffffff81f3e000 52db4    iwn1000fw.ko
>>> > 37    1 0xffffffff81f91000 53a22    iwn5000fw.ko
>>> > 38    1 0xffffffff81fe5000 52d44    iwn5150fw.ko
>>> > 39    1 0xffffffff82038000 6f721    iwn6000fw.ko
>>> > 40    1 0xffffffff820a8000 a5d07    iwn6000g2afw.ko
>>> > 41    1 0xffffffff8214e000 70fc4    iwn6000g2bfw.ko
>>> > 42    1 0xffffffff821bf000 73267    iwn6050fw.ko
>>> > 43    1 0xffffffff82233000 3729     acpi_video.ko
>>> > 44    1 0xffffffff82237000 dc50     fuse.ko
>>> > 45    1 0xffffffff82245000 2b10     uhid.ko
>>> > 46    1 0xffffffff82248000 32175    pf.ko
>>> > 47    1 0xffffffff8227b000 1122c    ipfw.ko
>>> > 48    1 0xffffffff8228d000 1a630    ng_btsocket.ko
>>> > 49    1 0xffffffff822a8000 ef263    radeonkms.ko
>>> > 50    1 0xffffffff82398000 3e3d5    drm2.ko
>>> > 51    4 0xffffffff823d7000 1f7b     iicbus.ko
>>> > 52    1 0xffffffff823d9000 1a66     iic.ko
>>> > 53    1 0xffffffff823db000 1e04     iicbb.ko
>>> > 54    1 0xffffffff823dd000 296c     radeonkmsfw_ARUBA_pfp.ko
>>> > 55    1 0xffffffff823e0000 2972     radeonkmsfw_ARUBA_me.ko
>>> > 56    1 0xffffffff823e3000 1f71     radeonkmsfw_ARUBA_rlc.ko
>>> > ---------------------------------------------
>>> >
>>> > --
>>> >   l k
>>> >   lukek@fastmail.fm
>>> > _______________________________________________
>>> > freebsd-wireless@freebsd.org mailing list
>>> > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
>>> > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmokO-ZEF5dgaW7AaH_TJWZcYndL3DeR8xkipBpbazD7Bkg>