Skip to contentSkip to conversation

rt2500pci: Failed to initialize hw. But works with ancient rt2500-1.1.0

DISCUSSION Stefan Bauer 6 participants 11 messages Jul 7, 2008 – Jul 8, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

I'm not able to load rt2500pci from 2.6.26-rc9 under Gentoo. This card currently works under Debian Etch with 2.6.18 kernel and rt2500-source 1.1.0+cvs20060620-3.

lspci -vvvv
Network controller: RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)
Subsystem: RaLink Unknown device 2560
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 185
Region 0: Memory at fba00000 (32-bit, non-prefetchable) [size=8K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

dmesg 2.6.18
PCI: Enabling device 0000:00:0c.0 (0110 -> 0112)
ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 17 (level, low) -> IRQ 185 rt2500 1.1.0 CVS 2005/07/10 http://rt2x00.serialmonkey.com

dmesg 2.6.26-rc9
ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 17 (level, low) -> IRQ 17
phy0: Selected rate control algorithm 'pid'
phy0: Failed to initialize wep
phy0 -> rt2x00lib_probe_dev: Error - Failed to initialize hw.
rt2500pci: probe of 0000:00:0c.0 failed with error -12

.config 2.6.18
precompiled Kernel from Debian

.config 2.6.26-rc9
<http://www-user.tu-chemnitz.de/~stefb/rt2500pci/config>

Next I'm going to test 2.6.24 and 2.6.25 to check whether it's an regression or not.

Regards,
Stefan

#1 lore raw
Quoted 26 lines · Stefan Bauer

Hi,

I'm not able to load rt2500pci from 2.6.26-rc9 under Gentoo. This card currently works under Debian Etch with 2.6.18 kernel and rt2500-source 1.1.0+cvs20060620-3.

lspci -vvvv
Network controller: RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)
Subsystem: RaLink Unknown device 2560
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 185
Region 0: Memory at fba00000 (32-bit, non-prefetchable) [size=8K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

dmesg 2.6.18
PCI: Enabling device 0000:00:0c.0 (0110 -> 0112)
ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 17 (level, low) -> IRQ 185 rt2500 1.1.0 CVS 2005/07/10 http://rt2x00.serialmonkey.com

Quoted 4 lines

dmesg 2.6.26-rc9
ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 17 (level, low) -> IRQ 17
phy0: Selected rate control algorithm 'pid'
phy0: Failed to initialize wep

Check if the arc4 and ecb modules are loaded before loading mac80211 & rt2500pci.

Ivo

#2 lore raw
Quoted 3 lines · Ivo van Doorn

Check if the arc4 and ecb modules are loaded before loading mac80211 & rt2500pci.

Ivo

Shouldn't we make mac80211 depend on arc4 and ecb?

Signature · 1 line
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
#3 lore raw
Quoted 1 line · On Monday 07 July 2008, Stefanik G=E1bor wrote:

On Mon, Jul 7, 2008 at 11:08 PM, Ivo van Doorn <[email protected]> wr=

ote:

Quoted 1 line
Quoted 1 line

Check if the arc4 and ecb modules are loaded before loading mac8021=

1 & rt2500pci.

Quoted 4 lines
Quoted 2 lines

Ivo

=20
Shouldn't we make mac80211 depend on arc4 and ecb?

They do depend on those modules, but for some reason they are not always automatically loaded when the mac80211 module is loaded.

Ivo
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
In reply to Ivo van Doorn
Quoted 7 lines · On Monday 07 July 2008 23:08:57 you wrote:
Quoted 4 lines

dmesg 2.6.26-rc9
ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 17 (level, low) -> IRQ 17
phy0: Selected rate control algorithm 'pid'
phy0: Failed to initialize wep

Check if the arc4 and ecb modules are loaded before loading mac80211 & rt2500pci.

They weren't, but loading them before doesn't make any difference. I've to add that I don't use wep, this WLAN is open.

Regards,
Stefan

#8 lore raw
In reply to Stefan Bauer

Am Montag, 7. Juli 2008 schrieb Stefan Bauer:

Quoted 7 lines

dmesg 2.6.26-rc9
ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 17 (level, low) -> IRQ 17
phy0: Selected rate control algorithm 'pid'
phy0: Failed to initialize wep
phy0 -> rt2x00lib_probe_dev: Error - Failed to initialize hw.
rt2500pci: probe of 0000:00:0c.0 failed with error -12

Quoted 5 lines

.config 2.6.26-rc9
<http://www-user.tu-chemnitz.de/~stefb/rt2500pci/config>

Next I'm going to test 2.6.24 and 2.6.25 to check whether it's an regression or not.

Same problem with 2.6.24.7, I'll skip 2.6.25.

Regards, Stefan

#9 lore raw
Quoted 9 lines · Stefan Bauer

Am Montag, 7. Juli 2008 schrieb Stefan Bauer:

Quoted 7 lines

dmesg 2.6.26-rc9
ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 17 (level, low) -> IRQ 17
phy0: Selected rate control algorithm 'pid'
phy0: Failed to initialize wep
phy0 -> rt2x00lib_probe_dev: Error - Failed to initialize hw.
rt2500pci: probe of 0000:00:0c.0 failed with error -12

Quoted 7 lines
Quoted 5 lines

.config 2.6.26-rc9
<http://www-user.tu-chemnitz.de/~stefb/rt2500pci/config>

Next I'm going to test 2.6.24 and 2.6.25 to check whether it's an regression or not.

Same problem with 2.6.24.7, I'll skip 2.6.25.

What happens when you compile ecb and arc4 into the kernel instead as seperate modules?

Ivo

#10 lore raw

Am Montag, 7. Juli 2008 schrieb Ivo van Doorn:

Quoted 2 lines

What happens when you compile ecb and arc4 into the kernel instead as seperate modules?

Then it works. Thanks a lot. The new .config can be found here:
<http://www-user.tu-chemnitz.de/~stefb/rt2500pci/config_works>

But I think it's a bug, nevertheless. If there are any patches to test I'll give them a try.

Regards, Stefan

#4 lore raw
In reply to Ivo van Doorn

On Tue, Jul 8, 2008 at 12:19 AM, Ivo van Doorn <[email protected]> wrot= e:

Quoted 2 lines · On Monday 07 July 2008, Stefanik G=E1bor wrote:
Quoted 1 line

On Mon, Jul 7, 2008 at 11:08 PM, Ivo van Doorn <[email protected]> w=

rote:

Quoted 1 line
Quoted 1 line
Quoted 1 line

Check if the arc4 and ecb modules are loaded before loading mac802=

11 & rt2500pci.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Ivo

Shouldn't we make mac80211 depend on arc4 and ecb?

They do depend on those modules, but for some reason they are not always automatically loaded when the mac80211 module is loade=

d.

This is bug is reported very often mostly on ubuntu based distoros. There is no linkage dependency so it doesn't produce entry in the depmod.
mac should somehow request these modules dynamically. If I understand correctly is not so straight forward since there might be alternative hw acceleration modules for these modules.

Thanks
Tomas
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
In reply to Stefan Bauer

Am Montag, 7. Juli 2008 schrieb Stefan Bauer:

Quoted 5 lines · On Monday 07 July 2008 23:08:57 Ivo van Doorn wrote:
Quoted 2 lines

Check if the arc4 and ecb modules are loaded before loading mac80211 & rt2500pci.

They weren't, but loading them before doesn't make any difference.

I've checked this again. If I unload all wireless stuff, then modprobe *every* module in .../kernel/crypto/ it works. Both 2.6.24.7 and 2.6.26-rc9 load the driver and create an interface.
(2.6.24.7 isn't able to iwlist scan or associate, but that seems to be an old fixed issue.)

So it seems to me it isn't really a bug, more likely kind of inconvenience.

Again thanks for your help!
Stefan

#5 lore raw
In reply to Tomas Winkler
Quoted 5 lines

This is bug is reported very often mostly on ubuntu based distoros. There is no linkage dependency so it doesn't produce entry in the depmod.
mac should somehow request these modules dynamically.

Wouldn't help. Bug reporter has a broken config with CONFIG_KMOD unset.

johannes