Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
first reboot and no network
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
z-lite
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2003
Posts: 76

PostPosted: Thu Nov 06, 2003 6:56 pm    Post subject: first reboot and no network Reply with quote

Hi,

I just finished installing Gentoo and after the first reboot, I get errors that insmod failed to load modules for 8139 (I'm thinking it's RealTek driver) and that I should check dmesg, which I did. I also get two errors that netmount and sshd services were not started. How can I have insmod load the driver/module needed so that my onboard NIC will work?

I tried dhcpcd just see if it did anything and bash told me 'command not found'. Someone please help, it took me 3 days to download/compile all the gentoo ebuilds on a 21kbps (not even 56kbps) connection (phone line quality sucks when it rains).
Back to top
View user's profile Send private message
mpsii
l33t
l33t


Joined: 11 Mar 2003
Posts: 658
Location: Jackson, TN

PostPosted: Thu Nov 06, 2003 7:08 pm    Post subject: Reply with quote

Did you add the module name to /etc/modules.autoload.d/kernel-2.x (where x is the kernel version 4, 5, or 6)?
_________________
-----------------------------------------
Michael
Back to top
View user's profile Send private message
z-lite
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2003
Posts: 76

PostPosted: Thu Nov 06, 2003 7:46 pm    Post subject: Reply with quote

I get the same error. Any other suggestions?
Back to top
View user's profile Send private message
Pete_Keller
l33t
l33t


Joined: 30 Sep 2003
Posts: 664
Location: Norwich, CT USA

PostPosted: Thu Nov 06, 2003 8:50 pm    Post subject: Reply with quote

z-lite,

boot off the install cd and type lsmod, this command will list the modules loaded (one of them should be the NIC driver - should be 8139 something), then reboot to your gentoo install, and type lsmod, then try modprobe 8139???. If it does not work send us the ls command from the boot of the install CD.

How did you generate your kernel?

Pete
_________________
I am a SIGNATURE VIRUS, help me spread - attach me to your signature file.
Back to top
View user's profile Send private message
SmokinBudda
n00b
n00b


Joined: 31 Oct 2003
Posts: 46
Location: Da Dirty Dirty

PostPosted: Thu Nov 06, 2003 8:57 pm    Post subject: Reply with quote

Did you compile your kernel by hand? If so, you need to make sure you compiled your kernel with the support your ethernet card needs. Run make menuconfig and make sure you have your ethernet card loaded under Network Devices --> Ethernet 10-100

I'm pretty sure that is how you get there. My apologies if I missed it by a character or two.

Anyhoo, recompile by running make dep && make clean bzImage modules modules_install. Mount the /boot partition, copy the image over and reboot.
_________________
Life is a tragedy for those who feel; and a comedy for those who think.
---Chinese Proverb

www.davinatkins.com
Back to top
View user's profile Send private message
z-lite
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2003
Posts: 76

PostPosted: Fri Nov 07, 2003 5:13 am    Post subject: Reply with quote

I followed the installation page and used genkernel. The kernel is 2.4.20

lsmod from LiveCD:
Code:
Module                  Size  Used by    Tainted: GF
8139too                14184   1
mii                     2192   0  [8139too]
floppy                 47004   0  (autoclean)
serial                 48932   0  (autoclean)
isa-pnp                28100   0  (autoclean) [serial]
cloop                   5520   1
usb-storage            59372   0  (unused)
hid                    12564   0  (unused)
uhci                   22944   0  (unused)
ehci-hcd               14944   0  (unused)
usbcore                55712   1  [usb-storage hid uhci ehci-hcd]


lsmod from installed gentoo has 8139too with "used" set to 0, and "by" is set to "(unused)".

SmokinBudda wrote:
Anyhoo, recompile by running make dep && make clean bzImage modules modules_install. Mount the /boot partition, copy the image over and reboot.


How would I do that?

mount /dev/hda1 /boot
cp ?? ??
shutdown -r now
Back to top
View user's profile Send private message
scootersmk
Apprentice
Apprentice


Joined: 17 May 2003
Posts: 186
Location: Knoxville, TN

PostPosted: Fri Nov 07, 2003 6:31 am    Post subject: Reply with quote

after you are done selecting your new options in menuconfig

Code:

make dep && make clean bzImage modules modules_install
mount /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot
umount /boot
reboot

_________________
Long live the gentoo forums!!!!!
Back to top
View user's profile Send private message
z-lite
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2003
Posts: 76

PostPosted: Fri Nov 07, 2003 6:58 am    Post subject: Reply with quote

I get an error when I try doing make menuconfig:

No rule to make target 'menuconfig'. Stop.

What does this mean?


Last edited by z-lite on Fri Nov 07, 2003 7:03 am; edited 1 time in total
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 534
Location: France

PostPosted: Fri Nov 07, 2003 7:02 am    Post subject: Reply with quote

You need to emerge ncurses.
Back to top
View user's profile Send private message
z-lite
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2003
Posts: 76

PostPosted: Fri Nov 07, 2003 7:14 am    Post subject: Reply with quote

I emerged, rebooted, and still get the same error.
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 534
Location: France

PostPosted: Fri Nov 07, 2003 7:18 am    Post subject: Reply with quote

OK
You have to clean up the linux directory. Must have kept config files from your last try.
make clean (or even mrproper)
And then it should magically work.
Back to top
View user's profile Send private message
z-lite
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2003
Posts: 76

PostPosted: Fri Nov 07, 2003 7:38 am    Post subject: Reply with quote

I get the same error when doing

make clean

and

make mrproper
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 534
Location: France

PostPosted: Fri Nov 07, 2003 7:43 am    Post subject: Reply with quote

And what is the output of 'make help' ?
Back to top
View user's profile Send private message
scootersmk
Apprentice
Apprentice


Joined: 17 May 2003
Posts: 186
Location: Knoxville, TN

PostPosted: Fri Nov 07, 2003 7:46 am    Post subject: Reply with quote

is there a symlink of your current kernel pointing to /usr/src/linux?
_________________
Long live the gentoo forums!!!!!
Back to top
View user's profile Send private message
z-lite
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2003
Posts: 76

PostPosted: Fri Nov 07, 2003 8:06 am    Post subject: Reply with quote

make help results in the same error: no rule to make target 'help'. stop.

How do I check for the symlink?
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 534
Location: France

PostPosted: Fri Nov 07, 2003 3:36 pm    Post subject: Reply with quote

Just on silly question, did you cd in the right directory before calling make ?
Back to top
View user's profile Send private message
Pete_Keller
l33t
l33t


Joined: 30 Sep 2003
Posts: 664
Location: Norwich, CT USA

PostPosted: Fri Nov 07, 2003 4:15 pm    Post subject: Reply with quote

z-lite,

cd /usr/src
ls -l

Pete
_________________
I am a SIGNATURE VIRUS, help me spread - attach me to your signature file.
Back to top
View user's profile Send private message
z-lite
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2003
Posts: 76

PostPosted: Fri Nov 07, 2003 7:20 pm    Post subject: Reply with quote

Ah ha! That I did not do. I looked under Network Devices and found RealTek 8139 and a bunch of other types of cards. Would it be ok if I unchecked all but the RealTek models?

I notice that gcc is compiling with -march=i386 but during install, I set it to athlon-xp. Do I have to edit another config file so that the kernel is compiled with the -march=athlon-xp?
Back to top
View user's profile Send private message
jaska
Bodhisattva
Bodhisattva


Joined: 06 Jun 2003
Posts: 725
Location: Finland

PostPosted: Fri Nov 07, 2003 7:23 pm    Post subject: Reply with quote

Depends, some programs don't use the cflags at all. Portage always compiles at march=i386 so.
Back to top
View user's profile Send private message
z-lite
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2003
Posts: 76

PostPosted: Fri Nov 07, 2003 7:26 pm    Post subject: Reply with quote

Thanks. Would it be ok if I unchecked all but the RealTek listings in menuconfig under Network Devices > Ethernet 10-100?

Is there any way to force Gentoo to see that I have a NIC with an IRQ of 4 (for example) and telling it other hardware addresses so it can see and use my NIC?
Back to top
View user's profile Send private message
Pete_Keller
l33t
l33t


Joined: 30 Sep 2003
Posts: 664
Location: Norwich, CT USA

PostPosted: Fri Nov 07, 2003 8:50 pm    Post subject: Reply with quote

z-lite,

Yes there is a way of passing those parameters on bootup to the NIC, I think it is something like real8981=irq4, or something like that (it is a command line entry).

EDIT: Here is a url for kernel boot parameters.

Pete
_________________
I am a SIGNATURE VIRUS, help me spread - attach me to your signature file.
Back to top
View user's profile Send private message
Stravos
n00b
n00b


Joined: 07 Nov 2003
Posts: 1

PostPosted: Fri Nov 07, 2003 9:15 pm    Post subject: Reply with quote

I'm having the same problem (internet works from the LiveCD but not from install). When I do lsmod from the install it shows the same as the CD (at least the 8139too and mii lines). When I try to run dhcpcd eth0 it just hangs for about 5 minutes then kicks me back to the prompt. I just used the default kernel from stage 3. /etc/resolv.conf contains the correct values (made automatically) so I'm not reall sure what the deal is, sounds slightly different than z-lite's problem but on the same line. Any ideas?

Thanks
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sat Nov 08, 2003 1:18 am    Post subject: Reply with quote

z-lite wrote:
I notice that gcc is compiling with -march=i386 but during install, I set it to athlon-xp. Do I have to edit another config file so that the kernel is compiled with the -march=athlon-xp?

The kernel is compiled separately from portage, so none of your /etc/make.conf settings are used. The setting you are looking for is in menuconfig.
Code:
Processor type and features  --->
(Athlon/Duron/K7) Processor family
Back to top
View user's profile Send private message
trapperjohn
Apprentice
Apprentice


Joined: 11 Nov 2003
Posts: 242
Location: Bremen/Germany

PostPosted: Tue Nov 11, 2003 7:06 am    Post subject: Realtek 8139C Reply with quote

Hello!

I have had the same errors - while booting, the system loads '8139too' and then tries to load '8139cp' (which is wrong, but hw-detection seems to like this module) several times.

When booting is finished, only the 8139too module is loaded (which is fine!) and 'ifconfig' shows a correct configuration - but the network doesn't seem to work (no pinging, dhcp etc.).

Some hours of comparing config-files (live cd worked correctly) - no result.

At last I emerged the vanilla-sources and compiled/installed the new kernel with genkernel.

Now everything works ...
Back to top
View user's profile Send private message
trapperjohn
Apprentice
Apprentice


Joined: 11 Nov 2003
Posts: 242
Location: Bremen/Germany

PostPosted: Tue Nov 11, 2003 10:38 am    Post subject: Reply with quote

It's already listed at bugs.gentoo.org:

https://bugs.gentoo.org/show_bug.cgi?id=29638
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