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

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

Mon Jul 11, 2016 1:50 pm

ArchieSt wrote:Good day MrEngman

Thank you for your quick response

I am indeed using Rasbian JESSIE

pi@raspberrypi:~/Downloads $ uname -a
Linux raspberrypi 4.4.14+ #896 Sat Jul 2 14:16:46 BST 2016 armv6l GNU/Linux
A little odd as you say you are using a Pi 2 B. If you are the kernel version should show 4.4.14-v7+, not 4.4.14+.

OK, looks like you installed the wrong file which would explain why it does not load. Try this

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8812au-4.4.14-896.tar.gz
tar xzf 8812au-4.4.14-896.tar.gz
./install.sh
Note NO "-v7"
GNU nano 2.2.6 File: /etc/network/interfaces Modified


allow-hotplug wlan0
iface wlan0 inet static
address 192.168.42.1
netmask 255.255.255.0
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

#allow-hotplug wlan1
When using Jessie you should not edit file /etc/network/interfaces.Read the first 3 lines of the default file. Put the file back to the default.

Code: Select all

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
To set a fixed IP for your wifi edit file /etc/dhcpcd.conf
GNU nano 2.2.6 File: /etc/wpa_supplicant/wpa_supplicant.conf

country=ZA
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

#iface wlan1 inet manual
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
#iface wlan1 inet manual
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
And set up /etc/wpa_supplicant/wpa_supplicant.conf like

Code: Select all

country=ZA
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="network-name"
        psk="network-password"
}


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

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

ArchieSt
Posts: 6
Joined: Mon Jul 11, 2016 8:02 am

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

Mon Jul 11, 2016 2:04 pm

Good day MrEngman

Thank you very much I do appreciate your assistance

Nixies
Posts: 5
Joined: Sat Sep 21, 2013 7:22 am

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

Thu Jan 19, 2017 9:37 am

Hello MrEngman,

Thanks to you I have installed the driver of the WUSB6300 adapter (see discussion of the Sat Apr 16, 2016 5:42 pm).
I have not done any upgrade, no version change.
Now I'm trying to adjust the txpower but it seems that I can't. If I try the command:

iwconfig wlan0 txpower 20
the rpi replies:
Error in wireless request "set Tx Power" (8B26)
set failed on device wlan0; operation not permitted.

I tried with sudo and I got the same.
Do you know if the driver allows this operation ?

Thank you in advance.
Nixies

rusli
Posts: 36
Joined: Thu Feb 16, 2017 5:55 pm

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

Fri Feb 24, 2017 10:08 am

Hi

MrEngman,

Could you please release the next driver base on this rtl8812au driver as this driver supports monitor and injection mode.

https://github.com/diederikdehaas/rtl88 ... .3.22-beta

I do not know how to compile it.

Your help is very much appreciated.

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

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

Sun Feb 26, 2017 12:27 pm

rusli wrote:Hi

MrEngman,

Could you please release the next driver base on this rtl8812au driver as this driver supports monitor and injection mode.

https://github.com/diederikdehaas/rtl88 ... .3.22-beta

I do not know how to compile it.

Your help is very much appreciated.
Sorry for the delay in responding.

What kernel version are you currently using? Can you post the output of command uname -a



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

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

rusli
Posts: 36
Joined: Thu Feb 16, 2017 5:55 pm

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

Sun Feb 26, 2017 12:31 pm

Hi MrEngman,

I am using the latest kernel version base on the latest rpi-update.

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

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

Sun Feb 26, 2017 1:44 pm

I assume then that it is kernel 4.9.11-v7+ #971.

I have updated that driver so you can try 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.

rusli
Posts: 36
Joined: Thu Feb 16, 2017 5:55 pm

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

Sun Feb 26, 2017 1:50 pm

Yes! I have download it and try it, there seems to be a software bug in it.

It cannot seems to work with the network card in monitor and frame injection mode.

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

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

Sun Feb 26, 2017 1:57 pm

I'm running it on a Pi 3B and 2B, but just in normal sta mode, and it appears to be OK in that mode.

Unlike the other versions of the driver it compiles with a couple of warnings I don't like the look of and it is a beta driver so quite possibly it may have problems of one sort or another.



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

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

rusli
Posts: 36
Joined: Thu Feb 16, 2017 5:55 pm

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

Sun Feb 26, 2017 1:59 pm

It cannot seems to work with Kali linux.

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

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

Sun Feb 26, 2017 2:56 pm

rusli wrote:It cannot seems to work with Kali linux.
Probably because it's compiled for Raspbian



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

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

ktb
Posts: 1380
Joined: Fri Dec 26, 2014 7:53 pm

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

Sun Feb 26, 2017 3:07 pm

FYI, there are at least a few versions of that beta driver in various states of development if you search around GitHub. Some of them work better than others, IME.

rusli
Posts: 36
Joined: Thu Feb 16, 2017 5:55 pm

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

Sun Feb 26, 2017 3:09 pm

Hi ktb,

Which exact version of rtl8812au driver that work really well with monitor and frame injection modes?

ktb
Posts: 1380
Joined: Fri Dec 26, 2014 7:53 pm

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

Sun Feb 26, 2017 3:28 pm

rusli wrote:Hi ktb,

Which exact version of rtl8812au driver that work really well with monitor and frame injection modes?
It has been a while since I played around with that driver. The only advice I can provide right now is to try searching around GitHub. I'll check some of my systems later and get back to you. Right now, I have to get some sleep. BBL.

UPDATE: I checked a few of my systems. The following list should include just about every repo I've used in the past for this driver (might be missing one or two), aside from the original leaked beta driver source archive (which you can probably locate yourself given a small amount of effort in searching with Google).

https://github.com/astsam/rtl8812au
https://github.com/ulli-kroll/rtl8821au
https://github.com/Grawp/rtl8812au_rtl8821au
https://github.com/gnab/rtl8812au
https://github.com/abperiasamy/rtl8812AU_8821AU_linux

Also, please don't take this the wrong way, but I have no interest in teaching a stranger how to do what it is you're looking to do. I have no idea who you are and what your intentions might be. I suggest you do a lot of research if you're new to this sort of thing and do check the various branches at the above repos. The Issues section of these GitHub repos should be helpful in overcoming many common issues. Also, remember what I told you in your other thread -- I can only confirm that I had monitor mode working with my RTL8811AU adapter. And be careful. I wish you luck.

rusli
Posts: 36
Joined: Thu Feb 16, 2017 5:55 pm

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

Tue Feb 28, 2017 2:21 pm

Ktb

How do I compile those Drivers in Ubuntu-mate 16.04???

ktb
Posts: 1380
Joined: Fri Dec 26, 2014 7:53 pm

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

Tue Feb 28, 2017 2:51 pm

rusli wrote:Ktb

How do I compile those Drivers in Ubuntu-mate 16.04???
I don't know. I don't use Ubuntu MATE 16.04. I'd probably get the kernel headers somehow and compile as usual.

If you are patient, maybe I'll post the steps for you later. However, they will not be specific to Ubuntu MATE.

rusli
Posts: 36
Joined: Thu Feb 16, 2017 5:55 pm

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

Thu Mar 02, 2017 7:11 pm

Hi MrEngman,

Do you have the latest up to date release kernal version 4.9.13-v7+ Build#974 for the driver rtl8812au???

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

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

Thu Mar 02, 2017 8:35 pm

rusli wrote:Hi MrEngman,

Do you have the latest up to date release kernal version 4.9.13-v7+ Build#974 for the driver rtl8812au???
I do now. https://dl.dropboxusercontent.com/u/802 ... 974.tar.gz



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

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

rusli
Posts: 36
Joined: Thu Feb 16, 2017 5:55 pm

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

Thu Mar 02, 2017 11:26 pm

Thank you MrEngman...

By the way how do you compile the drivers???

I usually get builds errors when try to to compile and copy from the github.

rusli
Posts: 36
Joined: Thu Feb 16, 2017 5:55 pm

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

Fri Mar 03, 2017 1:27 am

Reference base on:- https://github.com/diederikdehaas/rtl8812AU

Hi

Every time I try to do this on ubuntu mate 16.04.02 i get errors.

desktop:~$ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.9.13-v7
E: Couldn't find any package by glob 'linux-headers-4.9.13-v7'
E: Couldn't find any package by regex 'linux-headers-4.9.13-v7'

or

desktop:~$ sudo apt-get install linux-headers-$(uname -vr)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.9.13-v7
E: Couldn't find any package by glob 'linux-headers-4.9.13-v7'
E: Couldn't find any package by regex 'linux-headers-4.9.13-v7'
E: Unable to locate package #974
E: Unable to locate package SMP
E: Unable to locate package Wed
E: Unable to locate package Mar
E: Unable to locate package 1
E: Unable to locate package 20:09:48
E: Unable to locate package GMT
E: Unable to locate package 2017

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

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

Fri Mar 03, 2017 10:05 pm

Hi rusli,

I've never tried using the kernel headers to compile modules. I use a clone of the github raspberrypi/linux repo

I would suggest you look here https://github.com/notro/rpi-source. Take a look at the wiki link for details on installing it and compiling modules.

Apparently rpi-source will download the source for the kernel you are using and allow you to compile modules for that kernel version.

I compile (cross-compile) my modules on an x86 PC, rather than using a RPi, and it's somewhat complicated to set up although once done compiling the wifi modules is very easy and quick.



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

Sat Mar 04, 2017 6:36 pm

I dont know if there is something new in last driver and/or Raspbian version (4.4.50-v7+ #970) but this is the first time my Alpha dongle (8812au) stay connected more than 20 mins :P

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

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

Sat Mar 04, 2017 7:22 pm

propergol wrote:I dont know if there is something new in last driver and/or Raspbian version (4.4.50-v7+ #970) but this is the first time my Alpha dongle (8812au) stay connected more than 20 mins :P
If you have used the driver I've compiled and used the install-wifi script to install it then it installs an additional file /etc/modprobe.d/8812au.conf. This file includes data to disable the power management and stop it closing the USB connection if it goes idle for any length of time. That may be why you are seeing the change in behaviour.

Disconnecting can also be caused by power issues so if Rasbian 4.4.50 causes the Pi to use less power this will also help.



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

Sat Mar 04, 2017 8:01 pm

yes I use your script since I own the dongle ;) but I have always got this disconnect issue.
I did not updated this PI3 since one or 2 month, and only update today, so maybe some changes is older than latest kernel/driver, I dont know.

The thing is that I am now contemplating my router wifi interface's clients logs for hours without Alpha dongle disconnection :mrgreen:

Just a question that has nothing to do (linux noob here) : I dont understand when and how I should issue the "install-wifi" when I check for update :
sudo apt-get update
sudo apt-get-upgrade

I did try to launch the script just after this two commands, but it then detect the actual kernel since I havent yet rebooted and not the new one.
So after rebooting the wifi of course doesn't have the good driver and I need to hard plug the pi to the network to install the matching driver.
If you have any instructions... :P

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

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

Sun Mar 05, 2017 8:56 pm

propergol wrote:yes I use your script since I own the dongle ;) but I have always got this disconnect issue.
I did not updated this PI3 since one or 2 month, and only update today, so maybe some changes is older than latest kernel/driver, I dont know.

The thing is that I am now contemplating my router wifi interface's clients logs for hours without Alpha dongle disconnection :mrgreen:

Just a question that has nothing to do (linux noob here) : I dont understand when and how I should issue the "install-wifi" when I check for update :
sudo apt-get update
sudo apt-get-upgrade

I did try to launch the script just after this two commands, but it then detect the actual kernel since I havent yet rebooted and not the new one.
So after rebooting the wifi of course doesn't have the good driver and I need to hard plug the pi to the network to install the matching driver.
If you have any instructions... :P
I've had this problem as well. Determining if the kernel is updated when running apt-get upgrade is an issue I've had.

Unfortunately I've no solution for using my script as it is but I have been investigating and have found a sort of solution but it requires some manual work. The issue is primarily determining if apt-get upgrade is going to update the kernel and then if it is what is the version going to be. However, I think I've found a way round the problem.

So to find if apt-get upgrade is going to update the kernel run the command apt-get upgrade and before installing the new packages check the package list for raspberry pi kernel updates, such as "libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0" and "raspberrypi-bootloader raspberrypi-kernel".

If you see packages like these let the upgrade run but do not reboot when the command finishes installing the new files.

Now to find the new kernel version and build that has been installed. Execute the following commands

Code: Select all

cd /usr/share/doc/raspberrypi-kernel/
sudo gunzip -k changelog.Debian.gz
nano changelog.Debian
This should open the new changelog file which has, or should have, info on the new kernel version like

Code: Select all

nano changelog.Debian

raspberrypi-firmware (1.20170303-1) jessie; urgency=medium

  * firmware as of b51046a2b2bb69771579a549d157205d9982f858

 -- Serge Schneider <serge@raspberrypi.org>  Fri, 03 Mar 2017 14:30:23 +0000

raspberrypi-firmware (1.20170215-1) jessie; urgency=medium

  * firmware as of 3fb63c413cabfddb7fb9ed286bfc62abe73cc310
  * Added bcm2708-rpi-0-w.dtb

 -- Serge Schneider <serge@raspberrypi.org>  Wed, 15 Feb 2017 17:47:53 +0000
The first line with "firmware as of" gives a pointer to the firmware version at https://github.com/raspberrypi/firmware/commits. There is a button which probably shows "Branch: master". Click that button and select "stable" and then look through the list of commits for one that matches the value shown in the Changelog.Debian file you opened with nano. When you find it make a note of the description and date then open the Hexxeh/rpi-firmware repo https://github.com/Hexxeh/rpi-firmware/commits/stable and check for a commit with a similar description to the raspberrypi/firmware repo. Take a note of the commit ID and then you can run the install-wifi script using command format like

Code: Select all

sudo install-wifi -u 185fcf81f599aa9db7ec114de9bf7d0345065f67
. This is the commit ID value from the Hexxeh/rpi-firmware repo with the same description as the raspberrypi/firmware repo with the commit ID from changelog.Debian file example above. After the wifi driver is installed you can reboot and your Pi should be up and running with the new kernel and wifi driver.

All a bit of a pain and for me I think it would be easier to connect to a wired network but it appears to work as I tried it on my Pi 3 today and it worked fine.

Would be nice to be able to get the script to do this but I have no idea how it could be done.



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”

Who is online

Users browsing this forum: No registered users and 14 guests