urtwn driver for Edimax EW-7811U WLAN nano USB Adapter

From: Julian H. Stacey <jhs_at_berklix.com>
Date: Thu, 03 Oct 2013 01:57:58 +0200
Hi current_at_,
It seems I need if_urtwn driver for a really miniature WLAN USB stick,
& if_urtwn is only in current ?
man 4 if_urtwn refers to ports/net/urtwn-firmware-kmod which is missing ?

It took hours to search this far, is there a quicker way to find
drivers that I should have taken, that could go as tips in
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html
This is how I deduced what I needed:
----------

This is in the chronlogical search order I took:

	http://www.conrad.de/ce/de/product/993655/?insert_kz=NA&hk=SEM&WT.srch=1&scamp=GB6_Computer%20u%20Office_Netzwerk&saddg=Netzwerk-Adapter_WLAN-Adapter&gclid=CKK14r7T-LkCFYJd3god_B8Afw
	Cost 9.95 Euro
	Paper Label:
	 "Edimax 150 Mbps Wireless 802.11b/g/n nano USB Adapter"
	 "Green PowerSaving
	 3 time wirless coverage
	 Smart EZmax setup wizard
	 WPS,WPA2, 802.1x support
	 b g Wi Fi n Certified
	 GreenWLAN
	 EW-7811Un
	 MAC Linux Windows7
	 CDROM: Utility & Multi-language QIG & User Manual,
		Version 3.0 November 2010

http://www.amazon.com/gp/product/B005CLMJLU/ref=as_li_ss_tl?ie=UTF8&tag=sesoca-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B005CLMJLU
	Modulation OFDM: BPSK, QPSK, 16-QAM, 64-QAM, DSSS. Frequency
	Band 2.4GHz - 2.4835GHz. Antenna internal chip antenna.
	Channels (FCC) 2.4GHz : 1~11.

	Security 64/128 bit WEP Encryption and
	WPA-PSK, WPA2-PSK security; WPS compatible IEEE 802.1X .

devd -d -D reports:
	match	"vendor"	"0x7392";	# current/src//sys/dev/usb/usbdevs: Edimax
	match	"product"	"0x7811";	# current/src//sys/dev/usb/usbdevs: EW-7811Un
	match	"release"	"0x0200";
	match	"devclass"	"0x00";
	match	"devsubclass"	"0x00";
	match	"intclass"	"0xff";
	match	"intsubclass"	"0xff";

Realtek was seen on the cdrom:
	/Linux Driver/rtl8192CU_8188CU_linux_v2.0.939.20100726/driver/\
	rtl8192CU_linux_v2.0.939.20100726.tar.gz
with 18
	rtl8192CU_linux_v2.0.939.20100726/core/rtw*
including rtw_cmd.c with:
	* rtl871x_cmd.c
	The contents of this file is the sole property of Realtek Corp
	# #define _RTL871X_CMD_C_

http://distrowatch.com/weekly.php?issue=20130902&mode=67
	17 # Hardware drivers (by Angel on 2013-09-03 12:38:33 GMT from Philippines)
	_at_9 BluPhoenyx

	I have the same wifi dongle, Edimax EW-7811Un . The Linux
	kernel driver provided is RTL8192cu. It does not work
	properly. However, a working driver can be downloaded from
	Realtek: 8192cu. I'm using it now on my desktop with kernel
	3.20.25, Ubuntu 12.04. Has worked fine with different
	distros, various kernels
	Instructions here:
	http://www.linux-hardware-guide.com/2012-10-07-edimax-ew-7811un-wireless-usb-150-mbits-802-11n

http://www.linux-hardware-guide.com/2012-10-07-edimax-ew-7811un-wireless-usb-150-mbits-802-11n
	The following devices are identical to the Edimax EW-7811UN:
		* Edimax EW-7811GLn, EW-7811Un, EW-7811UWn, GWU-H811GLn
		* Airlink101 AWLL5088
		* Sitecom WL-365
		* GETNET GN-521U
	The USB stick uses the Realtek RTL8188CUS chipset, which
	is supported by the kernel module rtl8192cu. This module
	is included in the kernel since version >= 3.0 and will be
	loaded automatically:

	If the EW-7811UN stick is used with older distributions it
	might be necessary to use the Edimax original drivers
	together with NdisWrapper.  Furthermore, one can use the
	original Realtek drivers.
	http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PFid=48&Level=5&Conn=4&ProdID=277&DownTypeID=3&GetDown=false&Downloads=true#2772

http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PFid=48&Level=5&Conn=4&ProdID=277&DownTypeID=3&GetDown=false&Downloads=true#2772
	2 options to choose:
		Linux Kernel 2.6.18~2.6.38 and Kernel 3.0.8
		Android 1.6~2.3 and 4.0
		Version	Update	Size
		3.4.4_4749	2012/11/12	7308k
		ftp://WebUser:Lc9FuH5r_at_95.130.192.218/cn/wlan/RTL8192xC_USB_linux_v3.4.4_4749.20121105.zip
	Or
		MAC OSX 10.8 Install Package
		2.0.1	2012/10/18	2723k
		ftp://WebUser:Lc9FuH5r_at_95.130.192.218/cn/wlan/Wlan_11n_USB_MacOS10.8_Driver_UI_2.0.1.zip	XXX
	Browser for some reason moves on to:
	http://218.210.127.131/
	Which has more Realtek chips.

Downloaded both:
	7483477 Nov 12  2012 RTL8192xC_USB_linux_v3.4.4_4749.20121105.zip
	2788945 Oct 18  2012 Wlan_11n_USB_MacOS10.8_Driver_UI_2.0.1.zip
	MD5 (RTL8192xC_USB_linux_v3.4.4_4749.20121105.zip) = 791bde2cd1a13dfbbf2338c799dd8aaf	***
	MD5 (Wlan_11n_USB_MacOS10.8_Driver_UI_2.0.1.zip) = 988ae71cf7f61f3ac19145b3e2d887ff	***

A 2nd search direct to manufacturer:
http://www.edimax.com/en/produce_detail.php?pl1_id=28&pl2_id=138&pl3_id=330&pd_id=347
http://www.edimax.com/en/support_detail.php?pd_id=347&pl1_id=28&pl2_id=138
	EW-7811Un
	66 Page Manual pdf in EW-7811Un_V10_Manual_20100406.zip
	Driver
		Select: v2.0.939.20100726 Linux
		rtl8192CU_8188CU_linux_v2.0.939.20100726.zip (via http)

Downloaded both:
	1406834 EW-7811Un_V10_Manual_20100406.zip
	2053432 rtl8192CU_8188CU_linux_v2.0.939.20100726.zip
	MD5 (EW-7811Un_V10_Manual_20100406.zip) = 6b6cbf4d05a3728ee044da1b4a4f76d0		***
	MD5 (rtl8192CU_8188CU_linux_v2.0.939.20100726.zip) = 21cb24449279c6d4b62bc4d337183c57	***

Seems for an older Linux than above, Also for 8192CU not 8192xC_USB, whatever the diference.
[Detoured to unzip & untar sources & briefly compare]

9.1-RELEASE cd /usr/share/man/man4; zgrep -l -i Realtek *
	ed.4.gz if_ed.4.gz if_re.4.gz if_rl.4.gz if_rue.4.gz
	if_urtw.4.gz miibus.4.gz re.4.gz rgephy.4.gz rl.4.gz rue.4.gz
	snd_hda.4.gz urtw.4.gz
manual reduction of possibles:
	urtw -- Realtek RTL8187B/L USB IEEE 802.11b/g wireless network device
The chip in this is 8188 not 8187.

/pub/FreeBSD/branches/-current/src/
	sys/dev/usb/usbdevs:product EDIMAX RTL8192SU_2        0x7612  RTL8192SU
	sys/dev/usb/wlan/if_urtwn.c:  URTWN_DEV(EDIMAX,       RTL8192CU),
	sys/dev/usb/wlan/if_rsu.c:    RSU_DEV_HT(EDIMAX,              RTL8192SU_1),
	sys/dev/usb/wlan/if_rsu.c:    RSU_DEV_HT(EDIMAX,              RTL8192SU_2),
	sys/dev/usb/wlan/if_rsu.c:    RSU_DEV_HT(EDIMAX,              RTL8192SU_3),

9.1-RELEASE man 4 urtwn & rsu # nothing

http://svnweb.freebsd.org/base/head/sys/dev/usb/wlan/
	if_urtwn.c
	if_rsu.c

http://svnweb.freebsd.org/base/head/share/man/man4/urtwn.4?view=markup
	Realtek RTL8188CU/RTL8192CU USB IEEE 802.11b/g/n wireless network device
	Ports collection in
 	net/urtwn-firmware-kmod
	The following adapters should work:
	.It Edimax EW-7811Un

http://svnweb.freebsd.org/base/head/share/man/man4/rsu.4?view=markup
	RTL8188SU, RTL8191SU and RTL8192SU chipsets
	No mention of any Edimax adaptor
	Sh DIAGNOSTICS
	.Bl -diag
	.It "%s: failed load firmware of file rsu-rtl8712fw"

So I need urtwn, not in
http://www.freebsd.org/releases/9.2R/hardware.html
So I need to jump from my 9.1 [via 9.2] to current src/ 

http://www.freebsd.org/cgi/ports.cgi?query=urtwn-firmware-kmod&stype=all
	Fails, not there.
Maybe urtwn shares a BLOB from rsu ?

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com
 Reply below not above, like a play script.  Indent old text with "> ".
 Send plain text.  No quoted-printable, HTML, base64, multipart/alternative.
Received on Wed Oct 02 2013 - 21:58:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:42 UTC