View previous topic :: View next topic |
Author |
Message |
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Mon Feb 25, 2013 9:04 pm Post subject: [Solved] getting wireless to work after gentoo installation |
|
|
hi
I couldn't get the wireless to work after the installation. There's no wired connection and the pc that I've installed gentoo can connect to the network when booted with systemrescuecd.
The files that I modified according to the hand book are
Code: |
/etc/conf.d/net file:
#This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /usr/share/doc/openrc*/net.example* and save your configuration
# in /etc/conf.d/net (this file :]!).
modules="wpa_supplicant"
wpa_supplicant_eth0="-Dmadwifi" |
and
Code: |
/etc/wpa_supplicant/wpa_supplicant.conf file:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
ssid="mySSID"
psk="myPassword"
priority=5
}
network={
ssid="mySSID"
scan_ssid=1
psk="myPassword"
priority=2
} |
the lspci:
Code: | spci
root@sysresccd /root % lspci
00:00.0 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. PT890 Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.7 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237/VX700 PCI Bridge
00:0f.0 IDE interface: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80)
00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:10.0 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.1 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.2 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.3 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.4 USB controller: VIA Technologies, Inc. USB 2.0 (rev 86)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/K8T890 South]
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78)
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV350 AP [Radeon 9600]
01:00.1 Display controller: Advanced Micro Devices [AMD] nee ATI RV350 AP [Radeon 9600] (Secondary)
|
the lspci -nn
Code: | lspci -nn
login as: root
Using keyboard-interactive authentication.
Password:
Last login: Mon Feb 25 19:55:14 UTC 2013 from 192.168.2.2 on pts/1
root@sysresccd /root % lspci -nn
00:00.0 Host bridge [0600]: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge [1106:0314]
00:00.1 Host bridge [0600]: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge [1106:1314]
00:00.2 Host bridge [0600]: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge [1106:2314]
00:00.3 Host bridge [0600]: VIA Technologies, Inc. PT890 Host Bridge [1106:3208]
00:00.4 Host bridge [0600]: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge [1106:4314]
00:00.7 Host bridge [0600]: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge [1106:7314]
00:01.0 PCI bridge [0604]: VIA Technologies, Inc. VT8237/VX700 PCI Bridge [1106:b198]
00:0f.0 IDE interface [0101]: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller [1106:3149] (rev 80)
00:0f.1 IDE interface [0101]: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE [1106:0571] (rev 06)
00:10.0 USB controller [0c03]: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller [1106:3038] (rev 81)
00:10.1 USB controller [0c03]: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller [1106:3038] (rev 81)
00:10.2 USB controller [0c03]: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller [1106:3038] (rev 81)
00:10.3 USB controller [0c03]: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller [1106:3038] (rev 81)
00:10.4 USB controller [0c03]: VIA Technologies, Inc. USB 2.0 [1106:3104] (rev 86)
00:11.0 ISA bridge [0601]: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/K8T890 South] [1106:3227]
00:11.5 Multimedia audio controller [0401]: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller [1106:3059] (rev 60)
00:12.0 Ethernet controller [0200]: VIA Technologies, Inc. VT6102 [Rhine-II] [1106:3065] (rev 78)
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI RV350 AP [Radeon 9600] [1002:4150]
01:00.1 Display controller [0380]: Advanced Micro Devices [AMD] nee ATI RV350 AP [Radeon 9600] (Secondary) [1002:4170]
|
Edit: [Solved]
Last edited by certem on Fri Mar 01, 2013 8:11 pm; edited 1 time in total |
|
Back to top |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Mon Feb 25, 2013 9:10 pm Post subject: |
|
|
The handbook should really, really stop mentioning any other driver than nl80211 or wext. Madwifi is completely outdated. Modern drivers use nl80211, then there's a few that use wext.
Anyway, your lspci doesn't contain any wireless devices, so it must be an usb adapter. Check with lsusb. |
|
Back to top |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Tue Feb 26, 2013 5:36 am Post subject: |
|
|
certem,
When you locate your wireless device change your /etc/conf.d/net wpa_supplicant line to include the configuration file.
Code: | modules="wpa_supplicant"
wpa_supplicant_wlan0="-Dnl80211 -c/etc/wpa_supplicant/wpa_supplicant.conf"
|
_________________ Good luck
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Tue Feb 26, 2013 7:59 am Post subject: |
|
|
BillWho
I added the lines you mentioned accordingly but there's an additional line in my file which says
Code: | iwconfig wlan0="managed" |
I put it because the info I got when booted from systemrescuecd told my connection was "managed"
I'll give it another try by removing that line. If still can't connect I'll post the output of lsusb in 8 - 10 hors when I have access to the computer that I installed gentoo.
Edit: Additional info. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Tue Feb 26, 2013 9:35 am Post subject: |
|
|
BillWho wrote: | certem,
When you locate your wireless device change your /etc/conf.d/net wpa_supplicant line to include the configuration file.
Code: | modules="wpa_supplicant"
wpa_supplicant_wlan0="-Dnl80211 -c/etc/wpa_supplicant/wpa_supplicant.conf"
|
|
/etc/wpa_supplicant/_wpa_supplicant.conf is the default path for wpa_supplicant.conf
so all he really needs is:
Code: |
modules="wpa_supplicant"
wpa_supplicant_wlan0="-Dnl80211"
|
not hugely important, just a random tidbit for future reference. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Tue Feb 26, 2013 4:51 pm Post subject: |
|
|
cach0rr0 wrote: | /etc/wpa_supplicant/_wpa_supplicant.conf is the default path for wpa_supplicant.conf |
Thanks, thats an interesting tidbit. Every guide I remember seeing always had the path to wpa_supplicant.conf so I always included it. _________________ Good luck
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Tue Feb 26, 2013 4:56 pm Post subject: |
|
|
I tried both but still no connection. (I also tried with and without
Code: | iwconfig wlan0="managed" |
)
Code: | wlan0 IEEE 802.11bgn ESSID:"mySSID"
Mode:Managed Frequency:2.437 GHz Access Point: 00:12:BF:FD:D6:9E
Bit Rate=18 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=41/70 Signal level=-69 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:8 Missed beacon:0
lo no wireless extensions.
eth0 no wireless extensions. |
|
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Tue Feb 26, 2013 6:07 pm Post subject: |
|
|
Quote: | wlan0 IEEE 802.11bgn ESSID:"mySSID"
Mode:Managed Frequency:2.437 GHz Access Point: 00:12:BF:FD:D6:9E
Bit Rate=18 Mb/s Tx-Power=20 dBm |
I'm confused (and probably shouldn't butt in) but the iwconfig
lines above show you are connected just fine ... _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Tue Feb 26, 2013 6:11 pm Post subject: |
|
|
albright sorry because I didn't mentioned:
that's the output when I booted the computer with the systemrescuecd. |
|
Back to top |
|
|
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Tue Feb 26, 2013 6:58 pm Post subject: |
|
|
Gusar
the output of lsusb is
Code: |
root@sysresccd /root % lsusb
Bus 001 Device 002: ID 0930:6544 Toshiba Corp. Kingston DataTraveler 2.0 Stick (2GB)
Bus 001 Device 003: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 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
|
Note: I tried to configure the kernel by myself. I didn't use genkernel. |
|
Back to top |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Tue Feb 26, 2013 7:24 pm Post subject: |
|
|
certem wrote: | Note: I tried to configure the kernel by myself. I didn't use genkernel. |
That doesn't tell me anything unless you provide how you've configured the kernel.
Anyway, you need the rt2800usb driver and the linux-firmware package. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Feb 26, 2013 8:37 pm Post subject: |
|
|
from the chroot Code: | emerge linux-firmware iw network-tools wpa_supplicant dhcp wgetpaste | Edit menuconfig to include Quote: | [*] Networking support --->
--- Networking support
Networking options --->
[ ] Amateur Radio support --->
< > CAN bus subsystem support --->
< > IrDA (infrared) subsystem support --->
< > Bluetooth subsystem support --->
< > RxRPC session sockets
-*- 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)
Default rate control algorithm (Minstrel) --->
[ ] Enable mac80211 mesh networking (pre-802.11s) support
[ ] Export mac80211 internals in DebugFS
[ ] Trace all mac80211 debug messages
[ ] Select mac80211 debugging features --->
< > WiMAX Wireless Broadband support --->
<M> RF switch subsystem support --->
< > Plan 9 Resource Sharing Support (9P2000) --->
< > CAIF support --->
< > Ceph core library (EXPERIMENTAL)
< > NFC subsystem support --->
Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
<M> Ralink driver support --->
<M> Ralink rt27xx/rt28xx/rt30xx (USB) support
[*] USB support --->
--- USB support
-*- Support for Host-side USB
[*] USB announce new devices
<*> xHCI HCD (USB 3.0) support
<*> EHCI HCD (USB 2.0) support
<M> OHCI HCD support
<*> UHCI HCD (most Intel and VIA) support | recompile and recopy the kernel. Reboot. If a kernel configuration or lack of firmware problem was corrected the network will connect if no other problems exist.If no connection, runoutput should show wlan0, confirming that the kernel can find the rt3070 device and that it is up. If wlan0 does appear, run which should find your access point. If wlan0 is not shown by ifconfig, mount the boot partition, run the kernel date time should be very recent, check grub.conf is using it. _________________ Defund the FCC. |
|
Back to top |
|
|
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Wed Feb 27, 2013 6:50 am Post subject: |
|
|
I did the changes but still no connection.
I tried to read the boot screen by ctrl+s and ctrl+q there were errors like
1) waiting for uevents to be processed... timeot... some usb problems
2) eth0 and/or net.eth0 not found...
I'm going to try yo post that screen. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Feb 27, 2013 3:21 pm Post subject: |
|
|
after rebooting to gentoo did you run If you did, did ifconfig output show wlan0?
Apparently your ethernet device driver is not configured properly in the kernel kernel config or there is no ethernet device. This should not affect wifi. Quote: | [*] VIA devices
<M> VIA Rhine support
[*] Use MMIO instead of PIO |
boot cd, enter chroot, Code: | emerge usbutils pciutils wgetpaste
dmesg | wgetpaste
wgetpaste /usr/src/linux/.config | post urls returned _________________ Defund the FCC. |
|
Back to top |
|
|
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Wed Feb 27, 2013 5:51 pm Post subject: |
|
|
the urls are:
http://bpaste.net/show/80250/
and
http://bpaste.net/show/80251/
I booted the computer with systemrescuecd and ssh'ed to it from another computer to mount and chroot in. I hope this doesn't have any effects on the outputs.
Edit: additional info |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Feb 27, 2013 7:38 pm Post subject: |
|
|
your kernel config for wireless is good, wlan0 should appear in the ifconfig output.
boot gentoo
Code: | ifconfig > /ifc
ls -l /boot > /lsl
uname -a > /una
iwlist wlan0 scan > /iwl
nano /etc/rc.conf
|
edit rc.conf to include and without # in front of them.
reboot to cd and enter the chroot, then run Code: | wgepaste /ifc
wgetpaste /lsl
wgetpaste /una
wgetpaste /var/log/dmesg
wgetpaste /iwl | and post the url's
when convenient rebuilding kernel with Quote: | Device Drivers --->
[*] Network device support --->
[*] Ethernet driver support --->
[*] VIA devices
<M> VIA Rhine support
[*] Use MMIO instead of PIO
[*] USB support --->
< > xHCI HCD (USB 3.0) support
<*> OHCI HCD support | should get rid of eth0 and usb complaints _________________ Defund the FCC. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Feb 27, 2013 8:01 pm Post subject: |
|
|
just checked and find sysrescd has wgetpaste.
you are thus able to boot sysresccd, mount gentoo partitions and run Code: | wgepaste /mnt/gentoo/ifc
wgetpaste /mnt/gentoo/lsl
wgetpaste /mnt/gentoo/una
wgetpaste /mnt/gentoo/var/log/dmesg
wgetpaste /mnt/gentoo/iwl | to avoid entering the chroot. _________________ Defund the FCC. |
|
Back to top |
|
|
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
|
Back to top |
|
|
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri Mar 01, 2013 3:43 pm Post subject: |
|
|
The posted Quote: | Linux sysresccd 3.4.30-std340-i586 #2 SMP Mon Feb 11 18:08:47 UTC 2013 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux | suggests that uname -a > /una was run with the sysresccd booted as opposed to beiong run with the installed gentoo booted.
if iwlist scan ran from gentoo, the interface is proven to be up and runnimg. if ifconfig ran from gentoo, dhcp is obtaining an ipaddress. this leaves only wpa_supplicant as a likely problem. _________________ Defund the FCC. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri Mar 01, 2013 4:23 pm Post subject: |
|
|
boot gentoo, Try Quote: | ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
ssid="NetMASTER Uydunet-BCF5"
psk="yourpwrd"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
network={
ssid="phoneix"
psk="yourpwrd"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
} | as your /etc/wpa_supplicant/wpa_supplicant.conf.
try Quote: | modules_wlan0="wpa_supplicant"
wpa_supplicant_wlan0="-Dwext"
#wpa_supplicant_wlan0="-Dnl80211"
wpa_timeout_wlan0=15
iwconfig_wlan0_mode="Managed"
config_wlan0="dhcp"
dhcpcd_wlan0="-t 10" | as your /etc/conf.d/net. After the changes are made, run Code: | /etc/init.d/net.wlan0 stop
rm /var/run/wpa_supplicant/wpa_cli-wlan0.pid
rm /var/run/wpa_supplicant/wpa_supplicant-wlan0.pid
/etc/init.d/net.wlan0 start
ping -c2 192.168.1.1 | if the ping works, reboot gentoo, ping again to ensure the connection starts automatically at boot. _________________ Defund the FCC. |
|
Back to top |
|
|
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Fri Mar 01, 2013 8:11 pm Post subject: |
|
|
DONAHUE thank you very much.
With your help I have a working connection now. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri Mar 01, 2013 8:29 pm Post subject: |
|
|
Well done. A victory for the orderly approach. in /etc/conf.d/net you can change Quote: | wpa_supplicant_wlan0="-Dwext"
#wpa_supplicant_wlan0="-Dnl80211" | to Quote: | #wpa_supplicant_wlan0="-Dwext"
wpa_supplicant_wlan0="-Dnl80211" | nl80211 gives a speed improvement over wext (when it works) _________________ Defund the FCC. |
|
Back to top |
|
|
|