| View previous topic :: View next topic |
| Author |
Message |
lopio Veteran


Joined: 22 Dec 2003 Posts: 1161 Location: savona, Italy
|
Posted: Wed Nov 09, 2005 10:39 pm Post subject: dlink g-122 and wireless ralink rt2570 module error [solved] |
|
|
hi it is impossible for me to have a good d-link dwl-g122 installation
I needed rt2570 module so i installed this module downloaded from sourceforge project
[url]
http://sourceforge.net/project/showfiles.php?group_id=107832
[/url]
So i obtained a rausb0 interface running but often my connection closes down and i need to restart my wireless AP
Then i tried to compile module source taken from ralink official site (http://www.ralinktech.com/supp-1.htm) but with all the version (compiled on gentoo x86), i obtain an error when i try to compile on gentoo amd64 :
| Code: |
# make
make -C /lib/modules/2.6.9-gentoo-r9/build SUBDIRS=/home/pippo/RT25USB-SRC-V2.0.5.0 modules
make[1]: Entering directory `/usr/src/linux-2.6.9-gentoo-r9'
CC [M] /home/pippo/RT25USB-SRC-V2.0.5.0/rtusb_main.o
In file included from /home/pippo/RT25USB-SRC-V2.0.5.0/rt_config.h:96,
from /home/pippo/RT25USB-SRC-V2.0.5.0/rtusb_main.c:38:
include/asm-i386/atomic.h:22: error: conflicting types for 'atomic_t'
include/asm/atomic.h:24: error: previous declaration of 'atomic_t' was here
include/asm-i386/atomic.h:51: error: conflicting types for 'atomic_add'
include/asm/atomic.h:53: error: previous definition of 'atomic_add' was here
include/asm-i386/atomic.h:66: error: conflicting types for 'atomic_sub'
include/asm/atomic.h:68: error: previous definition of 'atomic_sub' was here
include/asm-i386/atomic.h:83: error: conflicting types for 'atomic_sub_and_test'
include/asm/atomic.h:85: error: previous definition of 'atomic_sub_and_test' was here
include/asm-i386/atomic.h:100: error: conflicting types for 'atomic_inc'
include/asm/atomic.h:102: error: previous definition of 'atomic_inc' was here
include/asm-i386/atomic.h:114: error: conflicting types for 'atomic_dec'
include/asm/atomic.h:116: error: previous definition of 'atomic_dec' was here
include/asm-i386/atomic.h:130: error: conflicting types for 'atomic_dec_and_test'
include/asm/atomic.h:132: error: previous definition of 'atomic_dec_and_test' was here
include/asm-i386/atomic.h:149: error: conflicting types for 'atomic_inc_and_test'
include/asm/atomic.h:151: error: previous definition of 'atomic_inc_and_test' was here
include/asm-i386/atomic.h:169: error: conflicting types for 'atomic_add_negative'
include/asm/atomic.h:171: error: previous definition of 'atomic_add_negative' was here
In file included from /home/pippo/RT25USB-SRC-V2.0.5.0/rt_config.h:96,
from /home/pippo/RT25USB-SRC-V2.0.5.0/rtusb_main.c:38:
include/asm-i386/atomic.h:184:1: warning: "atomic_set_mask" redefined
In file included from include/linux/spinlock.h:460,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/pippo/RT25USB-SRC-V2.0.5.0/rt_config.h:60,
from /home/pippo/RT25USB-SRC-V2.0.5.0/rtusb_main.c:38:
include/asm/atomic.h:346:1: warning: this is the location of the previous definition
make[2]: *** [/home/pippo/RT25USB-SRC-V2.0.5.0/rtusb_main.o] Error 1
make[1]: *** [_module_/home/pippo/RT25USB-SRC-V2.0.5.0] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.9-gentoo-r9'
make: *** [all] Error 2
|
my system
| Code: |
Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.9-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python: 2.3.5-r2
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
sys-devel/binutils: 2.15.92.0.2-r10
sys-devel/libtool: 1.5.18-r1
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -frename-registers -ftracer -pipe"
CHOST="x86_64-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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -frename-registers -ftracer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LANG="it_IT@euro"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aalib arts avi berkdb bindist bitmap-fonts cdr crypt curl divx4linux dv dvdr dvdread eds emboss encode esd fam fame flac foomaticdb fortran gdbm gif gpm gstreamer gtk2 imagemagick imlib ipv6 jpeg junit kde kdeenablefinal lzw lzw-tiff mad mikmod motif mp3 mpeg mysql nas ncurses nls nptl ogg opengl pam pdflib perl png python quicktime readline samba sasl sdl spell ssl tcpd tiff truetype-fonts type1-fonts udev usb userlocales vorbis xine xml2 xmms xpm xv zlib userland_GNU kernel_linux elibc_glibc"
|
Can you help me?
Last edited by lopio on Sat Nov 19, 2005 10:52 am; edited 1 time in total |
|
| Back to top |
|
 |
gustafson Guru


Joined: 12 Aug 2004 Posts: 404
|
Posted: Thu Nov 10, 2005 6:28 pm Post subject: |
|
|
I've got a dlink dwl-g122 running, it works via ndiswrapper. Would you considered this as an option?
I know there are open drivers that are currently in development, but I needed it up and running quickly. |
|
| Back to top |
|
 |
lopio Veteran


Joined: 22 Dec 2003 Posts: 1161 Location: savona, Italy
|
Posted: Fri Nov 11, 2005 9:51 pm Post subject: |
|
|
| gustafson wrote: | I've got a dlink dwl-g122 running, it works via ndiswrapper. Would you considered this as an option?
I know there are open drivers that are currently in development, but I needed it up and running quickly. |
Yesterday as a new possibility i tried to use ndiswrapper so
i downloaded windows driver from d-link site and after unzip i copied to gentoo partition these files:
NetRTUSB.inf
rt25u98.sys
rt2500usb.sys
then
| Code: |
ndiswrapper -i NetRTUSB.inf
|
and insert ndiswrapper in modules.autoload
After reboot i see an error message during setup (tomorrow i'll try to post exact message) and i obtain a new strange interface sit0 with no wireless extension
Can you help me?
Thanks |
|
| Back to top |
|
 |
gustafson Guru


Joined: 12 Aug 2004 Posts: 404
|
Posted: Fri Nov 11, 2005 10:47 pm Post subject: |
|
|
Hi, I had a nice post explaining exactly what I did to make it work. I can't seem to find it now. It looks like you got most of it though.
There are 3 revisions of the gl-122. A,B1,B2 (I think). Make sure you get the latest windows driver for your revision. Then load it into ndiswrapper like you did, then I think you insert the ndiswrapper module into the kernel. That is what I remember doing... but I'm not sure without my old post.
So, based on your post... I can help unless:
1) you didn't get the correct driver revision
2) you didn't insert the module.
Good luck, |
|
| Back to top |
|
 |
lopio Veteran


Joined: 22 Dec 2003 Posts: 1161 Location: savona, Italy
|
Posted: Sat Nov 12, 2005 11:09 am Post subject: |
|
|
hi,
my dlink version is B1 so the ralink chipset is used
I have to say that d-link is runnon fine with these drivers and ndiswrapper in x86 machine
In my amd64 machine when i modprobe ndiswrapper an error message occurs (No 64 bit driver !!!!!!!!!!!!!)
Strange message cause i think all Win driver are 32 bit
So what can i do? Is it possible to use the same winxp .inf file but install a precompiled ndiswrapper 32bit module
In general is it possible to use a 32bit driver in a amd64 machine?
I think no. Then, gustafson, how did you have your d-link running fine on amd64?
thanks |
|
| Back to top |
|
 |
gustafson Guru


Joined: 12 Aug 2004 Posts: 404
|
Posted: Mon Nov 14, 2005 3:03 pm Post subject: |
|
|
Hmmm... I just realized that your original post was in Gentoo on AMD64. I watch this forum since I have one machine that is AMD64 but it is a desktop and never moves. I run the gl-122 on an x86 machine.
As far as whether it will run or not on AMD64, well I don't really know. I think most 32bit apps run through the emulation libraries. I assume that 32bit drivers would have to as well, though it also seems like ndiswrapper would be written to do that emulation. Anything I say is speculative. |
|
| Back to top |
|
 |
supermihi Guru


Joined: 09 Feb 2005 Posts: 348
|
Posted: Mon Nov 14, 2005 3:31 pm Post subject: |
|
|
| lopio wrote: | hi,
my dlink version is B1 so the ralink chipset is used
I have to say that d-link is runnon fine with these drivers and ndiswrapper in x86 machine
In my amd64 machine when i modprobe ndiswrapper an error message occurs (No 64 bit driver !!!!!!!!!!!!!)
Strange message cause i think all Win driver are 32 bit
So what can i do? Is it possible to use the same winxp .inf file but install a precompiled ndiswrapper 32bit module
In general is it possible to use a 32bit driver in a amd64 machine?
I think no. Then, gustafson, how did you have your d-link running fine on amd64?
thanks |
You need drivers for WinXP64 to use with ndiswrapper on amd64 gentoo!!! Most of the vendors have such drivers now. _________________ "You may say I'm a dreamer, but I'm not the only one." |
|
| Back to top |
|
 |
lopio Veteran


Joined: 22 Dec 2003 Posts: 1161 Location: savona, Italy
|
Posted: Tue Nov 15, 2005 9:18 pm Post subject: |
|
|
| supermihi wrote: |
You need drivers for WinXP64 to use with ndiswrapper on amd64 gentoo!!! Most of the vendors have such drivers now. |
thank you for your help. Now i know it is impossible to use 32bit driver in 64bit kernel
I tried to use ndiswrapper with XP64 version but it failed too.
I think that i have to wait and that better project is sourceforge rt200x. I'll wait new more stable rt2570 module
bye |
|
| Back to top |
|
 |
supermihi Guru


Joined: 09 Feb 2005 Posts: 348
|
Posted: Tue Nov 15, 2005 9:39 pm Post subject: |
|
|
I managed yesterday to use the rt2570 USB driver from the rt2x00-project with my wireless stick in 64 bit mode and WPA!!!! I use the latest cvs-version, I had to disable preemption in the kernel (otherwise the system would freeze if I ifup / ifdown the interface a few times), also I don't load the ehci_hcd module (only ohci), because it semms to cause the connection to drop often, and I use the following script to activate:
| Code: |
modprobe -r rt2570
modprobe rt2570
ifconfig rausb0 up
ifconfig rausb0 down
ifconfig rausb0 up
iwconfig rausb0 mode managed
iwpriv rausb0 auth 3
iwpriv rausb0 enc 3
iwconfig rausb0 essid ESSID
sleep 1
iwpriv rausb0 wpapsk PASSWORD
ifconfig rausb0 up
sleep 15
dhcpcd rausb0
|
This way everything works fine. _________________ "You may say I'm a dreamer, but I'm not the only one." |
|
| Back to top |
|
 |
lopio Veteran


Joined: 22 Dec 2003 Posts: 1161 Location: savona, Italy
|
Posted: Thu Nov 17, 2005 9:55 pm Post subject: |
|
|
| supermihi wrote: | I managed yesterday to use the rt2570 USB driver from the rt2x00-project with my wireless stick in 64 bit mode and WPA!!!! I use the latest cvs-version, I had to disable preemption in the kernel (otherwise the system would freeze if I ifup / ifdown the interface a few times), also I don't load the ehci_hcd module (only ohci), because it semms to cause the connection to drop often, and I use the following script to activate:
| Code: |
modprobe -r rt2570
modprobe rt2570
ifconfig rausb0 up
ifconfig rausb0 down
ifconfig rausb0 up
iwconfig rausb0 mode managed
iwpriv rausb0 auth 3
iwpriv rausb0 enc 3
iwconfig rausb0 essid ESSID
sleep 1
iwpriv rausb0 wpapsk PASSWORD
ifconfig rausb0 up
sleep 15
dhcpcd rausb0
|
This way everything works fine. |
I've got the SAME problems (freeze on up/down interface and drop connection) so i think your GREAT help could solve them for me too.
I'll try as soon as possible
Thank you very much
EDT:With your suggest things seem to be better
Thanks a lot
PS disabling ehci i loose usb2.0 support , do i? |
|
| Back to top |
|
 |
|