View previous topic :: View next topic |
Author |
Message |
Logomachist n00b

Joined: 02 Jun 2014 Posts: 37 Location: PA, USA
|
Posted: Thu Jun 19, 2014 9:00 pm Post subject: Wireless not working with AR9285 wireless chip. |
|
|
This is my first time installing Gentoo and I can't get my wireless to work. I've talked to some people on #gentoo and while they've tried to help me no one has been able to fix it.
I've recompiled the kernel multiple times with different settings to no avail. I'm pretty sure I have the right drivers, that was one thing we double-checked.
Anyone here willing to give it a shot? I'm running Gentoo hardened if that matters. And my wireless card is AR9285 Wireless Network Adapter (PCI-Express).
Running "wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf" results in:
Quote: | Successfully initialized wpa_supplicant
Could not read interface wlp2s0 flags: No such device
WEXT: Could not set interface 'wlp2s0' UP
wlp2s0: Failed to initialize driver interface |
|
|
Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Jun 19, 2014 10:40 pm Post subject: Re: Wireless not working with AR9285 wireless chip. |
|
|
Logomachist ...
try:
Code: | # wpa_supplicant -Dnl80211 -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf |
If this fails then add '-d -f /var/log/wpa_supplicant.log' and pastebin the log.
Also pastebin/post your wpa_supplicant.conf (removing psk) ...
best ... khay |
|
Back to top |
|
 |
Logomachist n00b

Joined: 02 Jun 2014 Posts: 37 Location: PA, USA
|
Posted: Fri Jun 20, 2014 12:50 am Post subject: Re: Wireless not working with AR9285 wireless chip. |
|
|
khayyam wrote: | try:
Code: | # wpa_supplicant -Dnl80211 -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf |
|
That results in: http://pastebin.com/BzDu0EbG
Quote: | If this fails then add '-d -f /var/log/wpa_supplicant.log' and pastebin the log. |
http://pastebin.com/pZ6QA3n3
Quote: | Also pastebin/post your wpa_supplicant.conf (removing psk) ... |
http://pastebin.com/2TAnQXn2 |
|
Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Jun 20, 2014 1:56 am Post subject: |
|
|
Code: | Could not open file /sys/class/net/wlp2s0/phy80211/name: No such file or directory |
Logomachist ... this suggests your missing something from the kernel, or the device isn't wlp2s0. Please provide the output of the following:
Code: | # ifconfig -a
# dmesg | grep ath9k
# awk '/(ATH9K|WEXT|(MAC|CFG|NL)80211)/' /usr/src/linux/.config |
best ... khay |
|
Back to top |
|
 |
Logomachist n00b

Joined: 02 Jun 2014 Posts: 37 Location: PA, USA
|
Posted: Fri Jun 20, 2014 10:09 pm Post subject: Something in the kernel missing, or the device isn't wlp2s0? |
|
|
ifconfig -a
Quote: | enp1s0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether e0:cb:4e:5a:ed:c7 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 56 bytes 3752 (3.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 56 bytes 3752 (3.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sit0: flags=128<NOARP> mtu 1480
sit txqueuelen 0 (IPv6-in-IPv4)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
dmesg | grep ath9k
Quote: | [ 9.290766] ath9k 0000:02:00.0: Failed to initialize device
[ 9.290942] ath9k: probe of 0000:02:00.0 failed with error -2 |
awk '/(ATH9K|WEXT|(MAC|CFG|NL)80211)/' /usr/src/linux/.config
Quote: | CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_CFG80211=y
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
# CONFIG_CFG80211_REG_DEBUG is not set
# CONFIG_CFG80211_CERTIFICATION_ONUS is not set
CONFIG_CFG80211_DEFAULT_PS=y
# CONFIG_CFG80211_DEBUGFS is not set
# CONFIG_CFG80211_INTERNAL_REGDB is not set
CONFIG_CFG80211_WEXT=y
CONFIG_MAC80211=y
# CONFIG_MAC80211_RC_PID is not set
# CONFIG_MAC80211_RC_MINSTREL is not set
CONFIG_MAC80211_RC_DEFAULT=""
# CONFIG_MAC80211_MESH is not set
CONFIG_MAC80211_LEDS=y
# CONFIG_MAC80211_DEBUGFS is not set
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not set
# CONFIG_MAC80211_HWSIM is not set
CONFIG_ATH9K_HW=m
CONFIG_ATH9K_COMMON=m
# CONFIG_ATH9K_BTCOEX_SUPPORT is not set
CONFIG_ATH9K=m
CONFIG_ATH9K_PCI=y
# CONFIG_ATH9K_AHB is not set
# CONFIG_ATH9K_DEBUGFS is not set
CONFIG_ATH9K_LEGACY_RATE_CONTROL=y
CONFIG_ATH9K_RFKILL=y
# CONFIG_ATH9K_HTC is not set |
|
|
Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Jun 20, 2014 11:24 pm Post subject: Re: Something in the kernel missing, or the device isn't wlp |
|
|
Logomachist wrote: | [ 9.290766] ath9k 0000:02:00.0: Failed to initialize device |
Logomachist ... that is the pci device initialisation failing. I should have asked you to pastebin the entire kernel config as I suspect PCI_MSI is disabled (though thats somewhat of a guess on my part). Also, have you checked the BIOS/firmware for anything PCI related?
So, the following should provide a clearer picture:
Code: | # emerge wgetpaste
# wgetpaste /usr/src/linux/.config # paste the URL here |
It might also be a good idea to get the lines prior to the above in dmesg (I should have limited my grep to 'ath') ...
Actually, pastebin the whole dmesg ...
Code: | # dmesg | wgetpaste |
best ... khay |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 47130 Location: 56N 3W
|
Posted: Sat Jun 21, 2014 10:01 am Post subject: |
|
|
khayyam,
Heh ... you can't work through a keyhole _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
Logomachist n00b

Joined: 02 Jun 2014 Posts: 37 Location: PA, USA
|
Posted: Sat Jun 21, 2014 11:21 am Post subject: My dmesg and .config files |
|
|
khayyam wrote: | Logomachist ... that is the pci device initialisation failing. I should have asked you to pastebin the entire kernel config as I suspect PCI_MSI is disabled (though thats somewhat of a guess on my part). |
http://dpaste.com/214X644
Quote: | Also, have you checked the BIOS/firmware for anything PCI related? |
Emerging Linux firmware was the last thing I did (as part of a last ditch attempt to fix my wireless) before turning to this forum. Besides that? Nah, not that I know of.
Quote: | Code: | # emerge wgetpaste
# wgetpaste /usr/src/linux/.config # paste the URL here |
|
I hope you don't mind me manually posting to dpaste, it's currently more convenient than than using wgetpaste... no easy Internet access for my laptop.
Quote: | It might also be a good idea to get the lines prior to the above in dmesg (I should have limited my grep to 'ath') ... |
Quote: | Code: | # dmesg | wgetpaste |
|
http://dpaste.com/3M0R298 |
|
Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat Jun 21, 2014 12:03 pm Post subject: |
|
|
Logomachist ... here is the issue ...
Code: | [ 9.283270] ieee80211 phy0: Failed to select rate control algorithm
[ 9.283283] ieee80211 phy0: Failed to initialize rate control algorithm |
... no rate control is enabled ...
Code: | # CONFIG_MAC80211_RC_PID is not set
# CONFIG_MAC80211_RC_MINSTREL is not set |
This should be set to minstrel (afaik, that should be the default for ath9k).
Networking => Wireless => Default rate control algorithm
NeddySeagoon wrote: | Heh ... you can't work through a keyhole |
I'm playing "what the buttler saw" :)
best ... khay |
|
Back to top |
|
 |
Logomachist n00b

Joined: 02 Jun 2014 Posts: 37 Location: PA, USA
|
Posted: Sun Jun 22, 2014 4:12 am Post subject: 'reenabled the kernel options but wireless is still offline. |
|
|
khayyam wrote: | Logomachist ... here is the issue ...
Code: | [ 9.283270] ieee80211 phy0: Failed to select rate control algorithm
[ 9.283283] ieee80211 phy0: Failed to initialize rate control algorithm |
... no rate control is enabled ...
Code: | # CONFIG_MAC80211_RC_PID is not set
# CONFIG_MAC80211_RC_MINSTREL is not set |
This should be set to minstrel (afaik, that should be the default for ath9k). |
I think I disabled that during the troubleshooting process. We were worried about a non-ath9k driver conflicting with the driver we wanted and I was told to disable everything but ath9k. And when I was told to disable "everything" I might have taken it a bit too far. Anyway I reenabled the two kernel options and recompiled.
To my chagrin the wireless is still offline. |
|
Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sun Jun 22, 2014 12:41 pm Post subject: Re: 'reenabled the kernel options but wireless is still offl |
|
|
Logomachist wrote: | To my chagrin the wireless is still offline. |
Logomachist ... yes, but unless you provide information as to why I can only speculate. Atheros are very well supported, and the AR9285 is listed as supported by the ath9k driver, so its either a configuration issue, or something in the bios/firmware is preventing the driver from initialising the card.
If you pastebin the dmesg and wpa_supplicant.log with minstral enabled then we should see why its currently failing.
best ... khay |
|
Back to top |
|
 |
Logomachist n00b

Joined: 02 Jun 2014 Posts: 37 Location: PA, USA
|
|
Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Jun 23, 2014 2:01 am Post subject: Re: dmesg and wpa_supplicant.log |
|
|
Logomarchist ... you're booting same kernel as the dmesg you posted previously ... note the build #{N} and build time.
07:06 June 21st:
Code: | Linux version 3.12.21-gentoo-r1 (root@Synergy) (gcc version 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ) #4 SMP Wed Jun 18 17:03:17 EDT 2014 |
20:10 June 22nd:
Code: | Linux version 3.12.21-gentoo-r1 (root@Synergy) (gcc version 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ) #4 SMP Wed Jun 18 17:03:17 EDT 2014 |
Anyhow, I now notice your using systemd and so I'll decline to provide further support.
best ... khay |
|
Back to top |
|
 |
Logomachist n00b

Joined: 02 Jun 2014 Posts: 37 Location: PA, USA
|
Posted: Mon Jun 23, 2014 3:28 am Post subject: dmesg and wpa_supplicant.log, corrected |
|
|
I just realized that I posted dmesg twice instead of wpa_supplicant.log.
Here's the correct wpa_supplicant.log:
http://dpaste.com/23416PY
As for not compiling the kernel since Jun 18 that's another mistake. I didn't run after recompiling the kernel. Here is the correct dmesg
Quote: | Anyhow, I now notice your using systemd and so I'll decline to provide further support. |
Systemd not your specialty, huh? Well thanks for the support you've provided so far! |
|
Back to top |
|
 |
|