Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222375 - net-wireless/ralink-rt61 driver for kernel >= 2.6.24 [version bump]
Summary: net-wireless/ralink-rt61 driver for kernel >= 2.6.24 [version bump]
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL: http://web.ralinktech.com/ralink/Home...
Whiteboard:
Keywords: EBUILD, InVCS
Depends on: 183085
Blocks:
  Show dependency tree
 
Reported: 2008-05-16 10:41 UTC by Michael Polskienazwisko
Modified: 2009-09-04 04:44 UTC (History)
8 users (show)

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


Attachments
new ebuild (ralink-rt61-1.1.2.1.ebuild,1.47 KB, text/plain)
2008-05-16 12:57 UTC, Michael Polskienazwisko
Details
patch correcting the Makefile.6 (extra_cflags.patch,337 bytes, text/plain)
2008-05-16 12:58 UTC, Michael Polskienazwisko
Details
modified ralink-rt61-1.1.2.1.ebuild (ralink-rt61-1.1.2.1.ebuild,1.46 KB, text/plain)
2008-07-24 09:55 UTC, Brett Coady
Details
Makefile.diff (Makefile.diff,397 bytes, patch)
2008-07-24 09:57 UTC, Brett Coady
Details | Diff
ralink-rt61-1.1.2.2.ebuild (ralink-rt61-1.1.2.2.ebuild,1.46 KB, text/plain)
2008-07-25 07:28 UTC, Brett Coady
Details
emerge ralink_rt61 failed patch (Makefile.diff-15183.out,3.21 KB, text/plain)
2008-09-10 00:55 UTC, Jeremy Gove
Details
My edited, and probably incorrect, Makefile.diff (Makefile.diff,387 bytes, text/plain)
2008-09-10 01:09 UTC, Jeremy Gove
Details
Newer Makefile.diff (Makefile.diff,397 bytes, patch)
2008-09-14 12:23 UTC, Brett Coady
Details | Diff
patch for 2.6.26 kernels (rtmp_main2.diff,884 bytes, patch)
2008-10-19 06:18 UTC, Brett Coady
Details | Diff
New Ebuild ralink-rt61-1.1.2.2-r1 (ralink-rt61-1.1.2.2-r1.ebuild,1.52 KB, text/plain)
2008-10-19 06:27 UTC, Brett Coady
Details
patch for 2.6.27 kernels (rtmp_info.diff,6.30 KB, patch)
2008-11-03 10:31 UTC, Brett Coady
Details | Diff
New Ebuild ralink-rt61-1.1.2.2-r2 (ralink-rt61-1.1.2.2-r2.ebuild,1.55 KB, text/plain)
2008-11-03 10:35 UTC, Brett Coady
Details
Revised Ebuild ralink-rt61-1.1.2.2-r2 (ralink-rt61-1.1.2.2-r2.ebuild,1.88 KB, text/plain)
2008-11-04 09:40 UTC, Brett Coady
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Polskienazwisko 2008-05-16 10:41:24 UTC
On ralink site there is new drvier for rt61 based wireless cards. This new driver supports kernels 2.6.24 and newer so it should be immediately updated -- driver in portage does not support new kernels.

Reproducible: Always
Comment 1 Michael Polskienazwisko 2008-05-16 12:57:43 UTC
Created attachment 153321 [details]
new ebuild
Comment 2 Michael Polskienazwisko 2008-05-16 12:58:50 UTC
Created attachment 153323 [details]
patch correcting the Makefile.6

without this patch driver can not be compiled
Comment 3 Michael Polskienazwisko 2008-05-29 23:20:47 UTC
Will anybody authorize my pathches? Without this one is unable to compile ralink drivers on kernels >= 2.6.24
Comment 4 Jonathan Heaney 2008-07-19 23:19:57 UTC
I'd really like to see this get into the tree - still booting 2.6.23 as I'm having major problems with the kernel driver in 2.6.24.  Plus my system is configured to use the ebuild and it's been working perfectly since day one.  Don't see the need to change.

One thing Michael, I've copied your new ebuild & patch into my local overlay, but despite my attempts to edit it, I just cannot get your patch to apply.  The ebuild always fails.  Are you sure the extra_cflags.patch is fine?  Do you have it in your own local overlay?
Comment 5 Brett Coady 2008-07-24 09:55:20 UTC
Created attachment 161245 [details]
modified ralink-rt61-1.1.2.1.ebuild

requires new Makefile.diff
Comment 6 Brett Coady 2008-07-24 09:57:42 UTC
Created attachment 161246 [details, diff]
Makefile.diff

cflags addon from the above patch which I couldn't get to work either.
Comment 7 Jonathan Heaney 2008-07-24 14:20:58 UTC
(In reply to comment #6)
> Created an attachment (id=161246) [edit]
> Makefile.diff
> 
> cflags addon from the above patch which I couldn't get to work either.
> 

Thanks.  Works for me here.
Comment 8 Brett Coady 2008-07-25 07:28:45 UTC
Created attachment 161326 [details]
ralink-rt61-1.1.2.2.ebuild

A newer ebuild, Makefile.diff is still needed.
Comment 9 Brett Coady 2008-07-25 07:35:42 UTC
(In reply to comment #8)
> Created an attachment (id=161326) [edit]
> ralink-rt61-1.1.1.0.ebuild
> 
> A newer ebuild, Makefile.diff is still needed.
> 

ralink-rt61-1.1.2.2.ebuild that is
Comment 10 Jonathan Heaney 2008-07-26 00:28:48 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Created an attachment (id=161326) [edit]
> > ralink-rt61-1.1.1.0.ebuild
> > 
> > A newer ebuild, Makefile.diff is still needed.
> > 
> 
> ralink-rt61-1.1.2.2.ebuild that is
> 

Nice one Brett, works here fine.  Thanks.
Comment 11 amadeus.bit 2008-08-20 00:54:27 UTC
emerge fails 

>>> Emerging (1 of 1) net-wireless/ralink-rt61-1.1.2.2
 * 2008_0723_RT61_Linux_STA_v1.1.2.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...  [ ok ]
 * checking ebuild checksums ;-) ...                                          [ ok ]
 * checking auxfile checksums ;-) ...                                         [ ok ]
 * checking miscfile checksums ;-) ...                                        [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.26-gentoo-r1/build
 * Found sources for kernel version:
 *     2.6.26-gentoo-r1
 * Checking for suitable kernel configuration options...                       [ ok ]
>>> Unpacking source...
>>> Unpacking 2008_0723_RT61_Linux_STA_v1.1.2.2.tar.bz2 to /var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2 ...
 * Applying Makefile.diff ...                                                  [ ok ]
 * Preparing rt61 module
make -C /lib/modules/2.6.26-gentoo-r1/build SUBDIRS=/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module modules
make[1]: Entering directory `/usr/src/linux-2.6.26-gentoo-r1'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
  CC [M]  /var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.o
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c: In function 'rt61_get_drvinfo':
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:78: warning: unused variable 'pAd'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c: In function 'rt61_get_regs_len':
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:97: warning: no return statement in function returning non-void
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c: In function 'rt61_get_regs':
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:104: warning: unused variable 'counter'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:103: warning: unused variable 'pAd'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c: In function 'rt61_ethtool_get_link':
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:120: warning: unused variable 'pAd'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:130: warning: no return statement in function returning non-void
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c: In function 'rt61_get_eeprom_len':
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:139: warning: no return statement in function returning non-void
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c: In function 'rt61_get_eeprom':
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:146: warning: unused variable 'counter'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:145: warning: unused variable 'pAd'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:159: warning: no return statement in function returning non-void
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c: At top level:
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:169: warning: initialization from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c: In function 'RT61_probe':
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:343: warning: ISO C90 forbids mixed declarations and code
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:344: error: 'struct net_device' has no member named 'nd_net'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:345: error: 'struct net_device' has no member named 'nd_net'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c: In function 'RT61_open':
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.c:464: warning: passing argument 2 of 'request_irq' from incompatible pointer type
make[2]: *** [/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_main.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.26-gentoo-r1'
make: *** [all] Error 2
 *
 * ERROR: net-wireless/ralink-rt61-1.1.2.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3124:  Called linux-mod_src_compile
 *             environment, line 2394:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                           CC=\"$(get-KERNEL_CC)\"                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"                                               ${BUILD_FIXES}              ${BUILD_PARAMS}                                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  

emerge --info
WARNING: repository at /usr/local/portage is missing a repo_name entry
Portage 2.2_rc8 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-i686-Intel-R-_Pentium-R-_4_CPU_2.60GHz-with-glibc2.0
Timestamp of tree: Tue, 19 Aug 2008 19:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa apm berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt css cups dbus dri dvd dvdr dvdread emboss encode evo fam fbcon fortran fuse gdbm gif gpm gstreamer gtk hal iconv isdnlog java javascript jpeg jpeg2k kde kerberos ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pch pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xinerama xml xorg xulrunner xv zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 12 Jeremy Gove 2008-09-10 00:55:13 UTC
Created attachment 165062 [details]
emerge ralink_rt61 failed patch
Comment 13 Jeremy Gove 2008-09-10 01:09:06 UTC
Created attachment 165063 [details]
My edited, and probably incorrect, Makefile.diff
Comment 14 Jeremy Gove 2008-09-10 01:14:35 UTC
I'm very new to Gentoo, so please excuse me if I make a mistake or two.  I hoped that this driver would help install the firmware for my RT61 card, since I've been typing "ifconfig wlan1 up" and getting this "SIOCSIFFLAGS: No such file or directory".

When I tried to "ebuild /usr/local/portage/net-wireless/ralink_rt61/ralink-rt61-1.1.2.2.ebuild digest",

it returned this error: 

!!! /usr/local/portage/net-wireless/ralink_rt61/ralink-rt61-1.1.2.2.ebuild does not seem to have a valid PORTDIR structure.

I renamed it to ralink_rt61-1.1.2.2.ebuild, and tried again:

ebuild /usr/local/portage/net-wireless/ralink_rt61/ralink_rt61-1.1.2.2.ebuild digest

This time it seemed to work, replying: "

>>> Creating Manifest for /usr/local/portage/net-wireless/ralink_rt61"

So I typed "emerge ralink_rt61"

but it failed, saying: 

" Failed Patch: Makefile.diff !"

and it gave me a file to include in a bugreport, which I've attached.  It says that the patch has a problem with line 4.  I examined line 4, which says:

+++ 2008_0506_RT61_Linux_STA_v1.1.2.1/Module/Makefile.6	2008-07-24 18:22:00.000000000 +1000

and noticed that it refers to the wrong ebuild.  It should say "1.1.2.2" instead of "1.1.2.1" (I think -- remember, I'm new to this).  I corrected this, and redigested the files, but it still doesn't work.  It gives me the same Makefile.diff-*.out, but with a slightly different name.
Comment 15 Brett Coady 2008-09-14 12:23:22 UTC
Created attachment 165389 [details, diff]
Newer Makefile.diff

I updated the version numbers although they dont appear to change much.
Jeremy I think your newer Makefile.diff didnt work as there were no (eol) characters , if you look your file is a little smaller than this one.
Well spotted though.
Comment 16 Brett Coady 2008-10-19 06:18:31 UTC
Created attachment 169024 [details, diff]
patch for 2.6.26 kernels

patch for 2.6.26 kernels up to 2.6.27 also needs Makefile.diff and newer ebuild 1.1.2.2-r1
Comment 17 Brett Coady 2008-10-19 06:27:42 UTC
Created attachment 169026 [details]
New Ebuild ralink-rt61-1.1.2.2-r1

A new ebuild for 2.6.26 kernels up to 2.6.27
requires rtmp_main2.diff and Makefile.diff
Thanks to Jeff Chen and the crew at Ralink :-)
Comment 18 Ceesjan Luiten 2008-10-29 13:27:13 UTC
The ebuild from Coady at 2008-10-19 with the Makefile.diff and rtmp_main2.diff patch files fail for me with the following error:

<<snip>>
  CC [M]  /var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/sanity.o
  CC [M]  /var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_wep.o
  CC [M]  /var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.o
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:669:5: warning: "WPA_SUPPLICANT_SUPPORT" is not defined
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:708: warning: return type defaults to 'int'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c: In function 'rt_ioctl_giwscan':
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:759: warning: passing argument 1 of 'iwe_stream_add_event' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:759: warning: passing argument 3 of 'iwe_stream_add_event' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:759: warning: passing argument 4 of 'iwe_stream_add_event' makes pointer from integer without a cast
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:759: error: too few arguments to function 'iwe_stream_add_event'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:776: warning: passing argument 1 of 'iwe_stream_add_event' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:776: warning: passing argument 3 of 'iwe_stream_add_event' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:776: warning: passing argument 4 of 'iwe_stream_add_event' makes pointer from integer without a cast
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:776: error: too few arguments to function 'iwe_stream_add_event'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:788: warning: passing argument 1 of 'iwe_stream_add_point' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:788: warning: passing argument 3 of 'iwe_stream_add_point' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:788: warning: passing argument 4 of 'iwe_stream_add_point' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:788: error: too few arguments to function 'iwe_stream_add_point'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:801: warning: passing argument 1 of 'iwe_stream_add_event' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:801: warning: passing argument 3 of 'iwe_stream_add_event' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:801: warning: passing argument 4 of 'iwe_stream_add_event' makes pointer from integer without a cast
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:801: error: too few arguments to function 'iwe_stream_add_event'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:817: warning: passing argument 1 of 'iwe_stream_add_point' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:817: warning: passing argument 3 of 'iwe_stream_add_point' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:817: warning: passing argument 4 of 'iwe_stream_add_point' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:817: error: too few arguments to function 'iwe_stream_add_point'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:842: warning: passing argument 1 of 'iwe_stream_add_value' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:842: warning: passing argument 4 of 'iwe_stream_add_value' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:842: warning: passing argument 5 of 'iwe_stream_add_value' makes pointer from integer without a cast
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:842: error: too few arguments to function 'iwe_stream_add_value'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:852: warning: passing argument 1 of 'iwe_stream_add_value' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:852: warning: passing argument 4 of 'iwe_stream_add_value' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:852: warning: passing argument 5 of 'iwe_stream_add_value' makes pointer from integer without a cast
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:852: error: too few arguments to function 'iwe_stream_add_value'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:864: warning: passing argument 1 of 'iwe_stream_add_event' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:864: warning: passing argument 3 of 'iwe_stream_add_event' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:864: warning: passing argument 4 of 'iwe_stream_add_event' makes pointer from integer without a cast
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:864: error: too few arguments to function 'iwe_stream_add_event'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:924: warning: passing argument 1 of 'iwe_stream_add_point' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:924: warning: passing argument 3 of 'iwe_stream_add_point' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:924: warning: passing argument 4 of 'iwe_stream_add_point' from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:924: error: too few arguments to function 'iwe_stream_add_point'
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:931: warning: assignment from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:933: warning: assignment from incompatible pointer type
/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.c:939: warning: assignment from incompatible pointer type
<<snip>>
make[2]: *** [/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module/rtmp_info.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-wireless/ralink-rt61-1.1.2.2-r1/work/2008_0723_RT61_Linux_STA_v1.1.2.2/Module] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r1'
make: *** [all] Error 2

I've tried to apply the idea from http://jaux.net/uploads/2008/10/hybrid_wl-5.10.27.6_patch-2.6.27 to the function calls of iwe_stream_add_event in the file Module/rtmp_info.o; It seems to accept the changes but it then complains about the iwe_stream_add_pointer and iwe_stream_add_event functions not having enough arguments - I've tried fixing that in the same way but the compiled module kills the keyboard as soon as I try to bring ra0 up so apparently blindly adding 'info' as the first argument with these functions doesn't work :-)

I'm running 2.6.27-gentoo-r1 with linux-headers-2.6.27-r2
Comment 19 Brett Coady 2008-11-03 10:31:28 UTC
Created attachment 170603 [details, diff]
patch for 2.6.27 kernels
Comment 20 Brett Coady 2008-11-03 10:35:22 UTC
Created attachment 170604 [details]
New Ebuild ralink-rt61-1.1.2.2-r2

requires: Makefile.diff,rtmp_main2.diff and rtmp_info.diff
Comment 21 Brett Coady 2008-11-03 10:46:24 UTC
Apparently blindly adding 'info' as the first
argument with these functions does work :-)

Thanks for the tip.

Maybe the way you have your card setup in /etc/conf.d/net needs tweaking ?
Mine is like this:

modules=( "!iwconfig" "!wpa_supplicant" )
key_ra0="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx enc open"
config_ra0=( "192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" )
postup() {
        if [ ra0 == ${IFACE} ]; then
	        ifconfig ra0 mtu 1300
	fi
	}

also don't forget to edit /etc/Wireless/RT61STA/rt61sta.dat
I tried this ebuild on a 2.6.27-gentoo-r2 kernel with 2.6.25-r4 headers.
:-)

Comment 22 Jonathan Heaney 2008-11-03 23:39:14 UTC
Thanks for keeping this ebuild alive Brett, one suggestion, latest r2 ebuild fails on older kernels (I'm using 2.6.25 here atm due to vmware module issues, but that's another story) - I'm assuming it's the rtmp_info patch - might be an idea to modify the ebuild to check for kernel 2.6.27 (and above? - I don't know about 2.6.26) before applying this patch.

Anyway I've masked the r2 ebuild until 2.6.26/27 are usable for me.
Comment 23 Brett Coady 2008-11-04 09:40:37 UTC
Created attachment 170706 [details]
Revised Ebuild ralink-rt61-1.1.2.2-r2 

This ebuild should be better for varied kernel versions. :-)

still requires: Makefile.diff,rtmp_main2.diff and rtmp_info.diff
Comment 24 Ceesjan Luiten 2008-11-04 19:44:48 UTC
(In reply to comment #21)
> Apparently blindly adding 'info' as the first
> argument with these functions does work :-)
> 
> Thanks for the tip.
> 
> Maybe the way you have your card setup in /etc/conf.d/net needs tweaking ?
> Mine is like this:
> 
> modules=( "!iwconfig" "!wpa_supplicant" )
> key_ra0="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx enc open"
> config_ra0=( "192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" )
> postup() {
>         if [ ra0 == ${IFACE} ]; then
>                 ifconfig ra0 mtu 1300
>         fi
>         }
> 
> also don't forget to edit /etc/Wireless/RT61STA/rt61sta.dat
> I tried this ebuild on a 2.6.27-gentoo-r2 kernel with 2.6.25-r4 headers.
> :-)
> 

Thanks for the suggestions, but it didn't help me. I have never used this card before, so it could very well be that I'm making mistakes here...

I've cleaned out my own overlay and added your files, but my keyboard is still being hijacked by the wireless module. The compilation and modprobing goes without trouble, but as soon as I do "ifconfig ra0 inet 192.168.1.1 up" the physical keyboard stops working. The SSH connections I have open from another computer work as normal, and as soon as I take ra0 down the keyboard starts working again. If I press a button on the physical keyboard while bringing ra0 up this key will get stuck (so pressing "j" a few times will result in an infinite amount of j's, until I bring ra0 down). While ra0 is up I cannot establish new connections with the computer over eth0. dmesg shows the following three lines:

[518070.250277] RT61: RfIcType= 3
[518080.593938] ra0: no IPv6 routers present
[518159.868628] RT61: Vendor = 0x1814, Product = 0x0301 

It doesn't seem to report anything disturbing. My wireless section in /etc/conf.d/net is nearly identical to yours, and my /etc/Wireless/... file is, as far as I can tell, correctly set up.

My system info:

uname -a:
Linux tikko 2.6.27-gentoo-r1 #3 SMP Tue Oct 28 20:13:09 CET 2008 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ AuthenticAMD GNU/Linux

lspci | grep -i ralink:
01:0a.0 Network controller: RaLink RT2561/RT61 802.11g PCI

eselect kernel list | grep '*':
 [5]   linux-2.6.27-gentoo-r1 *

Part of my kernel config involved with wireless stuff:
#
# Wireless
#
CONFIG_CFG80211=y
CONFIG_NL80211=y
CONFIG_WIRELESS_EXT=y
CONFIG_WIRELESS_EXT_SYSFS=y
CONFIG_MAC80211=y

wpa_supplicant is *not* installed.



I'll try booting to linux-2.6.26-gentoo-r2 later and see how the thing behaves there
Comment 25 Ceesjan Luiten 2008-11-04 20:59:59 UTC
I think I found my problem, after removing ndiswrapper it works in 2.6.26 and in 2.6.27 now as well. Thanks for the help
Comment 26 Jonathan Heaney 2008-11-04 23:13:24 UTC
Cheers Brett, latest revision works here now, no need to mask it.  Much appreciated.  I know know that the ralink driver will survive a few more kernel bumps before I have to start thinking about switching to the in-kernel driver, and re-configuring everything (it's sooo easy to set up wireless with this driver).
Comment 27 Brett Coady 2008-11-05 09:22:18 UTC
No problems Jonathan and Ceesjan,
thank you both for your help,
I do like the turbo function on:
RT61: Vendor = 0x1814, Product = 0x0301 cards in ad-hoc mode
and it is the main reason I use the ralink rt61 driver.
Comment 28 Ceesjan Luiten 2008-11-05 14:31:28 UTC
I'm stuck with a most peculiar problem now, as soon as I bring ra0 up all traffic on my two wired cards grind to a halt. On the machine with the wireless card I get this:

quinox@tikko ~ $ ping -B -r -I ethnet 72.14.207.99
PING 72.14.207.99 (72.14.207.99) from 129.125.101.92 ethnet: 56(84) bytes of data.
64 bytes from 72.14.207.99: icmp_seq=1 ttl=243 time=98.0 ms
64 bytes from 72.14.207.99: icmp_seq=2 ttl=243 time=100 ms
64 bytes from 72.14.207.99: icmp_seq=3 ttl=243 time=98.0 ms
64 bytes from 72.14.207.99: icmp_seq=4 ttl=243 time=98.0 ms
64 bytes from 72.14.207.99: icmp_seq=5 ttl=243 time=5274 ms <-- ra0 up
64 bytes from 72.14.207.99: icmp_seq=6 ttl=243 time=4275 ms
64 bytes from 72.14.207.99: icmp_seq=11 ttl=243 time=8273 ms
64 bytes from 72.14.207.99: icmp_seq=12 ttl=243 time=7273 ms
64 bytes from 72.14.207.99: icmp_seq=20 ttl=243 time=1466 ms
64 bytes from 72.14.207.99: icmp_seq=21 ttl=243 time=98.0 ms <-- ra0 down
64 bytes from 72.14.207.99: icmp_seq=22 ttl=243 time=98.0 ms
64 bytes from 72.14.207.99: icmp_seq=23 ttl=243 time=100 ms
64 bytes from 72.14.207.99: icmp_seq=24 ttl=243 time=100 ms

The -r -I tells ping to not use the rounting table and send the ping out directly, so that can't be the problem. Only new connections are affected, my IRC/SSH connections keep on working just fine. I get it no matter how I set the ralink interface up. The ra0 does share the IRQ with my LAN card, but not with my internet card (ethnet) so that shouldn't be a problem. Again dmesg doesn't show any problems. I do boot with irqpoll option since otherwise I cannot boot at all. I'm puzzled by this problem, do any of you have pointers for me to check out?
Comment 29 Ceesjan Luiten 2008-11-05 18:40:50 UTC
Sorry for littering this bug report, the inkernel module works without the peculiarities that the ralink-rt61 module shows. I'll play around with it a bit more and I'll file a bug report upstream if I can figure out what's going on
Comment 30 Phattanon Duangdara 2008-11-08 03:19:26 UTC
For now. net-wireless/ralink-rt61 is not needed and should now remove from portage.

In kernel module works fine and stable.
Comment 31 Brett Coady 2008-11-08 21:19:28 UTC
(In reply to comment #30)
> For now. net-wireless/ralink-rt61 is not needed and should now remove from
> portage.
> 
> In kernel module works fine and stable.
> 
Are you sure?

Unfortunately it took the in kernel module untill 2.6.26 to get adhoc drivers working and Turbo and Mimo do not work as far as I know.
Comment 32 Jonathan Heaney 2008-11-09 01:21:49 UTC
(In reply to comment #30)
> For now. net-wireless/ralink-rt61 is not needed and should now remove from
> portage.
> 
> In kernel module works fine and stable.
> 

It's also a pain in the hoop to configure.  I've got my wireless box set up nicely and easily with the ralink-rt61 driver, and quite frankly, I cannot be ar*ed transitioning to the in-kernel driver.
Comment 33 Phattanon Duangdara 2008-11-09 09:44:02 UTC
(In reply to comment #31)
> (In reply to comment #30)
> > For now. net-wireless/ralink-rt61 is not needed and should now remove from
> > portage.
> > 
> > In kernel module works fine and stable.
> > 
> Are you sure?
> 
> Unfortunately it took the in kernel module untill 2.6.26 to get adhoc drivers
> working and Turbo and Mimo do not work as far as I know.
> 

IMO: It's ok to keep this for now. But it should soon be remove in the future.

it is duplicate, In kernel legacy rt61 and ralink's drivers are almost the same and We should support the serialmonkey team on buiit-in kernel drivers (rt61 and rt2x00) instead.

We can just put this in sunrise overlay for user's who really wanted it.
Comment 34 qeldroma 2009-01-16 22:47:36 UTC
(In reply to comment #30)
> For now. net-wireless/ralink-rt61 is not needed and should now remove from
> portage.
> 
> In kernel module works fine and stable.
> 

The kernel module does NOT support WPA2PSK afaik!!

So please don't remove, thanks ;)
Comment 35 Jonathan Heaney 2009-01-17 01:24:34 UTC
(In reply to comment #34)
> (In reply to comment #30)
> > For now. net-wireless/ralink-rt61 is not needed and should now remove from
> > portage.
> > 
> > In kernel module works fine and stable.
> > 
> 
> The kernel module does NOT support WPA2PSK afaik!!
> 
> So please don't remove, thanks ;)
> 

I use wpa2psk here as well.  I've not tried the kernel driver so I cannot comment on it, but if it lacks wpa2psk support, then the ralink-rt61 ebuild driver is required for me here, and shouldn't be dumped into an overlay.

Once the kernel driver supports all the required features, maybe it will be time to move to that, but until then, this ebuild is necessary and thanks to Brett for keeping it alive.
Comment 36 Luke Wilson-Stepan 2009-01-30 22:33:11 UTC
(In reply to comment #30)
> For now. net-wireless/ralink-rt61 is not needed and should now remove from
> portage.
> 
> In kernel module works fine and stable.
> 

I agree completely that an in-kernel driver is preferable to something in portage, but the in-kernel module definitely does *not* work fine.  When trying to bring up the interface using the in-kernel driver, I get:

-bash-3.2# /etc/init.d/net.wlan0 start
 * Starting wlan0
SIOCSIFFLAGS: No such file or directory
SIOCSIFFLAGS: No such file or directory
SIOCSIFFLAGS: No such file or directory
 *   Configuring wireless network for wlan0
 *   Failed to configure wireless for wlan0                               [ !! ]

accompanied by this kernel message:

firmware: requesting rt2561s.bin
phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.

Why this particular device requires separate firmware files I don't know, but you can't call a driver "working" or "stable" when it behaves like this.
Comment 37 Alexey 2009-02-19 14:37:44 UTC
> firmware: requesting rt2561s.bin
> phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.

Put all three .bin files inside /lib/firmware
Comment 38 Robert Buchholz (RETIRED) gentoo-dev 2009-03-11 16:29:39 UTC
net-wireless/rt61-firmware is now in the tree. Please emerge that and use the in-kernel driver. If there are no regressions over the broken "ralink-rt61", it should be removed.
Comment 39 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-09-04 02:00:48 UTC
removed from tree, wontfix
Comment 40 Brett Coady 2009-09-04 04:44:01 UTC
(In reply to comment #39)
> removed from tree, wontfix
> 

That's ok the in kernel driver appears to be working again.
(albeit a very upstream version)

http://rt2x00.serialmonkey.com/phpBB/viewtopic.php?f=5&t=5577&p=33524&hilit=rt61pci#p33524

This ebuild wouldn't compile on a kernel above 2.6.28 anyway.