Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115176 - rt2570 doesn't work anymore with kernel >=2.6.14-gentoo-r2 becaus of unknown symbol verify_area
Summary: rt2570 doesn't work anymore with kernel >=2.6.14-gentoo-r2 becaus of unknown ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 115190 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-11 03:05 UTC by Erik Geiger
Modified: 2005-12-31 08:43 UTC (History)
0 users

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


Attachments
verify-write patch (verify-write-api-change.patch,669 bytes, patch)
2005-12-25 14:18 UTC, Steev Klimaszewski (RETIRED)
Details | Diff
rt2570 latest cvs patch (rt2570-cvs-update.patch,663.22 KB, patch)
2005-12-26 17:54 UTC, Steev Klimaszewski (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Geiger 2005-12-11 03:05:44 UTC
After installing net-wireless/rt2570-1.1.0_beta1 the module could not be loaded.
In dmesg there is an entry: rt2570: Unknown symbol verify_area
I've seen that the function verify_area() has yet been deprecated in kernel
2.6.13 and now in 2.6.14 has been removed.
I also tried the drivers from
http://dlsvr02.asus.com/pub/ASUS/wireless/WL-167g/SourceCode-V2040.zip
with the same result.

Reproducible: Always
Steps to Reproduce:
1.emerge net-wireless/rt2570-1.1.0_beta1
2.modprobe rt2570
3.

Actual Results:  
I get the Error Message:
FATAL: Error inserting rt2570 (/lib/modules/2.6.14-gentoo-r4/net/rt2570.ko):
Unknown symbol in module, or unknown parameter (see dmesg)

Expected Results:  
The Module should be loaded

net-wireless/ndiswrapper-1.2 also only works with kernel <= 2.6.13-gentoo-r5.
With newer kernel it only compiles with the new ebuild and patch from:
http://bugs.gentoo.org/show_bug.cgi?id=111029
After that patching it compiles, but it also doesn't work.


Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.14-gentoo-r4 i686)
=================================================================
System uname: 2.6.14-gentoo-r4 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 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.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/Daten/distfiles"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://pandemonium.tiscali.de/pub/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 alsa apm arts audiofile avi berkdb bitmap-fonts
bzip2 cdr crypt cups curl divx4linux dts dvd dvdr dvdread eds emboss encode exif
expat fam ffmpeg foomaticdb fortran gcj gdbm gif gimp gimpprint glut gnokii gpm
gstreamer gtk2 idn imagemagick imlib ipv6 irda java jpeg kde lcms libg++ libwww
live mad mikmod mjpeg mmx mmxext mng motif mozilla mp3 mpeg ncurses nls objc ogg
oggvorbis opengl oss pam pcre pda pdflib perl png ppds python qt readline real
scanner sdl sms spell sse ssl subject-rewrite symlink tcpd tiff truetype
truetype-fonts type1-fonts udev usb v4l v4l2 vorbis win32codecs xml2 xmms xv
xvid yv12 zlib linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-11 06:27:52 UTC
*** Bug 115190 has been marked as a duplicate of this bug. ***
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2005-12-24 16:49:00 UTC
I currently do not own a rt2570 device, rather not interested in digging for patches or writing them myselves.
Can you please provide a patch for this bug?

I will close this as "UPSTREAM", because I wait for upstream to provide a new version or for you to give me a patch.
Comment 3 Steev Klimaszewski (RETIRED) gentoo-dev 2005-12-24 17:21:21 UTC
Stefan, I'll take over this if you like, I do happen to have 2 rt2570 usb wifi devices - I have a patch that does work, but I also do some patching from cvs.  Upstream has pretty much given up releases on this in favor of the new rt2x00 drivers that they are working on, which do not work for me here.
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2005-12-25 02:34:12 UTC
steev takes this over
Comment 5 Steev Klimaszewski (RETIRED) gentoo-dev 2005-12-25 14:18:52 UTC
Created attachment 75527 [details, diff]
verify-write patch

Please try this patch, and let me know if it helps for you - this is for the rt2570 ebuild - just add it to an overlay, and add

epatch ${FILESDIR}/verify-write-api.patch
above the linux-mod_src_compile line - if this doesn't work properly - as in doesn't apply, let me know
Comment 6 Erik Geiger 2005-12-26 04:05:22 UTC
Hello Steev,

Thanks for patching. Now I can load the module without any errors.

But if I bring up my wireless interface rausb0 I get a Kernel panic. But this also happens with my laptop running kernel 2.6.13-gentoo-r5 and the original ebuild and driver.

So I think there is also another problem, may be with my hardware ASUS WL-167g, but that has nothing to do with this bug-report. So I think this bug is solved.
Comment 7 Steev Klimaszewski (RETIRED) gentoo-dev 2005-12-26 17:54:10 UTC
Created attachment 75574 [details, diff]
rt2570 latest cvs patch

Try this patch out, it is latest from CVS diffed to the 1.1.0_b1 release, let me know if this affects anything - I was reading the forums, and a guy said that he does have some problems with his wifi card - which is the exact same one you say you have - you could also try the rt2x00 drivers in portage, which are what upstream is actively working on, moreso than the rt2570/rt2500/rt2400 (its a unified driver for all the chipsets)

Let me know how this goes for you.  You should just need to remove the verify-api patch and replace it with this one.
Comment 8 Erik Geiger 2005-12-27 13:57:23 UTC
Wow, that's it. Now the driver rt2570 works really fine ;-)
Thanks!
Comment 9 Steev Klimaszewski (RETIRED) gentoo-dev 2005-12-31 08:43:00 UTC
InCVS