rt2x00.serialmonkey.com

Support forum for the rt2x00 project
It is currently Thu May 23, 2013 11:31 pm

All times are UTC


Forum rules


Important: Read Project restructuring announcement regarding the pending removal of the legacy drivers from this project.



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 
Author Message
 Post subject: rt61.o failed to build
PostPosted: Mon Nov 17, 2008 9:37 am 
Offline

Joined: Sun Nov 16, 2008 7:31 pm
Posts: 10
Hi,

Computer: Compaq Armada 1130, 48MB RAM, 2GB HDD
NIC: Sitecom PC-Card with rt2561/rt61 chipset
OS: Slackware 11, kernel 2.4.33.3

I downloaded the rt61-cvs-2008111701 driver and following the instruction in the README, I end up with (step 2):

$ make
make[1]: Entering directory `/usr/src/linux-2.4.33.3'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld: cannot open output file scripts/split-include: Permission denied
collect2: ld returned 1 exit status
make[1]: *** [scripts/split-include] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.33.3'
rt61.o failed to build!
make: *** [module] Error 1
$

Should I use root (#) instead?

Thank you.


Top
 Profile  
 
PostPosted: Mon Nov 17, 2008 12:23 pm 
Offline

Joined: Sun Nov 16, 2008 7:31 pm
Posts: 10
Ok, I changed to root and managed to build and install. However, modprobe fails:

# modprobe rt61
/lib/modules/2.4.33.3/extra/rt61.o: init_module: No such device
/lib/modules/2.4.33.3/extra/rt61.o: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.33.3/extra/rt61.o: insmod /lib/modules/2.4.33.3/extra/rt61.o failed
/lib/modules/2.4.33.3/extra/rt61.o: insmod rt61 failed

As far as I understand, this rt61 driver is also for the rt5261. Then why doesn't it see the card?


Top
 Profile  
 
PostPosted: Mon Nov 17, 2008 3:14 pm 
Offline
Site Admin

Joined: Sun Jun 05, 2005 1:01 pm
Posts: 5905
Location: Haarlem, The Netherlands
Quote:
You may find more information in syslog or the output from dmesg

_________________
Regards,
Ivo van Doorn
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
PostPosted: Mon Nov 17, 2008 3:56 pm 
Offline

Joined: Sun Nov 16, 2008 7:31 pm
Posts: 10
Ok, in /var/log/syslog:

# grep rt61 /var/log/syslog
Nov 16 15:27:55 Bethulie insmod: /lib/modules/2.4.33.3/extra/rt61.o: insmod ra0 failed
#

while in /etc/modules.conf it says:

alias wlan* rt61

The output of "make install" told me to remove the ra0 alias from the file, which I did. Now it seems to look for it. Any suggestions?


Top
 Profile  
 
PostPosted: Mon Nov 17, 2008 7:35 pm 
Offline

Joined: Sun Jun 26, 2005 10:26 am
Posts: 1685
Location: Marseille, France
And what "dmesg" say? If you cannot get more verbose information about the issue, compile the driver with debug enabled and try to insert it again.
Please post the output of "lspci" as well.

_________________
RutilT developer


Top
 Profile  
 
PostPosted: Mon Nov 17, 2008 7:53 pm 
Offline

Joined: Sun Nov 16, 2008 7:31 pm
Posts: 10
dmesg output is empty on rt61, RT61, wlan0, ra0.

$ /sbin/lspci
00:00.0 Host bridge: OPTi Inc. 82C557 [Viper-M] (rev 14)
00:01.0 ISA bridge: OPTi Inc. 82C558 [Viper-M ISA+IDE] (rev 02)
00:02.0 VGA compatible controller: Cirrus Logic GD 7548
00:14.0 IDE interface: OPTi Inc. 82C621 [Viper-M/N+] (rev 12)
$

From the "Slackware9 rt61 Howto" I also found that my /usr/share/pci.ids was outdated. But after updating, lspci gives no other output. I started doubting the card itself, but another laptop with Fedora 9 detected it right away as RT61, and lspci showed the card fine. I also ran "make menuconfig" to see the configuration of the kernel, but that was all ok.

What will be the difference with recompiling the driver with debug enabled?


Top
 Profile  
 
PostPosted: Tue Nov 18, 2008 7:22 am 
Offline

Joined: Sun Nov 16, 2008 7:31 pm
Posts: 10
Ok, I've recompiled with debug into makedebug.txt and with # tail -25 makedebug.txt:

Successfully remade target file `rt61.o'.
Pruning file `dummy'.
Finished prerequisites of target file `modules'.
Must remake target `modules'.
Successfully remade target file `modules'.
make[2]: Leaving directory `/home/huub/rt61-cvs-2008111701/Module'
Reaping winning child 0x0809dc88 PID 596
Removing child 0x0809dc88 PID 596 from chain.
Successfully remade target file `_mod_/home/huub/rt61-cvs-2008111701/Module'.
Considering target file `dummy'.
File `dummy' does not exist.
Finished prerequisites of target file `dummy'.
Must remake target `dummy'.
Successfully remade target file `dummy'.
Finished prerequisites of target file `modules'.
Must remake target `modules'.
Successfully remade target file `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.33.3'
*** Module rt61.o built successfully
Reaping winning child 0x08083d60 PID 582
Removing child 0x08083d60 PID 582 from chain.
Successfully remade target file `module'.
Finished prerequisites of target file `all'.
Must remake target `all'.
Successfully remade target file `all'.

Then again "make install", "modprobe rt61" that says No such device. Then:
# grep RT61 /usr/share/pci.ids
0301 RT2561/RT61 802.11g PCI
0302 RT2561/RT61 rev B 802.11g
#

# grep rt61 /usr/share/pci.ids
#

Is this something that's incorrect somehow?


Top
 Profile  
 
PostPosted: Wed Nov 19, 2008 5:45 pm 
Offline
User avatar

Joined: Sat Jan 14, 2006 6:29 pm
Posts: 897
Location: Carlsbad, California
hvn52:

What are you doing? Do this:
Code:
"make clean debug", then
"make modules" or "make modules_install" (as root)
Then add the debug parameter to your modprobe command: e.g.
Code:
modprobe debug=15 ...

*Attach* a gzipped copy of /var/log/debug ("cat /var/log/debug|gzip >debug.gz") to a post here.

Thanks,

_________________
Yr Hmbl Obt Svt & c
Bryan - In favor of Big Oil. Big fan of General Grievous.


Top
 Profile  
 
PostPosted: Thu Nov 20, 2008 6:57 am 
Offline

Joined: Sun Nov 16, 2008 7:31 pm
Posts: 10
Thank you for your help. I hope it will be of any help.


Attachments:
debug.gz [516 Bytes]
Downloaded 72 times
Top
 Profile  
 
PostPosted: Sun Nov 23, 2008 5:26 pm 
Offline
User avatar

Joined: Sat Jan 14, 2006 6:29 pm
Posts: 897
Location: Carlsbad, California
Hi hvn52,

Finally took a look at your debug file. Unfortunately, nothing informative there.

From your earlier post, I see you had trouble building with non-root privileges. What happens if you try "make all" without root privileges? If it doesn't work, something's wrong with your build environment. Do "make all 2>errs" and attach a gzipped copy of "errs" to a post here.

If "make all" does work, what happens if you try "make modules 2>errs" as root? If it doesn't work, attach the gzipped errs file.

If "make modules" is OK, does /lib/firmware/rt2561s.bin exist and is non- zero? Does /lib/modules/`uname -r`/extra/rt61.o exist and is non- zero? If either does not, you have a distro- specific environment problem.

If those things are OK, what is the result of "modprobe rt61"? What does "lsmod|egrep rt" show? If modprobe fails, grep out the date/time range in which you tried it from /var/log/kern.log and attach a gzipped copy of that to a post here.

Thanks,

_________________
Yr Hmbl Obt Svt & c
Bryan - In favor of Big Oil. Big fan of General Grievous.


Top
 Profile  
 
PostPosted: Mon Nov 24, 2008 5:50 pm 
Offline
User avatar

Joined: Tue Jan 30, 2007 12:30 am
Posts: 18
you won't be able to insert / install the compiled module if the card itself is not found on your system

lspci should confirm the existence of your card even without a driver, it sounds like a distro related issue... is the card recognised on boot? does it appear in /etc/sysconfig/hwconf?


Top
 Profile  
 
PostPosted: Wed Nov 26, 2008 7:59 am 
Offline

Joined: Sun Nov 16, 2008 7:31 pm
Posts: 10
All steps go ok until "modprobe rt61" and "lsmod|egrep rt". These show nothing. /var/log/kern.log does not exist, neither does /etc/sysconfig/hwconf. lspci doesn't show the card either.


Top
 Profile  
 
PostPosted: Thu Nov 27, 2008 7:04 pm 
Offline

Joined: Sun Jun 26, 2005 10:26 am
Posts: 1685
Location: Marseille, France
If lspci does not see you card, then there is no chance the driver can use it., because the system does not see it at all. Are you sure it is not damaged? Is there a button to enable/disable radio on your laptop?

_________________
RutilT developer


Top
 Profile  
 
PostPosted: Fri Nov 28, 2008 5:50 am 
Offline

Joined: Sun Nov 16, 2008 7:31 pm
Posts: 10
I'm very sure it's not damaged, because the card is immediately recognized in another laptop. The laptop is too old (Compaq Armada 1130) to have a radio-button. The other pc-cards (IDE-cards and wired-network card) I have are recognized and work fine. I also replaced the pci.ids list a while ago, because the RT61 wasn't in the Slackware 11 version.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group