How to deal with probable driver bug in OpenWrt?

I'm running OpenWrt 19.07.2 r10947-65030d81f3 on a TP-Link TL-WR1043ND v1.

I need to connect a TP-Link AC600 usb wlan adapter using driver kmod-mt76x0u 4.14.171+2020-01-04-8a785679-1 , but when the adapter tries to connect to remote wlan it reboots.

I don't know what's going and I'd like to know how collect information about the failure since there are no permanent logs. So I need help to learn how to get useful log information to determine what's going on.

Thanks,

Mauricio

The tl-wr1043ndv1 is very tight on RAM, it wouldn't surprise me if it would simply OOM and ends up being rebooted by the watchdog. I'd probably try the USB WLAN card (using OpenWrt) on a more powerful device first (this could be an x86/ x86_64 system running from OpenWrt on a USB stick).

If you're very lucky, you may already get some error messages by keeping an ssh session running logread -f open, the next step would be attaching a serial console (I'll skip the remote syslog option here, as I don't expect that to gather useful information if logread over ssh doesn't work).

1 Like

If your wifi adapter is the TP-Link Archer T2UHP AC600, it needs a driver update, as support for that adapter was added after the 19.07.2 release. Try with the 19.07.0 snapshots that include the updated driver https://downloads.openwrt.org/releases/19.07-SNAPSHOT/targets/ath79/generic/
I can comfirm working on the wndr3800.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 19.07-SNAPSHOT, r10992-36373c5ddb
 -----------------------------------------------------
root@OpenWrt:/# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 2357:0123 TP-Link 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@OpenWrt:/# opkg list | grep kmod-mt76x0u 
kmod-mt76x0u - 4.14.172+2020-03-10-08054d5a-1
root@OpenWrt:/# 
1 Like

I upgraded to the snapshot and now everything is working! Thank you!

Follow up on this. Driver now works but not quite stable yet... router dies after some time of operation. (all lights off except power...)

I'd like to contribute to driver testing, Is there a bugtracker to report to?

Thanks!

https://openwrt.org/bugs

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.