Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290077 - sys-kernel/gentoo-sources-2.6.31: WUSB54GC: rt2800usb driver not working, rt2870 does with PCIID of device added
Summary: sys-kernel/gentoo-sources-2.6.31: WUSB54GC: rt2800usb driver not working, rt2...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard: linux-2.6.31,linux-2.6.32
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-21 22:35 UTC by Ira Moss
Modified: 2010-03-19 20:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
rtx200 patch (rtx200.patch,1.27 KB, patch)
2009-10-24 17:31 UTC, Mike Pagano
Details | Diff
2.6.31-r3 with 'hacked' modules - showing up as ra0 (hacked-config,53.13 KB, text/plain)
2009-11-10 03:06 UTC, Ira Moss
Details
latest git config with wireless showing up as wlan1 (git-config,51.36 KB, text/plain)
2009-11-10 03:07 UTC, Ira Moss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ira Moss 2009-10-21 22:35:25 UTC
I was able 'hack the staging drivers for rt2870 and get the linksys WUSB54GC working in a 2.6.30-r5,r6,r7 kernel, however when I tried to use the drivers that were "SUPPOSED" to work in the 2.6.31 kernel (rt2800usb)  this did NOT work.  i.e. in looking through gentoo-sources I found 'finally' that 1737:0077 device was identified in the rt2800usb section of wireless drives.  However.. when I compiled this an iwconfig DID yield the device, but it would not work.

The ONLY way I've been able to get my wireless to work is to 'hack' the .h file as described in the URL above (http://forums.gentoo.org/viewtopic-t-774956-highlight-imbiea.html)  in the section where I (imbiea) use the instructions from the previous poster.

rt2800usb



Reproducible: Always

Steps to Reproduce:
1. vi /usr/src/linux-2.6.30-gentoo-r6/drivers/staging/rt3070/rt2870.h
2. add in a section for 1737:0077 and make modules && make modules_install
3. tried using rt2800 drivers in 2.6.31-r3, (which have 1737:0077 , but could not get it to work.
Comment 1 Ira Moss 2009-10-21 22:41:26 UTC
My hack though.. I couldn't get wpa to work.
Comment 2 Mike Pagano gentoo-dev 2009-10-24 17:31:16 UTC
Created attachment 208146 [details, diff]
rtx200 patch

Can you try this patch against a clean gentoo-sources-2.6.31-r3
Comment 3 Ira Moss 2009-10-24 22:42:11 UTC
I will try the patch either late tonight or early tomorrow. And report back findings.
Comment 4 Ira Moss 2009-10-25 22:37:18 UTC
ok, sorry my apologies.  I'm a bit ignorant here..  :-(

first question is that the diff file has:

"linux-2.6.31.4/drivers/net/wireless/rt2x00/rt2800usb.c "

So do I need repoint my /usr/src/linux symlink to a 2.6.31-r4 directory?

and secondly.

Where do I run the patch from?

i.e. cd /usr/src/linux then patch -p1 < rt200.patch?

Can you tell I don't do much (err any ) patching?  :-)

Please feel free to put in any other verbose information that might help me out.



Comment 5 Ira Moss 2009-10-25 22:43:29 UTC
OK, I tried this, please let me know if this sounds right:

from my current /usr/src/linux (sym linked to 2.6.31-r3

make distclean

patch -p1 < /root/work/rtx200.patch

then just do my make menuconfig as usual, and don't use my hacked version of the drivers...

Trying this now..
Comment 6 George Kadianakis (RETIRED) gentoo-dev 2009-10-26 14:02:53 UTC
(In reply to comment #5)
> OK, I tried this, please let me know if this sounds right:
> 
> from my current /usr/src/linux (sym linked to 2.6.31-r3
> 
> make distclean
> 
> patch -p1 < /root/work/rtx200.patch
> 
> then just do my make menuconfig as usual, and don't use my hacked version of
> the drivers...
> 
> Trying this now..
> 

You can try using a more sophisticated patch tool, like quilt.

For example, check this out:

emerge quilt #installs quilt
cd /usr/src/linux
make mrproper #clear everything (or just download the sources again to be sure)
cp /root/work/rtx200.patch . #copy the patch to the Linux directory
quilt import rtx200.patch #import the patch to quilt
quilt push #apply it

If quilt applies the patch successfully, then you just run 'make menuconfig' etc. as normal.
Comment 7 Ira Moss 2009-10-30 16:37:36 UTC
Sorry Houston, but it's a no go.

I tried the patch both with quilt, and with simply patch.  Both were done with a new download, (not distclean) and the results were the same on both:

after loading the mods:

Module                  Size  Used by
rt2800usb              31504  0 
rt2x00usb               8476  1 rt2800usb
rt2x00lib              24144  2 rt2800usb,rt2x00usb
crc_ccitt               1596  1 rt2800usb


I didn't get ANYTHING (at least not a wireless interface) to show up with an iwconfig 

my lsusb did show however:

Bus 002 Device 001: ID 1d6b:0001  
Bus 003 Device 001: ID 1d6b:0001  
Bus 004 Device 001: ID 1d6b:0001  
Bus 001 Device 008: ID 1737:0077  
Bus 001 Device 006: ID 413c:2002 Dell Computer Corp. SK-8125 Keyboard
Bus 001 Device 007: ID 0461:4d89 Primax Electronics, Ltd 
Bus 001 Device 005: ID 413c:1002 Dell Computer Corp. Keyboard Hub
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002  

Prior to the patch I did get an iwconfig to yield an interface, but I could do nothing with it.



Comment 8 Mike Pagano gentoo-dev 2009-11-01 00:06:12 UTC
ok, can you give the latest git-sources in portage a try?
Comment 9 Ira Moss 2009-11-03 05:01:36 UTC
(In reply to comment #8)
> ok, can you give the latest git-sources in portage a try?
> 

Can do, I'll try tomorrow night, and report back.

Comment 10 Ira Moss 2009-11-07 22:32:21 UTC
(In reply to comment #8)
> ok, can you give the latest git-sources in portage a try?
> 

OK, I tried linux-2.6.32-rc6-git3 and got the same results as 2.6.31-r3 unpatched.

Being that the device does show up, i.e. I can see it with an iwconfig, and lsusb does reveal it's there (however still unidentified  (Bus 001 Device 007: ID 1737:0077  -- but no product definition)  

However I'm unable to actually configure it with iwconfig.  i.e. I can't iwconfig wlan1 essid "my essid" and get it to work.

Only thus far with my hack I've been able to.

Is this maybe a firmware problem with the product on my end?  Not maybe a kernel bug?  Confused what to try next.  Again, 1737:0077 is supposed to be supported in the kernel, but ... it doesn't work for me?


Comment 11 George Kadianakis (RETIRED) gentoo-dev 2009-11-09 14:00:01 UTC
Could we have a copy of your dmesg?
Comment 12 Ira Moss 2009-11-10 03:06:50 UTC
Created attachment 209800 [details]
2.6.31-r3 with 'hacked' modules - showing up as ra0
Comment 13 Ira Moss 2009-11-10 03:07:31 UTC
Created attachment 209802 [details]
latest git config with wireless showing up as wlan1
Comment 14 Ira Moss 2009-11-10 03:08:42 UTC
(In reply to comment #13)
> Created an attachment (id=209802) [details]
> latest git config with wireless showing up as wlan1
> 


oh, both on the same system, even though one drive shows up as sd and one shows up as hd devices... I didn't do libata or something correctly...

Comment 15 Julie Haugh 2010-01-09 05:37:09 UTC
I understand the holidays were upon us, but I've not seen progress in a while.  I spec mostly Cisco gear for my clients and couldn't figure out what =I= was doing wrong when I found this bug.
Comment 16 Ira Moss 2010-01-10 03:11:29 UTC
Yes, agreed.  Nothing new here.  I've provided dmesg information, but nothing new here.  I'm still only able to get this card working with my hacked sources, of which don't provide the ability for WPA.  

Comment 17 George Kadianakis (RETIRED) gentoo-dev 2010-01-12 13:47:24 UTC
I really think it's time to bring this issue upstream.
I'm not familiar with the necessary steps to take to fully support a network wireless device.

Post in the linux-staging mailing list and ask them:
a) Is Neddy's patch actually valid?
Why is your device not supported, and is it just a one line deal to get it to fully function?
b) Ask them for some basic guidelines on fixing your problem.
Comment 18 PhobosK 2010-01-13 15:16:43 UTC
I do not think anyone upstream will fix the issues soon... This issue has been existing for quite a while for some chips...
Anyway Ralink still releases open source drivers for rt2870 etc that can be used instead of the staging one...
See bug #228553
Comment 19 Ira Moss 2010-01-14 03:41:41 UTC
(In reply to comment #18)
> I do not think anyone upstream will fix the issues soon... This issue has been
> existing for quite a while for some chips...
> Anyway Ralink still releases open source drivers for rt2870 etc that can be
> used instead of the staging one...
> See bug #228553
> 



I'll have to check ,but last I looked, they didn't have anything new supporting that USB ID.
Comment 20 PhobosK 2010-01-14 14:21:10 UTC
Well actually they still do not have that entry in the supported USBs, but there is no problem to add it as supported in the common/rtusb_dev_id.c sources and see if it will work (you can make that change in the rt2870usb-2.3.0.0-unified.patch mentioned in bug #228553).
So if it works ok with wpa_supplicant we may really think of adding more USB IDs to that patch so other users could test too...
Comment 21 Ira Moss 2010-02-01 05:12:43 UTC
(In reply to comment #20)
> Well actually they still do not have that entry in the supported USBs, but
> there is no problem to add it as supported in the common/rtusb_dev_id.c sources
> and see if it will work (you can make that change in the
> rt2870usb-2.3.0.0-unified.patch mentioned in bug #228553).
> So if it works ok with wpa_supplicant we may really think of adding more USB
> IDs to that patch so other users could test too...
> 


I actually am inquiring upstream about this.  you can download the latest drivers as part of their latest git sources (http://rt2x00.serialmonkey.com/wiki/index.php?title=Rt2x00_GIT_instructions)  in which 1737:0077 is part of their devices in Rt2x00.. but also listed in their staging in rt2780.h also!

However it (for me) does not work in their latest git sources (2.3.32 kernel)  As I've stated it actually does work PERFECT in my 2.6.31 r3 kernel as part of the staging devices (INCLUDING WEP and WPA (initially I said I could not get wpa_suppicant to work, but it does work when I specify wpa_supplicant_ra0="-Dwext" in my conf.d/net)  However... it doesn't work quite at nice when I hack the staging drivers in 2.6.31-r6  (the pretty green LED light doesn't light up.. but everything else works)

So.. I've inquired with Mark Wallis upstream with serialmonkey... as .. as far as I'm concerned the driver works great for me!  But I have to hack my 2870.h file everytime...  Not the best long term solution..  :-)

Comment 22 Mike Pagano gentoo-dev 2010-02-28 22:47:58 UTC
Can you test with the Ralink drivers from the manufacturer of the card?

I have you used these in the past with success on another card.

http://www.ralinktech.com/support.php?s=2

Comment 23 Ira Moss 2010-03-19 20:12:46 UTC
(In reply to comment #22)
> Can you test with the Ralink drivers from the manufacturer of the card?
> 
> I have you used these in the past with success on another card.
> 
> http://www.ralinktech.com/support.php?s=2
> 


Yes, I've tried the ralink drivers... hmmm. I DO wonder though... maybe this could be a firmware issue?   when hack my files, I actually... don't have any firmware in /lib... however I did recently try the rt2x00 drivers, with what I 'think' is the correct firmware (/lib/firmware/rt2870.bin (from ralink)  but I still get the same problem...

I've also tried (I'll try again.. using this firmware with the latest drivers from ralink... )  



an iwconfig does yield seeing the card, but I can't configure a darn thing)