speedysloth
Posts: 11
Joined: Wed Apr 02, 2014 6:16 pm

Edimax EW-7811UTC Raspbian

Sun Mar 01, 2015 7:34 pm

I am having trouble getting an Edimax EW-7811UTC wireless AC USB dongle to work under Raspbian on a Raspberry Pi 2.

Anyone who had the same trouble and can help, or someone wanting to help a noob. Any help would be appreciated!

Thank you

User avatar
DougieLawson
Posts: 35805
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Edimax EW-7811UTC Raspbian

Sun Mar 01, 2015 7:48 pm

Can you post the output from a lsusb command (that's ell,ess,you,ess,bee)?
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

speedysloth
Posts: 11
Joined: Wed Apr 02, 2014 6:16 pm

Re: Edimax EW-7811UTC Raspbian

Sun Mar 01, 2015 9:53 pm

Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 005: ID 7392:a812 Edimax Technology Co.,

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Edimax EW-7811UTC Raspbian

Sun Mar 01, 2015 10:00 pm

Can you post what is in your interfaces file (/etc/network/interfaces) and wpa_supplicant.conf (/etc/wpa_supplicant/wpa_supplicant.conf)?
There are 10 types of people: those who understand binary and those who don't.

speedysloth
Posts: 11
Joined: Wed Apr 02, 2014 6:16 pm

Re: Edimax EW-7811UTC Raspbian

Sun Mar 01, 2015 11:01 pm

/etc/network/interfaces

auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
iface static inet static
address *
netmask *
network *
broadcast *
gateway *


/etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="*"
psk="*"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
id_str="static"
}

User avatar
DougieLawson
Posts: 35805
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Edimax EW-7811UTC Raspbian

Mon Mar 02, 2015 12:02 am

Why are there all of those asterisks?

Get rid of network and broadcast lines they aren't needed.

Set it up something like this

Code: Select all

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
wireless-power off
iface default inet static

# change this to the static address you want
address 192.168.aaa.bbb

#change this to the gateway address from a route -n command
gateway 192.168.ggg.hhh
netmask 24
And

Code: Select all

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

network={
        ssid="yourWiFiSSID"
        scan_ssid=1
        psk="yourWiFiPassword"
}
You'll also may want to reconfigure ifplugd. My favourite method for doing that is sudo apt-get purge ifplugd && killall ifplugd
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

speedysloth
Posts: 11
Joined: Wed Apr 02, 2014 6:16 pm

Re: Edimax EW-7811UTC Raspbian

Mon Mar 02, 2015 2:22 am

Great, thank you for taking the time to reply!

I followed your suggestions but still no activity from the Edimax -7811UTC (AC wireless dongle). No led activity and I see nothing but the other wireless N dongle that is working, in the adapter drop down "Wifi Configurations" in Raspbian.

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

Re: Edimax EW-7811UTC Raspbian

Sun Mar 22, 2015 3:37 am

speedysloth wrote:Great, thank you for taking the time to reply!

I followed your suggestions but still no activity from the Edimax -7811UTC (AC wireless dongle). No led activity and I see nothing but the other wireless N dongle that is working, in the adapter drop down "Wifi Configurations" in Raspbian.
Almost certainly the driver you are using doesn't include the USB ID 7392:a812 for your module, which is why you don't see it.

I have drivers that you could try. What is the output from command uname -a so I can see if I have a driver for your OS version. Needs to be raspbian 3.18.x+.

There is a problem with the 7811UTC on the Pi B 2. Basically it doesn't work and the kernel crashes when the driver is initially loaded. However, if you are using a Pi B+ or earlier version of the Pi it appears to work 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.

speedysloth
Posts: 11
Joined: Wed Apr 02, 2014 6:16 pm

Re: Edimax EW-7811UTC Raspbian

Sun Mar 22, 2015 5:29 am

MrEngman wrote:
speedysloth wrote:Great, thank you for taking the time to reply!

I followed your suggestions but still no activity from the Edimax -7811UTC (AC wireless dongle). No led activity and I see nothing but the other wireless N dongle that is working, in the adapter drop down "Wifi Configurations" in Raspbian.
Almost certainly the driver you are using doesn't include the USB ID 7392:a812 for your module, which is why you don't see it.

I have drivers that you could try. What is the output from command uname -a so I can see if I have a driver for your OS version. Needs to be raspbian 3.18.x+.

There is a problem with the 7811UTC on the Pi B 2. Basically it doesn't work and the kernel crashes when the driver is initially loaded. However, if you are using a Pi B+ or earlier version of the Pi it appears to work OK.


MrEngman
Thank you for replying!

The uname -a output is: Linux 3.18.7-v7+

and it is a Pi B 2, the latest version or "number 2"

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

Re: Edimax EW-7811UTC Raspbian

Sun Mar 22, 2015 12:04 pm

speedysloth wrote:
MrEngman wrote:
speedysloth wrote:Great, thank you for taking the time to reply!

I followed your suggestions but still no activity from the Edimax -7811UTC (AC wireless dongle). No led activity and I see nothing but the other wireless N dongle that is working, in the adapter drop down "Wifi Configurations" in Raspbian.
Almost certainly the driver you are using doesn't include the USB ID 7392:a812 for your module, which is why you don't see it.

I have drivers that you could try. What is the output from command uname -a so I can see if I have a driver for your OS version. Needs to be raspbian 3.18.x+.

There is a problem with the 7811UTC on the Pi B 2. Basically it doesn't work and the kernel crashes when the driver is initially loaded. However, if you are using a Pi B+ or earlier version of the Pi it appears to work OK.


MrEngman
Thank you for replying!

The uname -a output is: Linux 3.18.7-v7+

and it is a Pi B 2, the latest version or "number 2"
Sorry, but it looks like you are out of luck then. For some reason all the driver versions I've tried, about 6 different ones, all cause the kernel to crash when used on the Pi B 2 with the EW-7811UTC.

I have drivers for that version and they work with the Linksys WUSB6300 but trying it with the EW-7811UTC causes the kernel to crash during booting. The WUSB6300 is an 8812au device and the EW-7811UTC is an 8821au device so it could be down to a problem with the 8821au part of the driver code, or possibly the Pi B 2 and it's code as other people with other types of devices have had problems with kernel crashes when moving to the Pi B 2. There are plenty of issues regarding crashes with the Pi B 2 detailed in the Rasberry Pi kernel repository issues section.

If you still want to try it I have 5 drivers for raspbian with 3.18.7-v7+ depending on the build. They are:

Code: Select all

8812au-3.18.7-v7-755.tar.gz
8812au-3.18.7-v7-756.tar.gz
8812au-3.18.7-v7-757.tar.gz
8812au-3.18.7-v7-758.tar.gz
8812au-3.18.7-v7-759.tar.gz
Download and install using the commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/filename
tar xzf filename
./install.sh
using the filename above in the commands to match the kernel version and build you have. The command ./install.sh runs a small script that installs the driver. After installing you will need to reboot to bring it up.

However, be warned. It will almost certainly crash the kernel but you are welcome to try it if you want.


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

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

speedysloth
Posts: 11
Joined: Wed Apr 02, 2014 6:16 pm

Re: Edimax EW-7811UTC Raspbian

Sun Mar 22, 2015 5:17 pm

Thank you MrEngman, your help is extremely appreciated!

rob_wainwright
Posts: 8
Joined: Wed Mar 04, 2015 6:14 pm

Re: Edimax EW-7811UTC Raspbian

Mon Mar 23, 2015 2:52 pm

I wouldn't spend much time trying to get the Edimax 7811UTC working with the RPi 2, like Mr Engman, I have compiled and tested multiple drivers with multiple kernel versions and it just does not work on the RPi 2. Causes a kernel crash every time.

I suspect this is more of an issue with the RPi 2 than the drivers, as I have compiled the latest 8812/8821 driver release with the same results. I have complied multiple drivers on multiple kernels for the RPi B and RPi B+ and all work perfectly, its just the RPi 2 that crashes. Also I have seen many, many reports of kernel crashes with the RPi 2 using other peripherals.

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

Re: Edimax EW-7811UTC Raspbian

Mon Mar 23, 2015 7:30 pm

rob_wainwright wrote:I wouldn't spend much time trying to get the Edimax 7811UTC working with the RPi 2, like Mr Engman, I have compiled and tested multiple drivers with multiple kernel versions and it just does not work on the RPi 2. Causes a kernel crash every time.

I suspect this is more of an issue with the RPi 2 than the drivers, as I have compiled the latest 8812/8821 driver release with the same results. I have complied multiple drivers on multiple kernels for the RPi B and RPi B+ and all work perfectly, its just the RPi 2 that crashes. Also I have seen many, many reports of kernel crashes with the RPi 2 using other peripherals.
Hi,

Like you I was fairly convinced the issue was the Pi B 2 especially as the problem occurs with other peripherals connected to the Pi 2, although now I'm not so sure.

I've now found I can cause my Pi B + to crash consistently with the 7811UTC connected. Looking at the logs on my Pi B 2 I saw the 7811UTC outputs huge amounts of debug data. I thought that this may possibly be causing a problem with the Pi B 2 so edited the file include/autoconf.h to disable the debug data and first tried it on my Pi B+, but the Pi froze during booting. Re-started the Pi B+ with the wifi disconnected and checked the log files and it showed the kernel had crashed like on the Pi B 2, except there was no debug data showing. Attempting to reboot with the 7811UTC connected always failed with a kernel crash. Re-enabled the debug data and the Pi B+ booted OK again.

All rather weird and I'm really not sure what to make of it now.


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

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

rob_wainwright
Posts: 8
Joined: Wed Mar 04, 2015 6:14 pm

Re: Edimax EW-7811UTC Raspbian

Mon Mar 23, 2015 7:47 pm

Interesting MrEngman, I will attempt to duplicate your findings.

qkn
Posts: 2
Joined: Sun May 17, 2015 3:47 pm

Re: Edimax EW-7811UTC Raspbian

Sun May 17, 2015 7:43 pm

MrEngman I've tried your drivers "https://dl.dropboxusercontent.com/u/802 ... 784.tar.gz" on a RPi B+. The scripts runs ok but after reboot I still can't get my EW-7811UTC to work.
I'm a Linux noobie, is there any logs I can have a look at to figure out what's wrong?

User avatar
DougieLawson
Posts: 35805
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Edimax EW-7811UTC Raspbian

Sun May 17, 2015 9:43 pm

Are you sure it's an 8812au chipset?

Check that with
lsusb
dmesg | grep usb
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

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

Re: Edimax EW-7811UTC Raspbian

Sun May 17, 2015 10:07 pm

DougieLawson wrote:Are you sure it's an 8812au chipset?

Check that with
lsusb
dmesg | grep usb
It's actually an 8821au device but the drivers I compile support both 8812au and 8821au devices.


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: 3844
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Edimax EW-7811UTC Raspbian

Sun May 17, 2015 10:21 pm

qkn wrote:MrEngman I've tried your drivers "https://dl.dropboxusercontent.com/u/802 ... 784.tar.gz" on a RPi B+. The scripts runs ok but after reboot I still can't get my EW-7811UTC to work.
I'm a Linux noobie, is there any logs I can have a look at to figure out what's wrong?
You could try command dmesg. This will display debug data during booting. Look for the USB reference for your dongle 7392:a812 e.g.

Code: Select all

[    3.599051] usb 1-1.4: New USB device found, idVendor=7392, idProduct=a812
and then look for any error messages after that.

Forget all that!

Just noticed you are using a Pi B+ so you downloaded the wrong file. The one you downloaded is for the Pi 2B. Try this instead

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8812au-3.18.13-784.tar.gz
tar xzf 8812au-3.18.13-784.tar.gz
./install.sh
NOTE: no "-v7" in the filename. If "-v7" is in the filename it indicates the driver is for the Pi 2B.


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

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

qkn
Posts: 2
Joined: Sun May 17, 2015 3:47 pm

Re: Edimax EW-7811UTC Raspbian

Mon May 18, 2015 5:59 am

Thank you so much!
Now it works. :)
Silly misstake..

mcmxii
Posts: 2
Joined: Mon May 18, 2015 7:15 am

Re: Edimax EW-7811UTC Raspbian

Mon May 18, 2015 7:19 am

Hi, can I ask if EW-7811UTC can be used for Access Point mode?

Basically I want to connect to my home router via SSID 123 (client mode), and create another AP mode eg SSID ABC for my other devices. Is this possible?

CaptainFred
Posts: 1
Joined: Fri May 29, 2015 4:42 pm

Re: Edimax EW-7811UTC Raspbian

Fri May 29, 2015 5:17 pm

Is anyone having trouble getting the EW-7811UTC to work reliably in a RPi2? It seems to work but randomly has issues. Doesn't seem to make any difference what OS i'm running either. I've got a good PSU too 3A and powered USB hub didn't help. Plus it works fine in my Windows 7 mediacenter PC plus quicker throughput...25MB/s+ vs ~7-9MB/s in the RPi2. Any help appreciated. Thanks

dtown123
Posts: 6
Joined: Wed Jan 15, 2014 11:17 pm

Re: Edimax EW-7811UTC Raspbian

Thu Jun 04, 2015 3:21 pm

Thank you for having consistent file naming conventions!

I was able to get the Edimax AC600 working using Pi B and kernel 3.18.14+ #793 using this driver:

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8812au-3.18.14-793.tar.gz
tar xzf 8812au-3.18.14-793.tar.gz
./install.sh

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

Re: Edimax EW-7811UTC Raspbian

Thu Jun 04, 2015 5:07 pm

dtown123 wrote:Thank you for having consistent file naming conventions!

I was able to get the Edimax AC600 working using Pi B and kernel 3.18.14+ #793 using this driver:

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8812au-3.18.14-793.tar.gz
tar xzf 8812au-3.18.14-793.tar.gz
./install.sh
Hi,

Glad to be able to help.

FYI I try to update the drivers whenever a new version/build appears. I currently compile drivers for 8188eu, 8192eu, 8812au and mt7601 adapters all using the same file format and install method.


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

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

cbprod
Posts: 2
Joined: Sat Jun 20, 2015 6:06 am

Re: Edimax EW-7811UTC Raspbian

Sat Jun 20, 2015 6:08 am

im new to all this stuff. i have a dlink dwa-171 which has the rtl8812au chip. what filename would i use? i have a rpi2

thank you

cbprod
Posts: 2
Joined: Sat Jun 20, 2015 6:06 am

Re: Edimax EW-7811UTC Raspbian

Sat Jun 20, 2015 5:58 pm

i have a dlink dwa-171 adapter with the rtl8812au chipset. what filename would i use to get it working in raspbian. i have a pi2

Return to “Troubleshooting”