rt61.o failed to build

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


17-11-2008 09:37:01


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

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-'
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-'
rt61.o failed to build!
make *** [module] Error 1

Should I use root (#) instead?

Thank you.


17-11-2008 12:23:28

Ok, I changed to root and managed to build and install. However, modprobe fails

# modprobe rt61
/lib/modules/ init_module No such device
/lib/modules/ 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/ insmod /lib/modules/ failed
/lib/modules/ insmod rt61 failed

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


17-11-2008 15:14:33

[quote14g067a8]You may find more information in syslog or the output from dmesg[/quote14g067a8]


17-11-2008 15:56:22

Ok, in /var/log/syslog

# grep rt61 /var/log/syslog
Nov 16 152755 Bethulie insmod /lib/modules/ 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?


17-11-2008 19:35:40

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.


17-11-2008 19:53:00

dmesg output is empty on rt61, RT61, wlan0, ra0.

$ /sbin/lspci
0000.0 Host bridge OPTi Inc. 82C557 [Viper-M] (rev 14)
0001.0 ISA bridge OPTi Inc. 82C558 [Viper-M ISA+IDE] (rev 02)
0002.0 VGA compatible controller Cirrus Logic GD 7548
0014.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?


18-11-2008 07:22:48

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-'
*** 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?


19-11-2008 17:45:13


What are you doing? Do this
[code1xh6pp57]"make clean debug", then
"make modules" or "make modules_install" (as root)[/code1xh6pp57]Then add the debug parameter to your modprobe command e.g.[code1xh6pp57]modprobe debug=15 ...[/code1xh6pp57]
*Attach* a gzipped copy of /var/log/debug ("cat /var/log/debug|gzip >debug.gz") to a post here.



20-11-2008 06:57:50

Thank you for your help. I hope it will be of any help.


23-11-2008 17:26:53

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.



24-11-2008 17:50:37

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?


26-11-2008 07:59:02

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.


27-11-2008 19:04:14

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?


28-11-2008 05:50:11

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.