Skip to main content
Topic: Issues Compiling rtl8188gu Driver on Artix Linux (OpenRC) (Read 879 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Issues Compiling rtl8188gu Driver on Artix Linux (OpenRC)

System

init: OpenRC
Kernel: 6.15.8-artix1-1
Driver: rtl8188gu (from AUR: rtl8188gu-dkms-git (I applied the patch for up to date Kernels))
Device: Realtek 8188GU USB Wi-Fi adapter

---

Objective

Install and compile the Realtek 8188GU Wi-Fi driver using DKMS on Artix Linux.


---

Problems Encountered

1. Header Not Found: drv_types.h

When attempting to build the driver manually (make) or through dkms install, I received:

fatal error: drv_types.h: No such file or directory

The file drv_types.h was present inside the include/ directory, but the compiler couldn’t resolve the path properly. The source code used:

#include <drv_types.h>

This failed even though the header was located correctly within the source tree.


---

2. Tried Fixing with sed and Absolute Includes

I attempted to replace the includes with absolute paths using:

sed -i 's|#include <drv_types.h>|#include "/home/anon/rtl8188gu-dkms-git/src/rtl8188gu/include/drv_types.h"|' core/*.c

Despite this, compilation still failed. Other headers began throwing similar errors, and the project appears to rely heavily on relative includes across its structure.


---

3. Manual Build Attempt (make)

I tried building the module directly using:

make clean
make all

Got this error:

fatal error: /home/anon/rtl8188gu/include: No such file or directory

This happened because one source file had:

#include "/home/anon/rtl8188gu/include"

Which is not valid in C — you can't include a directory. Even after correcting the paths to point to specific headers, compilation continued to fail.


---

4. Makefile Modifications

I manually edited the Makefile and added:

EXTRA_CFLAGS += -I$(src)/include

I also tried injecting custom variables into the kernel build system, but the build process did not respect them consistently. Include path errors still occurred.

---

If anyone has managed to compile this driver on kernel 6.15.x or a similar version under Artix, I’d really appreciate any insights, patches, or tips.

Re: Issues Compiling rtl8188gu Driver on Artix Linux (OpenRC)

Reply #1
This isn't because of init or Artix, it's either bad packaging or driver quality.

Re: Issues Compiling rtl8188gu Driver on Artix Linux (OpenRC)

Reply #2
Last update for rtl8188gu-dkms-git was a year ago~ (2024-09-25). It won't work with newest kernel. Use https://aur.archlinux.org/packages/rtl8xxxu-dkms-git

Re: Issues Compiling rtl8188gu Driver on Artix Linux (OpenRC)

Reply #3
Last update for rtl8188gu-dkms-git was a year ago~ (2024-09-25). It won't work with newest kernel. Use https://aur.archlinux.org/packages/rtl8xxxu-dkms-git

I already done that, thats the problem. With this driver dkms returns that is instaled:

[anon@anon rtl8xxxu-dkms-git]$ sudo dkms status
rtl8xxxu/r71.eb876f4, 6.15.8-artix1-1, x86_64: installed

but ip link shows that the wlan0 interface is down and if I try to boot the interface up nothing happens.

Btw: Bus 001 Device 004: ID 0bda:c812 Realtek Semiconductor Corp. 802.11ac NIC¨ as you can see the device is not in cdrom mode.

I looked into the GitHub repository of the this driver: Realtek 802.11n¨ and my is ¨ac¨, I don´t know but maybe this have something to do with why it's not working.

Thaks for replying anyway.

Also:
[anon@anon rtl8xxxu-dkms-git]$ sudo dhcpcd wlan0
dhcpcd-10.2.4 starting
DUID 00:01:00:01:30:1c:f9:46:56:ae:46:e1:12:46
wlan0: waiting for carrier

[anon@anon rtl8xxxu-dkms-git]$ ping gnu.org
ping: gnu.org: Temporary failure in name resolution


Re: Issues Compiling rtl8188gu Driver on Artix Linux (OpenRC)

Reply #4
You actually shouldn't need those aur packages at all as this device 0bda:c812 was mainlined since kernel 6.2. It seems that this is another case of Realtek's retarded device reporting that shows different name than which chip is actually used physically on the card which seems to be supported by rtw88_8822cu:
https://linux-hardware.org/?id=usb%3A0bda-c812

https://github.com/torvalds/linux/blob/master/drivers/net/wireless/realtek/rtw88/usb.h#L47
https://github.com/torvalds/linux/blob/master/drivers/net/wireless/realtek/rtw88/rtw8822cu.c#L14-L15

https://gitea.artixlinux.org/packages/linux/src/branch/master/config#L4213-L4247
Code: [Select]
$ zcat /proc/config.gz | grep CONFIG_RTW88
CONFIG_RTW88=m
CONFIG_RTW88_CORE=m
CONFIG_RTW88_PCI=m
CONFIG_RTW88_SDIO=m
CONFIG_RTW88_USB=m
CONFIG_RTW88_8822B=m
CONFIG_RTW88_8822C=m
CONFIG_RTW88_8723X=m
CONFIG_RTW88_8703B=m
CONFIG_RTW88_8723D=m
CONFIG_RTW88_8821C=m
CONFIG_RTW88_88XXA=m
CONFIG_RTW88_8821A=m
CONFIG_RTW88_8812A=m
CONFIG_RTW88_8814A=m
CONFIG_RTW88_8822BE=m
CONFIG_RTW88_8822BS=m
CONFIG_RTW88_8822BU=m
CONFIG_RTW88_8822CE=m
CONFIG_RTW88_8822CS=m
CONFIG_RTW88_8822CU=m
CONFIG_RTW88_8723DE=m
CONFIG_RTW88_8723DS=m
CONFIG_RTW88_8723CS=m
CONFIG_RTW88_8723DU=m
CONFIG_RTW88_8821CE=m
CONFIG_RTW88_8821CS=m
CONFIG_RTW88_8821CU=m
CONFIG_RTW88_8821AU=m
CONFIG_RTW88_8812AU=m
CONFIG_RTW88_8814AE=m
CONFIG_RTW88_8814AU=m
CONFIG_RTW88_DEBUG=y
CONFIG_RTW88_DEBUGFS=y
CONFIG_RTW88_LEDS=y

Now the question is - Why is your device not working? Try modprobe'ing this rtw88_8822cu directly.

Re: Issues Compiling rtl8188gu Driver on Artix Linux (OpenRC)

Reply #5
You actually shouldn't need those aur packages at all as this device 0bda:c812 was mainlined since kernel 6.2. It seems that this is another case of Realtek's retarded device reporting that shows different name than which chip is actually used physically on the card which seems to be supported by rtw88_8822cu:
https://linux-hardware.org/?id=usb%3A0bda-c812

https://github.com/torvalds/linux/blob/master/drivers/net/wireless/realtek/rtw88/usb.h#L47
https://github.com/torvalds/linux/blob/master/drivers/net/wireless/realtek/rtw88/rtw8822cu.c#L14-L15

https://gitea.artixlinux.org/packages/linux/src/branch/master/config#L4213-L4247
Code: [Select]
$ zcat /proc/config.gz | grep CONFIG_RTW88
CONFIG_RTW88=m
CONFIG_RTW88_CORE=m
CONFIG_RTW88_PCI=m
CONFIG_RTW88_SDIO=m
CONFIG_RTW88_USB=m
CONFIG_RTW88_8822B=m
CONFIG_RTW88_8822C=m
CONFIG_RTW88_8723X=m
CONFIG_RTW88_8703B=m
CONFIG_RTW88_8723D=m
CONFIG_RTW88_8821C=m
CONFIG_RTW88_88XXA=m
CONFIG_RTW88_8821A=m
CONFIG_RTW88_8812A=m
CONFIG_RTW88_8814A=m
CONFIG_RTW88_8822BE=m
CONFIG_RTW88_8822BS=m
CONFIG_RTW88_8822BU=m
CONFIG_RTW88_8822CE=m
CONFIG_RTW88_8822CS=m
CONFIG_RTW88_8822CU=m
CONFIG_RTW88_8723DE=m
CONFIG_RTW88_8723DS=m
CONFIG_RTW88_8723CS=m
CONFIG_RTW88_8723DU=m
CONFIG_RTW88_8821CE=m
CONFIG_RTW88_8821CS=m
CONFIG_RTW88_8821CU=m
CONFIG_RTW88_8821AU=m
CONFIG_RTW88_8812AU=m
CONFIG_RTW88_8814AE=m
CONFIG_RTW88_8814AU=m
CONFIG_RTW88_DEBUG=y
CONFIG_RTW88_DEBUGFS=y
CONFIG_RTW88_LEDS=y

Now the question is - Why is your device not working? Try modprobe'ing this rtw88_8822cu directly.

Here

[anon@anon ~]$ sudo fuser -v /sys/module/rtw_8822c
[anon@anon ~]$ sudo modprobe -r rtl8xxxu
[anon@anon ~]$ sudo modprobe rtw88_8822cu
[anon@anon ~]$ ip link show wlan0
7: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN mode DORMANT group default qlen 1000
    link/ether d2:e8:af:8f:83:a3 brd ff:ff:ff:ff:ff:ff permaddr 90:de:80:da:22:64
[anon@anon ~]$ sudo ip link set wlan0 up
[anon@anon ~]$ ip link show wlan0
7: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN mode DORMANT group default qlen 1000
    link/ether d2:e8:af:8f:83:a3 brd ff:ff:ff:ff:ff:ff permaddr 90:de:80:da:22:64
[anon@anon ~]$ sudo dmesg | grep rtw88
[anon@anon ~]$ sudo zcat /proc/config.gz | grep CONFIG_RTW88
CONFIG_RTW88=m
CONFIG_RTW88_CORE=m
CONFIG_RTW88_PCI=m
CONFIG_RTW88_SDIO=m
CONFIG_RTW88_USB=m
CONFIG_RTW88_8822B=m
CONFIG_RTW88_8822C=m
CONFIG_RTW88_8723X=m
CONFIG_RTW88_8703B=m
CONFIG_RTW88_8723D=m
CONFIG_RTW88_8821C=m
CONFIG_RTW88_88XXA=m
CONFIG_RTW88_8821A=m
CONFIG_RTW88_8812A=m
CONFIG_RTW88_8814A=m
CONFIG_RTW88_8822BE=m
CONFIG_RTW88_8822BS=m
CONFIG_RTW88_8822BU=m
CONFIG_RTW88_8822CE=m
CONFIG_RTW88_8822CS=m
CONFIG_RTW88_8822CU=m
CONFIG_RTW88_8723DE=m
CONFIG_RTW88_8723DS=m
CONFIG_RTW88_8723CS=m
CONFIG_RTW88_8723DU=m
CONFIG_RTW88_8821CE=m
CONFIG_RTW88_8821CS=m
CONFIG_RTW88_8821CU=m
CONFIG_RTW88_8821AU=m
CONFIG_RTW88_8812AU=m
CONFIG_RTW88_8814AE=m
CONFIG_RTW88_8814AU=m
CONFIG_RTW88_DEBUG=y
CONFIG_RTW88_DEBUGFS=y
CONFIG_RTW88_LEDS=y

[anon@anon ~]$ sudo reboot
[anon@anon ~]$ sudo ip link set wlan0 up
[anon@anon ~]$ ip link show wlan0
7: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN mode DORMANT group default qlen 1000
    link/ether d2:e8:af:8f:83:a3 brd ff:ff:ff:ff:ff:ff permaddr 90:de:80:da:22:64


I removed every incompatible driver that could possible interfere in this.

[anon@anon ~]$ sudo lsmod | grep rt
rtw_8822cu             12288  0
rtw_8822c             495616  1 rtw_8822cu
rtw_usb                32768  1 rtw_8822cu
rtw_core              339968  2 rtw_usb,rtw_8822c
mac80211             1650688  2 rtw_usb,rtw_core
cfg80211             1400832  2 rtw_core,mac80211

Re: Issues Compiling rtl8188gu Driver on Artix Linux (OpenRC)

Reply #6
Have you looked at the comments on the AUR page for that package?
https://aur.archlinux.org/packages/rtl8188gu-dkms-git
Also there's some recent discussion here:
https://unix.stackexchange.com/questions/779665/usb-wifi-adapter-rtl8188gu-drivers
It seems you have at least two approaches there, one being this other AUR package in conjunction with the usb_modeswitch package:
https://aur.archlinux.org/packages/rtl8xxxu-dkms-git
And the alternative repo which may not need usb_modeswitch, which is mentioned in the AUR comments (and the ReadMe for that is interesting too) :
https://github.com/morrownr/rtl8852bu-20240418
You might also try the usb_modeswitch approach with the in-kernel driver? I don't have one of those wifi adapters myself to know if any of this will work in practice!  ;D

Re: Issues Compiling rtl8188gu Driver on Artix Linux (OpenRC)

Reply #7
Have you looked at the comments on the AUR page for that package?
https://aur.archlinux.org/packages/rtl8188gu-dkms-git
Also there's some recent discussion here:
https://unix.stackexchange.com/questions/779665/usb-wifi-adapter-rtl8188gu-drivers
It seems you have at least two approaches there, one being this other AUR package in conjunction with the usb_modeswitch package:
https://aur.archlinux.org/packages/rtl8xxxu-dkms-git
And the alternative repo which may not need usb_modeswitch, which is mentioned in the AUR comments (and the ReadMe for that is interesting too) :
https://github.com/morrownr/rtl8852bu-20240418
You might also try the usb_modeswitch approach with the in-kernel driver? I don't have one of those wifi adapters myself to know if any of this will work in practice!  ;D

Yeah, I looked, tested other packages, forks, also made sure to change the cd rom mode. The interface appears when using ¨Ip link¨ but keeps down.

The shop that a bought the adapter references the driver in the package, I downloaded but the ¨install.sh¨ scripts does not work, probably because of the Kernel versions listed in the packages. When trying to install the erros of ¨drv_types.h¨ keeps appearing.

Heres is the ¨tree" if anyone wants to see the files that appears in the package provided by the shop seller. I think that there is no hope for this problem, I should have bought a better wifi adapter.

Code: [Select]
[anon LINUX]# tree 

├── 8811AUlinux
│   └── RTL8821AU_Linux_v5.2.6_21981_COEX20170206-6760.20170407.zip
├── RTL81888192EUS_linux_v4.3.0.4_11485.20140519
│   ├── android_ref_codes_JB_4.2
│   │   ├── linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
│   │   ├── realtek_wifi_SDK_for_android_JB_4.2_20130208.tar.gz
│   │   └── Realtek_Wi-Fi_SDK_for_Android_JB_4_2.pdf
│   ├── android_ref_codes_KK_4.4
│   │   ├── linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
│   │   ├── realtek_wifi_SDK_for_android_KK_4.4_20140117.tar.gz
│   │   └── Realtek_Wi-Fi_SDK_for_Android_KK_4_4.pdf
│   ├── document
│   │   ├── HowTo_enable_driver_to_support_80211d.pdf
│   │   ├── HowTo_enable_driver_to_support_WIFI_certification_test.pdf
│   │   ├── HowTo_enable_the_power_saving_functionality.pdf
│   │   ├── HowTo_support_more_VidPids.pdf
│   │   ├── linux_dhcp_server_notes.txt
│   │   ├── Miracast_for_Realtek_WiFi.pdf
│   │   ├── Quick_Start_Guide_for_Bridge.pdf
│   │   ├── Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf
│   │   ├── Quick_Start_Guide_for_SoftAP.pdf
│   │   ├── Quick_Start_Guide_for_Station_Mode.pdf
│   │   ├── Quick_Start_Guide_for_WOW.pdf
│   │   ├── Realtek_WiFi_concurrent_mode_Introduction.pdf
│   │   ├── RTK_P2P_WFD_Programming_guide.pdf
│   │   ├── SoftAP_Mode_features.pdf
│   │   ├── Wireless_tools_porting_guide.pdf
│   │   └── wpa_cli_with_wpa_supplicant.pdf
│   ├── driver
│   │   ├── rtl8188EUS_linux_v4.3.0.4_11485.20140519
│   │   │   ├── 8188eu.mod
│   │   │   ├── clean
│   │   │   ├── core
│   │   │   │   ├── efuse
│   │   │   │   │   └── rtw_efuse.c
│   │   │   │   ├── rtw_ap.c
│   │   │   │   ├── rtw_beamforming.c
│   │   │   │   ├── rtw_br_ext.c
│   │   │   │   ├── rtw_btcoex.c
│   │   │   │   ├── rtw_bt_mp.c
│   │   │   │   ├── rtw_cmd.c
│   │   │   │   ├── rtw_debug.c
│   │   │   │   ├── rtw_eeprom.c
│   │   │   │   ├── rtw_ieee80211.c
│   │   │   │   ├── rtw_io.c
│   │   │   │   ├── rtw_ioctl_query.c
│   │   │   │   ├── rtw_ioctl_rtl.c
│   │   │   │   ├── rtw_ioctl_set.c
│   │   │   │   ├── rtw_iol.c
│   │   │   │   ├── rtw_mlme.c
│   │   │   │   ├── rtw_mlme_ext.c
│   │   │   │   ├── rtw_mp.c
│   │   │   │   ├── rtw_mp_ioctl.c
│   │   │   │   ├── rtw_odm.c
│   │   │   │   ├── rtw_p2p.c
│   │   │   │   ├── rtw_pwrctrl.c
│   │   │   │   ├── rtw_recv.c
│   │   │   │   ├── rtw_rf.c
│   │   │   │   ├── rtw_security.c
│   │   │   │   ├── rtw_sreset.c
│   │   │   │   ├── rtw_sta_mgt.c
│   │   │   │   ├── rtw_tdls.c
│   │   │   │   ├── rtw_vht.c
│   │   │   │   ├── rtw_wapi.c
│   │   │   │   ├── rtw_wapi_sms4.c
│   │   │   │   ├── rtw_wlan_util.c
│   │   │   │   └── rtw_xmit.c
│   │   │   ├── hal
│   │   │   │   ├── hal_btcoex.c
│   │   │   │   ├── hal_com.c
│   │   │   │   ├── hal_com_phycfg.c
│   │   │   │   ├── hal_hci
│   │   │   │   │   └── hal_usb.c
│   │   │   │   ├── hal_intf.c
│   │   │   │   ├── hal_phy.c
│   │   │   │   ├── HalPwrSeqCmd.c
│   │   │   │   ├── led
│   │   │   │   │   └── hal_usb_led.c
│   │   │   │   ├── OUTSRC
│   │   │   │   │   ├── HalPhyRf.c
│   │   │   │   │   ├── HalPhyRf.h
│   │   │   │   │   ├── odm_AntDiv.c
│   │   │   │   │   ├── odm_AntDiv.h
│   │   │   │   │   ├── odm.c
│   │   │   │   │   ├── odm_debug.c
│   │   │   │   │   ├── odm_debug.h
│   │   │   │   │   ├── odm.h
│   │   │   │   │   ├── odm_HWConfig.c
│   │   │   │   │   ├── odm_HWConfig.h
│   │   │   │   │   ├── odm_interface.c
│   │   │   │   │   ├── odm_interface.h
│   │   │   │   │   ├── odm_precomp.h
│   │   │   │   │   ├── odm_RegDefine11AC.h
│   │   │   │   │   ├── odm_RegDefine11N.h
│   │   │   │   │   ├── odm_reg.h
│   │   │   │   │   ├── odm_types.h
│   │   │   │   │   └── rtl8188e
│   │   │   │   │       ├── Hal8188ERateAdaptive.c
│   │   │   │   │       ├── Hal8188ERateAdaptive.h
│   │   │   │   │       ├── Hal8188EReg.h
│   │   │   │   │       ├── HalHWImg8188E_BB.c
│   │   │   │   │       ├── HalHWImg8188E_BB.h
│   │   │   │   │       ├── HalHWImg8188E_FW.c
│   │   │   │   │       ├── HalHWImg8188E_FW.h
│   │   │   │   │       ├── HalHWImg8188E_MAC.c
│   │   │   │   │       ├── HalHWImg8188E_MAC.h
│   │   │   │   │       ├── HalHWImg8188E_RF.c
│   │   │   │   │       ├── HalHWImg8188E_RF.h
│   │   │   │   │       ├── HalPhyRf_8188e.c
│   │   │   │   │       ├── HalPhyRf_8188e.h
│   │   │   │   │       ├── odm_RegConfig8188E.c
│   │   │   │   │       ├── odm_RegConfig8188E.h
│   │   │   │   │       ├── odm_RTL8188E.c
│   │   │   │   │       └── odm_RTL8188E.h
│   │   │   │   ├── OUTSRC-BTCoexist
│   │   │   │   │   ├── HalBtc8188c2Ant.c
│   │   │   │   │   ├── HalBtc8188c2Ant.h
│   │   │   │   │   ├── HalBtc8192d2Ant.c
│   │   │   │   │   ├── HalBtc8192d2Ant.h
│   │   │   │   │   ├── HalBtc8192e1Ant.c
│   │   │   │   │   ├── HalBtc8192e1Ant.h
│   │   │   │   │   ├── HalBtc8192e2Ant.c
│   │   │   │   │   ├── HalBtc8192e2Ant.h
│   │   │   │   │   ├── HalBtc8723a1Ant.c
│   │   │   │   │   ├── HalBtc8723a1Ant.h
│   │   │   │   │   ├── HalBtc8723a2Ant.c
│   │   │   │   │   ├── HalBtc8723a2Ant.h
│   │   │   │   │   ├── HalBtc8723b1Ant.c
│   │   │   │   │   ├── HalBtc8723b1Ant.h
│   │   │   │   │   ├── HalBtc8723b2Ant.c
│   │   │   │   │   ├── HalBtc8723b2Ant.h
│   │   │   │   │   ├── HalBtc8812a1Ant.c
│   │   │   │   │   ├── HalBtc8812a1Ant.h
│   │   │   │   │   ├── HalBtc8812a2Ant.c
│   │   │   │   │   ├── HalBtc8812a2Ant.h
│   │   │   │   │   ├── HalBtc8821a1Ant.c
│   │   │   │   │   ├── HalBtc8821a1Ant.h
│   │   │   │   │   ├── HalBtc8821a2Ant.c
│   │   │   │   │   ├── HalBtc8821a2Ant.h
│   │   │   │   │   ├── HalBtcOutSrc.h
│   │   │   │   │   └── Mp_Precomp.h
│   │   │   │   └── rtl8188e
│   │   │   │       ├── Hal8188EPwrSeq.c
│   │   │   │       ├── rtl8188e_cmd.c
│   │   │   │       ├── rtl8188e_dm.c
│   │   │   │       ├── rtl8188e_hal_init.c
│   │   │   │       ├── rtl8188e_mp.c
│   │   │   │       ├── rtl8188e_phycfg.c
│   │   │   │       ├── rtl8188e_rf6052.c
│   │   │   │       ├── rtl8188e_rxdesc.c
│   │   │   │       ├── rtl8188e_sreset.c
│   │   │   │       ├── rtl8188e_xmit.c
│   │   │   │       └── usb
│   │   │   │           ├── rtl8188eu_led.c
│   │   │   │           ├── rtl8188eu_recv.c
│   │   │   │           ├── rtl8188eu_xmit.c
│   │   │   │           ├── usb_halinit.c
│   │   │   │           └── usb_ops_linux.c
│   │   │   ├── ifcfg-wlan0
│   │   │   ├── include
│   │   │   │   ├── autoconf.h
│   │   │   │   ├── basic_types.h
│   │   │   │   ├── byteorder
│   │   │   │   │   ├── big_endian.h
│   │   │   │   │   ├── generic.h
│   │   │   │   │   ├── little_endian.h
│   │   │   │   │   ├── swabb.h
│   │   │   │   │   └── swab.h
│   │   │   │   ├── circ_buf.h
│   │   │   │   ├── cmd_osdep.h
│   │   │   │   ├── custom_gpio.h
│   │   │   │   ├── drv_conf.h
│   │   │   │   ├── drv_types_ce.h
│   │   │   │   ├── drv_types_gspi.h
│   │   │   │   ├── drv_types.h
│   │   │   │   ├── drv_types_linux.h
│   │   │   │   ├── drv_types_pci.h
│   │   │   │   ├── drv_types_sdio.h
│   │   │   │   ├── drv_types_xp.h
│   │   │   │   ├── ethernet.h
│   │   │   │   ├── gspi_hal.h
│   │   │   │   ├── gspi_ops.h
│   │   │   │   ├── gspi_ops_linux.h
│   │   │   │   ├── gspi_osintf.h
│   │   │   │   ├── h2clbk.h
│   │   │   │   ├── Hal8188EPhyCfg.h
│   │   │   │   ├── Hal8188EPhyReg.h
│   │   │   │   ├── Hal8188EPwrSeq.h
│   │   │   │   ├── Hal8192CPhyCfg.h
│   │   │   │   ├── Hal8192CPhyReg.h
│   │   │   │   ├── Hal8192DPhyCfg.h
│   │   │   │   ├── Hal8192DPhyReg.h
│   │   │   │   ├── Hal8192EPhyCfg.h
│   │   │   │   ├── Hal8192EPhyReg.h
│   │   │   │   ├── Hal8192EPwrSeq.h
│   │   │   │   ├── Hal8723APhyCfg.h
│   │   │   │   ├── Hal8723APhyReg.h
│   │   │   │   ├── Hal8723BPhyCfg.h
│   │   │   │   ├── Hal8723BPhyReg.h
│   │   │   │   ├── Hal8723BPwrSeq.h
│   │   │   │   ├── Hal8723PwrSeq.h
│   │   │   │   ├── Hal8812PhyCfg.h
│   │   │   │   ├── Hal8812PhyReg.h
│   │   │   │   ├── Hal8812PwrSeq.h
│   │   │   │   ├── Hal8821APwrSeq.h
│   │   │   │   ├── hal_btcoex.h
│   │   │   │   ├── hal_com.h
│   │   │   │   ├── hal_com_h2c.h
│   │   │   │   ├── hal_com_led.h
│   │   │   │   ├── hal_com_phycfg.h
│   │   │   │   ├── hal_com_reg.h
│   │   │   │   ├── hal_data.h
│   │   │   │   ├── hal_intf.h
│   │   │   │   ├── hal_pg.h
│   │   │   │   ├── hal_phy.h
│   │   │   │   ├── hal_phy_reg.h
│   │   │   │   ├── HalPwrSeqCmd.h
│   │   │   │   ├── hal_sdio.h
│   │   │   │   ├── HalVerDef.h
│   │   │   │   ├── ieee80211_ext.h
│   │   │   │   ├── ieee80211.h
│   │   │   │   ├── if_ether.h
│   │   │   │   ├── ioctl_cfg80211.h
│   │   │   │   ├── ip.h
│   │   │   │   ├── linux
│   │   │   │   │   └── wireless.h
│   │   │   │   ├── mlme_osdep.h
│   │   │   │   ├── mp_custom_oid.h
│   │   │   │   ├── nic_spec.h
│   │   │   │   ├── osdep_intf.h
│   │   │   │   ├── osdep_service_bsd.h
│   │   │   │   ├── osdep_service_ce.h
│   │   │   │   ├── osdep_service.h
│   │   │   │   ├── osdep_service_linux.h
│   │   │   │   ├── osdep_service_xp.h
│   │   │   │   ├── pci_hal.h
│   │   │   │   ├── pci_ops.h
│   │   │   │   ├── pci_osintf.h
│   │   │   │   ├── recv_osdep.h
│   │   │   │   ├── rtl8188e_cmd.h
│   │   │   │   ├── rtl8188e_dm.h
│   │   │   │   ├── rtl8188e_hal.h
│   │   │   │   ├── rtl8188e_led.h
│   │   │   │   ├── rtl8188e_recv.h
│   │   │   │   ├── rtl8188e_rf.h
│   │   │   │   ├── rtl8188e_spec.h
│   │   │   │   ├── rtl8188e_sreset.h
│   │   │   │   ├── rtl8188e_xmit.h
│   │   │   │   ├── rtl8192c_cmd.h
│   │   │   │   ├── rtl8192c_dm.h
│   │   │   │   ├── rtl8192c_event.h
│   │   │   │   ├── rtl8192c_hal.h
│   │   │   │   ├── rtl8192c_led.h
│   │   │   │   ├── rtl8192c_recv.h
│   │   │   │   ├── rtl8192c_rf.h
│   │   │   │   ├── rtl8192c_spec.h
│   │   │   │   ├── rtl8192c_sreset.h
│   │   │   │   ├── rtl8192c_xmit.h
│   │   │   │   ├── rtl8192d_cmd.h
│   │   │   │   ├── rtl8192d_dm.h
│   │   │   │   ├── rtl8192d_hal.h
│   │   │   │   ├── rtl8192d_led.h
│   │   │   │   ├── rtl8192d_recv.h
│   │   │   │   ├── rtl8192d_rf.h
│   │   │   │   ├── rtl8192d_spec.h
│   │   │   │   ├── rtl8192d_xmit.h
│   │   │   │   ├── rtl8192e_cmd.h
│   │   │   │   ├── rtl8192e_dm.h
│   │   │   │   ├── rtl8192e_hal.h
│   │   │   │   ├── rtl8192e_led.h
│   │   │   │   ├── rtl8192e_recv.h
│   │   │   │   ├── rtl8192e_rf.h
│   │   │   │   ├── rtl8192e_spec.h
│   │   │   │   ├── rtl8192e_sreset.h
│   │   │   │   ├── rtl8192e_xmit.h
│   │   │   │   ├── rtl8723a_cmd.h
│   │   │   │   ├── rtl8723a_dm.h
│   │   │   │   ├── rtl8723a_hal.h
│   │   │   │   ├── rtl8723a_led.h
│   │   │   │   ├── rtl8723a_pg.h
│   │   │   │   ├── rtl8723a_recv.h
│   │   │   │   ├── rtl8723a_rf.h
│   │   │   │   ├── rtl8723a_spec.h
│   │   │   │   ├── rtl8723a_sreset.h
│   │   │   │   ├── rtl8723a_xmit.h
│   │   │   │   ├── rtl8723b_cmd.h
│   │   │   │   ├── rtl8723b_dm.h
│   │   │   │   ├── rtl8723b_hal.h
│   │   │   │   ├── rtl8723b_led.h
│   │   │   │   ├── rtl8723b_recv.h
│   │   │   │   ├── rtl8723b_rf.h
│   │   │   │   ├── rtl8723b_spec.h
│   │   │   │   ├── rtl8723b_sreset.h
│   │   │   │   ├── rtl8723b_xmit.h
│   │   │   │   ├── rtl8812a_cmd.h
│   │   │   │   ├── rtl8812a_dm.h
│   │   │   │   ├── rtl8812a_hal.h
│   │   │   │   ├── rtl8812a_led.h
│   │   │   │   ├── rtl8812a_recv.h
│   │   │   │   ├── rtl8812a_rf.h
│   │   │   │   ├── rtl8812a_spec.h
│   │   │   │   ├── rtl8812a_sreset.h
│   │   │   │   ├── rtl8812a_xmit.h
│   │   │   │   ├── rtl8821a_spec.h
│   │   │   │   ├── rtl8821a_xmit.h
│   │   │   │   ├── rtw_android.h
│   │   │   │   ├── rtw_ap.h
│   │   │   │   ├── rtw_beamforming.h
│   │   │   │   ├── rtw_br_ext.h
│   │   │   │   ├── rtw_btcoex.h
│   │   │   │   ├── rtw_bt_mp.h
│   │   │   │   ├── rtw_byteorder.h
│   │   │   │   ├── rtw_cmd.h
│   │   │   │   ├── rtw_debug.h
│   │   │   │   ├── rtw_eeprom.h
│   │   │   │   ├── rtw_efuse.h
│   │   │   │   ├── rtw_event.h
│   │   │   │   ├── rtw_ht.h
│   │   │   │   ├── rtw_ioctl.h
│   │   │   │   ├── rtw_ioctl_query.h
│   │   │   │   ├── rtw_ioctl_rtl.h
│   │   │   │   ├── rtw_ioctl_set.h
│   │   │   │   ├── rtw_io.h
│   │   │   │   ├── rtw_iol.h
│   │   │   │   ├── rtw_mlme_ext.h
│   │   │   │   ├── rtw_mlme.h
│   │   │   │   ├── rtw_mp.h
│   │   │   │   ├── rtw_mp_ioctl.h
│   │   │   │   ├── rtw_mp_phy_regdef.h
│   │   │   │   ├── rtw_odm.h
│   │   │   │   ├── rtw_p2p.h
│   │   │   │   ├── rtw_pwrctrl.h
│   │   │   │   ├── rtw_qos.h
│   │   │   │   ├── rtw_recv.h
│   │   │   │   ├── rtw_rf.h
│   │   │   │   ├── rtw_security.h
│   │   │   │   ├── rtw_sreset.h
│   │   │   │   ├── rtw_tdls.h
│   │   │   │   ├── rtw_version.h
│   │   │   │   ├── rtw_vht.h
│   │   │   │   ├── rtw_wapi.h
│   │   │   │   ├── rtw_wifi_regd.h
│   │   │   │   ├── rtw_xmit.h
│   │   │   │   ├── sdio_hal.h
│   │   │   │   ├── sdio_ops_ce.h
│   │   │   │   ├── sdio_ops.h
│   │   │   │   ├── sdio_ops_linux.h
│   │   │   │   ├── sdio_ops_xp.h
│   │   │   │   ├── sdio_osintf.h
│   │   │   │   ├── sta_info.h
│   │   │   │   ├── usb_hal.h
│   │   │   │   ├── usb_ops.h
│   │   │   │   ├── usb_ops_linux.h
│   │   │   │   ├── usb_osintf.h
│   │   │   │   ├── usb_vendor_req.h
│   │   │   │   ├── wifi.h
│   │   │   │   ├── wlan_bssdef.h
│   │   │   │   └── xmit_osdep.h
│   │   │   ├── Kconfig
│   │   │   ├── Makefile
│   │   │   ├── os_dep
│   │   │   │   ├── linux
│   │   │   │   │   ├── custom_gpio_linux.c
│   │   │   │   │   ├── ioctl_cfg80211.c
│   │   │   │   │   ├── ioctl_linux.c
│   │   │   │   │   ├── mlme_linux.c
│   │   │   │   │   ├── os_intfs.c
│   │   │   │   │   ├── recv_linux.c
│   │   │   │   │   ├── rtw_android.c
│   │   │   │   │   ├── rtw_proc.c
│   │   │   │   │   ├── rtw_proc.h
│   │   │   │   │   ├── usb_intf.c
│   │   │   │   │   ├── usb_ops_linux.c
│   │   │   │   │   ├── wifi_regd.c
│   │   │   │   │   └── xmit_linux.c
│   │   │   │   └── osdep_service.c
│   │   │   ├── platform
│   │   │   │   ├── platform_ARM_SUNnI_sdio.c
│   │   │   │   ├── platform_ARM_SUNxI_sdio.c
│   │   │   │   ├── platform_ARM_SUNxI_usb.c
│   │   │   │   ├── platform_ops.c
│   │   │   │   ├── platform_ops.h
│   │   │   │   ├── platform_RTK_DMP_usb.c
│   │   │   │   └── platform_sprd_sdio.c
│   │   │   ├── runwpa
│   │   │   └── wlan0dhcp
│   │   └── rtl8188EUS_linux_v4.3.0.4_11485.20140519.tar.gz
│   ├── install.sh
│   ├── mp_tools
│   │   └── 88_89ENormalMPDoc
│   │       └── RF_MP_ToolPackage -20131015.zip
│   ├── readme.txt
│   ├── ReleaseNotes.pdf
│   ├── WiFi_Direct_User_Interface
│   │   ├── Android.mk
│   │   ├── install.sh
│   │   ├── p2p_api_test_linux.c
│   │   ├── p2p_test.h
│   │   ├── p2p_ui_test_linux.c
│   │   └── Start_Guide_P2P_User_Interface_Linux.pdf
│   ├── wireless_tools
│   │   └── wireless_tools.30.rtl.tar.gz
│   └── wpa_supplicant_hostapd
│       ├── p2p_hostapd.conf
│       ├── rtl_hostapd_2G.conf
│       ├── rtl_hostapd_5G.conf
│       ├── wpa_0_8.conf
│       ├── wpa_supplicant_8_jb_4.2_rtw_r8680.20130821.tar.gz
│       ├── wpa_supplicant_8_kk_4.4_rtw_r10450.20140220.tar.gz
│       └── wpa_supplicant_hostapd-0.8_rtw_r7475.20130812.tar.gz
└── RTL8814AU_Linux_v5.8.5.1_35583.20191029
    └── RTL8814AU_Linux_v5.8.5.1_35583.20191029
        ├── android_ref_codes_KK_4.4
        │   ├── linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
        │   ├── realtek_wifi_SDK_for_android_KK_4.4_20140117.tar.gz
        │   └── Realtek_Wi-Fi_SDK_for_Android_KK_4.4.pdf
        ├── android_ref_codes_L_5.x
        │   ├── linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
        │   ├── realtek_wifi_SDK_for_android_L_5.x_20150811.tgz
        │   └── Realtek_Wi-Fi_SDK_for_Android_L_5.x.pdf
        ├── android_ref_codes_O_8.0
        │   ├── linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
        │   ├── realtek_wifi_SDK_for_android_O_8.0_20181001.tar.gz
        │   └── Realtek_Wi-Fi_SDK_for_Android_O_8.0.pdf
        ├── android_ref_codes_P_9.x
        │   ├── linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
        │   ├── realtek_wifi_SDK_for_android_P_9.x_20181001.tar.gz
        │   ├── realtek_wifi_SDK_for_android_P_9.x_20190827.tar.gz
        │   └── Realtek_Wi-Fi_SDK_for_Android_P_9.x.pdf
        ├── document
        │   ├── Driver_Configuration_for_RF_Regulatory_Certification.pdf
        │   ├── How_to_append_vendor_specific_ie_to_driver_management_frames.pdf
        │   ├── HowTo_enable_and_verify_TDLS_function_in_Wi-Fi_driver.pdf
        │   ├── HowTo_enable_driver_to_support_80211d.pdf
        │   ├── HowTo_enable_the_power_saving_functionality.pdf
        │   ├── How_to_set_driver_debug_log_level.pdf
        │   ├── HowTo_support_WIFI_certification_test.pdf
        │   ├── linux_dhcp_server_notes.txt
        │   ├── Quick_Start_Guide_for_Adaptivity_and_Carrier_Sensing_Test.pdf
        │   ├── Quick_Start_Guide_for_Bridge.pdf
        │   ├── Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf
        │   ├── Quick_Start_Guide_for_SoftAP.pdf
        │   ├── Quick_Start_Guide_for_Station_Mode.pdf
        │   ├── Quick_Start_Guide_for_WOW.pdf
        │   ├── Quick_Start_Guide_for_WPA3.pdf
        │   ├── Quick_Start_Guide_for_wpa_supplicant_WiFi_P2P_test.pdf
        │   ├── Realtek_WiFi_concurrent_mode_Introduction.pdf
        │   ├── SoftAP_Mode_features.pdf
        │   ├── Wireless_tools_porting_guide.pdf
        │   └── wpa_cli_with_wpa_supplicant.pdf
        ├── driver
        │   └── rtl8814AU_linux_v5.8.5.1_35583.20191029.tar.gz
        ├── install.sh
        ├── readme.txt
        ├── ReleaseNotes.pdf
        ├── wireless_tools
        │   └── wireless_tools.30.rtl.tar.gz
        └── wpa_supplicant_hostapd
            ├── p2p_hostapd.conf
            ├── rtl_hostapd_2G.conf
            ├── rtl_hostapd_5G.conf
            ├── wpa_0_8.conf
            ├── wpa_supplicant_8_kk_4.4_rtw_r25669.20171213.tar.gz
            ├── wpa_supplicant_8_L_5.x_rtw_r24600.20171025.tar.gz
            ├── wpa_supplicant_8_O_8.x_rtw_r33457.20190507.tar.gz
            ├── wpa_supplicant_8_P_9.x_rtw_r29226.20180827.tar.gz
            └── wpa_supplicant_hostapd-0.8_rtw_r24647.20171025.tar.gz

39 directories, 429 files

 

Re: Issues Compiling rtl8188gu Driver on Artix Linux (OpenRC)

Reply #8
Have you looked for any firmware requirements? Many wifi adapters require a binary blob, and it may even come in different versions that need to match the driver releases. Some out-of-tree modules which you build yourself have a non-standard location where this blob should reside.