MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.9k stars 499 forks source link

TP-Link Archer T2U Nano #7116

Open actraiser30 opened 5 months ago

actraiser30 commented 5 months ago

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

Joulinar commented 5 months ago

Usually we don't add individual drivers.

actraiser30 commented 5 months ago

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.

MichaIng commented 5 months ago

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

actraiser30 commented 5 months ago

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

Joulinar commented 5 months ago

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?

actraiser30 commented 5 months ago

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??

Joulinar commented 5 months ago

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.

actraiser30 commented 5 months ago

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 commented 5 months ago

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 commented 4 months ago

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

MichaIng commented 4 months ago

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.

actraiser30 commented 4 months ago

That command does not show/do anything

I can see the wifi adapter with lsusb command though

MichaIng commented 4 months ago

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: