Edimax EW-7811Un USB-Wifi adapter

Plugging in devices such as LAN adapters, Wi-Fi cards, printers, etc. to Arch Linux ARM.

Edimax EW-7811Un USB-Wifi adapter

Postby qashar » Sat May 14, 2011 2:27 pm

This is a nano usb wifi adapter (b/g/n 150Mbps). By nano I mean really small: it can easily get lost when not plugged in. You can find on sale for 9$. It comes with a Linux driver and I was able to have it perfectly working on a Dockstar.

Short instructions:
- if you plug the adapter in, you should be able to see it with: lsusb
$this->bbcode_second_pass_code('', 'Bus 001 Device 009: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
')
- download the linux driver from Edimax web page and unzip the file, then look for the driver directory and untar the file in there, where the source code is
- patch this file:
$this->bbcode_second_pass_code('', '*** rtl8192CU_linux_v2.0.939.20100726_orig/include/osdep_service.h 2011-05-14 09:49:18.000000000 -0400
--- rtl8192CU_linux_v2.0.939.20100726/include/osdep_service.h 2011-04-29 01:59:40.000000000 -0400
***************
*** 24,29 ****
--- 24,32 ----
#else
#include <linux/semaphore.h>
#endif
+
+ #define init_MUTEX(LOCKNAME) sema_init(LOCKNAME,1);
+
#include <linux/sem.h>
#include <linux/sched.h>
#include <linux/netdevice.h>')
- compile the driver: make
- install the driver (as root): make install
- load the module (as root): modprobe 8192cu
and now you should see the wlan0 with iwconfig (output below refers to a connected one, so yours could be different):
$this->bbcode_second_pass_code('', 'wlan0 IEEE 802.11bgn ESSID:"xxxxxxx" Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency:2.442 GHz Access Point: 00:1E:58:33:39:95
Bit Rate:150 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:****-****-****-****-****-****-****-**** Security mode:open
Power Management:off
Link Quality=100/100 Signal level=-46 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
')
-add 8192cu.ko into your rc.conf, if you want to load the module at boot:
$this->bbcode_second_pass_code('', 'MODULES=(8192cu)
')
- use your favorite app to configure the connection, I personally use wicd and the terminal interface (wicd-ncurses) to establish a connection to my encrypted WPA wireless network
- enjoy your wireless Dockstar (personally I put cups and mpd on my second dockstar, so I have a printserver and this weekend I'll try to configure a multi-room sound system cheaper than ever...)

More information on setting up a wireless connection can be found on the Arch webpage:
https://wiki.archlinux.org/index.php/Wireless_Setup

I'm not really an expert and I found the fix for the arm arch online looking for the error it was giving to me when compiling.
I don't know if you can make it as a package, so it's easy for people to install it. Should I add this on the wiki page?
qashar
 
Posts: 11
Joined: Thu Apr 21, 2011 3:39 pm

Re: Edimax EW-7811Un USB-Wifi adapter

Postby pepedog » Sat May 14, 2011 3:09 pm

Didn't it pick up the rtl8192 module already compiled with the kernel?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Edimax EW-7811Un USB-Wifi adapter

Postby qashar » Sat May 14, 2011 9:43 pm

Not really. My kernel is 2.6.38, I have MOD_AUTOLOAD="yes" and
$this->bbcode_second_pass_code('', '
[root@xxxxxx] ~ > modprobe rtl8192
FATAL: Module rtl8192 not found.
')
I did not really try other modules/drivers, I just went with its own.
qashar
 
Posts: 11
Joined: Thu Apr 21, 2011 3:39 pm

Re: Edimax EW-7811Un USB-Wifi adapter

Postby pepedog » Sat May 14, 2011 10:10 pm

Just suppose you-
rmmod 8192cu
then pulled the stick and reinserted, what does it say at the bottom of dmesg ?
In 2.6.38 rtl8192 is in driver staging, and compiled as module
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Edimax EW-7811Un USB-Wifi adapter

Postby qashar » Sat May 14, 2011 10:38 pm

Actually I have tried to just plug the adapter in another dockstar where the 8192cu module was not installed at all.

I see nothing in dmesg:
$this->bbcode_second_pass_code('', 'usb 1-1.2: new high speed USB device using orion-ehci and address 4
')

Which is the behavior you expect? the kernel should load rtl8192 automatically?
Let me know if you wanna try once more to dig out the issue, I should be able to try tomorrow...
qashar
 
Posts: 11
Joined: Thu Apr 21, 2011 3:39 pm

Re: Edimax EW-7811Un USB-Wifi adapter

Postby pepedog » Sat May 14, 2011 11:41 pm

I searched google for 7392:7811 and looks like drivers will appear in the kernel someday, so what you originally posted is the best solution
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Edimax EW-7811Un USB-Wifi adapter

Postby devacc12 » Sat Jul 07, 2012 2:48 pm

Please would you suggest a fix to the following problem,I run the make and get the error:
Makefile:567: /usr/src/linux-3.1.9-28-ARCH+/arch/armv61/Makefile: No such file or directory.

Thanks.
devacc12
 
Posts: 13
Joined: Thu Jul 05, 2012 9:20 pm

Re: Edimax EW-7811Un USB-Wifi adapter

Postby devacc12 » Sat Jul 07, 2012 6:05 pm

update:
I've discovered that now the latest build recognises the Edima but no wlan0 device is created.

i.e.
pacman -Syu
then lsudb shows the device correctly identified.

Alas no wlan0 device is created, so I'm trying to figure that one out now.
devacc12
 
Posts: 13
Joined: Thu Jul 05, 2012 9:20 pm

Re: Edimax EW-7811Un USB-Wifi adapter

Postby t1ger » Mon Jul 09, 2012 3:00 pm

$this->bbcode_second_pass_quote('devacc12', 'P')lease would you suggest a fix to the following problem,I run the make and get the error:
Makefile:567: /usr/src/linux-3.1.9-28-ARCH+/arch/armv61/Makefile: No such file or directory.

Thanks.


Hi

I created a link to make it work

ln -s /usr/src/linux-3.1.9-28-ARCH+/arch/arm /usr/src/linux-3.1.9-28-ARCH+/arch/armv6l
t1ger
 
Posts: 1
Joined: Mon Jul 09, 2012 2:53 pm

Re: Edimax EW-7811Un USB-Wifi adapter

Postby devacc12 » Fri Jul 20, 2012 11:52 am

My configuration was working but after a pacman -Syu last night modprobe can't find the 8192cu module.
I've tried to fix and look for posts but not found any clues.
Any ideas?
I've tried downloading the latest drivers and compiling but I get various errors, each leading to a deadend.
One post suggested some changes to Makefile viewtopic.php?f=6&t=3186 but I still end up with a recv_tasklet incomplete type error.
Thanks
Last edited by devacc12 on Fri Jul 20, 2012 5:54 pm, edited 1 time in total.
devacc12
 
Posts: 13
Joined: Thu Jul 05, 2012 9:20 pm

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 4 guests