[SOLVED]Having a bit of trouble with driver compile

Questions about WIFI networks and devices
Forum rules
Before you post please read this

[SOLVED]Having a bit of trouble with driver compile

Postby JadElClemens on Mon Apr 23, 2012 9:19 pm

I fixed my issue after reading the beginnings of the Ubuntu thread, thanks guys! My wireless card is working swell now!

Instead of Compat-wireless, I've been told to just compile my driver. I've removed most vestiges of the previous post in order to simplify this and immediately point to my current goal.

Hello! I posted a while back about my wireless card problems and never really received any help.
Short story: my wireless card is detected but won't detect any networks and won't connect to the networks when I manually provide their details.
My wireless card is the RNX-N150PCx, currently running driver rt2800pci (the chipset is RT3060).
My kernel version is 3.0.0-12-generic.

I tried to compile my driver (first with chipset 3060, then 3062).
The first result is here:
http://pastebin.com/i4EYsGb8
I believe the reason is that the drivers aren't present for chipset 3060, as well as there not being a makefile for chipset 3060 (as far as I can tell).
Seeing as this was the suggested driver specifically for my wireless card, I'd have to assume the closest supported driver would be the one that would work: 3062
The result from make with chipset 3062 specified in the makefile is here (loads longer):
http://pastebin.com/eRa5muM3
Seeing as it runs for a lot longer and seems to do everything it needs to, I'd say the first set of errors are from 3060 not being supported, although this gives errors as well (albeit file creation errors).

I tried this again with sudo make and it didn't seem to give any errors, but when I moved onto the next step of the driver readme, it didn't seem to work. I'm thinking this is because I may be pointing to the wrong directory. Here's the paste:
http://pastebin.com/FbnwAvQ7

To clear some things up, the WirelessDriver folder on my desktop are the contents of this driver package. (The download labeled "RT3062PCI/mPCI/CB/PCIe(RT3060/RT3062/RT3562/RT3592" here
Last edited by JadElClemens on Wed Apr 25, 2012 7:57 pm, edited 4 times in total.
As of 31-1-2012: Prepared to be a Mint user
Image
User avatar
JadElClemens
Level 1
Level 1
 
Posts: 23
Joined: Mon Jan 30, 2012 11:24 pm

Linux Mint is funded by ads and donations.
 

Re: What version of Compat-wireless?

Postby remoulder on Tue Apr 24, 2012 7:04 am

[Edit] your original post and add [SOLVED] once your question is resolved.

“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
User avatar
remoulder
Level 17
Level 17
 
Posts: 7674
Joined: Fri May 09, 2008 1:14 pm

Re: What version of Compat-wireless?

Postby AlbertP on Tue Apr 24, 2012 8:40 am

The driver from Ralink's website is not rt2800pci. That their driver is compatible with kernel 2.4/2.6 does not mean that it is part of those kernels. It is a driver to be installed on old kernels that don't yet have rt2800pci support for your chip or in case rt2800pci does not work. (Edit: it does not mean that the driver is incompatible with 3.0, probably Ralink just haven't updated the page after the release of Linux 3.0.)
So downgrading the kernel does not make much sense.

Any kernel version later than your installed kernel will upgrade the drivers. So you can take 3.1, 3.2, 3.3 or 3.4-rc though the latter is a release candidate kernel and not yet stable. you can also try the very latest (aka bleeding edge) code (that may introduce bugs!) from http://linuxwireless.org/en/users/Downl ... he_tarball.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 15
Level 15
 
Posts: 5854
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: What version of Compat-wireless?

Postby JadElClemens on Tue Apr 24, 2012 5:23 pm

I'm on my phone and can't quote right now, so I'll refer to you as poster 1 and poster 2. To poster 1: that looks like it'll be great, but the guy never even resolved his issue. I know it /should/ work for me, but that doesn't make me feel any better about it. Poster 2: I asked the same tech forum I talked about in my post and they, too, suggested that I just build the driver. I assume I already have kernel headers (there's a directory for them), so I'll tell you what happens when I get there. Hopefully this works, as Windows is really starting to anger me.
As of 31-1-2012: Prepared to be a Mint user
Image
User avatar
JadElClemens
Level 1
Level 1
 
Posts: 23
Joined: Mon Jan 30, 2012 11:24 pm

Re: Having a bit of trouble with driver compile

Postby JadElClemens on Tue Apr 24, 2012 11:16 pm

New information:
I tried to compile my driver (first with chipset 3060, then 3062).
The first result is here:
http://pastebin.com/i4EYsGb8
I believe the reason is that the drivers aren't present for chipset 3060.
Seeing as this was the suggested driver specifically for my wireless card, I'd have to assume the closest supported driver would be the one that would work: 3062
The result from make with chipset 3062 specified in the makefile is here (loads longer):
http://pastebin.com/eRa5muM3
Seeing as it runs for a lot longer and seems to do everything it needs to, I'd say the first set of errors are from 3060 not being supported, although this gives errors as well (albeit file creation errors).

To clear some things up, the WirelessDriver folder on my desktop are the contents of this driver package. (The download labeled "RT3062PCI/mPCI/CB/PCIe(RT3060/RT3062/RT3562/RT3592" here

Also, would it be wise to install the firmware for my card, also located on the linux support page?

Also included in the first post.
As of 31-1-2012: Prepared to be a Mint user
Image
User avatar
JadElClemens
Level 1
Level 1
 
Posts: 23
Joined: Mon Jan 30, 2012 11:24 pm

Re: Having a bit of trouble with driver compile

Postby AlbertP on Wed Apr 25, 2012 3:13 am

@JadElClemens: What you are compiling in these pastes is not compat-wireless but ralink's own driver. Please try "bleeding edge" compat-wireless to get the very latest code, which often helps solving driver problems.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 15
Level 15
 
Posts: 5854
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Having a bit of trouble with driver compile

Postby JadElClemens on Wed Apr 25, 2012 8:25 am

AlbertP wrote:@JadElClemens: What you are compiling in these pastes is not compat-wireless but ralink's own driver. Please try "bleeding edge" compat-wireless to get the very latest code, which often helps solving driver problems.

I understand that I'm compiling ralink's driver. Recently that's been the suggested course of action for me, so I'm going to attempt to compile the driver before trying compat-wireless.
As of 31-1-2012: Prepared to be a Mint user
Image
User avatar
JadElClemens
Level 1
Level 1
 
Posts: 23
Joined: Mon Jan 30, 2012 11:24 pm

Re: Having a bit of trouble with driver compile

Postby AlbertP on Wed Apr 25, 2012 8:56 am

There is only one download for RT3090 on the website. I don't know from where you got that RT3092 driver.

The errors aren't failed compilation. The second one is permission denied: probably you need to run make as root for Ralink's drivers. I don't know what causes the first error but it is not missing hardware. Compiling a driver should not need the actual hardware to be present.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 15
Level 15
 
Posts: 5854
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Having a bit of trouble with driver compile

Postby JadElClemens on Wed Apr 25, 2012 1:37 pm

AlbertP wrote:There is only one download for RT3090 on the website. I don't know from where you got that RT3092 driver.

The errors aren't failed compilation. The second one is permission denied: probably you need to run make as root for Ralink's drivers. I don't know what causes the first error but it is not missing hardware. Compiling a driver should not need the actual hardware to be present.

I think we're hugely misunderstanding each other, here. I'm using chipset 3060, not 3090. The download says RT28xx/36xx but doesn't support my exact chipset, only a close relative, the 3062. To answer your second concern, I'll try "sudo make". Also, I don't mean that I think there's hardware missing, the problem is that the driver features absolutely no support for chipset 3060, only 3062 (there's no 3060.ko in the folder that induces the errors in the initial paste. Thanks for your help.
As of 31-1-2012: Prepared to be a Mint user
Image
User avatar
JadElClemens
Level 1
Level 1
 
Posts: 23
Joined: Mon Jan 30, 2012 11:24 pm

Re: Having a bit of trouble with driver compile

Postby AlbertP on Wed Apr 25, 2012 1:54 pm

Sorry. My fault. I misread your post, you were of course talking about the 3060 not 3090.

The "rt3062 (rt3060/rt3062/rt3562/rt3592) driver is what you need here; the RT28xx/RT30xx package is firmware, not the driver. Firmware is preinstalled as rt2800pci also uses it, so you shouldn't need that package.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 15
Level 15
 
Posts: 5854
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Having a bit of trouble with driver compile

Postby JadElClemens on Wed Apr 25, 2012 4:16 pm

AlbertP wrote:Sorry. My fault. I misread your post, you were of course talking about the 3060 not 3090.

The "rt3062 (rt3060/rt3062/rt3562/rt3592) driver is what you need here; the RT28xx/RT30xx package is firmware, not the driver. Firmware is preinstalled as rt2800pci also uses it, so you shouldn't need that package.

Okay. I'll try sudo make when I get home. I'm pretty sure I ran sudo make in the first place, though, so what's your advice in the case that it still doesn't work?
As of 31-1-2012: Prepared to be a Mint user
Image
User avatar
JadElClemens
Level 1
Level 1
 
Posts: 23
Joined: Mon Jan 30, 2012 11:24 pm

Re: Having a bit of trouble with driver compile

Postby JadElClemens on Wed Apr 25, 2012 6:52 pm

JadElClemens wrote:Okay. I'll try sudo make when I get home. I'm pretty sure I ran sudo make in the first place, though, so what's your advice in the case that it still doesn't work?

Sudo make seems to have worked, here's the paste.
The steps I did after the compile are the next steps in the readme, any advice on that?

EDIT: Shoot, I'm stupid. I didn't "sudo make install".
The next step worked after that, but now I'm stuck on this. The next step says
Code: Select all
6> load driver
    #[kernel 2.4]
    #    $/sbin/insmod rt2860sta.o
    #    $/sbin/ifconfig ra0 inet YOUR_IP up
       
    #[kernel 2.6]
    #    $/sbin/insmod rt2860sta.ko
    #    $/sbin/ifconfig ra0 inet YOUR_IP up

I tried just entering "$/sbin/insmod rt2860sta.ko" into the terminal, but it returned "$/sbin/insmod: Command not found", which makes me think I should probably know a load driver command and I don't.
"sudo modprobe rt3062sta" does, however, work (it doesn't return "module not found", it just doesn't show anything in the terminal).
As of 31-1-2012: Prepared to be a Mint user
Image
User avatar
JadElClemens
Level 1
Level 1
 
Posts: 23
Joined: Mon Jan 30, 2012 11:24 pm

Re: [SOLVED]Having a bit of trouble with driver compile

Postby AlbertP on Thu Apr 26, 2012 3:24 am

sudo modprobe is the easiest way to load modules - you can use insmod but if modprobe works (that is, it does not show any error) it's fine as well - do you see anything when clicking the network icon after modprobe?

You might need to blacklist rt2800pci to avoid driver conflicts: gksudo gedit /etc/modprobe.d/blacklist.conf - there you can add blacklist rt2800pci.
Or you can unload it with sudo modprobe -r rt2800pci if you don't yet want to make it permanent, but just try out rt2860sta. (without -r you load a module, with -r you unload it)
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 15
Level 15
 
Posts: 5854
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: [SOLVED]Having a bit of trouble with driver compile

Postby JadElClemens on Thu Apr 26, 2012 10:35 am

AlbertP wrote:sudo modprobe is the easiest way to load modules - you can use insmod but if modprobe works (that is, it does not show any error) it's fine as well - do you see anything when clicking the network icon after modprobe?

You might need to blacklist rt2800pci to avoid driver conflicts: gksudo gedit /etc/modprobe.d/blacklist.conf - there you can add blacklist rt2800pci.
Or you can unload it with sudo modprobe -r rt2800pci if you don't yet want to make it permanent, but just try out rt2860sta. (without -r you load a module, with -r you unload it)

I'm sorry, I failed to mention that I fixed my problem. I did the steps you suggested (blacklist rt2800pci) after correctly loading the module and my wireless connection now works. Thanks for your help!
As of 31-1-2012: Prepared to be a Mint user
Image
User avatar
JadElClemens
Level 1
Level 1
 
Posts: 23
Joined: Mon Jan 30, 2012 11:24 pm

Linux Mint is funded by ads and donations.
 

Return to Wireless

Who is online

Users browsing this forum: No registered users and 12 guests