[SOLVED] Asus PCE-AC51 WLAN adapter driver doesn't install properly
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Asus PCE-AC51 WLAN adapter driver doesn't install properly
Hello,
I bought new WLAN adapter today. It's type is ASUS PCE-AC51. I have managed to get connections in place but I can't install drivers. I have copied Linux driver folder from CD that came with adapter. Following error happens each time I try to run install.sh:
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
tar: Vanha valitsin ”f” vaatii argumentin.
Kokeile ”tar --help” tai ”tar --usage” saadaksesi lisää tietoa.
clean
core
hal
ifcfg-wlan0
include
Kconfig
Makefile
os_dep
platform
runwpa
wlan0dhcp
install.sh: rivi 25: cd: clean: Ei ole hakemisto
Authentication requested [root] for make clean:
Salasana:
#make -C /lib/modules/4.10.0-42-generic/build M=/home/kkoistinen74/linux_driver/driver clean
cd hal ; rm -fr */*/*/*.mod.c */*/*/*.mod */*/*/*.o */*/*/.*.cmd */*/*/*.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
Authentication requested [root] for make driver:
Salasana:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.10.0-42-generic/build M=/home/kkoistinen74/linux_driver/driver modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-42-generic'
CC [M] /home/kkoistinen74/linux_driver/driver/core/rtw_cmd.o
CC [M] /home/kkoistinen74/linux_driver/driver/core/rtw_security.o
CC [M] /home/kkoistinen74/linux_driver/driver/core/rtw_debug.o
/home/kkoistinen74/linux_driver/driver/core/rtw_debug.c: In function ‘dump_drv_version’:
/home/kkoistinen74/linux_driver/driver/core/rtw_debug.c:50:62: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
^
/home/kkoistinen74/linux_driver/driver/core/rtw_debug.c:50:62: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/home/kkoistinen74/linux_driver/driver/core/rtw_debug.c:50:62: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/home/kkoistinen74/linux_driver/driver/core/rtw_debug.c:50:62: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/home/kkoistinen74/linux_driver/driver/core/rtw_debug.o' failed
make[2]: *** [/home/kkoistinen74/linux_driver/driver/core/rtw_debug.o] Error 1
Makefile:1524: recipe for target '_module_/home/kkoistinen74/linux_driver/driver' failed
make[1]: *** [_module_/home/kkoistinen74/linux_driver/driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-42-generic'
Makefile:1839: recipe for target 'modules' failed
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
The same happens with updated driver I downloaded from ASUS web site. Any ideas how to proceed?
Script didn't do anything so I suppose I am on safe waters. Here's output of information you requested.
4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8812AE 802.11ac PCIe Wireless Network Adapter [10ec:8812] (rev 01)
Subsystem: ASUSTeK Computer Inc. RTL8812AE 802.11ac PCIe Wireless Network Adapter [1043:86dd]
Kernel driver in use: rtl8821ae
Kernel modules: rtl8821ae
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:8554]
Kernel driver in use: r8169
Kernel modules: r8169
[ 0.237072] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.243692] acpi PNP0A03:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[ 3.113467] usb 1-4: Product: 802.11n WLAN Adapter
[ 19.092300] audit: type=1400 audit(1513253338.267:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=550 comm="apparmor_parser"
[ 19.092301] audit: type=1400 audit(1513253338.267:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=550 comm="apparmor_parser"
[ 19.092302] audit: type=1400 audit(1513253338.267:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=550 comm="apparmor_parser"
[ 19.092303] audit: type=1400 audit(1513253338.267:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=550 comm="apparmor_parser"
[ 19.507809] rtl8821ae: Using firmware rtlwifi/rtl8812aefw.bin
[ 19.507813] rtl8821ae: Using firmware rtlwifi/rtl8812aefw_wowlan.bin
[ 19.559572] rtl8821ae 0000:03:00.0: Direct firmware load for rtlwifi/rtl8812aefw_wowlan.bin failed with error -2
[ 19.559579] rtlwifi: Selected firmware is not available
[ 19.559612] rtl8821ae 0000:03:00.0: Direct firmware load for rtlwifi/rtl8812aefw.bin failed with error -2
[ 19.559613] rtlwifi: Selected firmware is not available
[ 20.342291] rtl8821ae 0000:03:00.0 wlp3s0: renamed from wlan0
[ 20.808992] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[ 20.813968] rtl8192cu 1-4:1.0 wlxac9e175c8341: renamed from wlan0
Dec 14 13:38:31 pernarutto ureadahead[279]: ureadahead:/var/lib/NetworkManager/dhclient-wlxac9e175c8341.conf:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
I used USB Wlan adapter for a while today as it seems my motherboard is rather tight for PCIE devices. I pushed it in and now everything works properly and this information is without USB wlan device. Just thought you ought to know. sudo cat /var/log/syslog | grep -Ei 'net|wpa|dhc' gave so much output as result that it cannot be published here (message length is too big).
Regards
Kimmo
Last edited by kkoistinen; 12-14-2017 at 07:46 AM.
4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8812AE 802.11ac PCIe Wireless Network Adapter [10ec:8812] (rev 01)
Subsystem: ASUSTeK Computer Inc. RTL8812AE 802.11ac PCIe Wireless Network Adapter [1043:86dd]
Kernel driver in use: rtl8821ae
Kernel modules: rtl8821ae
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:8554]
Kernel driver in use: r8169
Kernel modules: r8169
[ 0.237072] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.243692] acpi PNP0A03:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[ 3.113467] usb 1-4: Product: 802.11n WLAN Adapter
[ 19.092300] audit: type=1400 audit(1513253338.267:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=550 comm="apparmor_parser"
[ 19.092301] audit: type=1400 audit(1513253338.267:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=550 comm="apparmor_parser"
[ 19.092302] audit: type=1400 audit(1513253338.267:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=550 comm="apparmor_parser"
[ 19.092303] audit: type=1400 audit(1513253338.267:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=550 comm="apparmor_parser"
[ 19.507809] rtl8821ae: Using firmware rtlwifi/rtl8812aefw.bin
[ 19.507813] rtl8821ae: Using firmware rtlwifi/rtl8812aefw_wowlan.bin
[ 19.559572] rtl8821ae 0000:03:00.0: Direct firmware load for rtlwifi/rtl8812aefw_wowlan.bin failed with error -2
[ 19.559579] rtlwifi: Selected firmware is not available
[ 19.559612] rtl8821ae 0000:03:00.0: Direct firmware load for rtlwifi/rtl8812aefw.bin failed with error -2
[ 19.559613] rtlwifi: Selected firmware is not available
[ 20.342291] rtl8821ae 0000:03:00.0 wlp3s0: renamed from wlan0
[ 20.808992] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[ 20.813968] rtl8192cu 1-4:1.0 wlxac9e175c8341: renamed from wlan0
Dec 14 13:38:31 pernarutto ureadahead[279]: ureadahead:/var/lib/NetworkManager/dhclient-wlxac9e175c8341.conf:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
next time also include the command that produced the output!
the problem is quite clear.
you already have the proper driver, but the firmware isn't:
Code:
[ 19.507809] rtl8821ae: Using firmware rtlwifi/rtl8812aefw.bin
[ 19.507813] rtl8821ae: Using firmware rtlwifi/rtl8812aefw_wowlan.bin
[ 19.559572] rtl8821ae 0000:03:00.0: Direct firmware load for rtlwifi/rtl8812aefw_wowlan.bin failed with error -2
[ 19.559579] rtlwifi: Selected firmware is not available
[ 19.559612] rtl8821ae 0000:03:00.0: Direct firmware load for rtlwifi/rtl8812aefw.bin failed with error -2
[ 19.559613] rtlwifi: Selected firmware is not available
[ 20.342291] rtl8821ae 0000:03:00.0 wlp3s0: renamed from wlan0
[ 20.808992] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[ 20.813968] rtl8192cu 1-4:1.0 wlxac9e175c8341: renamed from wlan0
you need to fix that.
do the files rtlwifi/rtl8812ae* exist? i think it's in /usr/lib/firmware?
maybe you need to install some *firmware-nonfree package?
if that doesn't help, we'll also need
Quote:
sudo cat /var/log/syslog | grep -Ei 'net|wpa|dhc' gave so much output as result that it cannot be published here (message length is too big).
kkoistinen74@kotikone:~$ dmesg|grep -Ei 'wlan|firmw|dhc'
[ 0.222654] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.223675] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[ 0.223794] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[ 0.223934] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[ 0.227966] acpi PNP0A03:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[ 1.384435] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[ 8.310573] rtl8821ae: Using firmware rtlwifi/rtl8812aefw.bin
[ 8.310578] rtl8821ae: Using firmware rtlwifi/rtl8812aefw_wowlan.bin
[ 8.461799] rtl8821ae 0000:03:00.0: Direct firmware load for rtlwifi/rtl8812aefw_wowlan.bin failed with error -2
[ 8.461804] rtlwifi: Firmware rtlwifi/rtl8812aefw.bin not available
[ 8.461812] rtl8821ae 0000:03:00.0: Direct firmware load for rtlwifi/rtl8812aefw.bin failed with error -2
[ 8.461813] rtlwifi: Firmware rtlwifi/rtl8812aefw.bin not available
[ 11.567832] rtl8821ae 0000:03:00.0 wlp3s0: renamed from wlan0
[ 11.684400] audit: type=1400 audit(1513460125.836:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=639 comm="apparmor_parser"
[ 11.684409] audit: type=1400 audit(1513460125.836:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=639 comm="apparmor_parser"
[ 11.684413] audit: type=1400 audit(1513460125.836:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=639 comm="apparmor_parser"
[ 11.684417] audit: type=1400 audit(1513460125.836:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=639 comm="apparmor_parser"
kkoistinen74@kotikone:~$
Code:
kkoistinen74@kotikone:~$ sudo rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
It seems that result from
Code:
sudo cat /var/log/syslog | grep -Ei 'net|wpa|dhc'
is an error (in Debian pastezone):
Request Entity Too Large
The requested resource
/
does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.
I also checked through Software & Updates / Additional Drivers and there's "Unknown:Unknown" device, "This device is not working" and there's an option to "Using Processor microcode firmware for AMD CPUs from amd64-microcode (proprietary). I tried to use it last time but apparently it didn't work.
rtl8812ae_fw.bin is in directory /lib/firmware/rtl_bt/rtl8812ae_fw.bin
Thank you very much for helping me out.
Last edited by kkoistinen; 12-16-2017 at 04:10 PM.
it still seems to be the same problem; look at the relevant parts of dmesg output!
it seems the driver is looking for differently named files, and not just one but two.
is the firmware-realtek package installed?
Got it. I installed firmware-realtek from Debian source but problem remains the same. Installing through the terminal gives following information:
Code:
kkoistinen74@kotikone:~$ sudo apt-get install firmware-realtek
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package firmware-realtek is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'firmware-realtek' has no installation candidate
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
Git is a revision system. It's super easy to use. But you have to install it and read the documents. It's a bit to variable and complex for a forum post.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.