<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sascha A. Beck Blog &#187; WUSB54G</title>
	<atom:link href="http://www.saschabeck.com/blog/tag/wusb54g/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saschabeck.com/blog</link>
	<description>Das Weblog von Sascha A. Beck, Saarbrücken.</description>
	<lastBuildDate>Wed, 25 Mar 2009 17:48:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Linksys WUSB54G Adapter with Debian</title>
		<link>http://www.saschabeck.com/blog/2006/07/06/using-linksys-wusb54g-adapter-with-debian/</link>
		<comments>http://www.saschabeck.com/blog/2006/07/06/using-linksys-wusb54g-adapter-with-debian/#comments</comments>
		<pubDate>Thu, 06 Jul 2006 18:14:08 +0000</pubDate>
		<dc:creator>Sascha Beck</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[WUSB54G]]></category>

		<guid isPermaLink="false">http://www.saschabeck.com/?p=27</guid>
		<description><![CDATA[This is a short HowTo listing the steps to get the Linksys (Cisco) wireless WUSB54G Rev04 adapter working with Debian Sarge / Kernel 2.6.12 or 2.6.16 and the official Ralink Linux driver. This is mostly a quick write-up so I remember the steps if I ever have to do it again. But maybe it helps [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://www.sablog.de/images/2006/07/WUSB54G.gif" alt="WUSB54G and Debian" />This is a short HowTo listing the steps to get the Linksys (Cisco) wireless <strong>WUSB54G Rev04</strong> adapter working with Debian Sarge / Kernel 2.6.12 or 2.6.16 and the official Ralink Linux driver. This is mostly a quick write-up so I remember the steps if I ever have to do it again. But maybe it helps someone else too.</p>
<p><span id="more-27"></span></p>
<p>Note: This is only confirmed to work with rev4 of the Linksys adapter with Ralink 2500 chipset. Rev1 and Rev2 use completely different chipsets, so you may be forced to use ndiswrapper. Check linux-usb for details.</p>
<p>There&#8217;s also a  <a href="http://rt2x00.serialmonkey.com/wiki/index.php/Downloads">RT2&#215;00 open source project</a> but version v1.1.0-b1 of the RT2570USB driver didn&#8217;t work back in March 2006. Well, outbound connections worked perfectly, but inbound connections got dropped. And I needed WPAPSK/TKIP Encryption which  the RT2570USB driver didn&#8217;t provide if I remember correctly.</p>
<p>Instead of vi you can use your favorite text editor.</p>
<p><strong>Last update: 15/july/2006 for kernel 2.6.16 &#8211; NOTE: This might not work with newer kernels, I actually don&#8217;t use this set-up anymore (I put good old LAN cable in the walls instead <img src='http://www.saschabeck.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
</strong></p>
<p>1) If you build your kernel yourself, make sure you have all USB-related modules activated in your kernel. I had to disable OHCI, but enable EHCI and UHCI. If you use a stock kernel from Debian/Ubuntu/Fedora, it should be enabled by default.</p>
<p>2) Install wireless-tools via apt-get</p>
<p>3) Get the source tarball from http://www.ralinktech.com/supp-1.htm. I used Drv2.0.7.0.</p>
<p>4) tar -zxvf  &amp;&amp; cd RT25USB-SRC-V2.0.7.0</p>
<p>5) vi readme</p>
<p>6) cp Makefile.6 Makefile</p>
<p>7) if you don&#8217;t want debug messages flooding your logs: edit rt2570sw.h and replace in line 182: #if 1 with #if 0  .</p>
<p> <img src='http://www.saschabeck.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> vi rt2570sw.h<br />
Around line #130 insert the following code:<br />
<code>#define RTVID8                  0x13b1 //cisco<br />
#define RTPID8                  0x000d</code></p>
<p>Around line #147, insert the following code:<br />
<code> {USB_DEVICE(RTVID8,RTPID8)},  \</code></p>
<p>9) for kernel versions &gt;= 2.6.16: you have to remove in line 95 of  rtusb_main.c:<br />
<code>.owner =        THIS_MODULE,</code></p>
<p>9b) for kernel versions &gt;= 2.6.14: replace  verify_area with access_ok in lines 3986 and 3997 to avoid &#8220;unknown symbol verify_area&#8221; while loading the module later:<br />
if (<a href="http://lwn.net/Articles/149648/">verify_area</a>(VERIFY_&#8230;<br />
to<br />
if (access_ok(VERIFY_&#8230;</p>
<p>10) make  (I ignored the warnings about DBG and WIN32_WINNT)</p>
<p>11) if everything worked, you should have a rt2570.ko file now.</p>
<p>12) cp rt2570.ko /lib/modules/[KERNEL-VERSION]/kernel/drivers/net/wireless/</p>
<p>13) echo &#8220;alias rausb0 rt2570&#8243; &gt;/etc/modprobe.d/rt2570</p>
<p>14) configure /etc/network/interfaces:</p>
<p>the Ralink driver supports WPA2PSK and AES, check out the readme for details.<br />
I use WPA TKIP, and this configuration:<br />
<code><br />
auto<br />
iface rausb0 inet dhcp<br />
pre-up iwconfig rausb0 channel 2  # not really needed.<br />
# Use WPAPSK authentication (=3)<br />
pre-up iwpriv rausb0 auth 3<br />
# Use TKIP encryption type (=3)<br />
pre-up iwpriv rausb0 enc 3<br />
pre-up iwconfig rausb0 essid YOUR_ESSID<br />
# WPAPSK passphrase<br />
pre-up iwpriv rausb0 wpapsk YOUR_PASSWORD<br />
pre-up iwconfig rausb0 essid YOUR_ESSID</code></p>
<p>Yes, iwconfig rausb0 essid is needed twice.</p>
<p>15) Try it: modprobe rt2570 &amp;&amp; ifup rausb0 &amp;&amp; ifup rausb0<br />
For some weird reason, I need to do ifup rausb0 twice to bring it up. No idea why.</p>
<p>16) If it doesn&#8217;t work, you have to dig deeper. Enable debugging (see (7)) and play around with the config settings in /etc/network/interfaces. There&#8217;s a lot of voodoo involved with USB Wireless LAN and Linux <img src='http://www.saschabeck.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>17) Hotplug Script:<br />
vi /etc/hotplug/usb/rt2570<br />
<code>#!/bin/bash<br />
# This file is executed by hotplug when the rt2570 card is inserted<br />
/sbin/ifup rausb0<br />
/sbin/ifup rausb0</code></p>
<p>Don&#8217;t forget to: chmod u+x rt2570</p>
<p>For completeness sake, here the details of my adapter revision: (Manufactured November 2005).<br />
<code>cat /proc/bus/usb/devices<br />
T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#=  2 Spd=480 MxCh= 0<br />
D:  Ver= 2.00 Cls=00(&gt;ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1<br />
P:  Vendor=13b1 ProdID=000d Rev= 0.04<br />
S:  Manufacturer=Cisco-Linksys<br />
S:  Product=Wireless-G USB Network Adapter<br />
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=300mA<br />
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=rtusb<br />
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms<br />
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saschabeck.com/blog/2006/07/06/using-linksys-wusb54g-adapter-with-debian/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
