Closed LuisMitaHL closed 2 months ago
I added some installation instructions. But it was only tested with the 23.05.4 SDK. What version are you using?
@henkv1 And how do I include it in an OpenWrt image?
The compiled package is named kmod-rtw88-usb_ and you can find it in the bin/target/architecture/model/packages/ directory. You can copy it to your device and install it using opkg install package*. Please note that you also need to install the firmware packages for your device to make the module work.
@LuisMitaHL I fixed the compilation for the current snapshot releases. I think this will fix your compilation issues as well. Please use the snapshot branch.
The compiled package is named kmod-rtw88-usb_* and you can find it in the bin/target/architecture/model/packages/ directory. You can copy it to your device and install it using opkg install package. Please note that you also need to install the firmware packages for your device to make the module work.
The only rtw88 like files I found are kmod-rtw88
and kmod-rtw88-usb
. My Wi-Fi adapter has a RTW8812AU chipset. What would be the correct firmware? Also, when trying to install those files in OpenWrt, I get an error:
Could it be that more packages need to be installed?
I tried installing kmod-rtl8192ce
before and then it let me install kmod-rtw88
and kmod-rtw88-usb
, but I still can't test this driver on OpenWrt. This is what I see in the kernel log.
[ 9.434125] ixgbe: Copyright (c) 1999-2016 Intel Corporation.
[ 9.437695] Loading modules backported from Linux version v6.1.97-0-g7753af06eebfb
[ 9.438255] Backport generated by backports.git v6.1.97-1-0-g2431d56e
[ 9.491323] rtw_8812au 1-4:1.0: Direct firmware load for rtw88/rtw8812a_fw.bin failed with error -2
[ 9.491960] rtw_8812au 1-4:1.0: Falling back to sysfs fallback for: rtw88/rtw8812a_fw.bin
[ 9.530404] rtw_8812au 1-4:1.0: failed to request firmware
[ 9.530945] rtw_8812au 1-4:1.0: failed to load firmware
[ 9.531344] rtw_8812au 1-4:1.0: failed to setup chip efuse info
[ 9.531771] rtw_8812au 1-4:1.0: failed to setup chip information
[ 9.532372] rtw_8812au: probe of 1-4:1.0 failed with error -22
[ 9.532963] usbcore: registered new interface driver rtw_8812au
[ 9.534804] usbcore: registered new interface driver rtw_8821au
[ 9.539428] usbcore: registered new interface driver rtw_8821cu
[ 9.547788] usbcore: registered new interface driver rtw_8822bu
[ 9.567150] usbcore: registered new interface driver rtw_8822cu
[ 9.569555] i2c_dev: i2c /dev entries driver
[ 9.590886] e1000e: Intel(R) PRO/1000 Network Driver
[ 9.591306] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 9.600785] Intel(R) 2.5G Ethernet Linux Driver
[ 9.601183] Copyright(c) 2018 Intel Corporation.
[ 9.614679] r8169 0000:01:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 9.643320] r8169 0000:01:00.0 eth0: RTL8105e, ec:a8:6b:52:7e:e0, XID 40a, IRQ 25
[ 9.659270] rtw88_core: exports duplicate symbol check_hw_ready (owned by rtw_core)
[ 9.935516] PPP generic driver version 2.4.2
[ 9.938179] NET: Registered PF_PPPOX protocol family
[ 9.955222] rtl8192ce: Chip Version ID: B_CUT_88C
[ 9.965838] rtl8192ce: Using firmware rtlwifi/rtl8192cfwU_B.bin
[ 9.969552] ieee80211 phy1: Selected rate control algorithm 'rtl_rc'
[ 9.971914] rtlwifi: rtlwifi: wireless switch is on
[ 9.987318] rtw88_core: exports duplicate symbol check_hw_ready (owned by rtw_core)
[ 10.071443] kmodloader: 8 modules could not be probed
[ 10.072042] kmodloader: dependency not loaded rtw88_core
[ 10.072638] kmodloader: - rtw88_8723d - 1
[ 10.073025] kmodloader: dependency not loaded rtw88_pci
[ 10.073460] kmodloader: dependency not loaded rtw88_8723d
[ 10.073967] kmodloader: - rtw88_8723de - 2
[ 10.074398] kmodloader: dependency not loaded rtw88_core
[ 10.074844] kmodloader: - rtw88_8822b - 1
[ 10.075218] kmodloader: dependency not loaded rtw88_pci
[ 10.075652] kmodloader: dependency not loaded rtw88_8822b
[ 10.076096] kmodloader: - rtw88_8822be - 2
[ 10.076548] kmodloader: dependency not loaded rtw88_core
[ 10.077035] kmodloader: - rtw88_8822c - 1
[ 10.077403] kmodloader: dependency not loaded rtw88_pci
[ 10.077831] kmodloader: dependency not loaded rtw88_8822c
[ 10.078273] kmodloader: - rtw88_8822ce - 2
[ 10.078644] kmodloader: - rtw88_core - 0
[ 10.079107] kmodloader: dependency not loaded rtw88_core
[ 10.079637] kmodloader: - rtw88_pci - 1
[ 14.689334] RTL8208 Fast Ethernet r8169-0-100:00: attached PHY driver (mii_bus:phy_addr=r8169-0-100:00, irq=MAC)
[ 15.023958] r8169 0000:01:00.0 eth0: Link is Down
[ 15.024396] br-lan: port 1(eth0) entered blocking state
I have also noticed that many more packages are compiled than the ones I want. This makes the compilation take a long time.
I don't think there is a firmware package for rtl8812au. You can download it manually from https://github.com/lwfinger/rtw88/tree/master/firmware and copy it to /lib/firmware/rtw88/. I will see if I can include the firmware in the package.
Is it possible to compile this package only and not compile the other packages as well?
Could you please update the patches to be compatible with new versions of OpenWrt core packages?
Hi, I tried cloning the repo on package/kernel/rtw88 but I have this error
Do you have instructions for building the modules?