Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] setting wired/wireless internet
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
rarebud11
n00b
n00b


Joined: 23 Jun 2013
Posts: 24

PostPosted: Thu Jul 18, 2013 4:11 pm    Post subject: [Solved] setting wired/wireless internet Reply with quote

Hi, i've asked before for help on this and tried following the guide that was given. Though i'm still coming up short with a solution. I'v re-installed gentoo and found a lot of errors i had, unlike before i did not genkernal all to config my kernel i configured it myself using gentoo wiki for my laptop (1000HE asus). I also read a few other topics about wpa_supplicant and got that thing figured out. Here is what im dealing with.

eth0 and wlan0
Code:
*  ERROR: interface eth0 does not exist
*  Ensure that you have loaded the correct kernel module for your hardware
*ERROR: net.eth0 failed to start
*ERROR: cannot start netmount as net.eth0 would not start

Code:
*  ERROR: interface wlan0 does not exist
*  Ensure that you have loaded the correct kernel module for your hardware
*ERROR: net.wlan0 failed to start
*ERROR: cannot start netmount as net.wlan0 would not start


Code:
lspci -k

heres the website to see it.
http://bpaste.net/show/115298/

Also did this command
Code:
touch /etc/udev/rules.d/80-net-name-slot.rules


and my genkernel --menuconfig all is set to this *helped set up by Donahue*

Code:
[*] Networking support --->
-*- Wireless --->
--- Wireless
<M> cfg80211 - wireless configuration API
[*] cfg80211 wireless extensions compatibility
<M> Generic IEEE 802.11 Networking Stack (mac80211)
Default rate control algorithm (Minstrel) --->
<M> RF switch subsystem support --->

Device Drivers --->
[*] Network device support --->
[*] Network core driver support
<*> Dummy net driver support
{M} Generic Media Independent Interface device support
[*] Ethernet driver support --->
[*] Atheros devices
<M> Atheros L1E Gigabit Ethernet support
{M} PHY Device support and infrastructure --->
[*] Wireless LAN --->
<M> Atheros Wireless Cards --->
--- Atheros Wireless Cards
[*] Atheros bluetooth coexistence support (NEW)
<M> Atheros 802.11n wireless cards support
[*] Atheros ath9k PCI/PCIe bus support (NEW)
[*] Atheros ath9k rate control (NEW)


Code:
wgetpaste /mnt/gentoo/usr/src/linux/.config

website to it
http://bpaste.net/show/115299

ive also did
Code:
emerge pciutils iw wireless-tools wpa_supplicant dhcpcd linux-firmware


set up this thanks to *Donahue*
[quote="DONAHUE"]when back up you should have
Code:
ifconfig -a
showing eth0 and wlan0 or new names courtesy of udev. presuming eth0 and wlan0 are still in use:
Code:
cd /etc/init.d
ln -s net.lo net.eth0
ln -s net.lo net.wlan0
rc-update add net.eth0 default
rc-update add net.wlan0 default
nano /etc/conf.d/net
edit to
Quote:
modules_wlan0="wpa_supplicant"
wpa_supplicant_wlan0="-Dnl80211"
wpa_timeout_wlan0=30
iwconfig_wlan0_mode="Managed"
config_wlan0="dhcp"

config_eth0="dhcp"
and
Code:
nano /etc/wpa_supplicant/wpa_supplicant.conf
edit to
Quote:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
then
Code:
/etc/init.d/net.eth0 restart


I get this
Code:
*Bringing up interface eht0
*   ERROR: interface eth0 does not exist
*   ENSURE that you have loaded the correct kernel module for your hardware
*ERROR: net.eth0 failed to start


any help would be greatly appreciated

EDIT: when i do the following command upon reboot (gentoo is installed just trying to get the internet up and going)
Code:
# ifconfig -a
lo: flags=73<UP, LOOPBACK, RUNNING> mtu 65536
     inet 127.0.0.1 netmask 255.0.0.0
     inet6 ::1 prefixlen 128  scopeid 0x10<host>
     loop txqueuelen 0 (Local Loopback)
     RX packets 0 bytes 0 (0.0. B)
     RX errors = dropped 0 overruns 0 frame 0
     TX packets 0 bytes 0 (0.0 B)
     TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

_________________
learning the ropes :D


Last edited by rarebud11 on Sat Jul 20, 2013 2:36 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Jul 18, 2013 4:58 pm    Post subject: Reply with quote

The ifconfig - a results suggest that drivers are not in your kernel for ethernet and wifi NIC's. Boot installed gentoo. Mount the /boot partition. Edit your menuconfig to include the following:
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)
Default rate control algorithm (Minstrel) --->
[ ] Enable mac80211 mesh networking (pre-802.11s) support
-*- Enable LED triggers
[ ] Export mac80211 internals in DebugFS
[ ] Trace all mac80211 debug messages
[ ] Select mac80211 debugging features --->

<M> RF switch subsystem support --->

Device Drivers --->
[*] Network device support --->
[*] Ethernet driver support --->
--- Ethernet driver support
[*] Atheros devices
<M> Atheros L1E Gigabit Ethernet support

[*] Wireless LAN --->
--- Atheros Wireless Cards
[*] Atheros bluetooth coexistence support (NEW)
<M> Atheros 802.11n wireless cards support
[*] Atheros ath9k PCI/PCIe bus support (NEW)
then recompile the kernel, recopy the kernel to /boot, reboot.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
rarebud11
n00b
n00b


Joined: 23 Jun 2013
Posts: 24

PostPosted: Thu Jul 18, 2013 5:26 pm    Post subject: Reply with quote

DONAHUE wrote:
The ifconfig - a results suggest that drivers are not in your kernel for ethernet and wifi NIC's. Boot installed gentoo. Mount the /boot partition. Edit your menuconfig then recompile the kernel, recopy the kernel to /boot, reboot.


ok so if i used system rescue cd to install gentoo i boot into system rescue cd and mount my /boot partitions which would look like this? (would i need to chroot?)

Code:
mount /dev/sda1 /mnt/gentoo
mount /dev/sda3 /mnt/gentoo/boot


from there i do the following?
Code:
make menuconfig


fix my menuconfig to look like the one quoted and recompile it.

how do i recopy the kernel to /boot?
_________________
learning the ropes :D
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Jul 18, 2013 5:50 pm    Post subject: Reply with quote

after my menuconfig has saved, I use
Code:
make && make modules_install && make install
which compiles kernel and installs the kernel in /boot using a name like vmlinuz-3.10.1-gentoo
the handbook uses cp arch/x86/boot/bzImage /boot/<whatever name you choose but suggesting a form like kernel-3.10.1-gentoo> note that some bootloaders look for the kernel using vmlinuz or kernel as keywords
as your post said the installed gentoo was bootable I had assumed you would boot it, however using the chroot is perfectly fine for your purpose. step by step for each:

Either:

boot the installed gentoo
Code:
mount /boot

Code:
cd /usr/src/linux

Code:
make menuconfig

make changes and exit saving configuration
Code:
make && make modules_install && make install

edit /boot/grub/grub.conf to add an entry for the new kernel

Or:

boot the sysresccd,
Code:
mount /dev/sda1 /mnt/gentoo
mount /dev/sda3 /mnt/gentoo/boot
enter the chroot:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"
edit menuconfig
Code:
cd /usr/src/linux
make menuconfig
compile and install the kernel
Code:
make && make modules_install && make install
edit grub.conf to add an entry for the new kernel, then make a graceful exit
Code:
exit
cd
umount -l /mnt/gentoo/dev{/shm,/pts,}
umount -l /mnt/gentoo{/boot,/proc,}
reboot

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


Joined: 23 Jun 2013
Posts: 24

PostPosted: Thu Jul 18, 2013 7:19 pm    Post subject: Reply with quote

DONAHUE wrote:
edit grub.conf to add an entry for the new kernel, then make a graceful exit
Code:
exit
cd
umount -l /mnt/gentoo/dev{/shm,/pts,}
umount -l /mnt/gentoo{/boot,/proc,}
reboot


edit grub.conf to add an entry do i # the current /boot/kernel and write a new one?
_________________
learning the ropes :D
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Jul 18, 2013 8:21 pm    Post subject: Reply with quote

just add a new menu item with anew title and a new kernel name example:
original:
Quote:
default 0
timeout 5
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo 3.9.10
root (hd0,0)
kernel /boot/vmlinuz-3.9.10-gentoo root=/dev/sda3

title Gentoo 3.10.1
root (hd0,0)
kernel /boot/vmlinuz-3.10.1-gentoo root=/dev/sda3

then boot the second choice on the reboot
if it fails you still have the first known working choice as a backup
_________________
Defund the FCC.
Back to top
View user's profile Send private message
rarebud11
n00b
n00b


Joined: 23 Jun 2013
Posts: 24

PostPosted: Sat Jul 20, 2013 2:37 am    Post subject: Reply with quote

ty again :) though im going to start a new post about a useradd problem.. more or less a slight walk-though because i may be doing this wrong? i'll post something in a bit.
_________________
learning the ropes :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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