rt2570.ko failed to build on ARM (NSLU2)

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4657

S00NY

09-03-2008 08:09:25

Hi Folks

i run into some trouble trying to make rt2570 on my Debian ARM Big Endian NSLU2

Information about the system
[code1av8iv0z]
nslu:~/my-temp-04/rt2570-cvs-2008030901/Module# uname -a
Linux nslu 2.6.18-5-ixp4xx #1 Sun Dec 23 05:17:39 UTC 2007 armv5tel GNU/Linux

nslu:~/my-temp-04/rt2570-cvs-2008030901/Module# lsusb
: : :
Bus 003 Device 004: ID 148f:2573 Ralink Technology, Corp. RT2501USB Wireless Adapter
: : :

nslu:~/my-temp-04/rt2570-cvs-2008030901/Module# lspci
00:01.0 USB Controller: NEC Corporation USB (rev 43)
00:01.1 USB Controller: NEC Corporation USB (rev 43)
00:01.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
[/code1av8iv0z]

The problem with make
[code1av8iv0z]
nslu:~/my-temp-04/rt2570-cvs-2008030901/Module# make arm
make[1]: Entering directory `/usr/src/linux-headers-2.6.18-5-ixp4xx'
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/rtusb_main.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/mlme.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/rtusb_bulk.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/connect.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/sync.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/rtusb_init.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/rtmp_tkip.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/wpa.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/rtmp_wep.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/rtusb_info.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/assoc.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/auth.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/auth_rsp.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/md5.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/rtusb_io.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/sanity.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/rtusb_data.o
CC [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/rt2x00debug.o
LD [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/rt2570.o
Building modules, stage 2.
MODPOST
CC /root/my-temp-04/rt2570-cvs-2008030901/Module/rt2570.mod.o
LD [M] /root/my-temp-04/rt2570-cvs-2008030901/Module/rt2570.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-5-ixp4xx'
if ! [ -f rt2570.ko ]; then \
echo "rt2570.ko failed to build!"; \
exit 1; \
fi
[/code1av8iv0z]

I was able to make rt73-cvs-2008030710 and got it run, but unfortunately i could not make wpasupplicant work with this, therefor i now tried to use rt2570.

Someone know how what the particular problem 'make' has here?
Or better, how to solve it?

Regards
S00NY

IvD

09-03-2008 11:25:45


I was able to make rt73-cvs-2008030710 and got it run, but unfortunately i could not make wpasupplicant work with this, therefor i now tried to use rt2570.
[/quote3jkm4fgs]

That sentence doesn't make any sense. If you have a rt73 device, then you should use the rt73 driver. Using rt2570 with a rt73 device isn't possible....

S00NY

09-03-2008 11:55:36


I was able to make rt73-cvs-2008030710 and got it run, but unfortunately i could not make wpasupplicant work with this, therefor i now tried to use rt2570.
[/quote25mjcrme]

That sentence doesn't make any sense. If you have a rt73 device, then you should use the rt73 driver. Using rt2570 with a rt73 device isn't possible....[/quote25mjcrme]


I'm really not shure whether rt73 or rt2570 is the right module for my USB device.
Both are just assumptions
My device is

ID 148f2573 Ralink Technology, Corp. RT2501USB Wireless Adapter

First I tried rt73 which was compilable and loadable, but unfortunately wpasupplicant woun't work with it (wpasupplicant "Failed to get scan results").

So I thought I'd give rt2570 a try, because there's no other driver for USB WLAN Ralink devices at the download site.
But even if it's the wrong one, it should be able to comile anyway.

Regards
S00NY

Spy84464

09-03-2008 16:48:49

Hello,
You need the rt2570 driver.
It doesn't support wpa-supplicant, check the file "iwpriv_usage.txt" coming with it to set wpa settings.

Regards,
Romain