[SOLVED] ASUS USB wifi adapter installation

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
lapsana
Posts: 12
Joined: 2021-10-14 13:06

[SOLVED] ASUS USB wifi adapter installation

#1 Post by lapsana »

Hi everyone,
I recently opened a thread about my wifi connection being unstable/really slow/not working. For various reasons, I have decided to try to connect to the wifi through a wifi USB adapter instead. I bought ASUS USB-N13 | Wireless-N300 adapter after checking it's compatible with Linux. I encountered errors during the driver's installation.

Here's a copy of the steps I followed to try to install the linux driver for this USB wireless adapter :

Code: Select all

root@asus:/home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01# chmod +x install.sh
root@asus:/home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01# sh install.sh
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
	rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01.tar.gz
rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/
rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/core/
rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/core/mesh/
rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/core/mesh/rtw_mesh_pathtbl.c

[... I'm suppressing lines here because it seems to me they're just about the decompression going ok and it's 20 pages long]

rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/os_dep/osdep_service.c
rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01
Authentication requested [root] for make clean:
install.sh: 38: [: unexpected operator
#make -C /lib/modules/5.10.0-10-amd64/build M=/home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01/driver/rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01 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 ; 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:
install.sh: 48: [: unexpected operator
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.0-10-amd64/build M=/home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01/driver/rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01  modules
make[1] : on entre dans le répertoire « /usr/src/linux-headers-5.10.0-10-amd64 »
  CC [M]  /home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01/driver/rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/core/rtw_cmd.o
In file included from /home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01/driver/rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/include/drv_types.h:75,
                 from /home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01/driver/rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/core/rtw_cmd.c:17:
/home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01/driver/rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
  252 | struct sha256_state {
      |        ^~~~~~~~~~~~
In file included from /usr/src/linux-headers-5.10.0-10-common/include/linux/filter.h:24,
                 from /usr/src/linux-headers-5.10.0-10-common/include/net/sock.h:59,
                 from /usr/src/linux-headers-5.10.0-10-common/include/linux/tcp.h:19,
                 from /usr/src/linux-headers-5.10.0-10-common/include/linux/ipv6.h:87,
                 from /usr/src/linux-headers-5.10.0-10-common/include/net/addrconf.h:50,
                 from /home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01/driver/rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/include/osdep_service_linux.h:49,
                 from /home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01/driver/rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/include/osdep_service.h:53,
                 from /home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01/driver/rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/include/drv_types.h:27,
                 from /home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01/driver/rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/core/rtw_cmd.c:17:
/usr/src/linux-headers-5.10.0-10-common/include/crypto/sha.h:84:8: note: originally defined here
   84 | struct sha256_state {
      |        ^~~~~~~~~~~~
make[3]: *** [/usr/src/linux-headers-5.10.0-10-common/scripts/Makefile.build:285 : /home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01/driver/rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01/core/rtw_cmd.o] Erreur 1
make[2]: *** [/usr/src/linux-headers-5.10.0-10-common/Makefile:1846 : /home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01/driver/rtl8192FU_rtl8725AU_WiFi_linux_v5.8.6_33905.20190604_COEX20190509-0d01] Erreur 2
make[1]: *** [/usr/src/linux-headers-5.10.0-10-common/Makefile:185 : __sub-make] Erreur 2
make[1] : on quitte le répertoire « /usr/src/linux-headers-5.10.0-10-amd64 »
make: *** [Makefile:2327 : modules] Erreur 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
root@asus:/home/gekko/Documents/ASUS_USB-N13_C1_20191031/Linux/RTL8192FU_RTL8725AU_linux_v5.8.6_33905.20190604_COEX20190509-0d01# 
I did

Code: Select all

lsusb
which shows the kernel sees the usb wireless adapter :

Code: Select all

lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 322e:202c Sonix Technology Co., Ltd. USB2.0 HD UVC WebCam
Bus 001 Device 005: ID 0b05:18f1 ASUSTek Computer, Inc. 802.11n  WLAN Adapter
Bus 001 Device 004: ID 8564:1000 Transcend Information, Inc. JetFlash
Bus 001 Device 003: ID 13d3:3563 IMC Networks Wireless_Device
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Heres the result of

Code: Select all

ip a
:

Code: Select all

ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp4s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 04:42:1a:a0:e5:a1 brd ff:ff:ff:ff:ff:ff
Is someone able to help me ?
Thank you
Last edited by lapsana on 2022-03-24 16:11, edited 1 time in total.

User avatar
sunrat
Administrator
Administrator
Posts: 7155
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 126 times
Been thanked: 616 times

Re: ASUS USB wifi adapter installation

#2 Post by sunrat »

First the "teach how to fish" bit:
First get the device ID from the lsusb command and search - "Debian 0b05:18f1". Peruse results for one that is solved.

Now because I am feeling generous, the "feed the fish" bit:
Go to https://github.com/kelebek333/rtl8192fu-dkms and follow the "How to install". Do not follow the PPA method!

This is from a search result at https://forums.linuxmint.com/viewtopic.php?t=362842 but that thread contains several failed attempts as well.

You will likely also need to install firmware-realtek from the non-free section of Debian repo.

Drivers supplied by vendors are often never updated from when the device is released so regularly fail to work with more recent kernels. In this case I see that driver installation script is 11 years old! :shock:
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

lapsana
Posts: 12
Joined: 2021-10-14 13:06

Re: ASUS USB wifi adapter installation

#3 Post by lapsana »

sunrat wrote: 2022-03-19 21:05 First the "teach how to fish" bit:
First get the device ID from the lsusb command and search - "Debian 0b05:18f1". Peruse results for one that is solved.

Now because I am feeling generous, the "feed the fish" bit:
Go to https://github.com/kelebek333/rtl8192fu-dkms and follow the "How to install". Do not follow the PPA method!

This is from a search result at https://forums.linuxmint.com/viewtopic.php?t=362842 but that thread contains several failed attempts as well.

You will likely also need to install firmware-realtek from the non-free section of Debian repo.

Drivers supplied by vendors are often never updated from when the device is released so regularly fail to work with more recent kernels. In this case I see that driver installation script is 11 years old! :shock:
Glad you're feeling generous :roll: Thanks for your answer though, I will try to follow the steps you mentioned.

lapsana
Posts: 12
Joined: 2021-10-14 13:06

Re: ASUS USB wifi adapter installation

#4 Post by lapsana »

It works perfectly well now, this was, for once, fast and simple. Thank you, I'll try to go fishing more efficiently next time.

Post Reply