LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Railink 539b works on some distros but not others why? (http://www.linuxquestions.org/questions/linux-networking-3/railink-539b-works-on-some-distros-but-not-others-why-4175463071/)

skilo47 05-22-2013 07:26 PM

Railink 539b works on some distros but not others why?
 
So my hp laptop has a railink wireless card in it and i have tried a lot of distros but only crunch bang properly detects my wifi card, Why is that? Is there something special crunch bang does at boot that the other distros do not do? Crunch bang even uses and older kernal (3.2.04) than ubuntu and opensuse but they don't detect my card, Why is this?

Under crunch bang i ran lspci and it tells me this below

Code:

crunchbang@crunchbang:~$ lspci -vv -s 01:00.0
01:00.0 Network controller: Ralink corp. Device 539b
        Subsystem: Hewlett-Packard Company Device 18ed
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at 52500000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: rt2800pci

How can i get other distros to use the rt2800pci driver?

camorri 05-24-2013 09:34 AM

You need two things to make that card work. The kernel module, and the firmware.

From running modinfo on my system...

Quote:

sudo /sbin/modinfo /lib/modules/3.2.29/kernel/drivers/net/wireless/rt2x00/rt2800pci.ko
filename: /lib/modules/3.2.29/kernel/drivers/net/wireless/rt2x00/rt2800pci.ko
license: GPL
firmware: rt2860.bin
description: Ralink RT2800 PCI & PCMCIA Wireless LAN driver.
version: 2.3.0
The kernel module is rt2800pci and the firmware is rt2860.bin. The firmware on my system is located at /lib/firmware/rt2860.bin.

273 05-24-2013 12:32 PM

On Ubuntu you can probably install firmware-ralink form the repositories -- you may need to tick a box to use non-free ones before you see it though.

skilo47 05-24-2013 06:05 PM

How do i go about installing it in ubuntu?

I tried doing - modprobe rt2800pci and it didn't give me any errors but nothing happened either.

Do i need to download that firmware bin file?

273 05-24-2013 06:10 PM

You should just be able to apt-get install firmware-ralink -- but I would expect Ubuntu's "Jockey" to tell you that non-free drivers were available.

skilo47 05-24-2013 06:15 PM

Quote:

Originally Posted by 273 (Post 4958411)
You should just be able to apt-get install firmware-ralink -- but I would expect Ubuntu's "Jockey" to tell you that non-free drivers were available.

Would it be the same process with debian 7?

I find it so odd that the newest version of ubuntu (13.04) doesn't have the firmware preinstalled but a distro like crunchbang witch is based on debian (wich has never been a distro known for being cutting edge) does. Just.... weird.

273 05-24-2013 06:28 PM

It would be in the non-free repositories of Debian since it is not free, for example: http://packages.debian.org/wheezy/firmware-ralink

skilo47 05-26-2013 11:08 AM

I decided to go with ubuntu 12.04 but i still cannot find any ralink-firmware, I checked synaptic for ralink and rt2800pci and it didn't show anything.

THe only thing i found online is a git page with a bunch of directories, I do not know how to use git, I just need a simple binary to install.

Here is the git thingy - http://git.kernel.org/cgit/linux/ker...x-firmware.git

273 05-26-2013 11:40 AM

I just checked it out in a VM and I can't find the firmware in Ubuntu either. I could comment about Ubuntu and user-friendliness at this point but I'll keep it to myself.
Since the Debian package has no dependencies you could probably download the .deb from http://packages.debian.org/jessie/firmware-ralink and install it. If it works then great and if it doesn't you just have to apt-get remove it.

skilo47 05-26-2013 02:17 PM

Quote:

Originally Posted by 273 (Post 4959253)
I just checked it out in a VM and I can't find the firmware in Ubuntu either. I could comment about Ubuntu and user-friendliness at this point but I'll keep it to myself.
Since the Debian package has no dependencies you could probably download the .deb from http://packages.debian.org/jessie/firmware-ralink and install it. If it works then great and if it doesn't you just have to apt-get remove it.

Well i gave that a try and this is what happened.

Code:

skilo@HP-2000-Notebook-PC:~/Downloads$ sudo dpkg -i *.deb
[sudo] password for skilo:
Selecting previously unselected package firmware-ralink.
(Reading database ... 169014 files and directories currently installed.)
Unpacking firmware-ralink (from firmware-ralink_0.38_all.deb) ...
dpkg: error processing firmware-ralink_0.38_all.deb (--install):
 trying to overwrite '/lib/firmware/rt3290.bin', which is also in package linux-firmware 1.79.4
Errors were encountered while processing:
 firmware-ralink_0.38_all.deb


273 05-26-2013 02:26 PM

Ah, so it looks like you have the firmware already.
Did you check under System Settings, Software & Updates on the Additional Drivers tab?

skilo47 05-26-2013 02:36 PM

Quote:

Originally Posted by 273 (Post 4959335)
Ah, so it looks like you have the firmware already.
Did you check under System Settings, Software & Updates on the Additional Drivers tab?

Yes, It just says "NO proprietary drivers are in use on this system"

273 05-26-2013 02:42 PM

... and the output of lspci on Ubuntu isn't the same as on crunchbang?
This is starting to sound a lot like a bug with Ubuntu -- I just realised I've been using the same driver on Debian all this time without any issues.
Code:

lspci -vv -s 01:00.0
01:00.0 Network controller: Ralink corp. RT2790 Wireless 802.11n 1T/2R PCIe
        Subsystem: Ralink corp. Device 2790
        Physical Slot: eeepc-wifi
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 19
        Region 0: Memory at fbef0000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: rt2800pci


skilo47 05-26-2013 02:48 PM

Quote:

Originally Posted by 273 (Post 4959342)
... and the output of lspci on Ubuntu isn't the same as on crunchbang?
This is starting to sound a lot like a bug with Ubuntu -- I just realised I've been using the same driver on Debian all this time without any issues.
Code:

lspci -vv -s 01:00.0
01:00.0 Network controller: Ralink corp. RT2790 Wireless 802.11n 1T/2R PCIe
        Subsystem: Ralink corp. Device 2790
        Physical Slot: eeepc-wifi
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 19
        Region 0: Memory at fbef0000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: rt2800pci


Here is the lspci output on ubuntu 12.04

Code:

skilo@HP-2000-Notebook-PC:~$ lspci -vv -s 01:00.0
01:00.0 Network controller: Ralink corp. Device 539b
        Subsystem: Hewlett-Packard Company Device 18ed
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 7
        Region 0: Memory at 52500000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: <access denied>

Basically it recognizes that there is a network card there but there is no driver in use for it.

skilo47 05-26-2013 06:36 PM

I ran modprobe -l and it shows that the module is there.

Quote:

kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko
kernel/drivers/net/wireless/rt2x00/rt2x00pci.ko
kernel/drivers/net/wireless/rt2x00/rt2x00usb.ko
kernel/drivers/net/wireless/rt2x00/rt2800lib.ko
kernel/drivers/net/wireless/rt2x00/rt2400pci.ko
kernel/drivers/net/wireless/rt2x00/rt2500pci.ko
kernel/drivers/net/wireless/rt2x00/rt61pci.ko
kernel/drivers/net/wireless/rt2x00/rt2800pci.ko
kernel/drivers/net/wireless/rt2x00/rt2500usb.ko
kernel/drivers/net/wireless/rt2x00/rt73usb.ko
kernel/drivers/net/wireless/rt2x00/rt2800usb.ko
I tried doing "sudo modprobe rt2800pci" and nothing happens.

I looked in /lib/firmware and found these firmwares below:

Quote:

rt2561.bin
rt2561s.bin
rt2661.bin
rt2860.bin
rt2870.bin
rt3070.bin
rt3071.bin
rt3090.bin
rt3290.bin
rt73.bin


All times are GMT -5. The time now is 02:35 AM.