DietPi icon indicating copy to clipboard operation
DietPi copied to clipboard

TP-Link Archer T2U Nano

Open actraiser30 opened this issue 1 year ago • 13 comments

Hello

I have a USB wifi Tplink Archer T2U Nano With chipset Realtek RTL8811AU

Using a raspberry pi 2 with latest dietpi armv7 bookworm

Installed wifi hotspot mode but after I realized that it does not see the USB WiFi device,in the network-adapters section it says not found,are you going to include drivers for this chipset in a feature update??

PS: I also have another older TP-LINK TL-WN821N with chipset Realtek RTL8192eu I tried it and also it does not see it the same not found message...

Thanks

actraiser30 avatar Jun 18 '24 05:06 actraiser30

Usually we don't add individual drivers.

Joulinar avatar Jun 18 '24 06:06 Joulinar

Since not all raspberry pi's have internal wifi ,i must use an external USB wifi,but both of them I mentioned before are not working..

If possible in a future release to add a package with all the missing wifi chipset drivers to be installed if necessary and if wifi hotspot mode is selected from the software list to be installed.

actraiser30 avatar Jun 18 '24 06:06 actraiser30

It should work with the new kernel version. Please try our migration script. However, note that this cannot be (easily) reverted: #6676

EDIT: I think I mixed it up with RTL8821CU/RTL8811CU, not sure whether one of the RTL88* drivers added with Linux 6.6 is compatible with RTL8812AU: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/net/wireless/realtek/rtw88/Kconfig?h=linux-6.6.y Here the particular drivers available with the new RPi kernel:

root@micha:~# ls -l /lib/modules/*/kernel/drivers/net/wireless/realtek/rtw88
total 184
-rw-r--r-- 1 root root 13916 May 29 16:04 rtw88_8723d.ko.xz
-rw-r--r-- 1 root root  1648 May 29 16:04 rtw88_8723du.ko.xz
-rw-r--r-- 1 root root 16296 May 29 16:04 rtw88_8821c.ko.xz
-rw-r--r-- 1 root root  1824 May 29 16:04 rtw88_8821cu.ko.xz
-rw-r--r-- 1 root root 21608 May 29 16:04 rtw88_8822b.ko.xz
-rw-r--r-- 1 root root  2012 May 29 16:04 rtw88_8822bu.ko.xz
-rw-r--r-- 1 root root 37212 May 29 16:04 rtw88_8822c.ko.xz
-rw-r--r-- 1 root root  1688 May 29 16:04 rtw88_8822cu.ko.xz
-rw-r--r-- 1 root root 62280 May 29 16:04 rtw88_core.ko.xz
-rw-r--r-- 1 root root  6336 May 29 16:04 rtw88_usb.ko.xz

If none is compatible, it needs to be compiled manually. One commonly used repository is this one: https://github.com/aircrack-ng/rtl8812au

MichaIng avatar Jun 18 '24 16:06 MichaIng

All this are a little to much for me,tried an old atheros AR92xx it worked,but the performance is very poor,is the bookworm os too much/heavy for the very aged Raspberry Pi 2? Should I put dietpi bullseye will.it make any difference?

Thanks

actraiser30 avatar Jun 22 '24 07:06 actraiser30

Normally the performance difference between Bullseye and Bookworm should not be that big. Do you have the poor performance with the plain operating system or a specific application?

Joulinar avatar Jun 22 '24 07:06 Joulinar

No only with the hotspot,I checked with htop there not big CPU usage.strange.can be my atheros AR92xx,what USB wifi chipset old or new,is suggested for best hotspot performance??

actraiser30 avatar Jun 22 '24 07:06 actraiser30

We never tested WiFi performance, just some adapter in general https://dietpi.com/blog/?p=3266#issues_with_external_wifi_adapters

probably @StephanStS could comment on this.

Joulinar avatar Jun 22 '24 08:06 Joulinar

Thanks, do you know what country can i put to have channel 12 and 13??

And is there a way to set the 20/40mhz channel width?

actraiser30 avatar Jun 22 '24 08:06 actraiser30

Nevermind I put channel 11 channels 12,13 are not working the hostapd is not starting I have GB country set

With channel 11 I get the max 20mbps

Not bad

Thanks for your help

actraiser30 avatar Jun 22 '24 09:06 actraiser30

Hi again,in armbian this chipset is working if you install the armbian-firmware-full package,maybe you can add this package to dietpi to install it if hotspot mode is selected,or just the wifi drivers from this package to be installed only Thanks

actraiser30 avatar Jul 09 '24 07:07 actraiser30

I am trying to find out which firmware binary is missing. There are multiple ones which seem matching. Can you please check for related kernel errors? There should be one about a missing firmware binary, when the WiFi driver loads:

dmesg -l 0,1,2,3

EDIT: Ah lol, we are talking about Raspberry Pi, not Armbian-based kernel. This makes it more complicated to properly add the firmware binary, since we use the regular Debian firmware packages there. But at least you can then just manually download it.

MichaIng avatar Jul 10 '24 18:07 MichaIng

That command does not show/do anything

I can see the wifi adapter with lsusb command though

actraiser30 avatar Jul 11 '24 07:07 actraiser30

Ah, Linux 6.1 does not contain the rtw88 drivers yet. If would be a one-way ticket, unless you create a full SD card/drive backup, but you could try whether upgrading to the new kernel/firmware stack with Linux 6.6 helps, which I suggested above already: #6676

bash <(curl -sSf 'https://raw.githubusercontent.com/MichaIng/DietPi/dev/.meta/dietpi-rpi-firmware-migration')

Alternatively, if you have a spare SD card, we host images with this new kernel:

  • For RPi 2 PCB v1.2: https://dietpi.com/downloads/images/testing/DietPi_RPi234-ARMv8-Bookworm.img.xz
  • For the older 32-bit-only RPi 2 model: https://dietpi.com/downloads/images/testing/DietPi_RPi2-ARMv7-Bookworm.img.xz

MichaIng avatar Jul 11 '24 18:07 MichaIng

Available with new kernel stack, now offered via DietPi update and new images.

MichaIng avatar May 31 '25 17:05 MichaIng