Open ShawnLiaoLSQ opened 2 years ago
hello ,lucky to hear that you had tried to use the rtl8821cu driver in linux4.1.15,I also meet the same problem ,and the log is
RTW: module init start
RTW: rtl8821cu v5.8.1_34171.20190628_COEX20190509-4141
RTW: build time: Mar 25 2024 21:58:21
RTW: rtl8821cu BT-Coex version = COEX20190509-4141
RTW: [HALMAC]11692M
HALMAC_MAJOR_VER = 1
HALMAC_PROTOTYPE_VER = 6
HALMAC_MINOR_VER = 5
HALMAC_PATCH_VER = 5
RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
RTW: HW EFUSE
RTW: 0x000: 29 81 00 BC 09 00 21 00 6E 04 A4 34 10 00 30 0B
RTW: 0x010: FF FF FF FF FF FF FF FF FF FF FF 02 FF FF FF FF
RTW: 0x020: FF FF 21 22 22 23 25 23 23 23 25 28 28 26 2A 2A
RTW: 0x030: 00 FF FF FF FF FF 00 FF FF FF 30 30 2F 2F 2F 2F
RTW: 0x040: 30 30 2F 2F 2F 00 FF FF FF FF FF FF FF FF FF FF
RTW: 0x050: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x060: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x0B0: FF FF FF FF FF FF FF FF 7F 33 1C 00 FF FF FF FF
RTW: 0x0C0: FF 21 00 41 00 00 00 00 00 FF 22 FF FF FF FF FF
RTW: 0x0D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x0E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x0F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x100: DA 0B 20 C8 E3 46 02 E0 E1 A9 3C 51 CE 09 03 52
RTW: 0x110: 65 61 6C 74 65 6B 0E 03 38 30 32 2E 31 31 61 63
RTW: 0x120: 20 4E 49 43 08 03 31 32 33 34 35 36 FF FF FF FF
RTW: 0x130: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x140: FF FF FF FF 00 00 31 0F FF FF FF FF FF FF FF FF
RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: hal_com_config_channel_plan chplan:0x7F
RTW: [HALMAC][ALWAYS]shall R reg twice!!
RTW: WARN [HALMAC][WARN]the H2C ver. does not match halmac
RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
RTW: [RF_PATH] IC's RF PATH:RF_1T1R, max_tx_cnt:1
RTW: [RF_PATH] PG's trx_path_bmp:0x00, max_tx_cnt:0
RTW: [RF_PATH] Registry's RF PATH:UNKNOWN
RTW: [RF_PATH] HALDATA's trx_path_bmp:0x11, max_tx_cnt:1
RTW: [RF_PATH] HALDATA's RF PATH:RF_1T1R
RTW: [RF_PATH] NumTotalRFPath:1
RTW: [TRX_Nss] HALSPEC - tx_nss :1, rx_nss:1
RTW: [TRX_Nss] Registry - tx_nss :0, rx_nss:0
RTW: [TRX_Nss] HALDATA - tx_nss :1, rx_nss:1
RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
------------[ cut here ]------------
WARNING: CPU: 0 PID: 75 at net/wireless/core.c:609 wiphy_register+0x378/0x738()
Modules linked in: 8821cu(+)
CPU: 0 PID: 75 Comm: modprobe Not tainted 4.1.15 #7
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[<80015dbc>] (unwind_backtrace) from [<80012748>] (show_stack+0x10/0x14)
[<80012748>] (show_stack) from [<806a1d20>] (dump_stack+0x84/0xc4)
[<806a1d20>] (dump_stack) from [<80036ee0>] (warn_slowpath_common+0x80/0xb0)
[<80036ee0>] (warn_slowpath_common) from [<80036fac>] (warn_slowpath_null+0x1c/0x24)
[<80036fac>] (warn_slowpath_null) from [<80633058>] (wiphy_register+0x378/0x738)
[<80633058>] (wiphy_register) from [<7f0a2e28>] (rtw_wiphy_register+0x50/0x58 [8821cu])
[<7f0a2e28>] (rtw_wiphy_register [8821cu]) from [<7f0a327c>] (rtw_cfg80211_ndev_res_register+0x14/0x68 [8821cu])
[<7f0a327c>] (rtw_cfg80211_ndev_res_register [8821cu]) from [<7f07fb30>] (rtw_os_ndev_register+0x100/0x19c [8821cu])
[<7f07fb30>] (rtw_os_ndev_register [8821cu]) from [<7f080de0>] (rtw_os_ndevs_register+0xd8/0x154 [8821cu])
[<7f080de0>] (rtw_os_ndevs_register [8821cu]) from [<7f080ec8>] (rtw_os_ndevs_init+0x20/0x48 [8821cu])
[<7f080ec8>] (rtw_os_ndevs_init [8821cu]) from [<7f083248>] (rtw_drv_init+0x59c/0x6a8 [8821cu])
[<7f083248>] (rtw_drv_init [8821cu]) from [<80429564>] (usb_probe_interface+0x16c/0x22c)
[<80429564>] (usb_probe_interface) from [<80348130>] (driver_probe_device+0x174/0x2b4)
[<80348130>] (driver_probe_device) from [<80348340>] (driver_attach+0x8c/0x90)
[<80348340>] (__driver_attach) from [<80346694>] (bus_for_each_dev+0x68/0x9c)
[<80346694>] (bus_for_each_dev) from [<803478cc>] (bus_add_driver+0x148/0x1f0)
[<803478cc>] (bus_add_driver) from [<8034893c>] (driver_register+0x78/0xf8)
[<8034893c>] (driver_register) from [<804281cc>] (usb_register_driver+0x70/0x134)
[<804281cc>] (usb_register_driver) from [<7f2830cc>] (rtw_drv_entry+0xcc/0x128 [8821cu])
[<7f2830cc>] (rtw_drv_entry [8821cu]) from [<80009730>] (do_one_initcall+0x8c/0x1d8)
[<80009730>] (do_one_initcall) from [<8069fc8c>] (do_init_module+0x5c/0x1a8)
[<8069fc8c>] (do_init_module) from [<8009560c>] (load_module+0x1904/0x1dc8)
[<8009560c>] (load_module) from [<80095c54>] (SyS_finit_module+0x64/0x74)
[<80095c54>] (SyS_finit_module) from [<8000f480>] (ret_fast_syscall+0x0/0x3c)
---[ end trace de52742742d71c35 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 75 at drivers/net/wireless/realtek/rtl8821CU/os_dep/linux/os_intfs.c:1899 rtw_os_ndev_register+0x50/0x19c [8821cu]()
Modules linked in: 8821cu(+)
CPU: 0 PID: 75 Comm: modprobe Tainted: G W 4.1.15 #7
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[<80015dbc>] (unwind_backtrace) from [<80012748>] (show_stack+0x10/0x14)
[<80012748>] (show_stack) from [<806a1d20>] (dump_stack+0x84/0xc4)
[<806a1d20>] (dump_stack) from [<80036ee0>] (warn_slowpath_common+0x80/0xb0)
[<80036ee0>] (warn_slowpath_common) from [<80036fac>] (warn_slowpath_null+0x1c/0x24)
[<80036fac>] (warn_slowpath_null) from [<7f07fa80>] (rtw_os_ndev_register+0x50/0x19c [8821cu])
[<7f07fa80>] (rtw_os_ndev_register [8821cu]) from [<7f080de0>] (rtw_os_ndevs_register+0xd8/0x154 [8821cu])
[<7f080de0>] (rtw_os_ndevs_register [8821cu]) from [<7f080ec8>] (rtw_os_ndevs_init+0x20/0x48 [8821cu])
[<7f080ec8>] (rtw_os_ndevs_init [8821cu]) from [<7f083248>] (rtw_drv_init+0x59c/0x6a8 [8821cu])
[<7f083248>] (rtw_drv_init [8821cu]) from [<80429564>] (usb_probe_interface+0x16c/0x22c)
[<80429564>] (usb_probe_interface) from [<80348130>] (driver_probe_device+0x174/0x2b4)
[<80348130>] (driver_probe_device) from [<80348340>] (driver_attach+0x8c/0x90)
[<80348340>] (driver_attach) from [<80346694>] (bus_for_each_dev+0x68/0x9c)
[<80346694>] (bus_for_each_dev) from [<803478cc>] (bus_add_driver+0x148/0x1f0)
[<803478cc>] (bus_add_driver) from [<8034893c>] (driver_register+0x78/0xf8)
[<8034893c>] (driver_register) from [<804281cc>] (usb_register_driver+0x70/0x134)
[<804281cc>] (usb_register_driver) from [<7f2830cc>] (rtw_drv_entry+0xcc/0x128 [8821cu])
[<7f2830cc>] (rtw_drv_entry [8821cu]) from [<80009730>] (do_one_initcall+0x8c/0x1d8)
[<80009730>] (do_one_initcall) from [<8069fc8c>] (do_init_module+0x5c/0x1a8)
[<8069fc8c>] (do_init_module) from [<8009560c>] (load_module+0x1904/0x1dc8)
[<8009560c>] (load_module) from [<80095c54>] (SyS_finit_module+0x64/0x74)
[<80095c54>] (SyS_finit_module) from [<8000f480>] (ret_fast_syscall+0x0/0x3c)
---[ end trace de52742742d71c36 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 75 at drivers/net/wireless/realtek/rtl8821CU/os_dep/linux/os_intfs.c:3419 rtw_os_ndevs_register+0xf4/0x154 [8821cu]()
Modules linked in: 8821cu(+)
CPU: 0 PID: 75 Comm: modprobe Tainted: G W 4.1.15 #7
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[<80015dbc>] (unwind_backtrace) from [<80012748>] (show_stack+0x10/0x14)
[<80012748>] (show_stack) from [<806a1d20>] (dump_stack+0x84/0xc4)
[<806a1d20>] (dump_stack) from [<80036ee0>] (warn_slowpath_common+0x80/0xb0)
[<80036ee0>] (warn_slowpath_common) from [<80036fac>] (warn_slowpath_null+0x1c/0x24)
[<80036fac>] (warn_slowpath_null) from [<7f080dfc>] (rtw_os_ndevs_register+0xf4/0x154 [8821cu])
[<7f080dfc>] (rtw_os_ndevs_register [8821cu]) from [<7f080ec8>] (rtw_os_ndevs_init+0x20/0x48 [8821cu])
[<7f080ec8>] (rtw_os_ndevs_init [8821cu]) from [<7f083248>] (rtw_drv_init+0x59c/0x6a8 [8821cu])
[<7f083248>] (rtw_drv_init [8821cu]) from [<80429564>] (usb_probe_interface+0x16c/0x22c)
[<80429564>] (usb_probe_interface) from [<80348130>] (driver_probe_device+0x174/0x2b4)
[<80348130>] (driver_probe_device) from [<80348340>] (__driver_attach+0x8c/0x90)
[<80348340>] (driver_attach) from [<80346694>] (bus_for_each_dev+0x68/0x9c)
[<80346694>] (bus_for_each_dev) from [<803478cc>] (bus_add_driver+0x148/0x1f0)
[<803478cc>] (bus_add_driver) from [<8034893c>] (driver_register+0x78/0xf8)
[<8034893c>] (driver_register) from [<804281cc>] (usb_register_driver+0x70/0x134)
[<804281cc>] (usb_register_driver) from [<7f2830cc>] (rtw_drv_entry+0xcc/0x128 [8821cu])
[<7f2830cc>] (rtw_drv_entry [8821cu]) from [<80009730>] (do_one_initcall+0x8c/0x1d8)
[<80009730>] (do_one_initcall) from [<8069fc8c>] (do_init_module+0x5c/0x1a8)
[<8069fc8c>] (do_init_module) from [<8009560c>] (load_module+0x1904/0x1dc8)
[<8009560c>] (load_module) from [<80095c54>] (SyS_finit_module+0x64/0x74)
[<80095c54>] (SyS_finit_module) from [<8000f480>] (ret_fast_syscall+0x0/0x3c)
---[ end trace de52742742d71c37 ]---
RTW: WARN free_recv_skb_queue not empty, 8
RTW: WARN free_recv_skb_queue not empty, 8
usbcore: registered new interface driver rtl8821cu
RTW: module init ret=0
if you have solve it ,can you give me some suggestion?or if you are sure that this version does not work with the driver. ths to your reply.
below is some debug message: RTW: module init start RTW: rtl8821cu v5.4.1_28754.20180921_COEX20180712-3232 RTW: build time: Oct 16 2022 19:58:00 RTW: rtl8821cu BT-Coex version = COEX20180712-3232 RTW: [HALMAC]11692M HALMAC_MAJOR_VER = 1 HALMAC_PROTOTYPE_VER = 4 HALMAC_MINOR_VER = 19 HALMAC_PATCH_VER = 3 RTW: ERROR [HALMAC][ERR]Dump efuse in suspend RTW: HW EFUSE RTW: 0x000: 29 81 00 BC 09 00 21 00 6E 04 A4 10 10 00 30 0B
RTW: 0x010: FF FF FF FF FF FF FF FF FF FF FF 02 FF FF FF FF
RTW: 0x020: FF FF 22 21 21 22 24 25 25 26 26 26 27 27 27 27
RTW: 0x030: 02 FF FF FF FF FF 0E FF FF FF 1F 1F 20 21 21 21
RTW: 0x040: 2A 2A 2A 2B 2B 02 FF FF FF FF FF FF FF FF FF FF
RTW: 0x050: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x060: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x0B0: FF FF FF FF FF FF FF FF 29 1F 1D 00 FF FF FF FF
RTW: 0x0C0: FF 00 00 41 00 00 00 00 00 FF 22 FF FF FF FF FF
RTW: 0x0D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x0E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x0F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x100: DA 0B 11 C8 E3 46 02 4C 77 66 2E 11 FF 09 03 52
RTW: 0x110: 65 61 6C 74 65 6B 0E 03 38 30 32 2E 31 31 61 63
RTW: 0x120: 20 4E 49 43 08 03 31 32 33 34 35 36 FF FF FF FF
RTW: 0x130: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x140: FF FF FF FF 00 00 31 0F FF FF FF FF FF FF FF FF
RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
RTW: hal_com_config_channel_plan chplan:0x29 RTW: [HALMAC][ALWAYS]shall R reg twice!! RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!! RTW: ERROR [HALMAC][ERR]Dump efuse in suspend RTW: ERROR [HALMAC][ERR]Dump efuse in suspend RTW: ERROR [HALMAC][ERR]Dump efuse in suspend RTW: ERROR [HALMAC][ERR]Dump efuse in suspend RTW: ERROR [HALMAC][ERR]Dump efuse in suspend RTW: ERROR [HALMAC][ERR]Dump efuse in suspend RTW: ERROR [HALMAC][ERR]Dump efuse in suspend RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1 RTW: rtw_ndev_init(wlan0) if1 mac_addr=4c:77:66:2e:11:ff usbcore: registered new interface driver rtl8821cu RTW: module init ret=0