Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131680 - No wireless connectivity with ralink rt2500 with recent kernels and wireless-tools
Summary: No wireless connectivity with ralink rt2500 with recent kernels and wireless-...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Mobile Herd (OBSOLETE)
URL: http://rt2x00.serialmonkey.com/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-29 07:08 UTC by Slobodan D. Sredojevic
Modified: 2006-08-18 00:07 UTC (History)
2 users (show)

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


Attachments
A patch to rt2500usb.c that fixes the compilation problem (usbdrv_bugfix.patch,438 bytes, patch)
2006-05-07 11:15 UTC, Timur Aydin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Slobodan D. Sredojevic 2006-04-29 07:08:05 UTC
Hi,

I had wireless connectivity using Ralink PCI card and rt2500 package from portage tree. I set it up in october 2005 I have used gentoo-sources-2.6.13-3.

Now, after upgrade of most of the system it doesn't work. I used to connect to my ISP with these commands (I have contacted ISP, they told me they hadn't changed anything in their network configuration recently):

modprobe rt2500
iwconfig ra0 essid STWkula
ifconfig ra0 up
adsl-start (previously setup with adsl-setup) and all worked.

Now, this is strange, I have only this fragment written on the paper, but it is telling me that interface doesn't receive packets if I understand it correctly:

ifconfig ra0
...
TX packets: 2552 errors:0 ...
collisions:0 txqueuelen: 0 ...
RX bytes: 0 (0.b) TX bytes: 119944 (117.1kb) ...
...

TX value grow as time passes.

I have tried all version of wireless-tools available at this moment in the portage tree and gentoo-sources latest, suspend2-sources latest (atm all) and vanilla-sources-2.6.11.

Worth mentioning is that Signal Quality is always at 0/100 now. It used to be 70/100 when it worked.

When it worked I was using gcc x86 stable (3.3.6), now it doesn't work neither with 3.4.5 nor 4.1.0 gcc. Also, made a new install with 2006.0 livecd, emerged gentoo-sources, rt2500 over dialup connection but no go for wireless.

I'll send any info if someone see or suspect what the problem is. Thanks.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-04-29 07:26:25 UTC
can you please post your emerge info+try rt2x00, the next generation ralink driver?
Comment 2 Slobodan D. Sredojevic 2006-04-30 11:37:20 UTC
Hi, thanks for your quick reply, here is emerge info:

Gentoo Base System version 1.6.14
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.16-gentoo-r3 i686)
=================================================================
System uname: 2.6.16-gentoo-r3 i686 Intel(R) Celeron(R) CPU 1.70GHz
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.etf.bg.ac.yu/gentoo/"
LINGUAS="en sr sr@Latn ru de hu"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi aim alsa audiofile avahi beagle berkdb bidi bluetooth bonobo bzip2 bzlib cairo cdr cli composite crypt cscope cups dbus dlloader dri eds emboss encode epiphany esd evo expat fam firefox flac fontconfig foomaticdb gd gif gimpprint glitz gnome gnomedb gphoto2 gstreamer gtk gtk2 gtkhtml hal howl imap imlib isdnlog jabber jpeg kdgraphics lcms libwww mad maildir matroska mbox mmx mono moznocompose moznoirc moznomail mp3 mpeg msn ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib pic png ppds pppd python readline reflection samba session speex spell spl sqlite sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis x86 xml xml2 xorg xpm xprint xv xvid yahoo zlib video_cards_rage128 video_cards_ati video_cards_vesa input_devices_keyboard input_devices_mouse input_devices_synaptics linguas_en linguas_sr linguas_sr@Latn linguas_ru linguas_de linguas_hu userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS


For rt2x00, version that is available in portage doesn't compile, it breaks at rt2500usb (compiles and installs rt2500pci and others fine), removing appropriate lines from Makefile related to "usb" do the job, but rt2500core and rt2500pci modules do not load, dmesg is full of errors.

rt2x00 nightly packages compile fine and appropriate modules are loaded sucessfully. I got no connectivity with that too.

What do you suggest I can do? To go to rt2x00 forums and ask for help and then come back here?
Comment 3 Timur Aydin 2006-05-07 11:15:08 UTC
Created attachment 86381 [details, diff]
A patch to rt2500usb.c that  fixes the compilation problem

This patch resolves the compilation problem of the usb driver. However, there are lots of warnings. The pci driver loads fine on my system, but the ra0 device is not available
Comment 4 Roy Marples (RETIRED) gentoo-dev 2006-05-09 11:26:12 UTC
I've added an rt2500 cvs snapshot to portage dated 2006050909, please test as it works on my amd64

The rt2x00 driver (beta3 and cvs) are highly unstable and I don't recommend their usage at this time.
Comment 5 Slobodan D. Sredojevic 2006-06-06 06:38:51 UTC
I am afraid, I'll be able to test this only at the begging of July - I am 50 miles and 30 days away from home computer.

Roy probably was right with new snapshot as I have found this in Suse 10.1 release notes:

For technical reasons, it was necessary to drop support for Ralink WLAN cards. The old driver no longer works with kernel version 2.6.16 and the new version is not yet stable enough. We intend to release an update as soon as the new version is stable enough.

Comment 6 Slobodan D. Sredojevic 2006-07-18 11:33:55 UTC
Tested rt2500-1.1.0_beta4 with my old suspend2-sources-2.6.16-r5 and newest suspend2-sources-2.6.17 kernel and the problem remains. If I am not alone with this problem this all mean that rt2500 is broken in gentoo from the end of April. Today I did an emerge --deep --update world so system is up to date.

ndiswrapper-1.17 works perfectly, so problem imho lies between/inside rt2500 and/or kernel.
Comment 7 Roy Marples (RETIRED) gentoo-dev 2006-07-18 12:50:17 UTC
(In reply to comment #6)
> Tested rt2500-1.1.0_beta4 with my old suspend2-sources-2.6.16-r5 and newest
> suspend2-sources-2.6.17 kernel and the problem remains. If I am not alone with
> this problem this all mean that rt2500 is broken in gentoo from the end of
> April.

Odd that my rt2500pci works perfectly on AMD64 and my rt2500pcmcia works perfectly on x86. Both systems use gentoo-sources. Please test using that current stable gentoo-sources.

Also, several fixes have gone into baselayout regarding the rt2500 cards, but mainly for WPA. Please test using baselayout-1.12.1
Comment 8 Alistair Boyle 2006-08-16 10:50:15 UTC
this is a "me too".

upgrading from wireless-tools-27-r1 to wireless-tools-28 causes my rt2500 wireless to no longer be able to connect to my access point.

this happened in the last couple of days. its been working for me since mid-february. though i did put off upgrading wireless-tools for a month as i had a suspicion it might cause trouble...

downgrading to wireless-tools-27-r1 seems to resolve this for me. 

changing the wireless-tools version was the *only change*

i have the following installed
 net-wireless/rt2500-1.1.0_beta3
 sys-kernel/gentoo-sources-2.6.17-r4
 sys-apps/baselayout-1.12.4-r6

it on an AMD64 laptop.

emerge --info:
Portage 2.1-r2 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Turion(tm) 64 Mobile Technology MT-30
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.12-r6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo http://adelie.polymtl.ca/ ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/ "
LINGUAS="en_CA"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfil
es' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa arts avi berkdb bitmap-fonts cli crypt cups dlloader dri eds emboss encode foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jp
eg kde lzw lzw-tiff mp3 mpeg ncurses nls nptl opengl pam pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd tiff tr
uetype-fonts type1-fonts usb xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_en_CA userland_GNU v
ideo_cards_sis video_cards_vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
 
 

Comment 9 Roy Marples (RETIRED) gentoo-dev 2006-08-16 11:04:27 UTC
try beta4
Comment 10 Alistair Boyle 2006-08-17 19:14:31 UTC
i presume you mean net-wireless/rt2500-1.1.0_beta4.
i tried that and i couldn't get any connections to the AP at all.

with beta3 and wireless-tools-27-r1 or 28 it seems to be a bit random, though 28 works less of the time.

27-r1 works better than 28 with beta3 of the driver.

with wireless-27-r1 it works at boot everytime. after hibernate it works part of the time.

with wireless-28 it works at boot some of the time, but most of the time can't connect. after hibernate it never works again.

with the rt2500-beta4 driver it never works.

hibernate is setup to remove the driver... it may be the removing of the driver that hoses things?
Comment 11 Roy Marples (RETIRED) gentoo-dev 2006-08-18 00:05:39 UTC
(In reply to comment #10)
> hibernate is setup to remove the driver... it may be the removing of the driver
> that hoses things?

By that you mean rmmod rt2500 ?
Well, that should work too - i think it locked amd64 once while doing lots of that for testing.
Comment 12 Roy Marples (RETIRED) gentoo-dev 2006-08-18 00:07:17 UTC
I'm going to have to mark this one as upstream as it appears to just affect you as no-one else has reported this and I myself have 3 rt2500 cards in different hardware and all work fine with beta3 and 4. beta4 is mainly smp and preempt fixes - the diff between beta3 and 4 is very small so I'm very surprised that beta4 does not work for you.

Report the issue upstream here
http://rt2x00.serialmonkey.com/phpBB2/viewforum.php?f=3