Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
configuring Ralink USB wireless - confused total beginner
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
Jeff_texas
n00b
n00b


Joined: 12 Mar 2014
Posts: 7
Location: Texas, USA

PostPosted: Wed Mar 12, 2014 1:00 am    Post subject: configuring Ralink USB wireless - confused total beginner Reply with quote

I'm utterly and totally new at gentoo. So be kind. Over the last couple of days I've followed the gentoo handbook and successfully partitioned my disk, got wired networking to work, downloaded the stage three tarball, built the kernal, and even emerged several packages (including x11 and xfce). So overall I'm feeling pretty good about my progress.

But I can't get my USB dongle wireless adapter to work. (It works fine under other Linuxi distros, including Fedora and Ubuntu). Unfortunately, I can't describe my configuration as precisely as I would like because I've tried so many different things, sometimes not understanding exactly what I was doing. But here's the general situation:

1. lsusb shows "Bus 001 Device 003: I 148f:3070 Ralink Technology, Corp. RT2870/RT300 Wireless Adapter (and some other things).

2. ifconfig shows enp3s0 (ethernet adapter) and lo. No sign of wlan0 or anything similar.

3. iwconfig shows "lo no wireless extensions" and "enp3s0 no wireless extensions."

4. wpa_gui running under xfce (I'm not even sure when I installed it) shows nothing at all in Adapter and Network dropdown lists.

5. I have rebuilt the kernel many times with every option in menuconfig that looked like it might possibly be related to the Ralink adapter, including the Ralink USB device driver.

6. I have emerged the linux_firmware package, which I read somewhere might be needed. No luck.

7. I have tried using genkernel all to build a kernel with (as I understand it) pretty much everything. Still no luck.

So I'm stuck. I've spent a couple of days reading in these forums and elsewhere and randomly trying different things, without success. And again, I'm totally new at this.

Any advice on what to try and where to go next? (I don't really think it's a complicated hardware support issue: this appears to be a common and well-supported device. I think I probably just need to be pointed in the right direction.)

Thanks.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Mar 12, 2014 1:41 am    Post subject: Reply with quote

Code:
ifconfig -a
if wireless NIC appears the kenel can find it and install a driver for it. Did the kernel find it? If so, what is its name?
Code:
cd /usr/src/linux;make menuconfig
edit to include:
Quote:
-*- Networking support --->
-*- Wireless --->
--- Wireless
<M> cfg80211 - wireless configuration API
[ ] nl80211 testmode command
[ ] enable developer warnings
[ ] cfg80211 regulatory debugging
[ ] enable powersave by default
[ ] cfg80211 DebugFS entries
[*] cfg80211 wireless extensions compatibility
<M> Generic IEEE 802.11 Networking Stack (mac80211)
<M> RF switch subsystem support ----

Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
<M> Ralink driver support --->
--- Ralink driver support
< > Ralink rt2400 (PCI/PCMCIA) support
< > Ralink rt2500 (PCI/PCMCIA) support
< > Ralink rt2501/rt61 (PCI/PCMCIA) support
< > Ralink rt27xx/rt28xx/rt30xx (PCI/PCIe/PCMCIA) support
< > Ralink rt2500 (USB) support
< > Ralink rt2501/rt73 (USB) support
<M> Ralink rt27xx/rt28xx/rt30xx (USB) support
[*] rt2800usb - Include support for rt33xx devices
[*] rt2800usb - Include support for rt35xx devices (EXPERIMENTAL)
[*] rt2800usb - Include support for rt3573 devices (EXPERIMENTAL)
[*] rt2800usb - Include support for rt53xx devices (EXPERIMENTAL)
[*] rt2800usb - Include support for rt55xx devices (EXPERIMENTAL)
[*] rt2800usb - Include support for unknown (USB) devices
[ ] Ralink debug output
mount /boot if appropriate, recompile, recopy the kernel
if needed
Code:
emerge dhcpcd wpa_supplicant

Code:
rc-update show
If wpa_supplicant, dhcpcd, or dhcp appear in any run level use rc-update del <program> <runlevel> to remove them
Code:
cd /etc/init.d
ln -s net.lo net.<your wireless NIC's name>
rc-update add net.<your wireless NIC's name> default

Code:
nano /etc/conf.d/net
Edit to:
Quote:
modules_<your wireless NIC's name>="wpa_supplicant"
wpa_supplicant_<your wireless NIC's name>="-Dnl80211"
wpa_timeout_<your wireless NIC's name>=30
iwconfig_<your wireless NIC's name>_mode="Managed"
dhcpcd_<your wireless NIC's name>="-t 10"
config_<your wireless NIC's name>="dhcp"
Then
Code:
nano /etc/wpa_supplicant/wpa_supplicant.conf
Edit to
Quote:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
configure your network using wpa_gui; if unable add
Quote:
network={
ssid="yourssid"
psk="yourpsk"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
to wpa_supplicant.conf and hope

EDIT: to add rc-update add net.<your wireless NIC's name> default
_________________
Defund the FCC.


Last edited by DONAHUE on Wed Mar 12, 2014 2:06 am; edited 1 time in total
Back to top
View user's profile Send private message
Jeff_texas
n00b
n00b


Joined: 12 Mar 2014
Posts: 7
Location: Texas, USA

PostPosted: Wed Mar 12, 2014 1:46 am    Post subject: Reply with quote

Ifconfig -a shows enp3s0 (ethernet adapter) and lo. No sign of any wireless adapter.

Once that is resolved I will follow your instructions about building the kernel (although I think I have already built it with all of the menuconfig options you specifh).

Thanks for the quick reply.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Mar 12, 2014 1:59 am    Post subject: Reply with quote

The kernel has to be right for the wireless nic to appear in ifconfig -a.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Jeff_texas
n00b
n00b


Joined: 12 Mar 2014
Posts: 7
Location: Texas, USA

PostPosted: Wed Mar 12, 2014 2:05 am    Post subject: Reply with quote

Okay, you're saying that I need to follow your instructions and rebuild the kernel now? (Sorry, I misunderstood. I thought you meant that having the adapter appear in the ifconfig list needed to happen _before_ I tried rebuilding the kernel.)

Would it maybe be better for me to start over completely from the beginning and resinstall gentoo from the tarball (given that I have installed a variety of things and am not entirely sure of the state of my system), or should rebuilding the kernel with the options you specify and following your other instructions probably be sufficient?

Thanks again.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Mar 12, 2014 2:08 am    Post subject: Reply with quote

no, reinstall is only hope for many windows probs. linuxes are best repaired; particularly source based linux
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Mar 12, 2014 2:17 am    Post subject: Reply with quote

the no wireless in ifconfig -a is purely a kernel config problem unless the hard ware is broken. could be in usb configuration also does lsusb (emerge usbutils to get it) run from the installed gentoo find the NIC?
what is the result of
Code:
 lsmod | grep -i rt
With the kernel as recommended? I see
Quote:
rt2800usb 20651 0
rt2x00usb 10354 1 rt2800usb
rt2800lib 75066 1 rt2800usb
rt2x00lib 38288 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 274811 3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211 206389 2 mac80211,rt2x00lib
crc_ccitt 1501 1 rt2800lib

_________________
Defund the FCC.
Back to top
View user's profile Send private message
Jeff_texas
n00b
n00b


Joined: 12 Mar 2014
Posts: 7
Location: Texas, USA

PostPosted: Wed Mar 12, 2014 2:20 am    Post subject: Reply with quote

I'm currently working on rebuilding the kernel.

Even before kernel rebuild, lsusb shows "Bus 001 Device 003: I 148f:3070 Ralink Technology, Corp. RT2870/RT300 Wireless Adapter" (and some other things).

I take that to mean that it's not a USB issue.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Mar 12, 2014 2:27 am    Post subject: Reply with quote

agreed unlikely to be usb config then.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Jeff_texas
n00b
n00b


Joined: 12 Mar 2014
Posts: 7
Location: Texas, USA

PostPosted: Wed Mar 12, 2014 2:37 am    Post subject: Reply with quote

Built kernel okay.

In step:

Code:
ln -s net.lo net.<your wireless NIC's name>


What is my wireless NIC's name? Or where do I find it? (I have a feeling this is really dumb question, but I'm confused.)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Mar 12, 2014 2:39 am    Post subject: Reply with quote

should appear in
Code:
ifconfig -a
when the correct driver is loaded should require a reboot or
Code:
modprobe rt2800
after make and make modules_install has run on the new kernel config
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Jeff_texas
n00b
n00b


Joined: 12 Mar 2014
Posts: 7
Location: Texas, USA

PostPosted: Wed Mar 12, 2014 3:02 am    Post subject: Reply with quote

Success! At least partially. NIC shows in ifconfig. Name is wlpos18f2u4. I've edited the config files per your instructions and rebooted. Just started wpa_gui. I see the adapter listed. I'm getting ready to start to conigure the network.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Mar 12, 2014 3:04 am    Post subject: Reply with quote

sweet!! I say. My fingers crossed.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Jeff_texas
n00b
n00b


Joined: 12 Mar 2014
Posts: 7
Location: Texas, USA

PostPosted: Wed Mar 12, 2014 3:26 am    Post subject: Reply with quote

It works!!! Yay!!!

I have rolled up the ethernet cable and am now connected to my home wireless network.

Sometimes after somebody tells me how to do something, I look back and think that I could have figured it out eventually. But I don't get that feeling here: I don't think there is any way I could have done this without being walked through it. So again, many thanks.


Last edited by Jeff_texas on Wed Mar 12, 2014 3:33 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Mar 12, 2014 3:33 am    Post subject: Reply with quote

enjoy.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Mercurioneo
n00b
n00b


Joined: 11 Jan 2015
Posts: 67

PostPosted: Wed Jan 14, 2015 12:41 pm    Post subject: Reply with quote

DONAHUE wrote:
enjoy.


Hello,

I would like to say thanks for this post, it helps me to solve my problem with linksys WUSB600N v1, which uses ratlink rt2870.

Only a pair of things, in my case I don't have any pass in my network, it is only protected by MAC, I live at the countryside and nobody is going to steal my network, I use MAC but perfectly could be with no protection at all.

wpa_supplicant.conf that fix the problem for me is:

Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
   ssid="etap"
   key_mgmt=NONE
   auth_alg=OPEN
}



Finally one thing that was needed for me is to install wireless tools to be able to use iwconfig, so previous to all steps of your guide

Code:
emerge -av net-wireless/wireless-tools


Once again, thank you so much for your help. :)
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