Tplink archer T4U (RTL8812AU) not working

I’m trying to get an archer t4u working on my xavier (R32 REV 3.1), but theres an issue. When attempting to connect in the network tab, Wifi shows up as an option, but there are no AP listed. When trying to connect using the “connect to a hidden network” button, nothing happens. I’ve toggled wifi / airplane mode off and on as well with no luck. When trying to connect using command line,
ifconfig wlan0 up
it throw me
SIOCSIFFLAGS: Operation not permitted

lsmod has rtl8812AU appearing there, and I have manually uninstalled and reinstalled https://github.com/abperiasamy/rtl8812AU_8821AU_linux, which worked for USB WiFi Dongle rtl8812au doesn't work on my Xavier after a patch (different adapter same chipset). Make is using # CONFIG_PLATFORM_ARM_JET_NANO = y.

Any ideas on things I could try?

Hi,

Could you share your dmesg?

This is after plugging the adapter in, if you need more I can give you the full output.

[ 157.715271] usb 1-1.4: Product: 802.11ac NIC
[ 157.715278] usb 1-1.4: Manufacturer: Realtek
[ 157.715283] usb 1-1.4: SerialNumber: 123456
[ 157.826528] RTW: module init start
[ 157.826535] RTW: rtl8812au v5.6.4.1_33916.20190619
[ 157.826538] RTW: build time: Dec 9 2019 22:49:37
[ 157.826566] RTW: rtw_inetaddr_notifier_register
[ 157.826623] RTW:
usb_endpoint_descriptor(0):
[ 157.826626] RTW: bLength=7
[ 157.826629] RTW: bDescriptorType=5
[ 157.826631] RTW: bEndpointAddress=84
[ 157.826634] RTW: wMaxPacketSize=512
[ 157.826637] RTW: bInterval=0
[ 157.826639] RTW: RT_usb_endpoint_is_bulk_in = 4
[ 157.826642] RTW:
usb_endpoint_descriptor(1):
[ 157.826644] RTW: bLength=7
[ 157.826647] RTW: bDescriptorType=5
[ 157.826649] RTW: bEndpointAddress=5
[ 157.826652] RTW: wMaxPacketSize=512
[ 157.826654] RTW: bInterval=0
[ 157.826657] RTW: RT_usb_endpoint_is_bulk_out = 5
[ 157.826659] RTW:
usb_endpoint_descriptor(2):
[ 157.826662] RTW: bLength=7
[ 157.826664] RTW: bDescriptorType=5
[ 157.826667] RTW: bEndpointAddress=6
[ 157.826669] RTW: wMaxPacketSize=512
[ 157.826672] RTW: bInterval=0
[ 157.826674] RTW: RT_usb_endpoint_is_bulk_out = 6
[ 157.826677] RTW:
usb_endpoint_descriptor(3):
[ 157.826679] RTW: bLength=7
[ 157.826682] RTW: bDescriptorType=5
[ 157.826684] RTW: bEndpointAddress=87
[ 157.826687] RTW: wMaxPacketSize=64
[ 157.826689] RTW: bInterval=3
[ 157.826692] RTW: RT_usb_endpoint_is_int_in = 7, Interval = 3
[ 157.826694] RTW:
usb_endpoint_descriptor(4):
[ 157.826697] RTW: bLength=7
[ 157.826699] RTW: bDescriptorType=5
[ 157.826702] RTW: bEndpointAddress=8
[ 157.826704] RTW: wMaxPacketSize=512
[ 157.826708] RTW: bInterval=0
[ 157.826710] RTW: RT_usb_endpoint_is_bulk_out = 8
[ 157.826713] RTW: nr_endpoint=5, in_num=2, out_num=3

[ 157.826716] RTW: USB_SPEED_HIGH
[ 157.826719] RTW: CHIP TYPE: RTL8812
[ 157.827001] RTW: read_chip_version_8812a SYS_CFG(0xF0)=0x0c493d35
[ 157.827095] RTW: rtw_hal_config_rftype RF_Type is 2 TotalTxPath is 2
[ 157.827118] RTW: Chip Version Info: CHIP_8812_Normal_Chip_UMC_E_CUT_2T2R_RomVer(0)
[ 157.827123] RTW: _ConfigChipOutEP_8812 OutEpQueueSel(0x07), OutEpNumber(3)
[ 157.827196] RTW: Boot from EFUSE, Autoload OK !
[ 157.848292] RTW: invalid offset:0x42
[ 157.897613] RTW: Hal_EfuseReadEFuse8812A: eFuse_Addr offset(0x93) !!
[ 157.897777] RTW: HW EFUSE
[ 157.897797] RTW: 0x000: E0 71 2C 2C 2F 30 30 31 16 13 10 17 16 15 EE 00
[ 157.897888] RTW: 0x010: 13 EE 00 93 1E 1C 28 28 FF FF 31 29 29 38 FF FF
[ 157.897994] RTW: 0x020: FF FF FF FF 00 3C 09 00 FF FF FF FF FF FF FF FF
[ 157.898094] RTW: 0x030: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.898174] RTW: 0x040: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.898277] RTW: 0x050: FF FF 00 10 B6 04 64 10 FF FF FF FF FF FF FF FF
[ 157.898563] RTW: 0x060: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.898644] RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.898725] RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.898836] RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.898964] RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.899043] RTW: 0x0B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.899129] RTW: 0x0C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.899209] RTW: 0x0D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.899294] RTW: 0x0E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.899373] RTW: 0x0F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.899458] RTW: 0x100: FF FF 12 B8 E1 67 FF FF FF FF FF FF FF FF FF FF
[ 157.899566] RTW: 0x110: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.899650] RTW: 0x120: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.899737] RTW: 0x130: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.899822] RTW: 0x140: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.899915] RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.900021] RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.900139] RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.900218] RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.900298] RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.900381] RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.900461] RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.900549] RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.900657] RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.900743] RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.900823] RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 157.900929] RTW: rtw_read_efuse_from_file /system/etc/wifi/wifi_efuse_8812au.map is not readable
[ 157.900939] RTW: ERROR invalid phy efuse and read from file fail, will use driver default!!
[ 157.900948] RTW: EEPROM ID(0x71e0) is invalid!!
[ 157.900954] RTW: EEPROM ID=0x71e0
[ 157.900967] RTW: VID = 0x5678, PID = 0x1234
[ 157.900972] RTW: Customer ID: 0xAB, SubCustomer ID: 0xCD
[ 157.901035] RTW: rtw_read_macaddr_from_file /data/wifimac.txt is not readable
[ 157.901055] RTW: [A] 2G G01 CCK-1T base:45 from IC_DEF
[ 157.901060] RTW: [A] 2G G03 CCK-1T base:45 from IC_DEF
[ 157.901066] RTW: [A] 2G G02 BW40-1S base:45 from IC_DEF
[ 157.901071] RTW: [A] 2G G03 BW40-1S base:45 from IC_DEF
[ 157.901077] RTW: [A] 5G G00 BW40-1S base:42 from IC_DEF
[ 157.901082] RTW: [A] 5G G01 BW40-1S base:42 from IC_DEF
[ 157.901089] RTW: [A] 5G G06 BW40-1S base:42 from IC_DEF
[ 157.901127] RTW: [A] 5G G07 BW40-1S base:42 from IC_DEF
[ 157.901132] RTW: [A] 5G G08 BW40-1S base:42 from IC_DEF
[ 157.901137] RTW: [A] 5G G09 BW40-1S base:42 from IC_DEF
[ 157.901143] RTW: [A] 5G G10 BW40-1S base:42 from IC_DEF
[ 157.901148] RTW: [A] 5G G11 BW40-1S base:42 from IC_DEF
[ 157.901153] RTW: [A] 5G G12 BW40-1S base:42 from IC_DEF
[ 157.901158] RTW: [A] 5G G13 BW40-1S base:42 from IC_DEF
[ 157.901164] RTW: [B] 2G G00 CCK-1T base:45 from IC_DEF
[ 157.901168] RTW: [B] 2G G01 CCK-1T base:45 from IC_DEF
[ 157.901173] RTW: [B] 2G G02 CCK-1T base:45 from IC_DEF
[ 157.901178] RTW: [B] 2G G03 CCK-1T base:45 from IC_DEF
[ 157.901182] RTW: [B] 2G G04 CCK-1T base:45 from IC_DEF
[ 157.901187] RTW: [B] 2G G05 CCK-1T base:45 from IC_DEF
[ 157.901192] RTW: [B] 2G G00 BW40-1S base:45 from IC_DEF
[ 157.901197] RTW: [B] 2G G01 BW40-1S base:45 from IC_DEF
[ 157.901202] RTW: [B] 2G G02 BW40-1S base:45 from IC_DEF
[ 157.901207] RTW: [B] 2G G03 BW40-1S base:45 from IC_DEF
[ 157.901212] RTW: [B] 2G G04 BW40-1S base:45 from IC_DEF
[ 157.901217] RTW: [B] 5G G00 BW40-1S base:42 from IC_DEF
[ 157.901222] RTW: [B] 5G G01 BW40-1S base:42 from IC_DEF
[ 157.901227] RTW: [B] 5G G02 BW40-1S base:42 from IC_DEF
[ 157.901232] RTW: [B] 5G G03 BW40-1S base:42 from IC_DEF
[ 157.901237] RTW: [B] 5G G04 BW40-1S base:42 from IC_DEF
[ 157.901242] RTW: [B] 5G G05 BW40-1S base:42 from IC_DEF
[ 157.901247] RTW: [B] 5G G08 BW40-1S base:42 from IC_DEF
[ 157.901252] RTW: [B] 5G G10 BW40-1S base:42 from IC_DEF
[ 157.901257] RTW: [B] 5G G12 BW40-1S base:42 from IC_DEF
[ 157.901262] RTW: [B] 5G G13 BW40-1S base:42 from IC_DEF
[ 157.901283] RTW: EEPROMRegulatory = 0x0
[ 157.901292] RTW: Board Type: 0x 0
[ 157.901300] RTW: hal_com_config_channel_plan use def_chplan:0x7F
[ 157.901305] RTW: crystal_cap: 0x20
[ 157.901310] RTW: ThermalMeter = 0xff
[ 157.901316] RTW: pHalData->PAType_2G is 0x0, pHalData->ExternalPA_2G = 0
[ 157.901321] RTW: pHalData->PAType_5G is 0x0, pHalData->external_pa_5g = 0
[ 157.901326] RTW: pHalData->LNAType_2G is 0x0, pHalData->ExternalLNA_2G = 0
[ 157.901331] RTW: pHalData->LNAType_5G is 0x0, pHalData->external_lna_5g = 0
[ 157.901336] RTW: pHalData->TypeGPA = 0x0
[ 157.901341] RTW: pHalData->TypeAPA = 0x0
[ 157.901346] RTW: pHalData->TypeGLNA = 0x0
[ 157.901350] RTW: pHalData->TypeALNA = 0x0
[ 157.901356] RTW: RFE Type: 0x 0
[ 157.901362] RTW: Usb Switch: 0
[ 157.901367] RTW: PID= 0x1234, VID= 5678
[ 157.901371] RTW: Customer ID: 0x 0
[ 157.902875] RTW: hal_ReadUsbType_8812AU: antenna=2, wmode=3
[ 157.902890] RTW: hal_ReadUsbType_8812AU(): EFUSE_HIDDEN_8812AU_VS
[ 157.902898] RTW: rtw_hal_read_chip_info in 76 ms
[ 157.902955] RTW: init_channel_set((null)) ChannelPlan ID:0x7f, ch num:37
[ 157.903122] RTW: init_mlme_default_rate_set: support CCK
[ 157.903125] RTW: init_mlme_default_rate_set: support OFDM
[ 157.903585] RTW: NR_RECVBUFF: 8
[ 157.903593] RTW: MAX_RECVBUF_SZ: 32768
[ 157.903598] RTW: NR_PREALLOC_RECV_SKB: 8
[ 157.903698] RTW: rtw_alloc_macid((null)) if1, mac_addr:ff:ff:ff:ff:ff:ff macid:1
[ 157.903718] RTW: IQK FW offload:disable
[ 157.903732] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[ 157.903744] RTW: can’t get autopm:
[ 157.903750] RTW: ERROR invalid mac addr:00:00:00:00:00:00, assign random MAC
[ 157.903756] RTW: rtw_macaddr_cfg mac addr:00:e0:4c:97:6e:31
[ 157.903761] RTW: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0
[ 157.903866] RTW: init_mlme_default_rate_set: support CCK
[ 157.903869] RTW: init_mlme_default_rate_set: support OFDM
[ 157.904120] RTW: NR_RECVBUFF: 8
[ 157.904128] RTW: MAX_RECVBUF_SZ: 32768
[ 157.904133] RTW: NR_PREALLOC_RECV_SKB: 8
[ 157.904212] RTW: rtw_alloc_macid((null)) if2, mac_addr:ff:ff:ff:ff:ff:ff macid:1
[ 157.904221] RTW: rtw_drv_add_vir_if if2 mac_addr : 02:e0:4c:97:6e:31
[ 157.904251] RTW: rtw_wiphy_alloc(phy0)
[ 157.904278] RTW: rtw_wdev_alloc(padapter=ffffff800dff4000)
[ 157.904284] RTW: rtw_wiphy_register(phy0)
[ 157.904288] RTW: Register RTW cfg80211 vendor cmd(0x67) interface
[ 157.904515] RTW: rtw_reg_notifier: NL80211_REGDOM_SET_BY_CORE
[ 157.904877] RTW: rtw_ndev_init(wlan0) if1 mac_addr=00:e0:4c:97:6e:31
[ 157.905055] RTW: rtw_ndev_notifier_call(wlan0) state:16
[ 157.905708] RTW: cfg80211_rtw_get_txpower
[ 157.905719] RTW: rtw_ndev_notifier_call(wlan0) state:5
[ 157.907365] usbcore: registered new interface driver rtl8812au
[ 157.907375] RTW: module init ret=0
[ 157.907471] RTW: cfg80211_rtw_get_txpower
[ 157.946769] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 157.946901] RTW: rtw_ndev_notifier_call(wlan0) state:13
[ 157.946908] RTW: _netdev_open(wlan0) , bup=0
[ 157.947100] RTW: power-on :REG_SYS_CLKR 0x09=0x30. REG_CR 0x100=0xea.
[ 157.947103] RTW: MAC has not been powered on yet.
[ 158.296376] RTW: ERROR HalPwrSeqCmdParsing: Fail to polling Offset[0x5]=01
[ 158.296392] RTW: ERROR _InitPowerOn_8812AU: run power on flow fail
[ 158.296400] RTW: rtl8812au_hal_init in 348ms
[ 158.296407] RTW: ERROR rtw_hal_init: fail
[ 158.296443] RTW: -871x_drv - drv_open fail, bup=0
[ 158.297492] RTW: cfg80211_rtw_get_txpower
[ 158.308041] RTW: cfg80211_rtw_get_txpower
[ 158.308123] RTW: cfg80211_rtw_get_txpower
[ 158.308395] RTW: cfg80211_rtw_get_txpower
[ 158.308425] RTW: cfg80211_rtw_get_txpower
[ 158.309169] RTW: cfg80211_rtw_get_txpower
[ 158.309233] RTW: rtw_ndev_notifier_call(wlan0) state:13
[ 158.309242] RTW: _netdev_open(wlan0) , bup=0
[ 158.309504] RTW: power-on :REG_SYS_CLKR 0x09=0x30. REG_CR 0x100=0xea.
[ 158.309513] RTW: MAC has not been powered on yet.
[ 158.632425] RTW: ERROR HalPwrSeqCmdParsing: Fail to polling Offset[0x5]=01
[ 158.632438] RTW: ERROR _InitPowerOn_8812AU: run power on flow fail
[ 158.632444] RTW: rtl8812au_hal_init in 324ms
[ 158.632450] RTW: ERROR rtw_hal_init: fail
[ 158.632456] RTW: -871x_drv - drv_open fail, bup=0
[ 158.632785] RTW: cfg80211_rtw_get_txpower
[ 158.633599] RTW: rtw_ndev_notifier_call(wlan0) state:13
[ 158.633608] RTW: _netdev_open(wlan0) , bup=0
[ 158.633787] RTW: power-on :REG_SYS_CLKR 0x09=0x30. REG_CR 0x100=0xea.
[ 158.633793] RTW: MAC has not been powered on yet.
[ 158.953987] RTW: ERROR HalPwrSeqCmdParsing: Fail to polling Offset[0x5]=01
[ 158.953999] RTW: ERROR _InitPowerOn_8812AU: run power on flow fail
[ 158.954005] RTW: rtl8812au_hal_init in 320ms
[ 158.954011] RTW: ERROR rtw_hal_init: fail
[ 158.954017] RTW: -871x_drv - drv_open fail, bup=0

Do you use the driver in stock kernel? Actually, I remember we already had RTL8812AU driver in stock kernel. Not sure why you need to install by yourself.

I tried the stock one first, same result. I was hoping the one linked in the other post would have worked. I can do a clean install of l4t if needed, not much sitting on the xavier at the moment.

Would you mind upgrading to rel-32.4.2?

On 32.4.2 I get this in dmesg. Same results as before.

[ 69.810151] usb 1-4.1: new high-speed USB device number 5 using tegra-xusb
[ 69.830931] usb 1-4.1: New USB device found, idVendor=2357, idProduct=0115
[ 69.830986] usb 1-4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 69.830991] usb 1-4.1: Product: 802.11ac NIC
[ 69.830997] usb 1-4.1: Manufacturer: Realtek
[ 69.831002] usb 1-4.1: SerialNumber: 123456
[ 70.008852] usbcore: registered new interface driver rtl8812au
[ 70.052408] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

Could you run below command and share us the result?

sudo rfkill -list

Sorry for the late reply, work had me on something else for awhile.

sudo rfkill list
0: bluedroid_pm: Bluetooth
Soft blocked: no
Hard blocked: no
1: phys0: Wireless LAN
Soft blocked: no
Hard blocked: no

Hi,

That is kind of weird because there is one phys0 as wifi interface here and no software and hardware block.
You don’t have other wifi module connected on board, right?

This is more like the driver or firmware issue.

157.907365] usbcore: registered new interface driver rtl8812au
[ 157.907375] RTW: module init ret=0
[ 157.907471] RTW: cfg80211_rtw_get_txpower
[ 157.946769] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 157.946901] RTW: rtw_ndev_notifier_call(wlan0) state:13
[ 157.946908] RTW: _netdev_open(wlan0) , bup=0
[ 157.947100] RTW: power-on :REG_SYS_CLKR 0x09=0x30. REG_CR 0x100=0xea.
[ 157.947103] RTW: MAC has not been powered on yet.

No, that is the only wifi device connected. M.2 is filled with an SSD and the only other USB device is a keyboard. Tried both ports on the xavier as well (usb C and usb A) in case the port was causing the issue, no luck. I tested this wifi adapter on a windows device to make sure it functioned, everything was fine and connecting worked.

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Hi agking53,

I just checked with internal test case. We indeed suppport RTL8812AU but it is using Linksys WUSB6300 dongle.

Which dongle are you using?