Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eth0 failure on boot, what to do?
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
asc3ndant
n00b
n00b


Joined: 28 Jun 2003
Posts: 30

PostPosted: Wed Jul 02, 2003 1:00 am    Post subject: eth0 failure on boot, what to do? Reply with quote

i just finished a stage1 install of gentoo, and on booting the newly compiled kernel there were a few problems, the most important of which is the configuration of eth0...
/etc/resolv.conf and /etc/conf.d/net are properly configured but the following happens on boot:
Code:
Bringing up eth0...
SIOCSIFADDR: No such device
eth0: unknown interface: No such device
SIOCSIFBRDADDR: No such device
eth0: unknown interface: No such device
SIOCSIFNETMASK: No such device
* Failed to bring eth0 up...
ERROR: Problem starting needed services.
"netmount" was not started.


what should i do?

also:
during the boot process there are some error messages about /dev/... modules not being loaded, and a failure to modprode /dev/hdb...
where are the boot messages stored? i'd like to see exactly what the errors are, but they scroll by too fast!

thanks
Back to top
View user's profile Send private message
fgarbrecht
n00b
n00b


Joined: 27 May 2003
Posts: 43
Location: Philadelphia

PostPosted: Wed Jul 02, 2003 1:05 am    Post subject: Reply with quote

Just run 'dmesg' to replay your boot messages; you'll no doubt see clues to your network problems. Sounds like you didn't compile in appropriate drivers for your network card or the modules are not loaded on boot.
Back to top
View user's profile Send private message
asc3ndant
n00b
n00b


Joined: 28 Jun 2003
Posts: 30

PostPosted: Wed Jul 02, 2003 2:05 am    Post subject: Reply with quote

how do i know if the eth0 driver was compiled as a module or not?
Back to top
View user's profile Send private message
p3nguin
Apprentice
Apprentice


Joined: 01 Jul 2003
Posts: 188
Location: ~/

PostPosted: Wed Jul 02, 2003 2:17 am    Post subject: Reply with quote

Im having this exact same problem, i even included every single nic in the kernel and it still gives me that shit!
Back to top
View user's profile Send private message
fgarbrecht
n00b
n00b


Joined: 27 May 2003
Posts: 43
Location: Philadelphia

PostPosted: Wed Jul 02, 2003 2:23 am    Post subject: Reply with quote

Go to /usr/src/linux and run make menuconfig; go to the network driver configuration settings section and check whether you selected any network driver. If not, select the appropriate driver to compile as a module. If you're not sure which driver to select, one way to figure this out is to boot from the gentoo live-cd and run lsmod; it should list whichever network driver module it installed after auto-detecting your hardware.
Back to top
View user's profile Send private message
asc3ndant
n00b
n00b


Joined: 28 Jun 2003
Posts: 30

PostPosted: Wed Jul 02, 2003 2:49 am    Post subject: Reply with quote

im trying to recompile the kernel to fix this problem, but i saved my settings from the first compile. where is that config file? i want to delete it so i can start with the default settings just in case i changed something i shouldn't have.
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Wed Jul 02, 2003 2:57 am    Post subject: Reply with quote

asc3ndant wrote:
where is that config file?

/usr/src/linux/.config
Back to top
View user's profile Send private message
asc3ndant
n00b
n00b


Joined: 28 Jun 2003
Posts: 30

PostPosted: Wed Jul 02, 2003 4:03 am    Post subject: Reply with quote

i used lsmod to find that via-rhine is the proper ethernet module, so i re-compiled the kernel with via-rhine support, but i did not compile it as a module... and the following errors went away:
Code:
SIOCSIFADDR: No such device
eth0: unknown interface: No such device
SIOCSIFBRDADDR: No such device
eth0: unknown interface: No such device
SIOCSIFNETMASK: No such device

but i still get the following:
Code:
Bringing up eth0...
* Failed to bring eth0 up...
ERROR: Problem starting needed services.
"netmount" was not started

what is going on?
also, i get the following messages during boot:
Code:
modprobe: can't locate module /dev/rtc
modprobe: can't locate module /dev/rtc/misc/rtc
modprobe: can't locate module /dev/rtc
modprobe: can't locate module /dev/rtc/misc/rtc

any suggestions?
thanks
Back to top
View user's profile Send private message
asc3ndant
n00b
n00b


Joined: 28 Jun 2003
Posts: 30

PostPosted: Wed Jul 02, 2003 4:08 am    Post subject: Reply with quote

ok i can fix the realtime clock support error, but i still need help with the eth0 failure, given that i know i have the correct driver included in the kernel, namely via-rhine.
Back to top
View user's profile Send private message
Mr. Garr
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2003
Posts: 130
Location: Shangri-La

PostPosted: Wed Jul 02, 2003 4:44 am    Post subject: Reply with quote

i have exact same problem, my 8139too is kompiled in the kernel, i've done make bzIMage modules modules_install, but it changed nothing

hmmm somebode said to compile it into the kernel, as Module, can;t it be just as * ? (i don't know how to call this :D)
_________________
Illuminatus Primus
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Wed Jul 02, 2003 4:52 am    Post subject: Reply with quote

Try adding the netmount initscript to the default runlevel, and make sure that net.eth0 is also in the default runlevel.
Code:
rc-update del net.eth0
rc-update add net.eth0 default
rc-update add netmount default


Make sure that the module name for your card is also listed in /etc/modules.autoload
Back to top
View user's profile Send private message
asc3ndant
n00b
n00b


Joined: 28 Jun 2003
Posts: 30

PostPosted: Wed Jul 02, 2003 6:34 am    Post subject: Reply with quote

where in the menuconfig is the rtc option?
how do i get rid of the following errors:
Code:
modprobe:can't locate module /dev/rtc
modprobe:can't locate module /dev/misc/rtc
modprobe:can't locate module /dev/rtc
modprobe:can't locate module /dev/misc/rtc

???
Back to top
View user's profile Send private message
Manu-BE
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2003
Posts: 75
Location: World, North Emisphere, Europe, Benelux, Belgium, Wallonie, Hainaut, Borinage, Mons [Target Located]

PostPosted: Wed Jul 02, 2003 10:18 am    Post subject: Reply with quote

Did you recompile your kernel correctly ?

Code:
 
mount /boot
cd /usr/src/linux
make menuconfig
....
make dep && make clean bzImage modules modules_install
cp /usr/src/linux/arch/i386/boot/bzImage /boot
#lilo 


Stupid question but It could help :oops:

List your PCI cards to check if the module is the good one
Code:
 cat /proc/pci


And try to recompile your kernel with the appropriate module
If you are not sure => www.google.com
_________________
There are 10 types of people in the world: Those who understand binary, and those who don't...

Linux user #321297.
Back to top
View user's profile Send private message
asc3ndant
n00b
n00b


Joined: 28 Jun 2003
Posts: 30

PostPosted: Wed Jul 02, 2003 8:17 pm    Post subject: Reply with quote

yes, my kernel is compiled in the manner you listed... but what i really want to know is what specific kernel options to * in order to enable realtime clock support...
see this thread: https://forums.gentoo.org/viewtopic.php?t=64401
someone has the same problem, and someone else tells him to recompile the kernel to enable realtime clock support, and i wanted to know how to do that specifically
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