rt2x00 - wireless compat - can not load compiled rt61pci
Hello,
I use latest Mandriva distribution 2009.1 with kernel 2.6.29.1-desktop-4mnb. I have rt2561 wifi card in my PC. I would like to switch my wifi card to AP or Ad-hoc mode. My distribution's rt61pci module doesn't support these modes. So I have downloaded compat-wireless-2.6.30-rc4.tar.bz2 <http://www.orbit-lab.org/kernel/compat-wireless-2.6-stable/v2.6.30/compat-wireless-2.6.30-rc4.tar.bz2>.
I ran:
make
make install
make unload
Everything fine. But then "modprobe rt61pci" loaded my distribution's rt61pci module and not the compiled one. Distribution's one is in folder:
[root@trencancan compat-wireless-2.6.30-rc4]# ls -la /lib/modules/2.6.29.1-desktop-4mnb/kernel/drivers/net/wireless/rt2x00/rt61pci.ko.gz -rw-r--r-- 1 root root 11279 2009-04-21 01:13 /lib/modules/2.6.29.1-desktop-4mnb/kernel/drivers/net/wireless/rt2x00/rt61pci.ko.gz
Compiled one is in folder:
[root@trencancan compat-wireless-2.6.30-rc4]# ls -la /lib/modules/2.6.29.1-desktop-4mnb/updates/drivers/net/wireless/rt2x00/rt61pci.ko.gz -rw-r--r-- 1 root root 123843 2009-05-16 23:21 /lib/modules/2.6.29.1-desktop-4mnb/updates/drivers/net/wireless/rt2x00/rt61pci.ko.gz
But after I type "modprobe rt61pci", then:
[root@trencancan compat-wireless-2.6.30-rc4]# modinfo rt61pci
filename: /lib/modules/2.6.29.1-desktop-4mnb/kernel/drivers/net/wireless/rt2x00/rt61pci.ko.gz license: GPL firmware: rt2661.bin firmware: rt2561s.bin firmware: rt2561.bin description: Ralink RT61 PCI & PCMCIA Wireless LAN driver. version: 2.2.3 author: http://rt2x00.serialmonkey.com srcversion: E8C0D3A4B7F36984638CEDF alias: pci:v00001814d00000401sv*sd*bc*sc*i* alias: pci:v00001814d00000302sv*sd*bc*sc*i* alias: pci:v00001814d00000301sv*sd*bc*sc*i* depends: rt2x00lib,rt2x00pci,eeprom_93cx6,crc-itu-t vermagic: 2.6.29.1-desktop-4mnb SMP mod_unload modversions 686 parm: nohwcrypt:Disable hardware encryption. (bool)
So you can see that Distribution's module (in kernel folder) was loaded. I think root cause of problem is that run of command: "depmod -ae" finds first rt61pci in kernel's folder and then next instance in updates folder is not considered. If I look at output of depmod command:
[root@trencancan compat-wireless-2.6.30-rc4]# grep -i rt61pci /lib/modules/2.6.29.1-desktop-4mnb/modules.depkernel/drivers/net/wireless/rt2x00/rt61pci.ko.gz: kernel/lib/crc-itu-t.ko.gz kernel/drivers/net/wireless/rt2x00/rt2x00pci.ko.gz kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko.gz kernel/net/rfkill/rfkill.ko.gz kernel/drivers/leds/led-class.ko.gz kernel/net/mac80211/mac80211.ko.gz kernel/net/wireless/cfg80211.ko.gz kernel/drivers/misc/eeprom/eeprom_93cx6.ko.gz
So you may see that rt61pci in /lib/modules/2.6.29.1-desktop-4mnb/updates/drivers/net/wireless/rt2x00/ folder is not considered.
Please, how can I workaround this? Or what do I wrong? One solution can be to install all compat-wireless modules into kernel folder instead of updates folder. But then distribution's ones will be overwritten and un-installation will be impossible.
Thanks.
Michal
Quoted 62 lines · trencan
Hello,
I use latest Mandriva distribution 2009.1 with kernel 2.6.29.1-desktop-4mnb. I have rt2561 wifi card in my PC. I would like to switch my wifi card to AP or Ad-hoc mode. My distribution's rt61pci module doesn't support these modes. So I have downloaded compat-wireless-2.6.30-rc4.tar.bz2
<http://www.orbit-lab.org/kernel/compat-wireless-2.6-stable/v2.6.30/compat-wireless-2.6.30-rc4.tar.bz2>.I ran:
make
make install
make unloadEverything fine. But then "modprobe rt61pci" loaded my distribution's rt61pci module and not the compiled one. Distribution's one is in folder:
[root@trencancan compat-wireless-2.6.30-rc4]# ls -la
/lib/modules/2.6.29.1-desktop-4mnb/kernel/drivers/net/wireless/rt2x00/rt61pci.ko.gz-rw-r--r-- 1 root root 11279 2009-04-21 01:13/lib/modules/2.6.29.1-desktop-4mnb/kernel/drivers/net/wireless/rt2x00/rt61pci.ko.gzCompiled one is in folder:
[root@trencancan compat-wireless-2.6.30-rc4]# ls -la/lib/modules/2.6.29.1-desktop-4mnb/updates/drivers/net/wireless/rt2x00/rt61pci.ko.gz-rw-r--r-- 1 root root 123843 2009-05-16 23:21/lib/modules/2.6.29.1-desktop-4mnb/updates/drivers/net/wireless/rt2x00/rt61pci.ko.gzBut after I type "modprobe rt61pci", then:
[root@trencancan compat-wireless-2.6.30-rc4]# modinfo rt61pci filename:/lib/modules/2.6.29.1-desktop-4mnb/kernel/drivers/net/wireless/rt2x00/rt61pci.ko.gz
license: GPL
firmware: rt2661.bin
firmware: rt2561s.bin
firmware: rt2561.bin
description: Ralink RT61 PCI & PCMCIA Wireless LAN driver.
version: 2.2.3
author: http://rt2x00.serialmonkey.com
srcversion: E8C0D3A4B7F36984638CEDF
alias: pci:v00001814d00000401sv*sd*bc*sc*i*
alias: pci:v00001814d00000302sv*sd*bc*sc*i*
alias: pci:v00001814d00000301sv*sd*bc*sc*i*
depends: rt2x00lib,rt2x00pci,eeprom_93cx6,crc-itu-t
vermagic: 2.6.29.1-desktop-4mnb SMPmod_unloadmodversions 686
parm: nohwcrypt:Disable hardware encryption. (bool)So you can see that Distribution's module (in kernel folder) was loaded. I think root cause of problem is that run of command: "depmod -ae" finds first rt61pci in kernel's folder and then next instance in updates folder is not considered. If I look at output of depmod command:
[root@trencancan compat-wireless-2.6.30-rc4]# grep -i rt61pci
/lib/modules/2.6.29.1-desktop-4mnb/modules.depkernel/drivers/net/wireless/rt2x00/rt61pci.ko.gz:kernel/lib/crc-itu-t.ko.gzkernel/drivers/net/wireless/rt2x00/rt2x00pci.ko.gzkernel/drivers/net/wireless/rt2x00/rt2x00lib.ko.gzkernel/net/rfkill/rfkill.ko.gzkernel/drivers/leds/led-class.ko.gzkernel/net/mac80211/mac80211.ko.gzkernel/net/wireless/cfg80211.ko.gzkernel/drivers/misc/eeprom/eeprom_93cx6.ko.gz
Quoted 8 lines
So you may see that rt61pci in
/lib/modules/2.6.29.1-desktop-4mnb/updates/drivers/net/wireless/rt2x00/folder is not considered.Please, how can I workaround this? Or what do I wrong? One solution can be to install all compat-wireless modules into kernel folder instead of updates folder. But then distribution's ones will be overwritten and un-installation will be impossible.
Mandriva may not look for updates/ dir by default. For Ubuntu I still see this respected.
For example on ubuntu I see:
mcgrof@tesla $ cat /etc/depmod.d/ubuntu.conf
search updates ubuntu built-in
Can you check your /etc/depmod.d/ directory or /etc/depmod.conf file?
Luis
Hello,
I used "search updates" in depmod.d and it works, perfect.
Thanks.
______________________________________________________________
Quoted 94 lines
Od: [email protected]
Komu: trencan <[email protected]>
CC: [email protected], Felix Bitterli <[email protected]>
Datum: 17.05.2009 23:27
Předmět: Re: rt2x00 - wireless compat - can not load compiled rt61pciQuoted 62 lines · trencan
Hello,
I use latest Mandriva distribution 2009.1 with kernel 2.6.29.1-desktop-4mnb. I have rt2561 wifi card in my PC. I would like to switch my wifi card to AP or Ad-hoc mode. My distribution's rt61pci module doesn't support these modes. So I have downloaded compat-wireless-2.6.30-rc4.tar.bz2
<http://www.orbit-lab.org/kernel/compat-wireless-2.6-stable/v2.6.30/compat-wireless-2.6.30-rc4.tar.bz2>.I ran:
make
make install
make unloadEverything fine. But then "modprobe rt61pci" loaded my distribution's rt61pci module and not the compiled one. Distribution's one is in folder:
[root@trencancan compat-wireless-2.6.30-rc4]# ls -la
/lib/modules/2.6.29.1-desktop-4mnb/kernel/drivers/net/wireless/rt2x00/rt61pci.ko.gz-rw-r--r-- 1 root root 11279 2009-04-21 01:13/lib/modules/2.6.29.1-desktop-4mnb/kernel/drivers/net/wireless/rt2x00/rt61pci.ko.gzCompiled one is in folder:
[root@trencancan compat-wireless-2.6.30-rc4]# ls -la/lib/modules/2.6.29.1-desktop-4mnb/updates/drivers/net/wireless/rt2x00/rt61pci.ko.gz-rw-r--r-- 1 root root 123843 2009-05-16 23:21/lib/modules/2.6.29.1-desktop-4mnb/updates/drivers/net/wireless/rt2x00/rt61pci.ko.gzBut after I type "modprobe rt61pci", then:
[root@trencancan compat-wireless-2.6.30-rc4]# modinfo rt61pci filename:/lib/modules/2.6.29.1-desktop-4mnb/kernel/drivers/net/wireless/rt2x00/rt61pci.ko.gz
license: GPL
firmware: rt2661.bin
firmware: rt2561s.bin
firmware: rt2561.bin
description: Ralink RT61 PCI & PCMCIA Wireless LAN driver.
version: 2.2.3
author: http://rt2x00.serialmonkey.com
srcversion: E8C0D3A4B7F36984638CEDF
alias: pci:v00001814d00000401sv*sd*bc*sc*i*
alias: pci:v00001814d00000302sv*sd*bc*sc*i*
alias: pci:v00001814d00000301sv*sd*bc*sc*i*
depends: rt2x00lib,rt2x00pci,eeprom_93cx6,crc-itu-t
vermagic: 2.6.29.1-desktop-4mnb SMPmod_unloadmodversions 686
parm: nohwcrypt:Disable hardware encryption. (bool)So you can see that Distribution's module (in kernel folder) was loaded. I think root cause of problem is that run of command: "depmod -ae" finds first rt61pci in kernel's folder and then next instance in updates folder is not considered. If I look at output of depmod command:
[root@trencancan compat-wireless-2.6.30-rc4]# grep -i rt61pci
/lib/modules/2.6.29.1-desktop-4mnb/modules.depkernel/drivers/net/wireless/rt2x00/rt61pci.ko.gz:kernel/lib/crc-itu-t.ko.gzkernel/drivers/net/wireless/rt2x00/rt2x00pci.ko.gzkernel/drivers/net/wireless/rt2x00/rt2x00lib.ko.gzkernel/net/rfkill/rfkill.ko.gzkernel/drivers/leds/led-class.ko.gzkernel/net/mac80211/mac80211.ko.gzkernel/net/wireless/cfg80211.ko.gzkernel/drivers/misc/eeprom/eeprom_93cx6.ko.gzQuoted 8 lines
So you may see that rt61pci in
/lib/modules/2.6.29.1-desktop-4mnb/updates/drivers/net/wireless/rt2x00/folder is not considered.Please, how can I workaround this? Or what do I wrong? One solution can be to install all compat-wireless modules into kernel folder instead of updates folder. But then distribution's ones will be overwritten and un-installation will be impossible.
Mandriva may not look for updates/ dir by default. For Ubuntu I still see this respected.
For example on ubuntu I see:
mcgrof@tesla $ cat
/etc/depmod.d/ubuntu.conf
search updates ubuntu built-inCan you check your
/etc/depmod.d/directory or/etc/depmod.conffile?Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 lines · On Mon, May 18, 2009 at 11:07 AM, <[email protected]> wrote:
Hello,
I used "search updates" in depmod.d and it works, perfect.
You want to also add the "built-in" anyway delete that file and try todays' compat-wireless, I added a quick script to check for this and it adds a file for you if it doesn't detect updates/ as a preference.
So
rm -rf updates/
sudo depmod -ae
modprobe -l mac80211
to check that you are seeing the old mac80211, then install the new stuff and ensure it does it all automatically for you now.
v2.6.30-rc6-23952-g30cf869
wireless-testing latest tag:
master-2009-05-18
This is compat-release:
master-2009-05-18-1-gf28a634
Luis