pfSense Support Subscription

Author Topic: AR9287 wireless card not recognized in 2.0  (Read 2168 times)

0 Members and 1 Guest are viewing this topic.

Offline nlopez

  • Newbie
  • *
  • Posts: 3
    • View Profile
AR9287 wireless card not recognized in 2.0
« on: October 19, 2011, 11:50:41 am »
Hello guys,

I have a fresh installed box running 2.0 and I have encountered a problem getting my Atheros AR9287 Half-Mini wireless card to work. I have been searching on the forums but did not find anything regarding this particular model. The card is not recognized. I tested the card with a CentOS Live CD just to check performance and status and works perfect.

I saw that the Atheros chipset is supported by 2.0 in https://docs.google.com/spreadsheet/ccc?key=0AojFUXcbH0ROdHgwYkFHbkRUdV9hVWljVWl5SXkxbFE&hl=en line 4.

I can't find the ath module in /boot/kernel or /boot/modules and I don't see the module loaded either.

Any ideas?

Thank you in advance!!

Here's my info:
Code: [Select]
$ kldstat
Id Refs Address    Size     Name
 1    1 0xc0400000 11796f4  kernel

Code: [Select]
$ pciconf -lv
hostb0@pci0:0:0:0: class=0x060000 card=0xa0008086 chip=0xa0008086 rev=0x02 hdr=0x00
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0: class=0x030000 card=0xa0018086 chip=0xa0018086 rev=0x02 hdr=0x00
    class      = display
    subclass   = VGA
vgapci1@pci0:0:2:1: class=0x038000 card=0xa0018086 chip=0xa0028086 rev=0x02 hdr=0x00
    class      = display
none0@pci0:0:27:0: class=0x040300 card=0x27d88086 chip=0x27d88086 rev=0x02 hdr=0x00
    class      = multimedia
    subclass   = HDA
pcib1@pci0:0:28:0: class=0x060400 card=0x27d08086 chip=0x27d08086 rev=0x02 hdr=0x01
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:28:1: class=0x060400 card=0x27d28086 chip=0x27d28086 rev=0x02 hdr=0x01
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:28:2: class=0x060400 card=0x27d48086 chip=0x27d48086 rev=0x02 hdr=0x01
    class      = bridge
    subclass   = PCI-PCI
uhci0@pci0:0:29:0: class=0x0c0300 card=0x27c88086 chip=0x27c88086 rev=0x02 hdr=0x00
    class      = serial bus
    subclass   = USB
uhci1@pci0:0:29:1: class=0x0c0300 card=0x27c98086 chip=0x27c98086 rev=0x02 hdr=0x00
    class      = serial bus
    subclass   = USB
uhci2@pci0:0:29:2: class=0x0c0300 card=0x27ca8086 chip=0x27ca8086 rev=0x02 hdr=0x00
    class      = serial bus
    subclass   = USB
uhci3@pci0:0:29:3: class=0x0c0300 card=0x27cb8086 chip=0x27cb8086 rev=0x02 hdr=0x00
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:29:7: class=0x0c0320 card=0x27cc0010 chip=0x27cc8086 rev=0x02 hdr=0x00
    class      = serial bus
    subclass   = USB
pcib4@pci0:0:30:0: class=0x060401 card=0x24488086 chip=0x24488086 rev=0xe2 hdr=0x01
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0: class=0x060100 card=0x27bc8086 chip=0x27bc8086 rev=0x02 hdr=0x00
    class      = bridge
    subclass   = PCI-ISA
atapci0@pci0:0:31:2: class=0x01018a card=0x27c08086 chip=0x27c08086 rev=0x02 hdr=0x00
    class      = mass storage
    subclass   = ATA
none1@pci0:0:31:3: class=0x0c0500 card=0x27da8086 chip=0x27da8086 rev=0x02 hdr=0x00
    class      = serial bus
    subclass   = SMBus
re0@pci0:1:0:0: class=0x020000 card=0x816810ec chip=0x816810ec rev=0x03 hdr=0x00
    class      = network
    subclass   = ethernet
re1@pci0:2:0:0: class=0x020000 card=0x816810ec chip=0x816810ec rev=0x03 hdr=0x00
    class      = network
    subclass   = ethernet
none2@pci0:3:0:0: class=0x028000 card=0x30a4168c chip=0x002e168c rev=0x01 hdr=0x00
    class      = network
vr0@pci0:4:5:0: class=0x020000 card=0x14061186 chip=0x31061106 rev=0x86 hdr=0x00
    class      = network
    subclass   = ethernet

Code: [Select]
$ dmesg
Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.1-RELEASE-p4 #0: Tue Sep 13 16:58:57 EDT 2011
    root@FreeBSD_8.0_pfSense_2.0-snaps.pfsense.org:/usr/obj./usr/pfSensesrc/src/sys/pfSense_SMP.8 i386
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Atom(TM) CPU D525   @ 1.80GHz (1799.99-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x106ca  Family = 6  Model = 1c  Stepping = 10
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x40e31d<SSE3,DTES64,MON,DS_CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE>
  AMD Features=0x20100000<NX,LM>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant
real memory  = 2147483648 (2048 MB)
avail memory = 2071658496 (1975 MB)
ACPI APIC Table: <111010 APIC1115>
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 HTT threads
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP/HT): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP/HT): APIC ID:  3
ioapic0: Changing APIC ID to 4
ioapic0 <Version 2.0> irqs 0-23 on motherboard
netisr_init: forcing maxthreads to 1 and bindthreads to 0 for device polling
wpi: You need to read the LICENSE file in /usr/share/doc/legal/intel_wpi/.
wpi: If you agree with the license, set legal.intel_wpi.license_ack=1 in /boot/loader.conf.
module_register_init: MOD_LOAD (wpi_fw, 0xc0988330, 0) error 1
ipw_bss: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
ipw_bss: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
module_register_init: MOD_LOAD (ipw_bss_fw, 0xc0789370, 0) error 1
ipw_ibss: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
ipw_ibss: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
module_register_init: MOD_LOAD (ipw_ibss_fw, 0xc0789410, 0) error 1
ipw_monitor: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw/.
ipw_monitor: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
module_register_init: MOD_LOAD (ipw_monitor_fw, 0xc07894b0, 0) error 1
wlan: mac acl policy registered
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
padlock0: No ACE support.
acpi0: <111010 XSDT1115> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of ffc00000, 300000 (3) failed
acpi0: reservation of fee00000, 1000 (3) failed
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 7f600000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0xbc00-0xbc07 mem 0xfe680000-0xfe6fffff,0xd0000000-0xdfffffff,0xfe700000-0xfe7fffff irq 16 at device 2.0 on pci0
agp0: <Intel Pineview SVGA controller> on vgapci0
agp0: detected 8188k stolen memory
agp0: aperture size is 256M
vgapci1: <VGA-compatible display> mem 0xfe580000-0xfe5fffff at device 2.1 on pci0
pci0: <multimedia, HDA> at device 27.0 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci1: <ACPI PCI bus> on pcib1
re0: <RealTek 8168/8111 B/C/CP/D/DP/E PCIe Gigabit Ethernet> port 0xc800-0xc8ff mem 0xfe8df000-0xfe8dffff,0xfdefc000-0xfdefffff irq 16 at device 0.0 on pci1
re0: Using 1 MSI messages
re0: Chip rev. 0x28000000
re0: MAC rev. 0x00000000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
re0: [FILTER]
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.1 on pci0
pci2: <ACPI PCI bus> on pcib2
re1: <RealTek 8168/8111 B/C/CP/D/DP/E PCIe Gigabit Ethernet> port 0xd800-0xd8ff mem 0xfe9df000-0xfe9dffff,0xfdffc000-0xfdffffff irq 17 at device 0.0 on pci2
re1: Using 1 MSI messages
re1: Chip rev. 0x28000000
re1: MAC rev. 0x00000000
miibus1: <MII bus> on re1
rgephy1: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus1
rgephy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
re1: [FILTER]
pcib3: <ACPI PCI-PCI bridge> irq 18 at device 28.2 on pci0
pci3: <ACPI PCI bus> on pcib3
pci3: <network> at device 0.0 (no driver attached)
uhci0: <Intel 82801G (ICH7) USB controller USB-A> port 0xb880-0xb89f irq 23 at device 29.0 on pci0
uhci0: [ITHREAD]
uhci0: LegSup = 0x2f00
usbus0: <Intel 82801G (ICH7) USB controller USB-A> on uhci0
uhci1: <Intel 82801G (ICH7) USB controller USB-B> port 0xb800-0xb81f irq 19 at device 29.1 on pci0
uhci1: [ITHREAD]
uhci1: LegSup = 0x2f00
usbus1: <Intel 82801G (ICH7) USB controller USB-B> on uhci1
uhci2: <Intel 82801G (ICH7) USB controller USB-C> port 0xb480-0xb49f irq 18 at device 29.2 on pci0
uhci2: [ITHREAD]
uhci2: LegSup = 0x2f00
usbus2: <Intel 82801G (ICH7) USB controller USB-C> on uhci2
uhci3: <Intel 82801G (ICH7) USB controller USB-D> port 0xb400-0xb41f irq 16 at device 29.3 on pci0
uhci3: [ITHREAD]
uhci3: LegSup = 0x2f00
usbus3: <Intel 82801G (ICH7) USB controller USB-D> on uhci3
ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0xfe677c00-0xfe677fff irq 23 at device 29.7 on pci0
ehci0: [ITHREAD]
usbus4: EHCI version 1.0
usbus4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci4: <ACPI PCI bus> on pcib4
vr0: <VIA VT6105 Rhine III 10/100BaseTX> port 0xe800-0xe8ff mem 0xfebefc00-0xfebefcff irq 21 at device 5.0 on pci4
vr0: Quirks: 0x0
vr0: Revision: 0x86
miibus2: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus2
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: [ITHREAD]
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH7 SATA300 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff90-0xff9f at device 31.2 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_button0: <Power Button> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: parallel port not found.
p4tcc0: <CPU Frequency Thermal Control> on cpu0
p4tcc1: <CPU Frequency Thermal Control> on cpu1
p4tcc2: <CPU Frequency Thermal Control> on cpu2
p4tcc3: <CPU Frequency Thermal Control> on cpu3
Timecounters tick every 1.000 msec
IPsec: Initialized Security Association Processing.
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 12Mbps Full Speed USB v1.0
usbus4: 480Mbps High Speed USB v2.0
ad0: 29579MB <STT FTM32G525V 110323> at ata0-master UDMA100 SATA
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
ugen2.1: <Intel> at usbus2ugen1.1: <Intel> at usbus1ugen0.1: <Intel> at usbus0ugen3.1: <Intel> at usbus3

uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen4.1: <Intel> at usbus4
uhub4: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
Root mount waiting for: usbus4 usbus3 usbus2 usbus1 usbus0
uhub1: 2 ports with 2 removable, self powered
uhub0: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
Root mount waiting for: usbus4
Root mount waiting for: usbus4
Root mount waiting for: usbus4
uhub4: 8 ports with 8 removable, self powered
Trying to mount root from ufs:/dev/ad0s1a
pflog0: promiscuous mode enabled
re1: link state changed to DOWN
vr0: link state changed to DOWN


« Last Edit: October 19, 2011, 12:03:51 pm by nlopez »

Offline wallabybob

  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
Re: AR9287 wireless card not recognized in 2.0
« Reply #1 on: October 19, 2011, 04:54:41 pm »
I can't find the ath module in /boot/kernel or /boot/modules and I don't see the module loaded either.
You won't. Just about all necessary drivers are built into the pfSense kernel.

The AR9287 appears in the pciconf output:
Code: [Select]
$ pciconf -lv

none2@pci0:3:0:0: class=0x028000 card=0x30a4168c chip=0x002e168c rev=0x01 hdr=0x00
    class      = network
and in the dmesg output:
Code: [Select]

pci3: <ACPI PCI bus> on pcib3
pci3: <network> at device 0.0 (no driver attached)

The kernel doesn't include any driver prepared to claim the AR9287 card in your system. Maybe one of the pfSense developers can account for this. (Perhaps sometime in the pfSense 2.0 development cycle they reverted to an earlier version of the driver to work around a reported problem and neglected to check the support statement.)

You might be able to get your card working by copying the ath driver (if_ath.ko) from a stock FreeBSD 8.1 install to the appropriate place on your pfSystem system, then loading it into the kernel. If that works (ifconfig shows an ath interface, you can add it and configure it in pfSense etc) then you should add the line
Quote
if_ath_load="YES"
to /boot/loader.conf.local (creating it if it doesn't exist) so the driver gets loaded automatically on reboot.

Offline nlopez

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: AR9287 wireless card not recognized in 2.0
« Reply #2 on: October 21, 2011, 08:49:09 am »
You might be able to get your card working by copying the ath driver (if_ath.ko) from a stock FreeBSD 8.1 install to the appropriate place on your pfSystem system, then loading it into the kernel.

wallabybob, Thank you for your reply, I'm going to try this one today and post back the results.

Offline nlopez

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: AR9287 wireless card not recognized in 2.0
« Reply #3 on: October 21, 2011, 10:40:04 am »
wallabybob,

Just tried the approach you suggested but had no luck ... I found this http://forums.freebsd.org/archive/index.php/t-14998.html on the archives of the FreeBSD forums and this guys is having the same problem. He suggested to recompile the kernel taking out the ath driver from the kernel compilation and then using the kld* tools ... not sure if it's worth the hassle  :-\ ... I've seen in the forums that the AR9285 works like a charm  ::) ... I'm going to try with previous versions and keep crawling the forums and see what's up ...

Offline wallabybob

  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
Re: AR9287 wireless card not recognized in 2.0
« Reply #4 on: October 22, 2011, 05:28:46 pm »
Can you elaborate on "no luck":  From the link I suspect when you tried to kldload  if_ath kldload reported "Module already loaded" Correct?

Initially I suspected that loading a kernel module for a device driver that was already present in the kernel was unlikely to succeed but other forum reader have reported they have successfully done so. I thought it worth a try.