MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.8k stars 494 forks source link

WIFI Realtek RTL8811AU seen by OS, not configurable in dietpi-config #4387

Closed MDAR closed 1 year ago

MDAR commented 3 years ago

Creating a bug report/issue

Required Information

10.9

Additional Information (if applicable)

Purchased a WiFi USB dongle from Odroid to go with this C4.

From these options, Odroid Connectivity options

I chose this one, which is detected as a Realtek RTL8811AU https://www.odroid.co.uk/odroid-accessories/odroid-connectivity?product_id=870

Steps to reproduce

LSUSB shows the USB device connected

root@openHAB2-C4:~# lsusb
Bus 002 Device 002: ID 2109:0817 VIA Labs, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0bda:a811 Realtek Semiconductor Corp. RTL8811AU 802.11a/b/g/n/ac WLAN Adapter
Bus 001 Device 003: ID 10cf:0b1b Velleman Components, Inc.
Bus 001 Device 002: ID 2109:2817 VIA Labs, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

But dietpi-config > 7 > WiFi reports that "No supported WiFi hardware was found"

Expected behaviour

I'm not entirely sure, as I've never setup a WiFi device on an SBC, I've only ever added second Ethernet dongles

Extra details

Linux openHAB2-C4 4.9.241-arm64 #1 SMP PREEMPT Thu Feb 25 17:57:15 CET 2021 aarc                                                            h64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
 ─────────────────────────────────────────────────────
 DietPi v7.1.2 : 10:40 - Tue 18/05/21
 ─────────────────────────────────────────────────────
 - Device model : Odroid C4/HC4 (aarch64)
 - CPU temp : 32'C : 89'F (Cool runnings)
 - LAN IP : 192.168.178.72 (eth0)
 - MOTD : Did you know that you can run "dietpi-banner" to change its content?
 ─────────────────────────────────────────────────────

 DietPi Team     : MichaIng (lead), Daniel Knight (founder), Joulinar (support)
 Image by        : DietPi Core Team (pre-image: Meveric)
 Web             : https://dietpi.com | https://twitter.com/DietPi_
 Patreon Legends : Camry2731
 Contribute      : https://dietpi.com/contribute.html
 DietPi Hosting  : Powered by https://myvirtualserver.com

 dietpi-launcher : All the DietPi programs in one place.
 dietpi-config   : Feature rich configuration tool for your device.
 dietpi-software : Select optimized software for installation.
 htop            : Resource monitor.
 cpu             : Shows CPU information and stats.
root@openHAB2-C4:~# dietpi-config
[ INFO ] DietPi-WiFiDB | Applied WiFi DB slot 0 with SSID ""
[ INFO ] DietPi-WiFiDB | Applied WiFi DB slot 1 with SSID ""
[ INFO ] DietPi-WiFiDB | Applied WiFi DB slot 2 with SSID ""
[ INFO ] DietPi-WiFiDB | Applied WiFi DB slot 3 with SSID ""
[ INFO ] DietPi-WiFiDB | Applied WiFi DB slot 4 with SSID ""
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : node-red
[  OK  ] DietPi-Services | stop : smbd
[  OK  ] DietPi-Services | stop : nmbd
[ SUB1 ] DietPi-Set_hardware > wifimodules (enable)
[ INFO ] DietPi-Set_hardware | Please wait, enabling WiFi modules...
[ INFO ] DietPi-Set_hardware | Checking for required APT packages: iw wireless-t                                                            ools crda wpasupplicant
[ INFO ] DietPi-Set_hardware | Flagged for install: iw
[ INFO ] DietPi-Set_hardware | Flagged for install: wireless-tools
[ INFO ] DietPi-Set_hardware | Flagged for install: crda
[ INFO ] DietPi-Set_hardware | Flagged for install: wpasupplicant
[ INFO ] DietPi-Set_hardware | APT update, please wait...
Hit:1 https://deb.debian.org/debian buster InRelease
Hit:2 https://deb.debian.org/debian buster-updates InRelease
Hit:3 https://deb.debian.org/debian-security buster/updates InRelease
Hit:4 https://dietpi.com/meveric all InRelease
Hit:5 https://deb.debian.org/debian buster-backports InRelease
Hit:6 https://dietpi.com/meveric buster InRelease
Hit:7 https://openhab.jfrog.io/openhab/openhab-linuxpkg testing InRelease
Reading package lists...
[  OK  ] DietPi-Set_hardware | APT update
[ INFO ] DietPi-Set_hardware | APT install for: iw wireless-tools crda wpasuppli                                                            cant, please wait...
Selecting previously unselected package libnl-3-200:arm64.
(Reading database ... 50197 files and directories currently installed.)
Preparing to unpack .../0-libnl-3-200_3.4.0-1_arm64.deb ...
Unpacking libnl-3-200:arm64 (3.4.0-1) ...
Selecting previously unselected package libnl-genl-3-200:arm64.
Preparing to unpack .../1-libnl-genl-3-200_3.4.0-1_arm64.deb ...
Unpacking libnl-genl-3-200:arm64 (3.4.0-1) ...
Selecting previously unselected package wireless-regdb.
Preparing to unpack .../2-wireless-regdb_2016.06.10-1_all.deb ...
Unpacking wireless-regdb (2016.06.10-1) ...
Selecting previously unselected package iw.
Preparing to unpack .../3-iw_5.0.1-1_arm64.deb ...
Unpacking iw (5.0.1-1) ...
Selecting previously unselected package crda.
Preparing to unpack .../4-crda_3.18-1_arm64.deb ...
Unpacking crda (3.18-1) ...
Selecting previously unselected package libiw30:arm64.
Preparing to unpack .../5-libiw30_30~pre9-13_arm64.deb ...
Unpacking libiw30:arm64 (30~pre9-13) ...
Selecting previously unselected package libnl-route-3-200:arm64.
Preparing to unpack .../6-libnl-route-3-200_3.4.0-1_arm64.deb ...
Unpacking libnl-route-3-200:arm64 (3.4.0-1) ...
Selecting previously unselected package wireless-tools.
Preparing to unpack .../7-wireless-tools_30~pre9-13_arm64.deb ...
Unpacking wireless-tools (30~pre9-13) ...
Selecting previously unselected package wpasupplicant.
Preparing to unpack .../8-wpasupplicant_2%3a2.7+git20190128+0c1e29f-6+deb10u3_ar                                                            m64.deb ...
Unpacking wpasupplicant (2:2.7+git20190128+0c1e29f-6+deb10u3) ...
Setting up wireless-regdb (2016.06.10-1) ...
Setting up libnl-3-200:arm64 (3.4.0-1) ...
Setting up libiw30:arm64 (30~pre9-13) ...
Setting up wireless-tools (30~pre9-13) ...
Setting up libnl-route-3-200:arm64 (3.4.0-1) ...
Setting up libnl-genl-3-200:arm64 (3.4.0-1) ...
Setting up iw (5.0.1-1) ...
Setting up crda (3.18-1) ...
Setting up wpasupplicant (2:2.7+git20190128+0c1e29f-6+deb10u3) ...
Created symlink /etc/systemd/system/dbus-fi.w1.wpa_supplicant1.service → /lib/sy                                                            stemd/system/wpa_supplicant.service.
Created symlink /etc/systemd/system/multi-user.target.wants/wpa_supplicant.servi                                                            ce → /lib/systemd/system/wpa_supplicant.service.
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for dbus (1.12.20-0+deb10u1) ...
[  OK  ] DietPi-Set_hardware | APT install for: iw wireless-tools crda wpasuppli                                                            cant
[  OK  ] wifimodules enable | Completed
[  OK  ] DietPi-Config | Dropping connections, please wait...
[ INFO ] DietPi-Config | Restarting network, please wait...
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:1e:06:48:30:a6
Sending on   LPF/eth0/00:1e:06:48:30:a6
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER of 192.168.178.72 from 192.168.178.1
DHCPREQUEST for 192.168.178.72 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.178.72 from 192.168.178.1
bound to 192.168.178.72 -- renewal in 363429 seconds.
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
ifup: failed to bring up wlan0
[ SUB1 ] DietPi-Services > start
[  OK  ] DietPi-Services | start : nmbd
[  OK  ] DietPi-Services | start : smbd
[  OK  ] DietPi-Services | start : node-red
[  OK  ] DietPi-Services | start : cron
[ INFO ] DietPi-Config | Reloading networking data, please wait...
[  OK  ] DietPi-Config | Network restarted
[..    ] DietPi-Config | Checking URL: https://dietpi.com (1/2)
[  OK  ] DietPi-Config | Checking URL: https://dietpi.com
root@openHAB2-C4:~# lsusb
Bus 002 Device 002: ID 2109:0817 VIA Labs, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0bda:a811 Realtek Semiconductor Corp. RTL8811AU 802.11a/b/g/n/ac WLAN Adapter
Bus 001 Device 003: ID 10cf:0b1b Velleman Components, Inc.
Bus 001 Device 002: ID 2109:2817 VIA Labs, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@openHAB2-C4:~# inxi -Fxz
System:    Host: openHAB2-C4 Kernel: 4.9.241-arm64 aarch64 bits: 64 compiler: gcc v: 6.3.0 Console: tty 0
           Distro: Debian GNU/Linux 10 (buster)
Machine:   Type: ARM Device System: Hardkernel ODROID-C4 rev: 0500 serial: <filter>
CPU:       Topology: Quad Core model: N/A variant: cortex-a53 bits: 64 type: MCP arch: ARMv8 rev: 0500
           features: Use -f option to see features bogomips: 0
           Speed: 100 MHz min/max: 100/1908 MHz Core speeds (MHz): 1: 500 2: 500 3: 500 4: 500
Graphics:  Device-1: amhdmitx driver: amhdmitx v: N/A bus ID: N/A
           Device-2: meson-g12a driver: meson_fb v: N/A bus ID: N/A
           Device-3: g12a-sound-card driver: asoc_aml_card v: N/A bus ID: N/A
           Display: tty server: X.org 1.20.4 driver: none tty: 140x24
           Message: Advanced graphics data unavailable in console for root.
Audio:     Device-1: audio- driver: aml_audio_controller bus ID: N/A
           Device-2: snd-iomap driver: auge_snd_iomap bus ID: N/A
           Device-3: sm1-audio-clocks driver: audio_clocks bus ID: N/A
           Device-4: sm1-audio-ddr-manager driver: audio_ddr_manager bus ID: N/A
           Device-5: sm1-snd-spdif-a driver: snd_spdif bus ID: N/A
           Device-6: amhdmitx driver: amhdmitx bus ID: N/A
           Device-7: audio_data driver: audio_data_debug bus ID: N/A
           Device-8: audiolocker driver: audiolocker bus ID: N/A
           Device-9: g12a-sound-card driver: asoc_aml_card bus ID: N/A
           Device-10: vdac-sm1 driver: aml_vdac bus ID: N/A
           Sound Server: ALSA v: k4.9.241-arm64
Network:   Device-1: g12a-eth-dwmac driver: meson6_dwmac v: N/A port: N/A bus ID: N/A
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
           Device-2: Realtek RTL8811AU 802.11a/b/g/n/ac WLAN Adapter type: USB driver: usb-network bus ID: 1-1.3:4
Drives:    Local Storage: total: 14.56 GiB used: 3.18 GiB (21.8%)
           ID-1: /dev/mmcblk0 model: AJTD4R size: 14.56 GiB
Partition: ID-1: / size: 13.96 GiB used: 3.11 GiB (22.3%) fs: ext4 dev: /dev/mmcblk0p2
           ID-2: /boot size: 255.7 MiB used: 71.1 MiB (27.8%) fs: vfat dev: /dev/mmcblk0p1
Sensors:   Missing: Required tool sensors not installed. Check --recommends
Info:      Processes: 132 Uptime: 12m Memory: 3.63 GiB used: 748.9 MiB (20.2%) Init: systemd runlevel: 5 Compilers: gcc: 8.3.0
           Shell: bash v: 5.0.3 inxi: 3.0.32
MDAR commented 3 years ago

I just tried loading a new driver, as explained here, https://blog.abysm.org/2020/03/realtek-802-11ac-usb-wi-fi-linux-driver-installation/

I don't understand what the last two lines of this mean ---

root@openHAB2-C4:~# apt install ./realtek-rtl88xxau-dkms_5.6.4.2~git20210327.c0ce817-0kali1_all.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'realtek-rtl88xxau-dkms' instead of './realtek-rtl88xxau-dkms_5.6.4.2~git20210327.c0ce817-0kali1_all.deb'
The following packages will be upgraded:
  realtek-rtl88xxau-dkms
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,795 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Get:1 /root/realtek-rtl88xxau-dkms_5.6.4.2~git20210327.c0ce817-0kali1_all.deb realtek-rtl88xxau-dkms all 5.6.4.2~git20210327.c0ce817-0kali1 [1,795 kB]
(Reading database ... 50981 files and directories currently installed.)
Preparing to unpack .../realtek-rtl88xxau-dkms_5.6.4.2~git20210327.c0ce817-0kali1_all.deb ...

------------------------------
Deleting module version: 5.6.4.2~git20210118
completely from the DKMS tree.
------------------------------
Done.
Unpacking realtek-rtl88xxau-dkms (5.6.4.2~git20210327.c0ce817-0kali1) over (5.6.4.2~git20210118-0kali1) ...
Setting up realtek-rtl88xxau-dkms (5.6.4.2~git20210327.c0ce817-0kali1) ...
Loading new realtek-rtl88xxau-5.6.4.2~git20210327.c0ce817 DKMS files...
Building for 4.9.241-arm64
Module build for kernel 4.9.241-arm64 was skipped since the
kernel headers for this kernel does not seem to be installed.

However on the previous attempt to load the driver, it did say that the header were missing, so I tried this

apt install linux-headers-4.9.241-arm64=4.9.241-20210225-C4

then --reinstall the kali driver

apt install ./realtek-rtl88xxau-dkms_5.6.4.2~git20210327.c0ce817-0kali1_all.deb --reinstall

Which eventually returned this :

root@openHAB2-C4:~# apt install ./realtek-rtl88xxau-dkms_5.6.4.2~git20210327.c0ce817-0kali1_all.deb  --reinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'realtek-rtl88xxau-dkms' instead of './realtek-rtl88xxau-dkms_5.6.4.2~git20210327.c0ce817-0kali1_all.deb'
apt install linux-headers-4.9.241-arm64=4.9.241-20210225-C40 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Get:1 /root/realtek-rtl88xxau-dkms_5.6.4.2~git20210327.c0ce817-0kali1_all.deb realtek-rtl88xxau-dkms all 5.6.4.2~git20210327.c0ce817-0kali1 [1,795 kB]
(Reading database ... 73518 files and directories currently installed.)
Preparing to unpack .../realtek-rtl88xxau-dkms_5.6.4.2~git20210327.c0ce817-0kali1_all.deb ...

------------------------------
Deleting module version: 5.6.4.2~git20210327.c0ce817
completely from the DKMS tree.
------------------------------
Done.
Unpacking realtek-rtl88xxau-dkms (5.6.4.2~git20210327.c0ce817-0kali1) over (5.6.4.2~git20210327.c0ce817-0kali1) ...
Setting up realtek-rtl88xxau-dkms (5.6.4.2~git20210327.c0ce817-0kali1) ...
Loading new realtek-rtl88xxau-5.6.4.2~git20210327.c0ce817 DKMS files...
Building for 4.9.241-arm64
Building initial module for 4.9.241-arm64
Done.

88XXau.ko:
Running module version sanity check.
Error! Module version v5.6.4.2_35491.20191025 for 88XXau.ko
is not newer than what is already found in kernel 4.9.241-arm64 (v5.6.4.2_35491.20191025).
You may override by specifying --force.

depmod...

DKMS: install completed.

But still dietpi-config > 7 > network doesn't show it, however inxi -Fxz continues to show the network device

MDAR commented 3 years ago

I've just found an old USB Wifi dongle in the bottom of my laptop bag and that does seem to be discovered and configurable

Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter

MichaIng commented 3 years ago

Many thanks for your report.

First of all dietpi-config detects network adapters based on the kernel devices found in /sys/class/net/ respectively the output of ip l, which lists all those as well. lsusb shows USB devices and their names, but the system/kernel cannot derive from that whether it's a network adapter or something else. For this a kernel driver is required. When it is invoked correctly, the USB device is detected as network adapter and can be used then.

Since you did some driver install tests, I'm not 100% sure now, but it seems the kernel ships this driver already? Can you run:

find /lib/modules -name '88XXau.ko' -exec dpkg -S {} \;
MDAR commented 3 years ago

find /lib/modules -name '88XXau.ko' -exec dpkg -S {} \;

Hey Michal

Thanks for taking the time to respond.

I ran the command and got this...

linux-image-4.9.241-arm64: /lib/modules/4.9.241-arm64/kernel/drivers/net/wireless/rtl8812au/88XXau.ko

MDAR commented 3 years ago

Based on your reply, I'm wondering if this Realtek RTL8811AU chipset isn't listed in the set of headers I have loaded? (Not that I really understand what the sentence means)

So I've tried the following command

apt install linux-headers-arm64

Which appears to want to install headers with the version 4.19, rather than 4.9

MichaIng commented 3 years ago

Okay, so it's indeed part of the kernel already. Let's Verify the driver version and load it manually and see if it has an effect:

modinfo 88XXau
modprobe 88XXau
sleep 1
ls -l /sys/class/net/
ip l
dmesg | tail -10

Ah yes the correct headers package is:

apt install linux-headers-arm64-odroid-c4

Check for installed kernel meta packages (in this case linux-image-arm64-odroid-c4) and always install that one after replacing image with headers. Then you're nearly assured to have the correct headers + when upgrading the kernel, the headers will be upgraded in the same turn.

MDAR commented 3 years ago

modinfo 88XXau modprobe 88XXau sleep 1 ls -l /sys/class/net/ ip l dmesg | tail -10

So I added that to a script and ran it.

Here is the screen dump of everything I've tried in the last 10 minutes

Linux openHAB2-C4 4.9.241-arm64 #1 SMP PREEMPT Thu Feb 25 17:57:15 CET 2021 aarc                                                                                                                                                             h64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
 ─────────────────────────────────────────────────────
 DietPi v7.1.2 : 15:40 - Tue 18/05/21
 ─────────────────────────────────────────────────────
 - Device model : Odroid C4/HC4 (aarch64)
 - CPU temp : 34'C : 93'F (Cool runnings)
 - LAN IP : 192.168.178.72 (eth0)
 - MOTD : Did you know that you can run "dietpi-banner" to change its content?
 ─────────────────────────────────────────────────────

 DietPi Team     : MichaIng (lead), Daniel Knight (founder), Joulinar (support)
 Image by        : DietPi Core Team (pre-image: Meveric)
 Web             : https://dietpi.com | https://twitter.com/DietPi_
 Patreon Legends : Camry2731
 Contribute      : https://dietpi.com/contribute.html
 DietPi Hosting  : Powered by https://myvirtualserver.com

 dietpi-launcher : All the DietPi programs in one place.
 dietpi-config   : Feature rich configuration tool for your device.
 dietpi-software : Select optimized software for installation.
 htop            : Resource monitor.
 cpu             : Shows CPU information and stats.

root@openHAB2-C4:~# find /lib/modules -name '88XXau.ko' -exec dpkg -S {} \;
linux-image-4.9.241-arm64: /lib/modules/4.9.241-arm64/kernel/drivers/net/wireles                                                                                                                                                             s/rtl8812au/88XXau.ko
root@openHAB2-C4:~# find /lib/modules -name '88XXau.ko' -exec dpkg -S {} \;
linux-image-4.9.241-arm64: /lib/modules/4.9.241-arm64/kernel/drivers/net/wireless/rtl8812au/88XXau.ko
root@openHAB2-C4:~# dietpi-config
root@openHAB2-C4:~# apt install linux-header
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-header
root@openHAB2-C4:~# apt install linux-header* -s
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-headers-rt-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-4.19.0-16-common' for glob 'linux-header*'
Note, selecting 'linux-headers-5.9.0-0.bpo.5-common-rt' for glob 'linux-header*'
Note, selecting 'linux-headers-4.19.0-14-all-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-5.10.0-0.bpo.4-common-rt' for glob 'linux-header*'
Note, selecting 'linux-headers-generic' for glob 'linux-header*'
Note, selecting 'linux-headers-686-pae' for glob 'linux-header*'
Note, selecting 'linux-headers-s390x' for glob 'linux-header*'
Note, selecting 'linux-headers-5.10.0-0.bpo.4-rt-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-4.9.236-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-5.9.0-0.bpo.5-rt-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-5.10.0-0.bpo.4-cloud-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-2.6' for glob 'linux-header*'
Note, selecting 'linux-headers-4.19.0-14-common' for glob 'linux-header*'
Note, selecting 'linux-headers-5.10.0-0.bpo.5-common-rt' for glob 'linux-header*'
Note, selecting 'linux-headers-4.19.0-16-all' for glob 'linux-header*'
Note, selecting 'linux-headers-5.10.0-0.bpo.4-common' for glob 'linux-header*'
Note, selecting 'linux-headers-4.19.0-14-all' for glob 'linux-header*'
Note, selecting 'linux-headers-686' for glob 'linux-header*'
Note, selecting 'linux-headers-4.19.0-14-common-rt' for glob 'linux-header*'
Note, selecting 'linux-headers-5.10.0-0.bpo.4-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-4.19.0-16-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-armmp' for glob 'linux-header*'
Note, selecting 'linux-headers-powerpc64le' for glob 'linux-header*'
Note, selecting 'linux-headers-5.10.0-0.bpo.5-cloud-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-4.9.218+' for glob 'linux-header*'
Note, selecting 'linux-headers-4.9.230+' for glob 'linux-header*'
Note, selecting 'linux-headers-4.9.236+' for glob 'linux-header*'
Note, selecting 'linux-headers-5.9.0-0.bpo.5-common' for glob 'linux-header*'
Note, selecting 'linux-headers-amd64' for glob 'linux-header*'
Note, selecting 'linux-headers-5.10.0-0.bpo.5-rt-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-5.10.0-0.bpo.5-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-4.19.0-16-all-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-5.10.0-0.bpo.5-common' for glob 'linux-header*'
Note, selecting 'linux-headers-loongson-3' for glob 'linux-header*'
Note, selecting 'linux-headers-4.19.0-14-rt-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-5.9.0-0.bpo.5-cloud-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-cloud-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-4.19.0-16-rt-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers' for glob 'linux-header*'
Note, selecting 'linux-headers-4.9.241-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-5.9.0-0.bpo.5-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-octeon' for glob 'linux-header*'
Note, selecting 'linux-headers-4.19.0-16-common-rt' for glob 'linux-header*'
Note, selecting 'linux-headers-arm64-odroid-c4' for glob 'linux-header*'
Note, selecting 'linux-headers-4.19.0-14-arm64' for glob 'linux-header*'
Note, selecting 'linux-headers-marvell' for glob 'linux-header*'
linux-headers-4.9.241-arm64 is already the newest version (4.9.241-20210225-C4).
The following additional packages will be installed:
  linux-kbuild-4.19 linux-kbuild-5.10 linux-kbuild-5.9
The following NEW packages will be installed:
  linux-headers-4.19.0-14-all linux-headers-4.19.0-14-all-arm64 linux-headers-4.19.0-14-arm64 linux-headers-4.19.0-14-common linux-headers-4.19.0-14-common-rt linux-headers-4.19.0-14-rt-arm64 linux-headers-4.19.0-16-all
  linux-headers-4.19.0-16-all-arm64 linux-headers-4.19.0-16-arm64 linux-headers-4.19.0-16-common linux-headers-4.19.0-16-common-rt linux-headers-4.19.0-16-rt-arm64 linux-headers-4.9.218+ linux-headers-4.9.236+
  linux-headers-4.9.236-arm64 linux-headers-5.10.0-0.bpo.4-arm64 linux-headers-5.10.0-0.bpo.4-cloud-arm64 linux-headers-5.10.0-0.bpo.4-common linux-headers-5.10.0-0.bpo.4-common-rt linux-headers-5.10.0-0.bpo.4-rt-arm64
  linux-headers-5.10.0-0.bpo.5-arm64 linux-headers-5.10.0-0.bpo.5-cloud-arm64 linux-headers-5.10.0-0.bpo.5-common linux-headers-5.10.0-0.bpo.5-common-rt linux-headers-5.10.0-0.bpo.5-rt-arm64 linux-headers-5.9.0-0.bpo.5-arm64
  linux-headers-5.9.0-0.bpo.5-cloud-arm64 linux-headers-5.9.0-0.bpo.5-common linux-headers-5.9.0-0.bpo.5-common-rt linux-headers-5.9.0-0.bpo.5-rt-arm64 linux-headers-arm64 linux-headers-arm64-odroid-c4 linux-headers-cloud-arm64
  linux-headers-rt-arm64 linux-kbuild-4.19 linux-kbuild-5.10 linux-kbuild-5.9
0 upgraded, 37 newly installed, 0 to remove and 0 not upgraded.
Inst linux-headers-4.19.0-14-common (4.19.171-2 Debian:10.9/stable, Debian-Security:10/stable [all])
Inst linux-kbuild-4.19 (4.19.181-1 Debian:10.9/stable [arm64])
Inst linux-headers-4.19.0-14-arm64 (4.19.171-2 Debian:10.9/stable, Debian-Security:10/stable [arm64])
Inst linux-headers-4.19.0-14-common-rt (4.19.171-2 Debian:10.9/stable, Debian-Security:10/stable [all])
Inst linux-headers-4.19.0-14-rt-arm64 (4.19.171-2 Debian:10.9/stable, Debian-Security:10/stable [arm64])
Inst linux-headers-4.19.0-14-all-arm64 (4.19.171-2 Debian:10.9/stable, Debian-Security:10/stable [arm64])
Inst linux-headers-4.19.0-14-all (4.19.171-2 Debian:10.9/stable, Debian-Security:10/stable [arm64])
Inst linux-headers-4.19.0-16-common (4.19.181-1 Debian:10.9/stable [all])
Inst linux-headers-4.19.0-16-arm64 (4.19.181-1 Debian:10.9/stable [arm64])
Inst linux-headers-4.19.0-16-common-rt (4.19.181-1 Debian:10.9/stable [all])
Inst linux-headers-4.19.0-16-rt-arm64 (4.19.181-1 Debian:10.9/stable [arm64])
Inst linux-headers-4.19.0-16-all-arm64 (4.19.181-1 Debian:10.9/stable [arm64])
Inst linux-headers-4.19.0-16-all (4.19.181-1 Debian:10.9/stable [arm64])
Inst linux-headers-4.9.218+ (4.9.218-20200615-C4 ODROID Debian Repository:dietpi.com [arm64])
Inst linux-headers-4.9.236+ (4.9.236-20201026-C4 ODROID Debian Repository:dietpi.com [arm64])
Inst linux-headers-4.9.236-arm64 (4.9.236-20201220-C4 ODROID Debian Repository:dietpi.com [arm64])
Inst linux-headers-5.10.0-0.bpo.4-common (5.10.19-1~bpo10+1 Debian Backports:buster-backports [all])
Inst linux-kbuild-5.10 (5.10.24-1~bpo10+1 Debian Backports:buster-backports [arm64])
Inst linux-headers-5.10.0-0.bpo.4-arm64 (5.10.19-1~bpo10+1 Debian Backports:buster-backports [arm64])
Inst linux-headers-5.10.0-0.bpo.4-cloud-arm64 (5.10.19-1~bpo10+1 Debian Backports:buster-backports [arm64])
Inst linux-headers-5.10.0-0.bpo.4-common-rt (5.10.19-1~bpo10+1 Debian Backports:buster-backports [all])
Inst linux-headers-5.10.0-0.bpo.4-rt-arm64 (5.10.19-1~bpo10+1 Debian Backports:buster-backports [arm64])
Inst linux-headers-5.10.0-0.bpo.5-common (5.10.24-1~bpo10+1 Debian Backports:buster-backports [all])
Inst linux-headers-5.10.0-0.bpo.5-arm64 (5.10.24-1~bpo10+1 Debian Backports:buster-backports [arm64])
Inst linux-headers-5.10.0-0.bpo.5-cloud-arm64 (5.10.24-1~bpo10+1 Debian Backports:buster-backports [arm64])
Inst linux-headers-5.10.0-0.bpo.5-common-rt (5.10.24-1~bpo10+1 Debian Backports:buster-backports [all])
Inst linux-headers-5.10.0-0.bpo.5-rt-arm64 (5.10.24-1~bpo10+1 Debian Backports:buster-backports [arm64])
Inst linux-headers-5.9.0-0.bpo.5-common (5.9.15-1~bpo10+1 Debian Backports:buster-backports [all])
Inst linux-kbuild-5.9 (5.9.15-1~bpo10+1 Debian Backports:buster-backports [arm64])
Inst linux-headers-5.9.0-0.bpo.5-arm64 (5.9.15-1~bpo10+1 Debian Backports:buster-backports [arm64])
Inst linux-headers-5.9.0-0.bpo.5-cloud-arm64 (5.9.15-1~bpo10+1 Debian Backports:buster-backports [arm64])
Inst linux-headers-5.9.0-0.bpo.5-common-rt (5.9.15-1~bpo10+1 Debian Backports:buster-backports [all])
Inst linux-headers-5.9.0-0.bpo.5-rt-arm64 (5.9.15-1~bpo10+1 Debian Backports:buster-backports [arm64])
Inst linux-headers-arm64 (4.19+105+deb10u11 Debian:10.9/stable [arm64])
Inst linux-headers-cloud-arm64 (5.10.24-1~bpo10+1 Debian Backports:buster-backports [arm64])
Inst linux-headers-rt-arm64 (4.19+105+deb10u11 Debian:10.9/stable [arm64])
Inst linux-headers-arm64-odroid-c4 (4.9.241-arm64-1 ODROID Debian Repository:dietpi.com [arm64])
Conf linux-headers-4.19.0-14-common (4.19.171-2 Debian:10.9/stable, Debian-Security:10/stable [all])
Conf linux-kbuild-4.19 (4.19.181-1 Debian:10.9/stable [arm64])
Conf linux-headers-4.19.0-14-arm64 (4.19.171-2 Debian:10.9/stable, Debian-Security:10/stable [arm64])
Conf linux-headers-4.19.0-14-common-rt (4.19.171-2 Debian:10.9/stable, Debian-Security:10/stable [all])
Conf linux-headers-4.19.0-14-rt-arm64 (4.19.171-2 Debian:10.9/stable, Debian-Security:10/stable [arm64])
Conf linux-headers-4.19.0-14-all-arm64 (4.19.171-2 Debian:10.9/stable, Debian-Security:10/stable [arm64])
Conf linux-headers-4.19.0-14-all (4.19.171-2 Debian:10.9/stable, Debian-Security:10/stable [arm64])
Conf linux-headers-4.19.0-16-common (4.19.181-1 Debian:10.9/stable [all])
Conf linux-headers-4.19.0-16-arm64 (4.19.181-1 Debian:10.9/stable [arm64])
Conf linux-headers-4.19.0-16-common-rt (4.19.181-1 Debian:10.9/stable [all])
Conf linux-headers-4.19.0-16-rt-arm64 (4.19.181-1 Debian:10.9/stable [arm64])
Conf linux-headers-4.19.0-16-all-arm64 (4.19.181-1 Debian:10.9/stable [arm64])
Conf linux-headers-4.19.0-16-all (4.19.181-1 Debian:10.9/stable [arm64])
Conf linux-headers-4.9.218+ (4.9.218-20200615-C4 ODROID Debian Repository:dietpi.com [arm64])
Conf linux-headers-4.9.236+ (4.9.236-20201026-C4 ODROID Debian Repository:dietpi.com [arm64])
Conf linux-headers-4.9.236-arm64 (4.9.236-20201220-C4 ODROID Debian Repository:dietpi.com [arm64])
Conf linux-headers-5.10.0-0.bpo.4-common (5.10.19-1~bpo10+1 Debian Backports:buster-backports [all])
Conf linux-kbuild-5.10 (5.10.24-1~bpo10+1 Debian Backports:buster-backports [arm64])
Conf linux-headers-5.10.0-0.bpo.4-arm64 (5.10.19-1~bpo10+1 Debian Backports:buster-backports [arm64])
Conf linux-headers-5.10.0-0.bpo.4-cloud-arm64 (5.10.19-1~bpo10+1 Debian Backports:buster-backports [arm64])
Conf linux-headers-5.10.0-0.bpo.4-common-rt (5.10.19-1~bpo10+1 Debian Backports:buster-backports [all])
Conf linux-headers-5.10.0-0.bpo.4-rt-arm64 (5.10.19-1~bpo10+1 Debian Backports:buster-backports [arm64])
Conf linux-headers-5.10.0-0.bpo.5-common (5.10.24-1~bpo10+1 Debian Backports:buster-backports [all])
Conf linux-headers-5.10.0-0.bpo.5-arm64 (5.10.24-1~bpo10+1 Debian Backports:buster-backports [arm64])
Conf linux-headers-5.10.0-0.bpo.5-cloud-arm64 (5.10.24-1~bpo10+1 Debian Backports:buster-backports [arm64])
Conf linux-headers-5.10.0-0.bpo.5-common-rt (5.10.24-1~bpo10+1 Debian Backports:buster-backports [all])
Conf linux-headers-5.10.0-0.bpo.5-rt-arm64 (5.10.24-1~bpo10+1 Debian Backports:buster-backports [arm64])
Conf linux-headers-5.9.0-0.bpo.5-common (5.9.15-1~bpo10+1 Debian Backports:buster-backports [all])
Conf linux-kbuild-5.9 (5.9.15-1~bpo10+1 Debian Backports:buster-backports [arm64])
Conf linux-headers-5.9.0-0.bpo.5-arm64 (5.9.15-1~bpo10+1 Debian Backports:buster-backports [arm64])
Conf linux-headers-5.9.0-0.bpo.5-cloud-arm64 (5.9.15-1~bpo10+1 Debian Backports:buster-backports [arm64])
Conf linux-headers-5.9.0-0.bpo.5-common-rt (5.9.15-1~bpo10+1 Debian Backports:buster-backports [all])
Conf linux-headers-5.9.0-0.bpo.5-rt-arm64 (5.9.15-1~bpo10+1 Debian Backports:buster-backports [arm64])
Conf linux-headers-arm64 (4.19+105+deb10u11 Debian:10.9/stable [arm64])
Conf linux-headers-cloud-arm64 (5.10.24-1~bpo10+1 Debian Backports:buster-backports [arm64])
Conf linux-headers-rt-arm64 (4.19+105+deb10u11 Debian:10.9/stable [arm64])
Conf linux-headers-arm64-odroid-c4 (4.9.241-arm64-1 ODROID Debian Repository:dietpi.com [arm64])
root@openHAB2-C4:~# apt install linux-headers-arm64 -s
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  linux-headers-4.19.0-16-arm64 linux-headers-4.19.0-16-common linux-kbuild-4.19
The following NEW packages will be installed:
  linux-headers-4.19.0-16-arm64 linux-headers-4.19.0-16-common linux-headers-arm64 linux-kbuild-4.19
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Inst linux-headers-4.19.0-16-common (4.19.181-1 Debian:10.9/stable [all])
Inst linux-kbuild-4.19 (4.19.181-1 Debian:10.9/stable [arm64])
Inst linux-headers-4.19.0-16-arm64 (4.19.181-1 Debian:10.9/stable [arm64])
Inst linux-headers-arm64 (4.19+105+deb10u11 Debian:10.9/stable [arm64])
Conf linux-headers-4.19.0-16-common (4.19.181-1 Debian:10.9/stable [all])
Conf linux-kbuild-4.19 (4.19.181-1 Debian:10.9/stable [arm64])
Conf linux-headers-4.19.0-16-arm64 (4.19.181-1 Debian:10.9/stable [arm64])
Conf linux-headers-arm64 (4.19+105+deb10u11 Debian:10.9/stable [arm64])
root@openHAB2-C4:~# apt install linux-headers-arm64
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  linux-headers-4.19.0-16-arm64 linux-headers-4.19.0-16-common linux-kbuild-4.19
The following NEW packages will be installed:
  linux-headers-4.19.0-16-arm64 linux-headers-4.19.0-16-common linux-headers-arm64 linux-kbuild-4.19
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.2 MB of archives.
After this operation, 57.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://deb.debian.org/debian buster/main arm64 linux-headers-4.19.0-16-common all 4.19.181-1 [8,470 kB]
Get:2 https://deb.debian.org/debian buster/main arm64 linux-kbuild-4.19 arm64 4.19.181-1 [750 kB]
Get:3 https://deb.debian.org/debian buster/main arm64 linux-headers-4.19.0-16-arm64 arm64 4.19.181-1 [963 kB]
Get:4 https://deb.debian.org/debian buster/main arm64 linux-headers-arm64 arm64 4.19+105+deb10u11 [6,892 B]
Fetched 10.2 MB in 2s (6,690 kB/s)
Selecting previously unselected package linux-headers-4.19.0-16-common.
(Reading database ... 73518 files and directories currently installed.)
Preparing to unpack .../linux-headers-4.19.0-16-common_4.19.181-1_all.deb ...
Unpacking linux-headers-4.19.0-16-common (4.19.181-1) ...
Selecting previously unselected package linux-kbuild-4.19.
Preparing to unpack .../linux-kbuild-4.19_4.19.181-1_arm64.deb ...
Unpacking linux-kbuild-4.19 (4.19.181-1) ...
Selecting previously unselected package linux-headers-4.19.0-16-arm64.
Preparing to unpack .../linux-headers-4.19.0-16-arm64_4.19.181-1_arm64.deb ...
Unpacking linux-headers-4.19.0-16-arm64 (4.19.181-1) ...
apt install linux-headers-arm64Selecting previously unselected package linux-headers-arm64.
Preparing to unpack .../linux-headers-arm64_4.19+105+deb10u11_arm64.deb ...
Unpacking linux-headers-arm64 (4.19+105+deb10u11) ...
Setting up linux-kbuild-4.19 (4.19.181-1) ...
Setting up linux-headers-4.19.0-16-common (4.19.181-1) ...
Setting up linux-headers-4.19.0-16-arm64 (4.19.181-1) ...
Setting up linux-headers-arm64 (4.19+105+deb10u11) ...
root@openHAB2-C4:~# dietpi-config
root@openHAB2-C4:~# ls
192.168.178.100-230  192.168.178.100-240  192.168.178.220  Desktop  realtek-rtl88xxau-dkms_5.6.4.2~git20210118-0kali1_all.deb  realtek-rtl88xxau-dkms_5.6.4.2~git20210327.c0ce817-0kali1_all.deb
root@openHAB2-C4:~# ls -l
total 3524
-rw-r--r-- 1 root root     779 Jan  3 19:11 192.168.178.100-230
-rw-r--r-- 1 root root     188 Jan  3 19:14 192.168.178.100-240
-rw-r--r-- 1 root root     771 Jan  3 19:13 192.168.178.220
drwxr-xr-x 2 root root    4096 Nov 16  2020 Desktop
-rw-r--r-- 1 root root 1793700 Jan 26 15:47 realtek-rtl88xxau-dkms_5.6.4.2~git20210118-0kali1_all.deb
-rw-r--r-- 1 root root 1794696 Apr 14 16:17 realtek-rtl88xxau-dkms_5.6.4.2~git20210327.c0ce817-0kali1_all.deb
root@openHAB2-C4:~# nano test.sh
root@openHAB2-C4:~# sh test.sh
filename:       /lib/modules/4.9.241-arm64/kernel/drivers/net/wireless/rtl8812au/88XXau.ko
version:        v5.6.4.2_35491.20191025
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     ADB9EBF966F65A268EB9391
alias:          usb:v0846p9054d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v20F4p809Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v20F4p809Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0106d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0026d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8813d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA833d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA834d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v056Ep400Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v056Ep400Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1853d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1852d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1817d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p331Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8813d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p011Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0120d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0122d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p011Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v3823p6249d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDApA811d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v056Ep4007d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p029Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0846p9052d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB32d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p0242d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v056Ep400Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v056Ep400Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0023d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3318d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3314d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp0953d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pB611d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA813d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA812d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA811d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0823d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp0820d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDApA811d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8822d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0821d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0811d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp881Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2604p0012d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8812d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp9097d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp1109d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p025Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v20F4p805Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0122d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p010Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p010Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0115d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p010Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0103d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0101d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13B1p003Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3316d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3315d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3313d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p330Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0846p9051d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p8812d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB30d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p0100d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1058p0632d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3313d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0586p3426d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0022d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p17D2d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0409p0408d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0789p016Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp0952d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0074d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA822d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp1106d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp881Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp881Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp881Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8812d*dc*dsc*dp*ic*isc*ip*in*
depends:
intree:         Y
vermagic:       4.9.241-arm64 SMP preempt mod_unload modversions aarch64
parm:           rtw_wireless_mode:int
parm:           rtw_monitor_overwrite_seqnum:Overwrite the sequence number of injected frames (int)
parm:           rtw_monitor_retransmit:Retransmit injected frames (int)
parm:           rtw_monitor_disable_1m:Disable default 1Mbps rate for monitor injected frames (int)
parm:           rtw_ips_mode:The default IPS mode (int)
parm:           rtw_lps_level:The default LPS level (int)
parm:           rtw_lps_chk_by_tp:int
parm:           rtw_max_bss_cnt:int
parm:           rtw_usb_rxagg_mode:int
parm:           rtw_dynamic_agg_enable:int
parm:           rtw_tx_bw_mode:The max tx bw for 2.4G and 5G. format is the same as rtw_bw_mode (uint)
parm:           rtw_rx_ampdu_sz_limit_1ss:RX AMPDU size limit for 1SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_2ss:RX AMPDU size limit for 2SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_3ss:RX AMPDU size limit for 3SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_4ss:RX AMPDU size limit for 4SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_vht_enable:int
parm:           rtw_vht_rx_mcs_map:VHT RX MCS map (uint)
parm:           rtw_rf_config:int
parm:           rtw_country_code:The default country code (in alpha2) (charp)
parm:           rtw_channel_plan:The default chplan ID when rtw_alpha2 is not specified or valid (int)
parm:           rtw_excl_chs:exclusive channel array (array of uint)
parm:           rtw_qos_opt_enable:int
parm:           ifname:The default name to allocate for first interface (charp)
parm:           if2name:The default name to allocate for second interface (charp)
parm:           rtw_wowlan_sta_mix_mode:int
parm:           rtw_pwrtrim_enable:int
parm:           rtw_initmac:charp
parm:           rtw_special_rf_path:int
parm:           rtw_chip_version:int
parm:           rtw_rfintfs:int
parm:           rtw_lbkmode:int
parm:           rtw_network_mode:int
parm:           rtw_channel:int
parm:           rtw_mp_mode:int
parm:           rtw_wmm_enable:int
parm:           rtw_vrtl_carrier_sense:int
parm:           rtw_vcs_type:int
parm:           rtw_busy_thresh:int
parm:           rtw_ht_enable:int
parm:           rtw_bw_mode:int
parm:           rtw_ampdu_enable:int
parm:           rtw_rx_stbc:int
parm:           rtw_rx_ampdu_amsdu:int
parm:           rtw_tx_ampdu_amsdu:int
parm:           rtw_beamform_cap:int
parm:           rtw_lowrate_two_xmit:int
parm:           rtw_power_mgnt:int
parm:           rtw_smart_ps:int
parm:           rtw_low_power:int
parm:           rtw_wifi_spec:int
parm:           rtw_full_ch_in_p2p_handshake:int
parm:           rtw_antdiv_cfg:int
parm:           rtw_antdiv_type:int
parm:           rtw_drv_ant_band_switch:int
parm:           rtw_single_ant_path:int
parm:           rtw_switch_usb_mode:int
parm:           rtw_enusbss:int
parm:           rtw_hwpdn_mode:int
parm:           rtw_hwpwrp_detect:int
parm:           rtw_hw_wps_pbc:int
parm:           rtw_check_hw_status:int
parm:           rtw_led_ctrl:Led Control: 0=Always off, 1=Normal blink, 2=Always on (int)
parm:           rtw_max_roaming_times:The max roaming times to try (uint)
parm:           rtw_mc2u_disable:int
parm:           rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
parm:           rtw_hiq_filter:0:allow all, 1:allow special, 2:deny all (uint)
parm:           rtw_adaptivity_en:0:disable, 1:enable (uint)
parm:           rtw_adaptivity_mode:0:normal, 1:carrier sense (uint)
parm:           rtw_adaptivity_th_l2h_ini:th_l2h_ini for Adaptivity (int)
parm:           rtw_adaptivity_th_edcca_hl_diff:th_edcca_hl_diff for Adaptivity (int)
parm:           rtw_amplifier_type_2g:BIT3:2G ext-PA, BIT4:2G ext-LNA (uint)
parm:           rtw_amplifier_type_5g:BIT6:5G ext-PA, BIT7:5G ext-LNA (uint)
parm:           rtw_RFE_type:default init value:64 (uint)
parm:           rtw_powertracking_type:default init value:64 (uint)
parm:           rtw_GLNA_type:default init value:0 (uint)
parm:           rtw_TxBBSwing_2G:default init value:0xFF (uint)
parm:           rtw_TxBBSwing_5G:default init value:0xFF (uint)
parm:           rtw_OffEfuseMask:default open Efuse Mask value:0 (uint)
parm:           rtw_FileMaskEfuse:default drv Mask Efuse value:0 (uint)
parm:           rtw_rxgain_offset_2g:default RF Gain 2G Offset value:0 (uint)
parm:           rtw_rxgain_offset_5gl:default RF Gain 5GL Offset value:0 (uint)
parm:           rtw_rxgain_offset_5gh:uint
parm:           rtw_rxgain_offset_5gm:default RF Gain 5GM Offset value:0 (uint)
parm:           rtw_pll_ref_clk_sel:force pll_ref_clk_sel, 0xF:use autoload value (uint)
parm:           rtw_tx_pwr_by_rate:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_tx_pwr_lmt_enable:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_target_tx_pwr_2g_a:2.4G target tx power (unit:dBm) of RF path A for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_b:2.4G target tx power (unit:dBm) of RF path B for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_c:2.4G target tx power (unit:dBm) of RF path C for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_d:2.4G target tx power (unit:dBm) of RF path D for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_a:5G target tx power (unit:dBm) of RF path A for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_b:5G target tx power (unit:dBm) of RF path B for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_c:5G target tx power (unit:dBm) of RF path C for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_d:5G target tx power (unit:dBm) of RF path D for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_tsf_update_pause_factor:num of bcn intervals to stay TSF update pause status (int)
parm:           rtw_tsf_update_restore_factor:num of bcn intervals to stay TSF update restore status (int)
parm:           rtw_phy_file_path:The path of phy parameter (charp)
parm:           rtw_load_phy_file:PHY File Bit Map (int)
parm:           rtw_decrypt_phy_file:Enable Decrypt PHY File (int)
parm:           rtw_en_napi:int
parm:           rtw_en_gro:int
parm:           rtw_iqk_fw_offload:int
parm:           rtw_ch_switch_offload:int
modprobe: ERROR: could not insert '88XXau': Exec format error
total 0
lrwxrwxrwx 1 root root 0 Jan  1  1970 eth0 -> ../../devices/platform/ff3f0000.ethernet/net/eth0
lrwxrwxrwx 1 root root 0 Jan  1  1970 lo -> ../../devices/virtual/net/lo
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 00:1e:06:48:30:a6 brd ff:ff:ff:ff:ff:ff
[    8.503403] cpufreq_interactive: cpufreq_hmp_boost_start()
[    8.506595] cpufreq_interactive: no need to active hmp boost!
[    8.807390] meson6-dwmac ff3f0000.ethernet eth0: fail to init PTP.
[    8.808446] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   11.786831] vout: aml_tvout_mode_work: monitor_timeout
[   12.906807] meson6-dwmac ff3f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   12.909907] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   64.522618] fb: mem_free_work, free memory: addr:800000
[  611.338531] fb: osd[0] enable: 0 (kworker/0:0)
[  820.749844] module 88XXau: unsupported RELA relocation: 275
root@openHAB2-C4:~#
MDAR commented 3 years ago

apt install linux-headers-arm64-odroid-c4

Okay....

I'm running that right now......

MDAR commented 3 years ago

apt install linux-headers-arm64-odroid-c4

Okay....

I'm running that right now......

And this is what I get

root@openHAB2-C4:~# apt install linux-headers-arm64-odroid-c4
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  linux-headers-arm64-odroid-c4
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 694 B of archives.
After this operation, 8,192 B of additional disk space will be used.
Get:1 https://dietpi.com/meveric all/c4 arm64 linux-headers-arm64-odroid-c4 arm64 4.9.241-arm64-1 [694 B]
Fetched 694 B in 0s (4,381 B/s)
Selecting previously unselected package linux-headers-arm64-odroid-c4.
(Reading database ... 90064 files and directories currently installed.)
Preparing to unpack .../linux-headers-arm64-odroid-c4_4.9.241-arm64-1_arm64.deb ...
Unpacking linux-headers-arm64-odroid-c4 (4.9.241-arm64-1) ...
Setting up linux-headers-arm64-odroid-c4 (4.9.241-arm64-1) ...

Still nothing in the dietpi-config > 7 > WiFi option.

I'll try a reboot....

MDAR commented 3 years ago

find /lib/modules -name '88XXau.ko' -exec dpkg -S {} \;

(After a reboot) I do see that this command reports the presence of RTL8812au, rather than RTL8811au

root@openHAB2-C4:~# find /lib/modules -name '88XXau.ko' -exec dpkg -S {} \;
linux-image-4.9.241-arm64: /lib/modules/4.9.241-arm64/kernel/drivers/net/wireless/rtl8812au/88XXau.ko
dpkg-query: no path found matching pattern /lib/modules/4.19.0-16-arm64/updates/88XXau.ko
MichaIng commented 3 years ago

modprobe: ERROR: could not insert '88XXau': Exec format error

That is strange. Please try to reinstall the kernel and let's see whether loading the module works then. Also remove the wrong headers:

apt purge --autoremove linux-headers-arm64
apt install --reinstall linux-image-4.9.241-arm64
modprobe 88XXau

The package you downloaded installs the same kernel module 88XXau.ko, the directory name it is located in is not relevant, I mean it's just sorting for human but the kernel/system loads modules only based on their name and aliases, not based on their location/directory. Either it does work for 8811au as well or not. But first we need to be able to load it into the kernel.

MDAR commented 3 years ago

apt purge --autoremove linux-headers-arm64

if it helps, I just found this forum thread, that is suggesting a driver needs to be compiled?

https://forum.mxlinux.org/viewtopic.php?t=49102

https://github.com/aircrack-ng/rtl8812au

MDAR commented 3 years ago

apt purge --autoremove linux-headers-arm64 apt install --reinstall linux-image-4.9.241-arm64 modprobe 88XXau

Okay, so I ran those commands and apart from waiting a long time at 60%, it seems to have finished.

root@openHAB2-C4:~# lsusb
Bus 002 Device 002: ID 2109:0817 VIA Labs, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0bda:a811 Realtek Semiconductor Corp. RTL8811AU 802.11a/b/g/n/ac WLAN Adapter
Bus 001 Device 003: ID 10cf:0b1b Velleman Components, Inc.
Bus 001 Device 002: ID 2109:2817 VIA Labs, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@openHAB2-C4:~# apt purge --autoremove linux-headers-arm64
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-4.19.0-16-arm64* linux-headers-4.19.0-16-common* linux-headers-arm64* linux-kbuild-4.19*
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 57.2 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 90064 files and directories currently installed.)
Removing linux-headers-arm64 (4.19+105+deb10u11) ...
Removing linux-headers-4.19.0-16-arm64 (4.19.181-1) ...
dpkg: warning: while removing linux-headers-4.19.0-16-arm64, directory '/lib/modules/4.19.0-16-arm64' not empty so not removed
Removing linux-headers-4.19.0-16-common (4.19.181-1) ...
Removing linux-kbuild-4.19 (4.19.181-1) ...
root@openHAB2-C4:~# apt install --reinstall linux-image-4.9.241-arm64
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 20.8 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://dietpi.com/meveric all/c4 arm64 linux-image-4.9.241-arm64 arm64 4.9.241-20210225-C4 [20.8 MB]
Fetched 20.8 MB in 3s (7,685 kB/s)
(Reading database ... 73518 files and directories currently installed.)
Preparing to unpack .../linux-image-4.9.241-arm64_4.9.241-20210225-C4_arm64.deb ...
dkms: removing: realtek-rtl88xxau 5.6.4.2~git20210327.c0ce817 (4.9.241-arm64) (aarch64)

-------- Uninstall Beginning --------
Module:  realtek-rtl88xxau
Version: 5.6.4.2~git20210327.c0ce817
Kernel:  4.9.241-arm64 (aarch64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

88XXau.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.9.241-arm64/
rmdir: failed to remove '': No such file or directory
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.
Unpacking linux-image-4.9.241-arm64 (4.9.241-20210225-C4) over (4.9.241-20210225-C4) ...
Setting up linux-image-4.9.241-arm64 (4.9.241-20210225-C4) ...
Error! Module version v5.6.4.2_35491.20191025 for 88XXau.ko
is not newer than what is already found in kernel 4.9.241-arm64 (v5.6.4.2_35491.20191025).
You may override by specifying --force.
update-initramfs: Generating /boot/initrd.img-4.9.241-arm64
Image Name:   uInitrd
Created:      Tue May 18 16:11:39 2021
Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
Data Size:    8005899 Bytes = 7818.26 KiB = 7.64 MiB
Load Address: 00000000
Entry Point:  00000000
root@openHAB2-C4:~#
MichaIng commented 3 years ago

Hmm, that is the very same kernel module 88XXau. Generally it should work.

MDAR commented 3 years ago

Generally it should work.

Yeah, that old classic.

Should and Does aren't always good bedfellows

MichaIng commented 3 years ago

DKMS seems to interfere, please remove it as well:

apt purge --autoremove dkms realtek-rtl88xxau-dkms
apt install --reinstall linux-image-4.9.241-arm64
modprobe 88XXau
MDAR commented 3 years ago

It all went well... until...

modprobe 88XXau
modprobe: ERROR: could not insert '88XXau': Exec format error
MDAR commented 3 years ago

Does the fact that the dongle is seen in this list mean anything???

root@openHAB2-C4:~# modprobe 88XXau
modprobe: ERROR: could not insert '88XXau': Exec format error
root@openHAB2-C4:~# inxi -Fxz
System:    Host: openHAB2-C4 Kernel: 4.9.241-arm64 aarch64 bits: 64 compiler: gcc v: 6.3.0 Console: tty 0
           Distro: Debian GNU/Linux 10 (buster)
Machine:   Type: ARM Device System: Hardkernel ODROID-C4 rev: 0500 serial: <filter>
CPU:       Topology: Quad Core model: N/A variant: cortex-a53 bits: 64 type: MCP arch: ARMv8 rev: 0500
           features: Use -f option to see features bogomips: 0
           Speed: 100 MHz min/max: 100/1908 MHz Core speeds (MHz): 1: 1000 2: 1000 3: 1000 4: 1000
Graphics:  Device-1: amhdmitx driver: amhdmitx v: N/A bus ID: N/A
           Device-2: meson-g12a driver: meson_fb v: N/A bus ID: N/A
           Device-3: g12a-sound-card driver: asoc_aml_card v: N/A bus ID: N/A
           Display: tty server: X.org 1.20.4 driver: none tty: 237x63
           Message: Advanced graphics data unavailable in console for root.
Audio:     Device-1: audio- driver: aml_audio_controller bus ID: N/A
           Device-2: snd-iomap driver: auge_snd_iomap bus ID: N/A
           Device-3: sm1-audio-clocks driver: audio_clocks bus ID: N/A
           Device-4: sm1-audio-ddr-manager driver: audio_ddr_manager bus ID: N/A
           Device-5: sm1-snd-spdif-a driver: snd_spdif bus ID: N/A
           Device-6: amhdmitx driver: amhdmitx bus ID: N/A
           Device-7: audio_data driver: audio_data_debug bus ID: N/A
           Device-8: audiolocker driver: audiolocker bus ID: N/A
           Device-9: g12a-sound-card driver: asoc_aml_card bus ID: N/A
           Device-10: vdac-sm1 driver: aml_vdac bus ID: N/A
           Sound Server: ALSA v: k4.9.241-arm64
Network:   Device-1: g12a-eth-dwmac driver: meson6_dwmac v: N/A port: N/A bus ID: N/A
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
           Device-2: Realtek RTL8811AU 802.11a/b/g/n/ac WLAN Adapter type: USB driver: usb-network bus ID: 1-1.3:5
Drives:    Local Storage: total: 14.56 GiB used: 3.27 GiB (22.4%)
           ID-1: /dev/mmcblk0 model: AJTD4R size: 14.56 GiB
Partition: ID-1: / size: 13.96 GiB used: 3.20 GiB (22.9%) fs: ext4 dev: /dev/mmcblk0p2
           ID-2: /boot size: 255.7 MiB used: 70.4 MiB (27.5%) fs: vfat dev: /dev/mmcblk0p1
Sensors:   Missing: Required tool sensors not installed. Check --recommends
Info:      Processes: 132 Uptime: 22m Memory: 3.63 GiB used: 869.3 MiB (23.4%) Init: systemd runlevel: 5 Compilers: gcc: 8.3.0
           Shell: bash v: 5.0.3 inxi: 3.0.32
MDAR commented 3 years ago

Purely out of curiousity, I threw the older dongle in to see if there is any difference in the inxi query

Does it mean anything that one says the USB-Driver is rtl88xxxu and the other is usb-network

Just not the way around I was expecting

root@openHAB2-C4:~# inxi -Fxz
System:    Host: openHAB2-C4 Kernel: 4.9.241-arm64 aarch64 bits: 64 compiler: gcc v: 6.3.0 Console: tty 0
           Distro: Debian GNU/Linux 10 (buster)

Network:   Device-1: g12a-eth-dwmac driver: meson6_dwmac v: N/A port: N/A bus ID: N/A
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
           Device-2: Realtek RTL8192CU 802.11n WLAN Adapter type: USB driver: rtl8xxxu bus ID: 1-1.2:6
           IF: wlan0 state: up mac: <filter>
           Device-3: Realtek RTL8811AU 802.11a/b/g/n/ac WLAN Adapter type: USB driver: usb-network bus ID: 1-1.3:5
MichaIng commented 3 years ago

Not sure how inxi derives which hardware is of which type, but as long as ip r (and /sys/class/net/) does not show the interface, it cannot be used.

Does loading any other kernel module work, e.g.:

modprobe 8188eu

Ah and there is a force option, just to try:

modprobe -f 88XXau

The driver package you installed first btw states that its for x86, x86_64 platforms. Not sure whether it plays a role when it's compiled via DKMS but following the manual build via https://github.com/aircrack-ng/rtl8812au looks more promising to me.

MDAR commented 3 years ago

Because I can... I plugged this "Odroid" WiFi dongle in to my Windows 10 machine, just to see if it works.

It does.

Win10 happily loads a RealTek RTL8811AU driver for it

MDAR commented 3 years ago
modprobe 8188eu

Ah and there is a force option, just to try:

modprobe -f 88XXau

Oh dear

trying either of those commands gives me

modprobe: ERROR: could not insert '88XXau': Exec format error

MichaIng commented 3 years ago

Did you reboot once? Which kernel is actually loaded? uname -a

MDAR commented 3 years ago

following the manual build via https://github.com/aircrack-ng/rtl8812au looks more promising to me.

I tried that and nothing much changed.

Apart from it suggested that the driver was no newer than the one already loaded.


Yes, I have rebooted a few times

uname -a returns

Linux openHAB2-C4 4.9.241-arm64 #1 SMP PREEMPT Thu Feb 25 17:57:15 CET 2021 aarch64 GNU/Linux

**** I do appreciate you spending so much time on this.... I would have given up hours ago

MichaIng commented 3 years ago

I'm puzzled how no kernel module can be loaded. Is there any other module loaded, actually? Some, 10 or so, should be loaded by default.

lsmod
MDAR commented 3 years ago

Its very strange

lsmod

root@openHAB2-C4:/# lsmod
Module           Size          Used by
rtl8xxxu          114688          0
amvdec_ports          200704          0
stream_input          180224          1 amvdec_ports
decoder_common          188416          2 amvdec_ports,stream_input
firmware          28672          2 decoder_common,stream_input
media_clock          45056          4 decoder_common,amvdec_ports,firmware,stream_input
ip_tables          32768          0
x_tables          49152          1 ip_tables
ipv6          462848          46

image

MichaIng commented 3 years ago

rtl8xxxu is loaded, probably they conflict? Try:

modprobe -r rtl8xxxu
modprobe 88XXau

Also let's try to load a very different basic module:

modprobe tun # that is for OpenVPN interfaces

And let's see whether the timestamps are as expected (so those are really from the kernel package):

find /lib/modules \( -name 88XXau.ko -o -name rtl8xxxu.ko \) -exec ls -l {} \;
MDAR commented 3 years ago

Something strange is happening...

This command returns ...

modprobe 88XXau

modprobe: ERROR: could not insert '88XXau': Exec format error

and this command returns --

find /lib/modules ( -name 88XXau.ko -o -name rtl8xxxu.ko ) -exec ls -l {} \;

-bash: syntax error near unexpected token('`

But if I remove the () I get this

find /lib/modules -name 88XXau.ko -o -name rtl8xxxu.ko -exec ls -l {} \;

-rw-r--r-- 1 root root 179200 Feb 25 16:59 /lib/modules/4.9.241-arm64/kernel/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko

MDAR commented 3 years ago

Thanks for your efforts Michal

I'm going to give up for the day now.

Thanks again for all your effort.

If you have any wild ideas, I'm happy to give them a try later

MichaIng commented 3 years ago

Ah sorry, I forgot to escape the parenthesis:

find /lib/modules \( -name 88XXau.ko -o -name rtl8xxxu.ko \) -exec ls -l {} \;

Please run that one as last step. If the first module (the one that fails) has the expected timestamp as well, then we know that it's definitely the one from the package. I'd forward the issue to Meveric then so he can try to replicate and maybe he has an idea or can update the kernel package.

MDAR commented 3 years ago

I had just powered the unit off, so this command was run as soon is it booted up

find /lib/modules ( -name 88XXau.ko -o -name rtl8xxxu.ko ) -exec ls -l {} \;

Arrr yes, that makes a difference

root@openHAB2-C4:~# find /lib/modules \( -name 88XXau.ko -o -name rtl8xxxu.ko \) -exec ls -l {} \;
-rw-r--r-- 1 root root 179200 Feb 25 16:59 /lib/modules/4.9.241-arm64/kernel/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko
-rw-r--r-- 1 root root 4304096 Feb 25 16:59 /lib/modules/4.9.241-arm64/kernel/drivers/net/wireless/rtl8812au/88XXau.ko
MichaIng commented 3 years ago

Okay thanks. Looks like a bug then. I'll forward it.

Custom compiling the module from the GitHub source might work, when you're in mood to go with this 🙂.

MDAR commented 3 years ago

Custom compiling the module from the GitHub source might work

Nice thought, but I think that is WAY beyond my skill set

MichaIng commented 3 years ago

Meveric by chance has that adapter as well, verified that the driver module shipped with the Hardkernel kernel does not work and packed an own DEB package for that module:

cd /tmp
curl -sSfLO https://oph.mdrjr.net/meveric/other/C4/rtl8812au-dkms_4.3.14_all.deb
apt install ./rtl8812au-dkms_4.3.14_all.deb
rm rtl8812au-dkms_4.3.14_all.deb

Best would be if Hardkernel got that fixed, but this should serve as workaround.

MDAR commented 3 years ago

Ummm

Thanks for the hard work.

What I now get it that I can scan for networks and it correctly sees everything in my area, but it just can't connect.

I have multiple access points on the same SSID.

Whatever I have tried brings me back to the same situation.

Slot 0 gets the correct SSID and password combination, but it just can't get a lease.


Using Ubuntu it works perfectly.

What can I do next to test this for you?

Or, as you hint, should be just flag it to Hardkernel? (Or will they just say.... "Use Ubuntu, it works")

Thanks a million

MichaIng commented 3 years ago

but it just can't get a lease.

Oh, that is bad. Yeah it needs to be reported to Hardkernel. I already asked Meveric about it, else will open an issue: https://github.com/hardkernel/linux/issues

MichaIng commented 3 years ago

Issue reported: https://github.com/hardkernel/linux/issues/418

MDAR commented 3 years ago

I thought it might be a config issue, so I tried to follow these instructions, (which is what I had to do in the Ubuntu 20 command line)

https://bhattigurjot.wordpress.com/2013/10/26/connect-to-wi-fi-network-through-ubuntu-terminal/comment-page-1/

Ok, so ifconfig isn't available, but iwconfig seemed to work

But it still refused to connect to the SSID

MDAR commented 3 years ago

But saying that.

I have restarted the C4 and your script prompted me to update 1 app

Which turned out to be

rt18812au from version 4.3.14 to 5.9.3.2

BUT

That has removed the WiFi card from the config again.

Oh well, it was worth a try 😢

MichaIng commented 3 years ago

Don't use 8 years old guides, you'll easily destroy the setup when it contains configuring OS-specific and/or outdated stacks and tools 😄. ifconfig is from the deprecated net-tools package, while nowadays you'd want to use the ip command from the iproute2 package, e.g. ip a to get an overview of attached network adapters and IP addresses.

iwconfig is deprecated the same way (superseded by iw), but the wireless-tools package contains a few other nice implementations, which is why we still have it pre-installed. It does not support WPA at all, so simply cannot work with modern WiFi networks, this is what wpasupplicant is for, controlled with the dietpi-wifidb/dietpi-config script, or via /etc/wpa_supplicant/wpa_supplicant.conf. dhclient is already started by ifupdown at boot based on /etc/network/interfaces config, so running it again would lead to two DHCP clients running concurrently.

Lol I see there is already such a package in the repo: https://dietpi.com/meveric/pool/main/r/rtl8812au-dkms/ That would need to be replaced, of course. However, as both do not fully work, it currently doesn't matter.

MDAR commented 3 years ago

Some how I don't feel that "sorry" is enough of an apology.

I will unplug my keyboard and leave it alone.

MichaIng commented 3 years ago

Some how I don't feel that "sorry" is enough of an apology.

😄, if you mean a "sorry" from your side, that is definitely not required and I didn't meant this as blame. The info on ifconfig, iwconfig, iw, ip, dhclient etc are really meant as info, as this is definitely confusing, and I ran into the same issues with the same questions and hours of searching through the web to find out how things work.

Generally nothing bad about trying out things, as long as the system is not in urgent production state 👍.

Joulinar commented 3 years ago

not sure but this might be a similar issue. https://dietpi.com/phpbb/viewtopic.php?t=9319

MichaIng commented 2 years ago

With the new Odroid N2 image, this should do it:

sudo apt update
sudo apt -y install git dkms bc linux-headers-current-meson64
git clone -b v5.6.4.2 --depth=1 https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au*
sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/g' Makefile
sudo make dkms_install
sudo modprobe 88XXau # or reboot
MichaIng commented 2 years ago

Ah sorry two important steps forgotten above but edited them inside now:

sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/g' Makefile

Would have been neat if it did find out the architecture automatically, but it obviously doesn't.

wirelessjimp commented 2 years ago

When I tried to run those commands on the Odroid C4 everything worked until I got to the make dkms_install step. It churned for a while but then errored out with this output:

root@DietPi:~/rtl8812au# sudo make dkms_install
mkdir: created directory '/usr/src/8812au-5.6.4.2_35491.20191025'
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025

Creating symlink /var/lib/dkms/8812au/5.6.4.2_35491.20191025/source ->
                 /usr/src/8812au-5.6.4.2_35491.20191025

DKMS: add completed.
dkms build -m 8812au -v 5.6.4.2_35491.20191025

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j4 KVER=5.10.123-meson64 KSRC=/lib/modules/5.10.123-meson64/build...................................................................................(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.10.123-meson64 (aarch64)
Consult /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/make.log for more information.
make: *** [Makefile:2311: dkms_install] Error 10
MichaIng commented 2 years ago

Please check:

cat /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/make.log

for the error. Probably some dev header is missing.

wirelessjimp commented 2 years ago

Was just in there looking.

DKMS make.log for 8812au-5.6.4.2_35491.20191025 for kernel 5.10.123-meson64 (aarch64)
Mon 01 Aug 2022 11:25:09 AM MDT
make[1]: Entering directory '/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build'
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.10.123-meson64/build M=/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build  modules
make[2]: Entering directory '/usr/src/linux-headers-5.10.123-meson64'
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_mlme_ext.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_mi.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_wlan_util.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_chplan.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_recv.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_sta_mgt.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/mesh/rtw_mesh.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_p2p.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_rson.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_tdls.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_br_ext.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_iol.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_sreset.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_btcoex_wifionly.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_btcoex.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_beamforming.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_odm.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_rm.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_rm_fsm.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/efuse/rtw_efuse.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/osdep_service.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/os_intfs.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/usb_intf.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/usb_ops_linux.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/ioctl_linux.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/xmit_linux.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/mlme_linux.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/recv_linux.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/wifi_regd.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/rtw_android.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/rtw_proc.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/rtw_rhashtable.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/ioctl_mp.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/hal_intf.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/hal_com.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/hal_com_phycfg.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/hal_phy.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/hal_dm.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/hal_dm_acs.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/hal_btcoex_wifionly.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/hal_btcoex.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/hal_mp.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/hal_mcc.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/hal_hci/hal_usb.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/led/hal_led.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/led/hal_usb_led.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/HalPwrSeqCmd.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/Hal8812PwrSeq.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/Hal8821APwrSeq.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/rtl8812a_xmit.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/rtl8812a_sreset.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/rtl8812a_hal_init.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/rtl8812a_phycfg.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/rtl8812a_rf6052.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/rtl8812a_dm.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/rtl8812a_rxdesc.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/rtl8812a_cmd.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/usb/usb_halinit.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/usb/rtl8812au_led.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/usb/rtl8812au_xmit.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/usb/rtl8812au_recv.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/usb/usb_ops_linux.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/efuse/rtl8812a/HalEfuseMask8812A_USB.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/efuse/rtl8812a/HalEfuseMask8821A_USB.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/hal8812a_fw.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8812a/hal8821a_fw.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/Hal8814PwrSeq.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/rtl8814a_xmit.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/rtl8814a_sreset.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/rtl8814a_hal_init.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/rtl8814a_phycfg.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/rtl8814a_rf6052.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/rtl8814a_dm.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/rtl8814a_rxdesc.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/rtl8814a_cmd.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/hal8814a_fw.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/usb/usb_halinit.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/usb/rtl8814au_led.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/usb/rtl8814au_xmit.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/usb/rtl8814au_recv.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/rtl8814a/usb/usb_ops_linux.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/efuse/rtl8814a/HalEfuseMask8814A_USB.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_debug.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_antdiv.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_soml.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_smt_ant.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_antdect.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_interface.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_phystatus.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_hwconfig.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_dig.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_pathdiv.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_rainfo.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_dynamictxpower.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_adaptivity.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_cfotracking.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_noisemonitor.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_beamforming.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_dfs.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/txbf/halcomtxbf.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/txbf/haltxbfinterface.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/txbf/phydm_hal_txbf_api.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_adc_sampling.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_ccx.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_psd.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_primary_cca.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_cck_pd.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_rssi_monitor.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_auto_dbg.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_math_lib.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_api.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_pow_train.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_lna_sat.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_pmac_tx_setting.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/phydm_mp.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/halrf/halrf.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/halrf/halrf_debug.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/halrf/halphyrf_ce.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/halrf/halrf_powertracking_ce.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/halrf/halrf_powertracking.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/halrf/halrf_kfree.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8812a/halhwimg8812a_mac.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8812a/halhwimg8812a_bb.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8812a/halhwimg8812a_rf.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/halrf/rtl8812a/halrf_8812a_ce.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8812a/phydm_regconfig8812a.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8812a/phydm_rtl8812a.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/txbf/haltxbfjaguar.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8821a/halhwimg8821a_mac.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8821a/halhwimg8821a_bb.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8821a/halhwimg8821a_rf.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/halrf/rtl8821a/halrf_8821a_ce.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8821a/phydm_regconfig8821a.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8821a/phydm_rtl8821a.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/halrf/rtl8821a/halrf_iqk_8821a_ce.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8814a/halhwimg8814a_bb.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8814a/halhwimg8814a_mac.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8814a/halhwimg8814a_rf.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/halrf/rtl8814a/halrf_iqk_8814a.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8814a/phydm_regconfig8814a.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/halrf/rtl8814a/halrf_8814a_ce.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/rtl8814a/phydm_rtl8814a.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/hal/phydm/txbf/haltxbf8814a.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/platform/platform_ops.o
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_mp.o
  LD [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/88XXau.o
  MODPOST /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/Module.symvers
make[4]: *** No rule to make target 'scripts/module.lds', needed by '/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/88XXau.ko'.  Stop.
make[4]: *** Waiting for unfinished jobs....
  CC [M]  /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/88XXau.mod.o
make[3]: *** [scripts/Makefile.modpost:130: __modpost] Error 2
make[2]: *** [Makefile:1726: modules] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.10.123-meson64'
make[1]: *** [Makefile:2251: modules] Error 2
make[1]: Leaving directory '/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build'
MichaIng commented 2 years ago

Nasty, seems to be an issue with Linux v5.10 headers: https://github.com/aircrack-ng/rtl8812au/issues/762

Ah, I mixed it up and built it on NanoPi R4S with "edge" kernel v5.18. I'll try to apply the mentioned fix/workaround on Odroid N2 now.

MichaIng commented 2 years ago

This did it:

sudo ln -s module.lds.S /usr/src/linux-headers-5.10.123-meson64/scripts/module.lds
sudo make dkms_remove
sudo make dkms_install
sudo modprobe 88XXau

But it says:

Good news! Module version v5.6.4.2_35491.20191025 for 88XXau.ko
exactly matches what is already found in kernel 5.10.123-meson64.
DKMS will not replace this module.
You may override by specifying --force.

So the kernel module is there already. Quite confusing, present here but missing on rockchip64 kernel next branch 🤔. So again:

sed -i 's/dkms install/dkms install --force/' Makefile
sudo make dkms_remove
sudo make dkms_install
sudo modprobe 88XXau

Now it was actually installed but:

modprobe: ERROR: could not insert '88XXau': Exec format error

What a hassle, trying another possible fix from the readme:

export ARCH=arm64
sed -i 's/^MAKE="/MAKE="ARCH=arm64\ /' dkms.conf
sudo make dkms_remove
sudo make dkms_install
sudo modprobe 88XXau

Same error ...

Trying with "edge" Linux packages v5.17.5 now.