Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] First installation - Network trouble during boot
View unanswered posts
View posts from last 24 hours

rackathon
Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
pht
n00b
n00b


Joined: 13 Aug 2005
Posts: 8

PostPosted: Sat Aug 13, 2005 1:23 pm    Post subject: [Solved] First installation - Network trouble during boot Reply with quote

Hi !
I though I had reached the end of Gentoo installation...
But here is the end of the boot sequence :
Quote:
* Starting lo
* no interface module has been loaded
* Initializing random number generator ...
INIT : Entering runlevel : 3
* Starting metallog ...
* Starting fcron ...
* Starting eth0
* apipa : missing required function interface_exists

* ERROR: Problem starting needed services
* “sshd” was not started
* Starting local ...
* ERROR: Problem starting needed services
* “netmount” was not started


I think the 2 last ERRORs comes from the first error "apipa ..."
Of course, I have no network...
I just came back to this command
# make menuconfig
And I discovered I had forgotten to add my network drivers (what an idiot)
[Device drivers > Networking support > Ethernet (10 or 100Mbit) > 3Com > 3C905 ...
I added this drivers and then I launched :
Code:
# source /etc/profile
# make clean
# make menuconfig
# make && make modules_install
# cp arch/i386/boot/bzImage /boot/kernel-2.6.12-r6
# cp System.map /boot/System.map-2.6.12-r6
# cp .config /boot/config-2.6.12-r6
# etc-update
# update-modules
# reboot

No way... same booting sequence.
Wot I did wrong ?
Wot could I correct ?
Thanks


Last edited by pht on Sun Aug 14, 2005 6:32 am; edited 1 time in total
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 366

PostPosted: Sat Aug 13, 2005 1:44 pm    Post subject: Reply with quote

did you mount boot befor you copy the files ?
I guess you add the drive to the kernel and not as a module, but if you made it a module did you
edit your ls /etc/modules.autoload.d/kernel{what ever version}
Back to top
View user's profile Send private message
meathoz
n00b
n00b


Joined: 18 Jan 2004
Posts: 61
Location: Finland

PostPosted: Sat Aug 13, 2005 1:45 pm    Post subject: Reply with quote

in case you compiled it as a module it might not get loaded automatically at boot time.
try modprobe 3c509 and run /etc/init.d/net.eth0 restart
Back to top
View user's profile Send private message
pht
n00b
n00b


Joined: 13 Aug 2005
Posts: 8

PostPosted: Sat Aug 13, 2005 2:18 pm    Post subject: Reply with quote

m_sqrd -> yes, in fact I did :
Code:
# mount /dev/hda1 /boot
# cp arch/i386/boot/bzImage /boot/kernel-2.6.12-r6
# cp System.map /boot/System.map-2.6.12-r6
# cp .config /boot/config-2.6.12-r6

meathoz & m_sqrd -> I added the 3c905 drivers as "built-in" kernel ( [*] 3Com... and not [M] )

I am still blocked. I can't see the problem

Anyway, thanks guys !
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 366

PostPosted: Sat Aug 13, 2005 4:19 pm    Post subject: Reply with quote

Ok sorry I did not see your update
what dose dmesg |grep eth say did it find the device?
Back to top
View user's profile Send private message
pht
n00b
n00b


Joined: 13 Aug 2005
Posts: 8

PostPosted: Sat Aug 13, 2005 5:17 pm    Post subject: Reply with quote

dmesg | grep eth -> response : nothing (?!)
dmesg | grep net -> 3c59x: Donald Becker and ...

It seems this file "/etc/conf.d/net" could be the problem:

Here are the 2 lines in "/etc/conf.d/net"
config_eth0=( "192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255" )
routes_eth0=( "default via 192.168.1.1" )
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 366

PostPosted: Sat Aug 13, 2005 5:39 pm    Post subject: Reply with quote

hmmm
what about ifconfig -a
I think the 2 line in the conf file look fine? but I could be blind ;'}
Back to top
View user's profile Send private message
pht
n00b
n00b


Joined: 13 Aug 2005
Posts: 8

PostPosted: Sat Aug 13, 2005 5:47 pm    Post subject: Reply with quote

Well, I have noticed that I could not use this command (?!)
ifconfig : command not found.

Could I have un-installed it ?

I can remember these strange commands during installation procedure :
Code:
#emerge --unmerge modutils
#emerge module-init-tools
#emerge udev

Is this clearer ?

Net configuration file uses to look like this :
iface_eth0="192.168.1.10 broadcast 192.168.1.255 netmask 255.255.255.0"
gateway="eth0/192.168.1.1"
(I have no more result with this)

When I launch #/etc/init.d/net start
* Caching service dependencies .... [ok]
* Starting eth0
* apipa : missing required function interface_exists
(same message during boot)

I have read in "/etc/init.d/net" help that configuration files are /etc/rc.conf and /etc/conf.d/net.lo
I did not find anything interested for network in /etc/rc.conf ?
I just did a symbolic link : #ln -s /etc/conf.d/net /etc/conf.d/net.lo

No result yet ...
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 366

PostPosted: Sat Aug 13, 2005 6:17 pm    Post subject: Reply with quote

your login as root correct?
you may need to emerge sys-apps/net-tools
but that should have pull in by the install or via your stage3
Back to top
View user's profile Send private message
Hyp
Apprentice
Apprentice


Joined: 14 Feb 2004
Posts: 192

PostPosted: Sun Aug 14, 2005 5:24 am    Post subject: Reply with quote

Hi,

I've got exactly the same problem (I already reinstalled my gentoo 3 times (everytime stage2), but it's always this fuc** error that stops me from using the system) . I'm getting no network and ifconfig also doesn't exist in /sbin.
Maybe a problem in the baselayout ?

Hyp
Back to top
View user's profile Send private message
pht
n00b
n00b


Joined: 13 Aug 2005
Posts: 8

PostPosted: Sun Aug 14, 2005 6:22 am    Post subject: Reply with quote

That's it !

Step :
0- Boot with LiveCD 2005.1
1- #net-setup eth0 (config network to emerge !)
2- #swapon /dev/hda2 (mount swap)
3- #mount /dev/hda3 /mnt/gentoo (mount linux partition)
4- #mount /dev/hda1 /mnt/gentoo/boot (mount boot partition... un-usefull ?!)
5- #chroot /mnt/gentoo (go in my linux)
6- #emerge sys-apps/net-tools (as m_sqrd said)
7- #reboot

No more errors during booting sequence :)
... and full operating network !
Thanks a lot m_sqrd

(I hope Hyp will solve his problem too)
Back to top
View user's profile Send private message
Hyp
Apprentice
Apprentice


Joined: 14 Feb 2004
Posts: 192

PostPosted: Sun Aug 14, 2005 6:33 am    Post subject: Reply with quote

Hi,

THANKS A LOT !! That's it.

Why isn't this done automatically during the installation process ??

Hyp
Back to top
View user's profile Send private message
pht
n00b
n00b


Joined: 13 Aug 2005
Posts: 8

PostPosted: Sun Aug 14, 2005 6:37 am    Post subject: Reply with quote

Yep.. quite strange !
When I first installed LiveCD 2005.0, I didn't meet this problem.
Back to top
View user's profile Send private message
shoan
n00b
n00b


Joined: 27 Oct 2003
Posts: 27

PostPosted: Thu Aug 18, 2005 4:29 am    Post subject: Reply with quote

It solved the problem for me too.
Back to top
View user's profile Send private message
Ribs
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2002
Posts: 133
Location: UK

PostPosted: Wed Aug 24, 2005 3:59 am    Post subject: Reply with quote

Tip also helped me, even tho portage said the package was already merged!

Cheers.
_________________
Ribbed for your pleasure!

AmberNet IRC network;
http://www.ambernet.org
Back to top
View user's profile Send private message
wing_arebo
n00b
n00b


Joined: 13 Sep 2005
Posts: 1

PostPosted: Tue Sep 13, 2005 8:55 pm    Post subject: Reply with quote

Thanks a lot!
It solved the problem for me too.
Back to top
View user's profile Send private message
ShawnWheatley
n00b
n00b


Joined: 02 Mar 2005
Posts: 8

PostPosted: Wed Sep 14, 2005 10:11 am    Post subject: Solved for me as well, VMWare Guest Reply with quote

Thanks, this helped. I'm installing on VMWare 5. No issues now.

Is this a documented bug with the 2005.1 install? Where exactly does this problem start, in the stages? I was doing a Stage 2 install myself.
Back to top
View user's profile Send private message
Clawz
n00b
n00b


Joined: 23 Sep 2005
Posts: 5
Location: The Netherlands

PostPosted: Fri Sep 23, 2005 8:41 am    Post subject: Reply with quote

Thank you, this has helped me also. Was googling for quite some time, i'm glad i hit this thread :)

Thanks again.
Back to top
View user's profile Send private message
wigy
n00b
n00b


Joined: 27 Oct 2005
Posts: 1
Location: Budapest, Hungary

PostPosted: Thu Oct 27, 2005 6:26 pm    Post subject: Do not temper too much USE flags before stage3! Reply with quote

m_sqrd wrote:
your login as root correct?
you may need to emerge sys-apps/net-tools
but that should have pull in by the install or via your stage3


It is my second stage1 gentoo install. The first went really painlessly, although it was installed to a laptop and a lot of things could go wrong - but did not.

This second one drove me crazy. There were bootstrap problems, network connection drops, and a lot of nightmare like missing /sbin/ifconfig mentioned in this thread. The only nasty thing I done was that I set too much USE flags too early. When the handbook said I can edit some USE flags in section 6.a of the handbook, I ran through the list in /usr/portage/profiles/use.desc and set or forbid a lot of flags. This pulled in some packages like openafs during stage1 -> stage2 bootstrap if I remember right, and caused also some compile problems.

So please be patient, and do not temper too much with USE flags in make.conf before stage3, or if you do so - like me - be prepared to read forum threads to find solutions caused by dependencies portage maintainers were not aware of during bootstrap and emerge system phases.
_________________
Success comes from carrying on when others give up.
Back to top
View user's profile Send private message
mobiusproject
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jun 2003
Posts: 106

PostPosted: Tue Nov 01, 2005 8:18 pm    Post subject: Reply with quote

Just bumping to say thank you. I was trying to figure out the reason that this wasn't working, and it seems that net-tools wasn't installed again after bootstrap.
Code:
$ emerge net-tools -pv
[ebuild   R   ] sys-apps/net-tools-1.60-r11  -build* +nls -static 0 kB

The build that I was using was compiled with the "build" use flag which is only done while bootstrapping. I also noticed that I didn't have ifconfig (which is part of net-tools) until after I rebuilt it.
Back to top
View user's profile Send private message
kraken
n00b
n00b


Joined: 27 Mar 2005
Posts: 24

PostPosted: Wed Nov 09, 2005 8:23 am    Post subject: Reply with quote

Bumping to thank as well.
Back to top
View user's profile Send private message
lemaymd
n00b
n00b


Joined: 01 Sep 2003
Posts: 26
Location: Urbana, IL

PostPosted: Wed Nov 09, 2005 8:48 pm    Post subject: Reply with quote

You have my thanks as well!

One remaining issue though, why does portage say net-tools is up-to-date when it's not even installed? This seems quite severe. I even suspected it was missing before reading this, but an emerge -s net-tools told me I was fine. I would have never tried remerging it if I hadn't read this...
_________________
- Abit AN8-SLI
- Athlon64 4400+ X2 Toledo
- 2x 1GB Patriot CL2 PC3200 RAM
- 2x Hitachi Deskstar SATA-150 as RAID-0: 115MB/s
- Sapphire Radeon PCIe X300SE 128MB

- vanilla kernel v.2.6.14.5, GCC 4.1.0
Back to top
View user's profile Send private message
blommethomas
Apprentice
Apprentice


Joined: 16 Nov 2005
Posts: 283
Location: roeselare, belgium

PostPosted: Sat Nov 19, 2005 6:33 am    Post subject: Reply with quote

Worked fine with me too, but this should be noticed in the manual
Back to top
View user's profile Send private message
javabiz
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2004
Posts: 116
Location: 40�27'17" North, 109�32'8" West

PostPosted: Sat Nov 19, 2005 8:11 am    Post subject: Currently installing RR4 and this looks like same problem! Reply with quote

I just returned to Gentoo after using the rr4 revised GLI installer. If a few problems can be worked out--rr4 and GLI could be the wave of the future! I've been a Mepis, CentOS, Kubuntu supporter since leaving this forum late last year (2004) but the prodigal son has returned! I ended up with this same problem after installing with rr4--I will try this out and report back what happens!
Back to top
View user's profile Send private message
motosauro
n00b
n00b


Joined: 23 Nov 2005
Posts: 64
Location: Verona, Italy

PostPosted: Thu Nov 24, 2005 6:29 am    Post subject: Reply with quote

m_sqrd wrote:
your login as root correct?
you may need to emerge sys-apps/net-tools
but that should have pull in by the install or via your stage3


Thanks :D

I was stuck and thought I had to restart from scratch.
Your hint solved my problem.
BTW I still had to add the tulip module to /etc/modules.autoload.d/kernel-xxxx
but now everything works just fine.

I think this piece of information should be added in the manual

P.S.
OT
This is my first post
Hi all :)
/OT
_________________
Per aspera ad astra
If apache complains about segmentation faults on start try to clean /tmp of all apache owned files :)
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 - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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