LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Wireless-N USB Adapter-How to build the right driver-On Fedora 17 kernel:3.5.1-1.fc17 (https://www.linuxquestions.org/questions/linux-wireless-networking-41/wireless-n-usb-adapter-how-to-build-the-right-driver-on-fedora-17-kernel-3-5-1-1-fc17-4175422258/)

Mes9 08-15-2012 03:27 PM

Wireless-N USB Adapter-How to build the right driver-On Fedora 17 kernel:3.5.1-1.fc17
 
Hi I am currently running Fedora 17, kernel 3.5.1-1.fc17 and I need to build/install the driver for my wireless. The driver which came with the adapter is for kernel 2.6, and I asume that this is the cause for it not building with make.

I've tried to install both RT2870 and RT3070 which came with the wireless-adapter but neither will build.

I havent found any postings to explain how I should do this.

abrinister 08-16-2012 11:01 PM

According to here, the drivers you are looking for are already in the kernel. Your card should work by default. If not, then you can try

Code:

su -c 'modprobe rt2870'

OR

su -c 'modprobe rt3070'

Alex Brinister

Mes9 08-17-2012 04:26 PM

Code:

sudo yum install *rt3070*
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora: www.fedora.is
 * rpmfusion-free: www.fedora.is
 * rpmfusion-free-updates: www.fedora.is
 * rpmfusion-nonfree: www.fedora.is
 * rpmfusion-nonfree-updates: www.fedora.is
 * updates: www.fedora.is
Package kcbench-data-2.6.38-0.1-9.fc17.noarch already installed and latest version
Package linux-firmware-20120510-0.3.git375e954.fc17.noarch already installed and latest version

? same result as sudo yum install *rt2870*

Code:

~]$ lsusb
Bus 001 Device 003: ID 148f:3072 Ralink Technology, Corp. RT3072 Wireless Adapter
Bus 006 Device 002: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub



I tried to build the rpms
Code:

rpm -ivh /*/*/*/*rt2870*.rpm
warning: /proc/10563/cwd/rt2870-2.1.2.0-2.fc9.src.rpm: Header V3 DSA/SHA1 Signature, key ID 49c8885a: NOKEY
  1:rt2870                warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
########################################### [100%]
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
  2:rt2870-kmod            warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
########################################### [100%]
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
  3:rt2870                warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
########################################### [100%]
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
  4:rt2870-kmod            warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
########################################### [100%]
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
  5:rt2870                warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
########################################### [100%]
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
  6:rt2870-kmod            warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
########################################### [100%]
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root

produces no output:
Code:

      du -a /lib/modules/`uname -r`|grep 2860
      du -a /lib/modules/`uname -r`|grep 2870
      du -a /lib/modules/`uname -r`|grep 3070

Code:

su -c 'modprobe rt2870'
Password:
FATAL: Module rt2870 not found.

Code:

su -c 'modprobe rt3070'
Password:
FATAL: Module rt3070 not found.


abrinister 08-17-2012 08:05 PM

Look at this webpage. It tells you what you must do.

Alex Brinister

Mes9 08-18-2012 12:28 PM

Hey man. It says that only rt2870usb will build in kernel version over 3.0, and I cant find it anywhere. Then that would be my only chance of using this hardware. I do remember seeing the rt2870usb somewhere so I'll do a search for it.

abrinister 08-18-2012 12:51 PM

Are you familiar with rebuilding a kernel? You can actually check if the module is built into your kernel by doing this:

Code:

zcat /proc/config.gz | grep RT2800USB
If nothing comes back, then you need to reconfigure your kernel and rebuild it.

Alex Brinister

Mes9 08-19-2012 05:04 PM

No output. I'll look into what I can do with the kernel.

abrinister 08-19-2012 11:07 PM

I actually spelled /proc wrong in the code snippet of my last post. It is fixed now. Maybe you can rerun that (unless you were smart enough to figure out what I meant).

Alex Brinister

Mes9 08-21-2012 03:35 PM

I tried both. Does that count:)

abrinister 08-21-2012 09:50 PM

Okay. That means you will have to build a custom kernel (I don't know why Fedora doesn't enable the config.gz option in the kernel confg). Here is a link to the Fedora instructions on how to do this.

Alex Brinister

Mes9 08-27-2012 04:16 PM

I've been digging for this, and I've built the kernel. On the kernel config page the drivers are set to be modules. I don't know what that means but they don't show up anywhere. The kernel was just the previous kernel rebuilt. I havn't figured out how to patch the kernel yet. Havent found much about the drivers for newer kernels either.

If this is possible I should be able to find it. Else I need to find me a more linux friendly hardware.

abrinister 08-27-2012 04:20 PM

Did you enable /proc/config.gz support?

Alex Brinister

Mes9 09-15-2012 10:57 AM

Yay Thread Solved
 
Quote:

Originally Posted by abrinister (Post 4756308)
According to here, the drivers you are looking for are already in the kernel. Your card should work by default. If not, then you can try

Code:

su -c 'modprobe rt2870'

OR

su -c 'modprobe rt3070'

Alex Brinister

as root run
Code:

modprobe rt2800usb
And authenticate wireless in wireless assistant(I don't know the name of the program but it's the manager which resides in the top right corner. Where wired and wireless connections are.

Valent 06-13-2013 05:15 AM

Hi, I downloaded latest Ralink driver and compiled it from their webpage: http://www.mediatek.com/_en/07_downl...ows.php?sn=501

After installing them and loading via "modprobe rt5370sta" I get ra0 wireless interface, but it looks it still doesn't work, networkmanager isn't showing anything.

This guy has solved it:
http://www.geekamole.com/2013/rt2800...-gentoo-linux/

But I'm not sure is this a bug in kernel driver or is this usb device wrongly presenting itself to the system?

Mes9 06-29-2013 01:21 PM

Quote:

Originally Posted by Valent (Post 4970889)
Hi, I downloaded latest Ralink driver and compiled it from their webpage: http://www.mediatek.com/_en/07_downl...ows.php?sn=501

After installing them and loading via "modprobe rt5370sta" I get ra0 wireless interface, but it looks it still doesn't work, networkmanager isn't showing anything.

This guy has solved it:
http://www.geekamole.com/2013/rt2800...-gentoo-linux/

But I'm not sure is this a bug in kernel driver or is this usb device wrongly presenting itself to the system?

Sorry Valent, I'm totally novice linux user and don't know the answer to your question.


All times are GMT -5. The time now is 10:12 PM.