Can't find a device to configure after installing driver

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

drhex

15-01-2008 11:12:26

I've installed the 2008011411 CVS version of your rt61 kernel module

>lsmod | grep rt61
rt61 210568 0

I was expecting to now have access to a "wlan0" device to configure, but
the output of [b32808f8k]ifconfig -a[/b32808f8k] and [b32808f8k]iwconfig[/b32808f8k] only mentions "lo" and "eth0" and

>ifconfig wlan0 up
wlan0 ERROR while getting interface flags No such device

The card is a Cnet CWP-854 with a chip clearly labeled RT2561T.
Comparing the output of lspci before and after inserting the card in a PCI slot indicates that the card is represented by this line

0506.0 Non-VGA unclassified device Gammagraphx, Inc. Unknown device 0302

(which worries me a bit since others seems to get Ralink instead of Gammagraphx)

This line, generated by the kernel during boot and retrieved with dmesg might also be relevant

PCI 00000506.0 class 302 doesn't match header type 02. Ignoring class.

Running Ubuntu 7.10 kernel 2.6.22-14.

Tried KWifiManager in KDE, It shows a picture of a card with a red cross over it, so I suppose it also finds nothing to configure.

Spy84464

22-01-2008 13:49:14

Hello,
What is the output of "dmesg" right after the module as been inserted?

Regards,
Romain

drhex

25-01-2008 10:49:27

Only this line pops up

[code1m9xmfas]rt61 1.1.0 CVS 2008011411 http://rt2x00.serialmonkey.com[/code1m9xmfas]

Spy84464

25-01-2008 10:54:03

Post a debug trace as explained in the TESTING file coming with the driver, it will give us more information to work on.

drhex

25-01-2008 12:04:27

When compiling the module, is claims to be "much too big" and hints that I strip it. I did "strip -g rt61.ko" and it got below the 1Mb limit. I hope this does not destroy the debugging functionality.

After inserting the "make debug" module with "insmod rt61.ko debug=31" I get these lines from dmesg, /var/log/syslog and /var/log/debug

[code3ojy1tb7]rt61 1.1.0 CVS 2008011411 http://rt2x00.serialmonkey.com
rt61: ==> rt61_module_init[/code3ojy1tb7]

>modinfo rt61.ko

[code3ojy1tb7]filename: rt61.ko
license: GPL
description: Ralink RT61 802.11abg WLAN Driver 1.1.0 CVS 2008011411
author: http://rt2x00.serialmonkey.com
srcversion: 954FB6E426B50E56367AD9B
alias: pci:v00001814d00000401sv*sd*bc*sc*i*
alias: pci:v00001814d00000302sv*sd*bc*sc*i*
alias: pci:v00001814d00000301sv*sd*bc*sc*i*
depends:
vermagic: 2.6.22-14-generic SMP mod_unload 586
parm: debug:Debug mask: n selects filter, 0 for none (int)
parm: ifname:Network device name (default wlan%d) (charp)
[/code3ojy1tb7]

Could SMP be the problem? The CPU is single-core.

Spy84464

27-01-2008 10:33:19

Hmm, I'm starting to seriously doubt you have a Ralink card. It could be a *Realtech* one, since this manufacturer also label some of its chipset 256X, we don't provide driver for these.

IvD

27-01-2008 11:24:54

What does "lspci -n" report?

drhex

27-01-2008 15:49:19

>lspci -nn (complete output, the last line should be relevant for the network card)

[codecmixsws6]00:00.0 Memory controller [0580]: nVidia Corporation CK804 Memory Controller [10de:005e] (rev a3)
00:01.0 ISA bridge [0601]: nVidia Corporation CK804 ISA Bridge [10de:0050] (rev a3)
00:01.1 SMBus [0c05]: nVidia Corporation CK804 SMBus [10de:0052] (rev a2)
00:02.0 USB Controller [0c03]: nVidia Corporation CK804 USB Controller [10de:005a] (rev a2)
00:02.1 USB Controller [0c03]: nVidia Corporation CK804 USB Controller [10de:005b] (rev a3)
00:04.0 Multimedia audio controller [0401]: nVidia Corporation CK804 AC'97 Audio Controller [10de:0059] (rev a2)
00:06.0 IDE interface [0101]: nVidia Corporation CK804 IDE [10de:0053] (rev a2)
00:07.0 IDE interface [0101]: nVidia Corporation CK804 Serial ATA Controller [10de:0054] (rev a3)
00:08.0 IDE interface [0101]: nVidia Corporation CK804 Serial ATA Controller [10de:0055] (rev a3)
00:09.0 PCI bridge [0604]: nVidia Corporation CK804 PCI Bridge [10de:005c] (rev a2)
00:0a.0 Bridge [0680]: nVidia Corporation CK804 Ethernet Controller [10de:0057] (rev a3)
00:0b.0 PCI bridge [0604]: nVidia Corporation CK804 PCIE Bridge [10de:005d] (rev a3)
00:0c.0 PCI bridge [0604]: nVidia Corporation CK804 PCIE Bridge [10de:005d] (rev a3)
00:0d.0 PCI bridge [0604]: nVidia Corporation CK804 PCIE Bridge [10de:005d] (rev a3)
00:0e.0 PCI bridge [0604]: nVidia Corporation CK804 PCIE Bridge [10de:005d] (rev a3)
00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration [1022:1100]
00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map [1022:1101]
00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller [1022:1102]
00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control [1022:1103]
01:00.0 VGA compatible controller [0300]: nVidia Corporation NV43 [GeForce 6600 GT] [10de:0140] (rev a2)
05:06.0 Non-VGA unclassified device [0000]: Gammagraphx, Inc. Unknown device [0000:0302][/codecmixsws6]

>lspci -vvv (for the wireless nework card only)

[codecmixsws6]05:06.0 Non-VGA unclassified device: Gammagraphx, Inc. Unknown device 0302
!!! Invalid class 0000 for header type 02
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66MHz- UDF- FastB2B- ParErr+ DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Region 0: Memory at <ignored> (32-bit, non-prefetchable) [disabled]
Bus: primary=00, secondary=00, subordinate=02, sec-latency=3
Memory window 0: 03020000-03020000 [disabled] (prefetchable)
Memory window 1: 03020000-03020000 [disabled] (prefetchable)
I/O window 0: 00000000-00000003 [disabled]
I/O window 1: 00000000-00000003 [disabled]
BridgeCtl: Parity- SERR+ ISA- VGA- MAbort- >Reset- 16bInt- PostWrite-
[/codecmixsws6]

The logo on the chip suggest it comes from Ralink, as I found a similar logo on www.ralinktech.com. I'm attaching a picture of the card.

IvD

27-01-2008 16:04:36

I see the problem, you indeed have a Ralink device, but it doesn't inform the kernel of that. If you look at the PCI ID
00000302

it tells that it is a rt2561s device, _but_ the problem is that the manufacturer identification is 0 which means that no driver can claim it since no driver can be sure of what it is.

Does this device actually work under windows?

drhex

27-01-2008 19:00:43

The only windows boxes I have access to are laptops and they don't have PCI ports.

Is it possible to override that manufacturer identification with e.g. 1814?

IvD

27-01-2008 19:05:23

Not sure, but it might be possible. You best google to see if other people managed to do it.