mexus
Posts: 3
Joined: Mon Jun 12, 2017 10:57 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Jun 12, 2017 10:59 am

MrEngman,
Can you please tell me which driver source are you using to compile your drivers?

Thanks

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

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Jun 12, 2017 11:58 am

mexus wrote:MrEngman,
Can you please tell me which driver source are you using to compile your drivers?

Thanks
I was using this until recently. Now I'm using this



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

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

propergol
Posts: 21
Joined: Mon Aug 15, 2016 1:39 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Jun 19, 2017 3:23 pm

I just try to compile the driver for kernel 4.11.6-v7+ and...failed :lol:

Do you have updated driver dear MrEngman :?:

PS : I use this kernel because an other dongle, em28xx-Hauppauge-DualHD TV tuner, need a kernel patch that works on this kernel version only (from what I understand)

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

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Jun 19, 2017 4:49 pm

propergol wrote:I just try to compile the driver for kernel 4.11.6-v7+ and...failed :lol:

Do you have updated driver dear MrEngman :?:

PS : I use this kernel because an other dongle, em28xx-Hauppauge-DualHD TV tuner, need a kernel patch that works on this kernel version only (from what I understand)
Sorry, but I only have drivers compiled for kernels 4.0, 4.1, 4.4 and 4.9.


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

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

propergol
Posts: 21
Joined: Mon Aug 15, 2016 1:39 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Jun 19, 2017 5:39 pm

MrEngman wrote: Sorry, but I only have drivers compiled for kernels 4.0, 4.1, 4.4 and 4.9.


MrEngman
my bad...it was too hot today here :P
the kernel I am applying the patch / compiling is 4.9 :roll: (the 4.11 was from a previous test)

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

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Jun 19, 2017 5:46 pm

propergol wrote:
MrEngman wrote: Sorry, but I only have drivers compiled for kernels 4.0, 4.1, 4.4 and 4.9.


MrEngman
my bad...it was too hot today here :P
the kernel I am applying the patch / compiling is 4.9 :roll: (the 4.11 was from a previous test)
I have a script that will automatically select the driver for the kernel version you are using and install it. Take a look here to see how to install it :- viewtopic.php?p=1133815#p1133815



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

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

propergol
Posts: 21
Joined: Mon Aug 15, 2016 1:39 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Jun 19, 2017 5:59 pm

MrEngman wrote:
propergol wrote:
MrEngman wrote: Sorry, but I only have drivers compiled for kernels 4.0, 4.1, 4.4 and 4.9.


MrEngman
my bad...it was too hot today here :P
the kernel I am applying the patch / compiling is 4.9 :roll: (the 4.11 was from a previous test)
I have a script that will automatically select the driver for the kernel version you are using and install it. Take a look here to see how to install it :- viewtopic.php?p=1133815#p1133815



MrEngman
Yep, I know it thanks!

PS : I dont know if you remember, one or 2 weeks ago I told you that Libreelec WIFI drivers was more stable blabla...bulshit! : the culprit was one of my router the AC66U that is known to have 5ghz dropout :roll: using your driver on the AC68u 5Ghz is now perfect!

propergol
Posts: 21
Joined: Mon Aug 15, 2016 1:39 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Jun 19, 2017 6:44 pm

its me...again :mrgreen:

Code: Select all

 sudo install-wifi

 *** Raspberry Pi wifi driver installer by MrEngman.
 *** Performing self-update
 *** Relaunching after update

 *** Raspberry Pi wifi driver installer by MrEngman.

Your current kernel revision = 4.9.33-v7+
Your current kernel build    = #1

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

Your wifi module is Bus 001 Device 004: ID 0846:9052 NetGear, Inc.

And it uses the 8812au driver.

Checking for a new 8812au wifi driver module for your current kernel.
A driver does not yet exist for this update.
So the missing driver as you can see is for kernel 4.9.33

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

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Jun 19, 2017 7:15 pm

propergol wrote:its me...again :mrgreen:

Code: Select all

 sudo install-wifi

 *** Raspberry Pi wifi driver installer by MrEngman.
 *** Performing self-update
 *** Relaunching after update

 *** Raspberry Pi wifi driver installer by MrEngman.

Your current kernel revision = 4.9.33-v7+
Your current kernel build    = #1

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

Your wifi module is Bus 001 Device 004: ID 0846:9052 NetGear, Inc.

And it uses the 8812au driver.

Checking for a new 8812au wifi driver module for your current kernel.
A driver does not yet exist for this update.
So the missing driver as you can see is for kernel 4.9.33
Your current build does not agree with the build for the current Raspbian kernel which is 4.9.33-v7+ #1010. What OS/kernel are you using?

The current driver I have for Raspbian 4.9.33-v7+ is 8812au-4.9.33-v7-1010.tar.gz.

You could try

Code: Select all

wget http://fars-robotics.net/8812au-4.9.33-v7-1010.tar.gz
tar xzf 8812au-4.9.33-v7-1010.tar.gz
./install.sh
to install the driver I have but whether it will work with the kernel you are using I don't know.



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

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

propergol
Posts: 21
Joined: Mon Aug 15, 2016 1:39 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Mon Jun 19, 2017 7:54 pm

well I am using Raspbian lite with kernel patched as per instuctions post #24 https://forum.libreelec.tv/thread/2867- ... /?pageNo=2

But I am just following a receip with knowing nearly nothing in Linux :oops:

Anyway I have installed using your instructions and it works.

I must confess than I am starting to get lost between kernel version, patch, firmware :mrgreen:

odemwingie
Posts: 1
Joined: Wed Jun 21, 2017 11:42 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Wed Jun 21, 2017 11:45 am

Dear MrEngman,

Do you have the driver for Linux raspberrypi 4.9.26v7-aufs #1 SMP Tue May 9 20:14:03 CEST 2017 armv7l GNU/Linux ?

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

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Wed Jun 21, 2017 4:42 pm

odemwingie wrote:Dear MrEngman,

Do you have the driver for Linux raspberrypi 4.9.26v7-aufs #1 SMP Tue May 9 20:14:03 CEST 2017 armv7l GNU/Linux ?
Sorry, I don't.


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

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

dadak
Posts: 2
Joined: Sun Jun 25, 2017 12:10 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Sun Jun 25, 2017 12:26 am

Dear MrEngman,

I ran your "install wifi" script on rpi 3 board running volumio kernal :

uname -a
Linux volumio 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux

getting the following :

volumio@volumio:~$./install-wifi.sh

Your current kernel revision = 4.4.9-v7+
Your current kernel build = #884

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

Your wifi module is Bus 001 Device 005: ID 0bda:a811 Realtek Semiconductor Corp.

And it uses the 8812au driver.

Checking for a new 8812au wifi driver module for your current kernel.
A driver does not yet exist for this update.


Is their a driver that will work for this kernal? I also tried to compile rtl8812au source from git and
compiled fine, but when running "insmod 8812au.ko" get invalid format error.

Any help would be appreciated.
Thanks
dadak

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

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Sun Jun 25, 2017 9:15 am

dadak wrote:Dear MrEngman,

I ran your "install wifi" script on rpi 3 board running volumio kernal :

uname -a
Linux volumio 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux

getting the following :

volumio@volumio:~$./install-wifi.sh

Your current kernel revision = 4.4.9-v7+
Your current kernel build = #884

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

Your wifi module is Bus 001 Device 005: ID 0bda:a811 Realtek Semiconductor Corp.

And it uses the 8812au driver.

Checking for a new 8812au wifi driver module for your current kernel.
A driver does not yet exist for this update.


Is their a driver that will work for this kernal? I also tried to compile rtl8812au source from git and
compiled fine, but when running "insmod 8812au.ko" get invalid format error.

Any help would be appreciated.
Thanks
dadak
The drivers were installed on Dropbox but they have made a major change to their web site and its really screwed things up. Really annoying to say the least so I have moved the drivers to a new site. You will need to download and install a new script to use the new site.

Download and install the new version of the script with commands

Code: Select all

sudo wget http://www.fars-robotics.net/install-wifi -O /usr/bin/install-wifi
sudo chmod +x /usr/bin/install-wifi
The command

Code: Select all

sudo install-wifi -h
will show details on using it.

To install the driver on your current kernel you should just need to run command

Code: Select all

sudo install-wifi
This will select the driver you need and automatically download and install it.



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

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

dadak
Posts: 2
Joined: Sun Jun 25, 2017 12:10 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Sun Jun 25, 2017 6:54 pm

Mr. Engman,

Thank you. Your help was appreciated. The script at the new location you provided fixed my issues and got my
rtl8812au chipset adpater working on my raspberry pi 3.

mexus
Posts: 3
Joined: Mon Jun 12, 2017 10:57 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Wed Jul 05, 2017 5:02 pm

MrEngman wrote:
mexus wrote:MrEngman,
Can you please tell me which driver source are you using to compile your drivers?

Thanks
I was using this until recently. Now I'm using this



MrEngman
Thanks.
Which platform do you use for:
posting.php?mode=quote&f=66&p=1174196
to compile the driver for RPI?

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

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Wed Jul 05, 2017 5:29 pm

mexus wrote:
MrEngman wrote:
mexus wrote:MrEngman,
Can you please tell me which driver source are you using to compile your drivers?

Thanks
I was using this until recently. Now I'm using this



MrEngman
Thanks.
Which platform do you use for:
posting.php?mode=quote&f=66&p=1174196
to compile the driver for RPI?
I cross-compile on a PC using Ubuntu 16.0.4.

I have compiled on a Pi but it just takes quite a bit longer.


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

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

mexus
Posts: 3
Joined: Mon Jun 12, 2017 10:57 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Thu Jul 06, 2017 9:12 am

MrEngman,
Can I also ask you to add support for TP-Link - Archer T4U AC1300 (V2) in future builds.
You need to edit os_dep\linux\usb_intf.c
and add this

Code: Select all

{USB_DEVICE(0x2357, 0x010D),.driver_info = RTL8812}, /* TP-Link - Archer T4U AC1300*/
somewhere below:

Code: Select all

#ifdef CONFIG_RTL8812A
What is the makefile options to compile on the pi?
https://github.com/Grawp/rtl8812au_rtl8 ... ree/4.3.20
CONFIG_PLATFORM_GENERIC = y
or something else. In the other source there was a platform for the RPI

Thanks

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

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Thu Jul 06, 2017 4:46 pm

Hi mexus,

I thought the driver already included the Archer T4U USB ID. However, a patch I'd added a while back that also included several new wifi USB ID's had the wrong value for the Archer T4U.

I checked out the patch earlier today and I see it has now been updated with the correct value for the T4U.

I've updated the driver source with the correct value and recompiled the drivers for the Raspbian kernels 4.0, 4.1, 4.4 and 4.9 that already have drivers available so the T4U should now 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.

xphoto
Posts: 4
Joined: Thu Apr 16, 2015 7:16 pm

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Wed Jul 19, 2017 8:33 pm

Man, you made my day and saved me hours !
I just downloaded the latest version after upgrading from 4.1.11 to 4.9.37 firmware and it worked out of the box with your script !
thank you so so much !!!
took me 1 min to make it run. :))))

MrEngman wrote: The drivers were installed on Dropbox but they have made a major change to their web site and its really screwed things up. Really annoying to say the least so I have moved the drivers to a new site. You will need to download and install a new script to use the new site.

Download and install the new version of the script with commands

Code: Select all

sudo wget http://www.fars-robotics.net/install-wifi -O /usr/bin/install-wifi
sudo chmod +x /usr/bin/install-wifi
The command

Code: Select all

sudo install-wifi -h
will show details on using it.

To install the driver on your current kernel you should just need to run command

Code: Select all

sudo install-wifi
This will select the driver you need and automatically download and install it.


MrEngman

planflux
Posts: 1
Joined: Fri Jul 21, 2017 3:10 am

Re: ASUS USB-AC56 (RTL8812AU/RTL8821AU) Driver compile fails

Fri Jul 21, 2017 3:21 am

All other solutions for RTL8812au or RTL8821au on the internet failed, and it took me 2 days to compile the kernel, a matched gcc, editting Makefile, and etc. My device had 0bda:a811 (use command $ lsusb). A few of the GIT driver sources didnot work.

I followed the answer posted by the gentleman above, and it immediately worked... I wish I looked at the bottom of this post sooner.

sudo wget http://www.fars-robotics.net/install-wifi -O /usr/bin/install-wifi
sudo chmod +x /usr/bin/install-wifi

sudo install-wifi -h (remove -h)

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 18 guests