MrEngman
Posts: 3835
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Driver installation impossible? RTL8812AU

Thu Apr 04, 2019 12:16 pm

dariuszb wrote:
Thu Apr 04, 2019 12:03 pm
MrEngman - I have noticed that you have upgraded 8812au drivers to v5.2.20.2_28373.20180619. And finally my TP-Link -T4UHv1 seems to be stable on ac 5GHz channels. I have been fighting with ac stability for quite long trying multiple github sources. The best results I had were with v5.2.20_25672.20171213 from TP-link website after small tweaking to make them working on RPi. But it was not perfect neither. Your version seems to work perfectly. Only what I am missing is /proc/net/8812au access. Could you let me know which github source you are using? So maybe I can tweak it to my liking.
I used the github source suggested by sealy_au - https://github.com/aircrack-ng/rtl8812au

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

dariuszb
Posts: 20
Joined: Sun Feb 21, 2016 3:55 pm

Re: Driver installation impossible? RTL8812AU

Fri Apr 05, 2019 10:10 am

MrEngman wrote:
Thu Apr 04, 2019 12:16 pm

I used the github source suggested by sealy_au - https://github.com/aircrack-ng/rtl8812au

MrEngman
Thank you.

This source is highly customized for aircrack. Has logging and access to /proc disabled etc..

For 8812au I would suggest more generic one from

https://github.com/zebulon2/rtl8812au-driver-5.2.20

MrEngman
Posts: 3835
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Driver installation impossible? RTL8812AU

Fri Apr 05, 2019 3:36 pm

dariuszb wrote:
Fri Apr 05, 2019 10:10 am
MrEngman wrote:
Thu Apr 04, 2019 12:16 pm

I used the github source suggested by sealy_au - https://github.com/aircrack-ng/rtl8812au

MrEngman
Thank you.

This source is highly customized for aircrack. Has logging and access to /proc disabled etc..

For 8812au I would suggest more generic one from

https://github.com/zebulon2/rtl8812au-driver-5.2.20
And that source has one major problem. It doesn't support 8821au devices that the other sources I've used do.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 3835
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Driver installation impossible? RTL8812AU

Mon May 06, 2019 7:03 pm

dariuszb wrote:
Thu Apr 04, 2019 12:03 pm
MrEngman - I have noticed that you have upgraded 8812au drivers to v5.2.20.2_28373.20180619. And finally my TP-Link -T4UHv1 seems to be stable on ac 5GHz channels. I have been fighting with ac stability for quite long trying multiple github sources. The best results I had were with v5.2.20_25672.20171213 from TP-link website after small tweaking to make them working on RPi. But it was not perfect neither. Your version seems to work perfectly. Only what I am missing is /proc/net/8812au access. Could you let me know which github source you are using? So maybe I can tweak it to my liking.
Sorry for not responding sooner.

The source is from https://github.com/aircrack-ng/rtl8812au

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

ockers
Posts: 2
Joined: Mon Jun 24, 2019 3:33 am

Re: Driver installation impossible? RTL8812AU

Mon Jun 24, 2019 3:54 am

Hi @MrEngman,

Thank you for the http://fars-robotics.net/install-wifi script, it's very helpful. Would you consider adding support to it for the newer version of the chipset with USB ID 0bda:c811 ? Here's what I see for this device (note I had to do a usb_modeswitch to get rid of the block device before the NIC would show up):

[email protected]:~ $ lsusb
Bus 001 Device 005: ID 0bda:c811 Realtek Semiconductor Corp.

dmesg shows this:
[Sun Jun 23 18:48:33 2019] usb 1-1.2: USB disconnect, device number 4
[Sun Jun 23 18:48:33 2019] usb 1-1.2: new high-speed USB device number 5 using dwc_otg
[Sun Jun 23 18:48:34 2019] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[Sun Jun 23 18:48:34 2019] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Sun Jun 23 18:48:34 2019] usb 1-1.2: Product: 802.11ac NIC
[Sun Jun 23 18:48:34 2019] usb 1-1.2: Manufacturer: Realtek
[Sun Jun 23 18:48:34 2019] usb 1-1.2: SerialNumber: 123456

I feel like this might work with your driver if you were to add that device ID, what do you think?

Thanks,
Jim

dariuszb
Posts: 20
Joined: Sun Feb 21, 2016 3:55 pm

Re: Driver installation impossible? RTL8812AU

Wed Jun 26, 2019 12:24 pm

MrEngman -

I have encountered issues with the latest Raspbian updates and your wifi driver script.

All worked fine until rip-firmware commit b39dd764176933407df48424f1d0779da05142b1. When trying to update latest kernel now using following command:

Code: Select all

sudo PRUNE_MODULES=1 rpi-update && sudo ~/wifi/install-wifi -u rpi-update
your script displays:

Code: Select all

Your current kernel revision = 4.19.55-v7+
Your current kernel build    = #906

Checking for a wifi module to determine the driver to install.

Your wifi module is Bus 001 Device 005: ID 2357:0103

And it uses the 8812au driver.

Please wait ... checking the kernel revision and build you will have after running command 'sudo rpi-update 458871abedfd68ea417d24577694dbe9d7d4db4c'.
Invalid commit-id, kernel not available for your version of the Pi, Pi 4.

the same when I try to revert to previous kernel

Code: Select all

sudo PRUNE_MODULES=1 rpi-update 458871abedfd68ea417d24577694dbe9d7d4db4c && sudo ~/wifi/install-wifi -u 458871abedfd68ea417d24577694dbe9d7d4db4c

Please note that contrary to error message I don't have Pi 4 but 3B+. I am also not on buster yet - still on stretch.

MrEngman
Posts: 3835
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Driver installation impossible? RTL8812AU

Wed Jun 26, 2019 6:12 pm

dariuszb wrote:
Wed Jun 26, 2019 12:24 pm
MrEngman -

I have encountered issues with the latest Raspbian updates and your wifi driver script.

All worked fine until rip-firmware commit b39dd764176933407df48424f1d0779da05142b1. When trying to update latest kernel now using following command:

Code: Select all

sudo PRUNE_MODULES=1 rpi-update && sudo ~/wifi/install-wifi -u rpi-update
your script displays:

Code: Select all

Your current kernel revision = 4.19.55-v7+
Your current kernel build    = #906

Checking for a wifi module to determine the driver to install.

Your wifi module is Bus 001 Device 005: ID 2357:0103

And it uses the 8812au driver.

Please wait ... checking the kernel revision and build you will have after running command 'sudo rpi-update 458871abedfd68ea417d24577694dbe9d7d4db4c'.
Invalid commit-id, kernel not available for your version of the Pi, Pi 4.

the same when I try to revert to previous kernel

Code: Select all

sudo PRUNE_MODULES=1 rpi-update 458871abedfd68ea417d24577694dbe9d7d4db4c && sudo ~/wifi/install-wifi -u 458871abedfd68ea417d24577694dbe9d7d4db4c

Please note that contrary to error message I don't have Pi 4 but 3B+. I am also not on buster yet - still on stretch.
Hi,

Sorry, looks like I screwed up the update to handle the new kernel used by the Pi 4.

I am looking at fixing it at the moment.

In the mean time I have restored the older version which should work.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 3835
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Driver installation impossible? RTL8812AU

Thu Jun 27, 2019 5:01 am

I have updated the script so hopefully it is now working OK.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

dariuszb
Posts: 20
Joined: Sun Feb 21, 2016 3:55 pm

Re: Driver installation impossible? RTL8812AU

Thu Jun 27, 2019 5:13 am

MrEngman wrote:
Thu Jun 27, 2019 5:01 am
I have updated the script so hopefully it is now working OK.


MrEngman
I have successfully brought by Pi 3B+ running stretch to the latest kernel and required wifi driver using:

Code: Select all

sudo PRUNE_MODULES=1 rpi-update && sudo ~/wifi/install-wifi -u rpi-update
Thank you for quick fix.

bluenote
Posts: 75
Joined: Thu Feb 05, 2015 8:25 am

Re: Driver installation impossible? RTL8812AU

Tue Jul 02, 2019 6:19 pm

Hey Mr Engman

I'm trying to use your script to install 8812au driver on a latest raspbian buster (pi 2B) but I get this error. I hope you have time to help.
thanks :)
Your current kernel revision = 4.19.50-v7+
Your current kernel build = #896


Your Pi revision number is
a01041
You have a Pi 2 or 3
Checking for a 8812au wifi driver module for your current kernel.
A driver does not yet exist for this update.
MrEngman wrote:
Thu Jun 27, 2019 5:01 am
I have updated the script so hopefully it is now working OK.


MrEngman

bluenote
Posts: 75
Joined: Thu Feb 05, 2015 8:25 am

Re: Driver installation impossible? RTL8812AU

Tue Jul 02, 2019 6:51 pm

MrEngman wrote:
Thu Jun 27, 2019 5:01 am
I have updated the script so hopefully it is now working OK.


MrEngman
Hi again. In reference to my last post, I was able to use your install-wifi script for the 8812au driver after an rpi-update.
I can't connect to a wifi network, but the driver does seem to be there and working so thank you! :)

MrEngman
Posts: 3835
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Driver installation impossible? RTL8812AU

Tue Jul 02, 2019 7:22 pm

bluenote wrote:
Tue Jul 02, 2019 6:51 pm
MrEngman wrote:
Thu Jun 27, 2019 5:01 am
I have updated the script so hopefully it is now working OK.


MrEngman
Hi again. In reference to my last post, I was able to use your install-wifi script for the 8812au driver after an rpi-update.
I can't connect to a wifi network, but the driver does seem to be there and working so thank you! :)
Hi bluenote,

Good to hear you've been able to sort out your issue.

For some reason the information I need to compile the drivers is not available for the original Buster image so I've not been able to compile drivers for the original version of the Buster kernel. Updating the kernel and drivers are available.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

bluenote
Posts: 75
Joined: Thu Feb 05, 2015 8:25 am

Re: Driver installation impossible? RTL8812AU

Thu Jul 04, 2019 7:49 pm

MrEngman wrote:
Tue Jul 02, 2019 7:22 pm
bluenote wrote:
Tue Jul 02, 2019 6:51 pm
MrEngman wrote:
Thu Jun 27, 2019 5:01 am
I have updated the script so hopefully it is now working OK.


MrEngman
Hi again. In reference to my last post, I was able to use your install-wifi script for the 8812au driver after an rpi-update.
I can't connect to a wifi network, but the driver does seem to be there and working so thank you! :)
Hi bluenote,

Good to hear you've been able to sort out your issue.

For some reason the information I need to compile the drivers is not available for the original Buster image so I've not been able to compile drivers for the original version of the Buster kernel. Updating the kernel and drivers are available.


MrEngman
It's so great that you're still keeping this stuff going year after year :) I wonder if you can help me. I was also trying out a ubuntu mate image, and I used the cmd line to install it with DKMS, then I noticed that they have an option to turn off the ridiculously bright LED. So I changed it to off inthe makefile. Then removed and re-installed through DKMS. But, it never took effect. I don't suppose you have a suggestion? I think that it doesn't understand it needs to recompile or something.

MrEngman
Posts: 3835
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Driver installation impossible? RTL8812AU

Thu Jul 04, 2019 9:17 pm

bluenote wrote:
Thu Jul 04, 2019 7:49 pm
MrEngman wrote:
Tue Jul 02, 2019 7:22 pm
bluenote wrote:
Tue Jul 02, 2019 6:51 pm


Hi again. In reference to my last post, I was able to use your install-wifi script for the 8812au driver after an rpi-update.
I can't connect to a wifi network, but the driver does seem to be there and working so thank you! :)
Hi bluenote,

Good to hear you've been able to sort out your issue.

For some reason the information I need to compile the drivers is not available for the original Buster image so I've not been able to compile drivers for the original version of the Buster kernel. Updating the kernel and drivers are available.


MrEngman
It's so great that you're still keeping this stuff going year after year :) I wonder if you can help me. I was also trying out a ubuntu mate image, and I used the cmd line to install it with DKMS, then I noticed that they have an option to turn off the ridiculously bright LED. So I changed it to off inthe makefile. Then removed and re-installed through DKMS. But, it never took effect. I don't suppose you have a suggestion? I think that it doesn't understand it needs to recompile or something.
You might be able to control whether the LED is on or off by creating a file /etc/modprobe.d/8812au.conf with contents

Code: Select all

options 8812au rtw_led_enable=0
to turn it off and

Code: Select all

options 8812au rtw_led_enable=1
to turn it on.

You may already have the file /etc/modprobe.d/8812au.conf so just add rtw_led_enable=0 or rtw_led_enable=1 to turn it off or on.

Not sure if this will work but it may do as it is possible to control the parameters with the 8812au.conf file. Not sure about Ubuntu mate but in Raspbian the parameters are in directory /sys/module/8812au/parameters and rtw_led_enable is in the list of parameters.

When changing parameters you will need to turn off the wifi and unload the wifi module and then reload the wifi module so the wifi restarts or alternatively reboot the Pi to enable the new parameter settings.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Return to “Raspbian”