Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] PCI + RaLink problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Danger7789
n00b
n00b


Joined: 18 Feb 2008
Posts: 12

PostPosted: Fri Sep 19, 2008 12:05 am    Post subject: [SOLVED] PCI + RaLink problem Reply with quote

So i bought a Linksys WMP54G wireless card for my desktop because the current one built into the motherboard has been dieing on both windows and linux, but this new card has been causing more confusion because of the following problem.

lspci does NOT report the card correctly (see output commands below). what could be causing this? when i connected the device a new interface was created called eth1, as apposed to what most people get ra0. and eth1 show as having no wireless extensions.

according to dmesg the eth1 interface is using sky2 as the kernel driver and not the relevant ralink drivers ... plus if i do a verbose output of lspci i find that the device using sky2 is listed but it's information is incorrect ...

a few more things to note about my system. I'm running a 2.6.26-gentoo-r1 kernel. the pci-slot is not malfunctioning (i've tried two slots, and both work as my sound cards works fine in them). i also had trouble trying to get the device to work on windows, it would not install drivers for it automatically so i installed the ones from the CD but windows refuses to use the drivers for the card ... (might also be miss identifying it)

a few things i've tried ... compiling all ralink entries into the kernel did not help. removing entries from the kernel that make the onboard wireless work also did not help (thought maybe there is collision of some kind ...?). i have not tried the card in another computer, but that's next on the list of things to try ....

so basically at this point i believe the card is messed up and i'll be returning it next week unless someone comes up with a brilliant solution.

thanks for any ideas,
Patrik

lspci:
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82P965/G965 PCI Express Root Port (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 02)
00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801HR/HO/HH (ICH8R/DO/DH) 6 port SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation Device 0611 (rev a2)
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
03:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02)
03:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02)
05:00.0 Multimedia audio controller: Creative Labs SB X-Fi
05:03.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
05:04.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 14)


iwconfig:
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11  ESSID:"TrucksManticore"
          Mode:Managed  Frequency:2.447 GHz  Access Point: 00:03:2F:39:28:3A
          Bit Rate=11 Mb/s   Tx-Power=27 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Link Quality=50/64  Signal level=26/65
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


ifconfig -a:
eth0      Link encap:Ethernet  HWaddr 00:18:f3:4a:18:7c
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:15

eth1      Link encap:Ethernet  HWaddr 00:18:f3:4a:1a:ad
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:10

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:15:af:08:a3:48
          inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2941 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1704 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1533381 (1.4 MiB)  TX bytes:347981 (339.8 KiB)

wmaster0  Link encap:UNSPEC  HWaddr 00-15-AF-08-A3-48-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


some relevant dmesg output
dmesg:
ACPI: PCI Interrupt 0000:05:04.0[A] -> Link [LNKD] -> GSI 15 (level, low) -> IRQ 15
skge 1.13 addr 0xfeaf4000 irq 15 chip Yukon-Lite rev 9
skge eth0: addr 00:18:f3:4a:18:7c
ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [LNKB] -> GSI 10 (level, low) -> IRQ 10
PCI: Setting latency timer of device 0000:02:00.0 to 64
sky2 0000:02:00.0: v1.21 addr 0xf64fc000 irq 10 Yukon-EC Ultra (0xb4) rev 2
sky2 eth1: addr 00:18:f3:4a:1a:ad


some relevant verbose lspci output
lspci -v:
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
        Subsystem: SysKonnect Device 4340
        Flags: bus master, fast devsel, latency 0, IRQ 10
        Memory at f64fc000 (64-bit, non-prefetchable) [size=16K]
        I/O ports at a800 [size=256]
        Expansion ROM at f64c0000 [disabled] [size=128K]
        Capabilities: [48] Power Management version 3
        Capabilities: [50] Vital Product Data <?>
        Capabilities: [5c] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
        Capabilities: [e0] Express Legacy Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting <?>
        Kernel driver in use: sky2


some relevant kernel settings
.config:
CONFIG_WIRELESS_EXT=y
CONFIG_MAC80211=y

...

CONFIG_RT2X00=y
CONFIG_RT2X00_LIB=y
CONFIG_RT2X00_LIB_PCI=y
CONFIG_RT2X00_LIB_RFKILL=y
# CONFIG_RT2400PCI is not set
CONFIG_RT2500PCI=y
CONFIG_RT2500PCI_RFKILL=y
# CONFIG_RT61PCI is not set
# CONFIG_RT2500USB is not set
# CONFIG_RT73USB is not set
CONFIG_RT2X00_DEBUG=y


Last edited by Danger7789 on Wed Sep 24, 2008 1:48 am; edited 1 time in total
Back to top
View user's profile Send private message
username234
Guru
Guru


Joined: 09 May 2007
Posts: 332

PostPosted: Fri Sep 19, 2008 3:37 am    Post subject: Reply with quote

First run update-pciids as root (or use sudo) This will correct any missing / outdated / wrong text strings with lspci.

Also could you verify that your mainboard is the Asus P5B Deluxe/WiFi-AP?
_________________
Creating usernames when you're
in a creative slump is a bad idea
because if you are when you do
then you end up with uninspiring
alphanumeric cocktails like the
one directly above.
Back to top
View user's profile Send private message
Danger7789
n00b
n00b


Joined: 18 Feb 2008
Posts: 12

PostPosted: Fri Sep 19, 2008 12:34 pm    Post subject: Reply with quote

Seems i forgot to post my motherboard information. Yes, you'd be correct, i have a Asus P5B Deluxe WiFi-AP edition motherboard. any other information i forgot to include?

update-pciids has had no effect on any of the data i posted above. i did a system reboot just to make sure it didn't need one, still nothing. good idea though, i forgot about that command.

Patrik
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9892
Location: almost Mile High in the USA

PostPosted: Fri Sep 19, 2008 6:54 pm    Post subject: Reply with quote

I had a Tekram P6B40D (or something like that) Dual Slot-1 440BX motherboard. It does _NOT_ like PCI2.2 and newer cards that depend on 3.3V available on the bus, and all these PCI cards will not even enumerate (thus won't even show up in lspci). Unfortunately I have no solution to this other than buying a new motherboard, which is (sort of) what I did.

Failed cards in my Tekram Dual slot-1 board:
A D-Link DWL620 wireless card
A noname Realtek 8169 Gbit ethernet card

So far this is the only board I have used, short of some really ancient P5 boards that have issues with PCI2.2 boards. Even a 440LX board I have can use them. Check your board for PCI compliance.

(Granted a new board like the P5B should be well past the issue, but may want to make sure... or possibly swap motherboards. Does BIOS report the card upon startup?) Make sure the card is plugged in correctly?

(woah... is this really my 1000th non OTW post?)
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
username234
Guru
Guru


Joined: 09 May 2007
Posts: 332

PostPosted: Sat Sep 20, 2008 3:37 am    Post subject: Reply with quote

some other things to try:

check for bios updates for your mainboard (note: this is risky, so get local help if you're uneasy about upgrading the bios)
check for the wifi card using lshw it show more than lspci, and it might find it.
if there is room, try the wifi card in PCI slot 1
try the card in another computer if it fails in there, then it's probably bad like you suspected.

and in clarification:

Your eth1 controller is your secondary ethernet controller (your board has two), so if it appeared recently I'd say it somehow got enabled in your bios, and even if you get the card working it may come up as wlan1 instead of Ra0, I'm not sure what name the kernel RT61 drivers assign the card to(never used them).
_________________
Creating usernames when you're
in a creative slump is a bad idea
because if you are when you do
then you end up with uninspiring
alphanumeric cocktails like the
one directly above.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9892
Location: almost Mile High in the USA

PostPosted: Sat Sep 20, 2008 9:57 am    Post subject: Reply with quote

I think the in-kernel driver reports as ethX for ralink if I recall correctly (the board isn't installed at the moment), but, there's no wireless extensions visible when iwconfig is run--something strange going on here. But either way, it's not a good sign when lspci doesn't show the card, it should come up with a ralink device -- mine certainly does, even if the firmware is not loaded yet.

Might also want to check BIOS options for PCI. Double check the board listing if you have Award or AMI bios, I think both of these show a list of all your cards when you start up).

My RaLink card is Belkin-branded...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Danger7789
n00b
n00b


Joined: 18 Feb 2008
Posts: 12

PostPosted: Sat Sep 20, 2008 5:25 pm    Post subject: Reply with quote

well it's working now! turns out it was just loss ... even though i initially tried it in tow different ports before posting this. gah i feel silly. and now to clarify a few things for anyone that might read this in the future ....

the device was NOT being miss identified. it turns out that like username234 said the computer just happened to start detecting my motherboards secondary ethernet controller (cable/ not wi-fi). and this is the device that started to show up in lspci and such.

and yes when i got it to work it showed up as wlan1. i was going to change everything to wlan1 but decided to swap the devices in the /etc/udev/rules.d/70-persistent-net.rules to make things easier. plus i've got the old wireless compiled as a module just in case ...

another road block i can across was getting a "SIOCSIFFLAGS: File not found". looking at dmesg i so it wanted rt2561s.bin firmware so i downloaded the driver package from the ralink site and copied the file from there package to /lib/firmware and everything works wonderfully now.

thanks for the ideas,
Danger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum