nlkguy / archer-t2u-plus-linux

TP-Link Archer T2U Plus / AC600 High Gain USB Wifi Adapter Review & Driver installation Guide for various platforms.
https://TechBuy.in
377 stars 675 forks source link

Kernel Version 5.10.xx - Driver not working (ARM) #12

Open nlkguy opened 2 years ago

nlkguy commented 2 years ago

the driver is not working in kernel v5.10.xxx for ARM despite using correct kernel headers the DKMS install is completed successfully, but the driver refuses to load on startup. tried in both kali and raspbian (buster).

nlkguy commented 2 years ago

kali dmesg output

596.138872] usb 1-1.2: new high-speed USB device number 5 using dwc_otg
[  596.270915] usb 1-1.2: New USB device found, idVendor=2357, idProduct=0120, bcdDevice= 2.00
[  596.279712] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  596.287321] usb 1-1.2: Product: 802.11ac WLAN Adapter 
[  596.292790] usb 1-1.2: Manufacturer: Realtek 
[  596.297357] usb 1-1.2: SerialNumber: 00e04c000001
[  596.642576] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[  596.780178] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[  596.947518] 88XXau: loading out-of-tree module taints kernel.
[  597.389901] usb 1-1.2: 88XXau 98:48:27:a0:28:7e hw_info[107]
[  597.428354] ------------[ cut here ]------------
[  597.434441] WARNING: CPU: 0 PID: 835 at /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/os_intfs.c:3206 rtw_os_ndevs_register+0xe4/0x160 [88XXau]
[  597.449448] Modules linked in: 88XXau(O+) cfg80211 snd_seq_dummy snd_hrtimer snd_seq snd_seq_device rfkill binfmt_misc raspberrypi_hwmon bcm2835_codec(C) bcm2835_isp(C) bcm2835_v4l2(C) v4l2_mem2mem bcm2835_mmal_vchiq(C) snd_bcm2835(C) videobuf2_vmalloc videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common snd_pcm snd_timer snd vc_sm_cma(C) videodev mc fixed uio_pdrv_genirq uio fuse drm drm_panel_orientation_quirks backlight ip_tables x_tables ipv6
[  597.492062] CPU: 0 PID: 835 Comm: systemd-udevd Tainted: G         C O      5.10.103-Re4son+ #1
[  597.501166] Hardware name: BCM2835
[  597.504709] Backtrace: 
[  597.507306] [<c08b5720>] (dump_backtrace) from [<c08b5a8c>] (show_stack+0x20/0x24)
[  597.515221]  r7:00000009 r6:00000c86 r5:bf56be04 r4:c0ab0064
[  597.521260] [<c08b5a6c>] (show_stack) from [<c08b91d4>] (dump_stack+0x28/0x30)
[  597.528781] [<c08b91ac>] (dump_stack) from [<c00235bc>] (__warn+0xe8/0x154)
[  597.536125]  r5:bf56be04 r4:bf611d38
[  597.540015] [<c00234d4>] (__warn) from [<c08b60ec>] (warn_slowpath_fmt+0x6c/0xe4)
[  597.547810]  r7:bf56be04 r6:00000c86 r5:bf611d38 r4:00000000
[  597.554835] [<c08b6084>] (warn_slowpath_fmt) from [<bf56be04>] (rtw_os_ndevs_register+0xe4/0x160 [88XXau])
[  597.565054]  r8:c4e1dcec r7:00000006 r6:00000000 r5:00000001 r4:c4e1d000
[  597.574106] [<bf56bd20>] (rtw_os_ndevs_register [88XXau]) from [<bf56bf08>] (rtw_os_ndevs_init+0x34/0x108 [88XXau])
[  597.594460]  r9:00000009 r8:c4e1dcec r7:00000006 r6:dc86f000 r5:c3c98200 r4:c4e1d000
[  597.609373] [<bf56bed4>] (rtw_os_ndevs_init [88XXau]) from [<bf56d608>] (rtw_drv_init+0x3d4/0x540 [88XXau])
[  597.629338]  r7:00000006 r6:dc86f000 r5:c3c98200 r4:c4e1d000
[  597.641315] [<bf56d234>] (rtw_drv_init [88XXau]) from [<c065df4c>] (usb_probe_interface+0x130/0x2d0)
[  597.655936]  r10:bf61f764 r9:bf61f210 r8:cb8c5c78 r7:bf61f208 r6:c3c98220 r5:ffffffed
[  597.669076]  r4:00000001
[  597.676977] [<c065de1c>] (usb_probe_interface) from [<c05daaa8>] (really_probe+0x100/0x4a8)
[  597.690860]  r10:00000019 r9:bf61f210 r8:c0de3e40 r7:00000000 r6:00000000 r5:c0de3e38
[  597.704173]  r4:c3c98220
[  597.712128] [<c05da9a8>] (really_probe) from [<c05db1f8>] (driver_probe_device+0x68/0xc4)
[  597.726002]  r10:00000028 r9:00000124 r8:00000002 r7:bf61f210 r6:c3c98264 r5:bf61f210
[  597.739448]  r4:c3c98220
[  597.747358] [<c05db190>] (driver_probe_device) from [<c05db52c>] (device_driver_attach+0xb8/0xc0)
[  597.761818]  r5:00000000 r4:c3c98220
[  597.770929] [<c05db474>] (device_driver_attach) from [<c05db5bc>] (__driver_attach+0x88/0x11c)
[  597.785087]  r7:c0cefca4 r6:c3c98220 r5:bf61f210 r4:00000000
[  597.796253] [<c05db534>] (__driver_attach) from [<c05d8700>] (bus_for_each_dev+0x84/0xd0)
[  597.809866]  r7:c0cefca4 r6:c05db534 r5:bf61f210 r4:00000000
[  597.820878] [<c05d867c>] (bus_for_each_dev) from [<c05da344>] (driver_attach+0x28/0x30)
[  597.834305]  r6:00000000 r5:c4fafba0 r4:bf61f210
[  597.844259] [<c05da31c>] (driver_attach) from [<c05d9c9c>] (bus_add_driver+0x100/0x1e8)
[  597.857882] [<c05d9b9c>] (bus_add_driver) from [<c05dbcc4>] (driver_register+0x98/0x128)
[  597.871428]  r7:bf61f210 r6:c0cefca4 r5:00000000 r4:bf61f210
[  597.882532] [<c05dbc2c>] (driver_register) from [<c065cb08>] (usb_register_driver+0x78/0x138)
[  597.896700]  r5:bf611de0 r4:bf61f1dc
[  597.906814] [<c065ca90>] (usb_register_driver) from [<bf1ae058>] (init_module+0x58/0x1000 [88XXau])
[  597.921600]  r9:00000124 r8:00000002 r7:00000000 r6:bf61f1dc r5:00000000 r4:bf1ae000
[  597.936063] [<bf1ae000>] (init_module [88XXau]) from [<c000a118>] (do_one_initcall+0x50/0x1f8)
[  597.950474]  r7:00000000 r6:00000002 r5:cfa5eb20 r4:bf1ae000
[  597.961854] [<c000a0c8>] (do_one_initcall) from [<c00a2550>] (do_init_module+0x50/0x22c)
[  597.975560]  r7:c5a35a00 r6:00000002 r5:cfa5eb20 r4:bf6aaf80
[  597.986760] [<c00a2500>] (do_init_module) from [<c00a4e6c>] (load_module+0x2620/0x29d0)
[  598.000330]  r6:00000002 r5:c5a359c0 r4:c3d1df30
[  598.010423] [<c00a284c>] (load_module) from [<c00a54a8>] (sys_finit_module+0xc0/0x104)
[  598.023841]  r10:00000080 r9:c3d1c000 r8:c00083e4 r7:0000017b r6:0000000f r5:b6f740b4
[  598.037052]  r4:00000000
[  598.044964] [<c00a53e8>] (sys_finit_module) from [<c00083cc>] (__sys_trace_return+0x0/0x14)
[  598.058769] Exception stack(0xc3d1dfa8 to 0xc3d1dff0)
[  598.069261] dfa0:                   b6f752d4 00000000 0000000f b6f740b4 00000000 b6f74e48
[  598.082877] dfc0: b6f752d4 00000000 14553900 0000017b 00dbeee0 0051ad9b 00000000 00dcd900
[  598.096586] dfe0: bed2d748 bed2d738 b6f6bde0 b6def680
[  598.107011]  r6:14553900 r5:00000000 r4:b6f752d4
[  598.116849] ---[ end trace 1eca1af6bafbb99a ]---
[  598.140865] Under-voltage detected! (0x00050005)
[  598.689012] usb 1-1.2: reset high-speed USB device number 5 using dwc_otg
[  598.839465] usbcore: registered new interface driver rtl88XXau
[  602.329647] Voltage normalised (0x00000000)
nlkguy commented 2 years ago

raspbian dmesg output

201.083679] usb 1-1.2: USB disconnect, device number 4
[  209.832308] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
[  209.964371] usb 1-1.2: New USB device found, idVendor=2357, idProduct=0120, bcdDevice= 2.00
[  209.964413] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  209.964439] usb 1-1.2: Product: 802.11ac WLAN Adapter 
[  209.964458] usb 1-1.2: Manufacturer: Realtek 
[  209.964478] usb 1-1.2: SerialNumber: 00e04c000001
[  210.294291] usb 1-1.2: 88XXau 98:48:27:a0:28:7e hw_info[107]
[  210.322133] ------------[ cut here ]------------
[  210.323198] WARNING: CPU: 0 PID: 14 at /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/os_dep/linux/os_intfs.c:3206 rtw_os_ndevs_register+0xe4/0x160 [88XXau]
[  210.323386] Modules linked in: 8021q garp stp llc 88XXau(O) sha256_generic libsha256 cfg80211 rfkill raspberrypi_hwmon snd_bcm2835(C) snd_pcm bcm2835_codec(C) bcm2835_v4l2(C) bcm2835_isp(C) snd_timer v4l2_mem2mem bcm2835_mmal_vchiq(C) videobuf2_dma_contig videobuf2_vmalloc videobuf2_memops snd videobuf2_v4l2 videobuf2_common vc_sm_cma(C) videodev mc uio_pdrv_genirq uio fixed i2c_dev ip_tables x_tables ipv6
[  210.323813] CPU: 0 PID: 14 Comm: kworker/0:2 Tainted: G        WC O      5.10.103+ #1529
[  210.323831] Hardware name: BCM2835
[  210.323869] Workqueue: usb_hub_wq hub_event
[  210.323895] Backtrace: 
[  210.323965] [<c087714c>] (dump_backtrace) from [<c08774cc>] (show_stack+0x20/0x24)
[  210.323991]  r7:00000c86 r6:00000009 r5:bf46c908 r4:c0a73108
[  210.324026] [<c08774ac>] (show_stack) from [<c087a740>] (dump_stack+0x28/0x30)
[  210.324067] [<c087a718>] (dump_stack) from [<c0023164>] (__warn+0xe8/0x110)
[  210.324087]  r5:bf46c908 r4:bf518be0
[  210.324114] [<c002307c>] (__warn) from [<c0877ae0>] (warn_slowpath_fmt+0x68/0xd8)
[  210.324138]  r7:00000009 r6:bf46c908 r5:00000c86 r4:bf518be0
[  210.325140] [<c0877a7c>] (warn_slowpath_fmt) from [<bf46c908>] (rtw_os_ndevs_register+0xe4/0x160 [88XXau])
[  210.325186]  r9:00000006 r8:bf526764 r7:00000004 r6:00000000 r5:00000001 r4:c5347000
[  210.326960] [<bf46c824>] (rtw_os_ndevs_register [88XXau]) from [<bf46ca0c>] (rtw_os_ndevs_init+0x34/0x108 [88XXau])
[  210.327128]  r9:00000006 r8:bf526764 r7:00000004 r6:dc831000 r5:c4b37c00 r4:c5347000
[  210.328984] [<bf46c9d8>] (rtw_os_ndevs_init [88XXau]) from [<bf46e05c>] (rtw_drv_init+0x328/0x53c [88XXau])
[  210.329025]  r7:00000004 r6:dc831000 r5:c4b37c00 r4:c5347000
[  210.329964] [<bf46dd34>] (rtw_drv_init [88XXau]) from [<c062bd70>] (usb_probe_interface+0xdc/0x250)
[  210.330008]  r10:ffffffed r9:bf526764 r8:c4b37c00 r7:00000000 r6:bf526210 r5:c375dc00
[  210.330025]  r4:c4b37c20
[  210.330069] [<c062bc94>] (usb_probe_interface) from [<c05ac940>] (really_probe+0x104/0x3bc)
[  210.330096]  r10:c0ca77d4 r9:bf526210 r8:00000000 r7:00000000 r6:c0da2d9c r5:c0da2d94
[  210.330114]  r4:c4b37c20 r3:c062bc94
[  210.330142] [<c05ac83c>] (really_probe) from [<c05acde0>] (driver_probe_device+0x68/0xc4)
[  210.330169]  r10:c0ca77d4 r9:c0cb10ec r8:00000001 r7:c0bb7028 r6:c4b37c20 r5:bf526210
[  210.330188]  r4:c4b37c20
[  210.330216] [<c05acd78>] (driver_probe_device) from [<c05acf8c>] (__device_attach_driver+0x90/0xa8)
[  210.330236]  r5:c11c5b7c r4:bf526210
[  210.330264] [<c05acefc>] (__device_attach_driver) from [<c05aaa8c>] (bus_for_each_drv+0x8c/0xd4)
[  210.330286]  r7:c0bb7028 r6:c05acefc r5:c11c5b7c r4:00000000
[  210.330315] [<c05aaa00>] (bus_for_each_drv) from [<c05ac7a8>] (__device_attach+0xe8/0x15c)
[  210.330339]  r7:c0bb7028 r6:c0bb7028 r5:c4b37c64 r4:c4b37c20
[  210.330367] [<c05ac6c0>] (__device_attach) from [<c05acfc0>] (device_initial_probe+0x1c/0x20)
[  210.330391]  r8:00000000 r7:c0bb7028 r6:c0cb1104 r5:c4b37c20 r4:c4b37c20
[  210.330417] [<c05acfa4>] (device_initial_probe) from [<c05ab918>] (bus_probe_device+0x94/0x9c)
[  210.330447] [<c05ab884>] (bus_probe_device) from [<c05a7b14>] (device_add+0x3dc/0x764)
[  210.330470]  r7:c0bb7028 r6:c375dc78 r5:00000000 r4:c4b37c20
[  210.330511] [<c05a7738>] (device_add) from [<c062985c>] (usb_set_configuration+0x444/0xa34)
[  210.330537]  r10:c4b37a50 r9:c4b37a50 r8:c0ac58e0 r7:c0ac58c0 r6:c4b37a50 r5:c375dc00
[  210.330555]  r4:c4b37c00
[  210.330595] [<c0629418>] (usb_set_configuration) from [<c063593c>] (usb_generic_driver_probe+0x4c/0x88)
[  210.330623]  r10:c0ca77d4 r9:c0cb18bc r8:00000000 r7:00000000 r6:c375dc00 r5:00000001
[  210.330639]  r4:c375dc00
[  210.330665] [<c06358f0>] (usb_generic_driver_probe) from [<c062bc20>] (usb_probe_device+0x40/0xb4)
[  210.330688]  r5:c375dc78 r4:c0cb18bc
[  210.330716] [<c062bbe0>] (usb_probe_device) from [<c05ac940>] (really_probe+0x104/0x3bc)
[  210.330738]  r7:00000000 r6:c0da2d9c r5:c0da2d94 r4:c375dc78
[  210.330766] [<c05ac83c>] (really_probe) from [<c05acde0>] (driver_probe_device+0x68/0xc4)
[  210.330793]  r10:c0ca77d4 r9:c0cb0fdc r8:00000001 r7:c0bb7028 r6:c375dc78 r5:c0cb18bc
[  210.330810]  r4:c375dc78
[  210.330837] [<c05acd78>] (driver_probe_device) from [<c05acf8c>] (__device_attach_driver+0x90/0xa8)
[  210.330856]  r5:c11c5d8c r4:c0cb18bc
[  210.330884] [<c05acefc>] (__device_attach_driver) from [<c05aaa8c>] (bus_for_each_drv+0x8c/0xd4)
[  210.330907]  r7:c0bb7028 r6:c05acefc r5:c11c5d8c r4:00000000
[  210.330935] [<c05aaa00>] (bus_for_each_drv) from [<c05ac7a8>] (__device_attach+0xe8/0x15c)
[  210.330959]  r7:c0bb7028 r6:c0bb7028 r5:c375dcbc r4:c375dc78
[  210.330985] [<c05ac6c0>] (__device_attach) from [<c05acfc0>] (device_initial_probe+0x1c/0x20)
[  210.331010]  r8:00000000 r7:c0bb7028 r6:c0cb1104 r5:c375dc78 r4:c375dc78
[  210.331036] [<c05acfa4>] (device_initial_probe) from [<c05ab918>] (bus_probe_device+0x94/0x9c)
[  210.331063] [<c05ab884>] (bus_probe_device) from [<c05a7b14>] (device_add+0x3dc/0x764)
[  210.331086]  r7:c0bb7028 r6:c1922478 r5:00000000 r4:c375dc78
[  210.331113] [<c05a7738>] (device_add) from [<c061f920>] (usb_new_device+0x208/0x43c)
[  210.331142]  r10:00000002 r9:c1909cf4 r8:c1922400 r7:c375dc00 r6:c5269cc0 r5:c375dc78
[  210.331157]  r4:c375dc00
[  210.331185] [<c061f718>] (usb_new_device) from [<c0621164>] (hub_event+0xa88/0x138c)
[  210.331212]  r9:c1909cf4 r8:c1922400 r7:c375dc00 r6:00000000 r5:00000000 r4:00000003
[  210.331254] [<c06206dc>] (hub_event) from [<c003dd84>] (process_one_work+0x208/0x4dc)
[  210.331281]  r10:c1909cf8 r9:00000000 r8:00000000 r7:dbfbab00 r6:00000000 r5:c10079c0
[  210.331295]  r4:c1909cf4
[  210.331327] [<c003db7c>] (process_one_work) from [<c003e08c>] (worker_thread+0x34/0x594)
[  210.331355]  r10:c0bc0304 r9:00000008 r8:c0c2bea0 r7:c0bc0318 r6:c10079d4 r5:c0bc0304
[  210.331371]  r4:c10079c0
[  210.331401] [<c003e058>] (worker_thread) from [<c00439c8>] (kthread+0x148/0x15c)
[  210.331429]  r10:c1129e88 r9:c10079c0 r8:c003e058 r7:c11c4000 r6:00000000 r5:c11a4bc0
[  210.331447]  r4:c11b5f40 r3:00000000
[  210.331474] [<c0043880>] (kthread) from [<c00082ec>] (ret_from_fork+0x14/0x28)
[  210.331491] Exception stack(0xc11c5fb0 to 0xc11c5ff8)
[  210.331512] 5fa0:                                     00000000 00000000 00000000 00000000
[  210.331535] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  210.331558] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  210.331583]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0043880
[  210.331599]  r4:c11a4bc0
[  210.331616] ---[ end trace b63e2e5b1bb43149 ]---
[  210.472402] usb 1-1.2: reset high-speed USB device number 6 using dwc_otg