LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-11-2004, 05:56 PM   #1
asp55
LQ Newbie
 
Registered: Aug 2003
Distribution: redhat 9.0, gentoo
Posts: 13

Rep: Reputation: 0
Gentoo Ethernet Problem


So I've installed gentoo onto a server for a client, but when I boot it off the install I get the following error:

Code:
*Bringing eth0 up 
SIOCSIFADDR: No such device 
eth0: unknown interface: no such device 
SIOCSIFBRDADDR: No such device 
eth0: unkown interface: no such device 
SIOCSIFNETMASK: No such device 
*failed to bring eth0 up
Now, I ran lspci while booted off the livecd and got the following:

Code:
0000:00:00:0 Host bridge: Intel Corp. 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
0000:00:01:0 PCI bridge: Intel Corp. 82865G/PE/P PCI to AGP Controller (rev 02)
0000:00:1d:0 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #1 (rev 02)
0000:00:1d:1 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #2 (rev 02)
0000:00:1d:2 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3 (rev 02)
0000:00:1d:3 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4 (rev 02)
0000:00:1d:7 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB ECHI Controller (rev 02)
0000:00:1e:0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev c2)
0000:00:1f:0 ISA bridge:  Intel Corp. 82801EB/ER (ICH5/ICH5R) LPC Bridge (rev 02)
0000:00:1f:1 IDE interface:  Intel Corp. 82801EB/ER (ICH5/ICH5R) Ultra ATA 100 Storage Controller (rev 02)
0000:00:1f:3 SMBus:  Intel Corp. 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
0000:00:1f:5 Multimedia audio controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce MX/MX 400] (rev b2)
0000:02:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
So I tried chrooting into /mnt/gentoo and modprobing 8139too (Which someone said was the apropriate driver for said controller) but got the following:

Code:
modprobe: Can't open dependencies file /lib/modules/2.4.26-gentoo-r6/modules.dep (No such file or directory)
Now since I'm using 2.4.26-gentoo-r9 (not r6) I made a symlink to the correct folder and called it 2.4.26-gentoo-r6. I tried to modprobe again and got:

Code:
modprobe: Can't locate module 8139too
When I ran locate 8139too I got
Code:
/usr/src/linux-2.4.26-gentoo-r9/include/config/8139too.h
/usr/src/linux-2.4.26-gentoo-r9/include/config/8139too
/usr/src/linux-2.4.26-gentoo-r9/include/config/8139too/pio.h
/usr/src/linux-2.4.26-gentoo-r9/include/config/8139too/tune
/usr/src/linux-2.4.26-gentoo-r9/include/config/8139too/tune/twister.h
/usr/src/linux-2.4.26-gentoo-r9/include/config/8139too/8129.h
/usr/src/linux-2.4.26-gentoo-r9/drivers/net/8139too.c
/usr/src/linux-2.4.26-gentoo-r9/Documentation/networking/8139too.txt
This is really baffeling me as to why it can't find the device when booting.... HELP! Please....

(Also what's odd is when I try to run lspci when booted off the harddrive I get "bash: lspci: command not found" anyone know why that would be?)
 
Old 10-11-2004, 05:57 PM   #2
asp55
LQ Newbie
 
Registered: Aug 2003
Distribution: redhat 9.0, gentoo
Posts: 13

Original Poster
Rep: Reputation: 0
Oh, other potentially important information:

The ethernet controller is an onboard ethernet on an Asus P4P800S.

The liveCD has absolutly know problem detecting and using eth0, but the moment I boot it off the install, I get nothing.
 
Old 10-11-2004, 06:07 PM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
lspci comes as part of the pciutils package so you'll have to emerge that if you want to use it on the installed system.

You can't really boot from the livecd and then try to load a module using modprobe after chrooting - the modules matching the running kernel (i.e. the one you booted from the livecd) aren't located in the chrooted environment but on the CD! You will have to either load the module before chrooting or boot from the installed system and then load the module from your hard drive.

When you succeed in loading the module, simply run /etc/init.d/net.eth0 restart to try start up the network. If it works, just add the module name (8139too) to /etc/modules.autoload.d/kernel-version. Also make sure that the net.eth0 init script is added to the "default" runlevel so it will be started each time you boot (rc-update -s will show you if it is).

All this is outlined in the installation handbook, and it's a good reference even after you have installed the system.


Håkan

Last edited by hw-tph; 10-11-2004 at 06:09 PM.
 
Old 10-11-2004, 09:00 PM   #4
asp55
LQ Newbie
 
Registered: Aug 2003
Distribution: redhat 9.0, gentoo
Posts: 13

Original Poster
Rep: Reputation: 0
Håkan, thanks for the quick response. However, I'm still having a problem when booted from the installed system.

When I try to modprobe 8139too, I still get the error message of "modprobe: Can't locate module 8139too"

If I do it in the liveCD before chrooting, I get no errors, but it doesn't affect my problem one way or the other.

EDIT: Ok, I just went through, and realized I'd had it compiled in the kernel. Re compiled it as a module and all works fine now.

Last edited by asp55; 10-11-2004 at 09:06 PM.
 
Old 10-12-2004, 01:19 PM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Good to hear you got it sorted. Welcome to Gentoo country.


Håkan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo Livecd Ethernet issues jrtayloriv Linux - Networking 1 01-25-2005 07:45 PM
PPPoE ethernet adaptor gentoo. Nz_Boy_2004 Linux - Networking 1 11-29-2004 12:40 AM
Gentoo Ethernet Setup fitzavig Linux - Networking 1 09-08-2004 12:09 PM
ethernet troubles using gentoo 1.4 Aman9090 Linux - Networking 19 11-16-2003 07:22 PM
ethernet not working with gentoo 1.4 Aman9090 Linux - Hardware 1 11-09-2003 10:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration