View previous topic :: View next topic |
Author |
Message |
z-lite Tux's lil' helper
Joined: 04 Aug 2003 Posts: 76
|
Posted: Thu Nov 06, 2003 6:56 pm Post subject: first reboot and no network |
|
|
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 |
|
|
mpsii l33t
Joined: 11 Mar 2003 Posts: 658 Location: Jackson, TN
|
Posted: Thu Nov 06, 2003 7:08 pm Post subject: |
|
|
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 |
|
|
z-lite Tux's lil' helper
Joined: 04 Aug 2003 Posts: 76
|
Posted: Thu Nov 06, 2003 7:46 pm Post subject: |
|
|
I get the same error. Any other suggestions? |
|
Back to top |
|
|
Pete_Keller l33t
Joined: 30 Sep 2003 Posts: 664 Location: Norwich, CT USA
|
Posted: Thu Nov 06, 2003 8:50 pm Post subject: |
|
|
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 |
|
|
SmokinBudda n00b
Joined: 31 Oct 2003 Posts: 46 Location: Da Dirty Dirty
|
Posted: Thu Nov 06, 2003 8:57 pm Post subject: |
|
|
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 |
|
|
z-lite Tux's lil' helper
Joined: 04 Aug 2003 Posts: 76
|
Posted: Fri Nov 07, 2003 5:13 am Post subject: |
|
|
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 |
|
|
scootersmk Apprentice
Joined: 17 May 2003 Posts: 186 Location: Knoxville, TN
|
Posted: Fri Nov 07, 2003 6:31 am Post subject: |
|
|
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 |
|
|
z-lite Tux's lil' helper
Joined: 04 Aug 2003 Posts: 76
|
Posted: Fri Nov 07, 2003 6:58 am Post subject: |
|
|
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 |
|
|
guitou Guru
Joined: 02 Oct 2003 Posts: 534 Location: France
|
Posted: Fri Nov 07, 2003 7:02 am Post subject: |
|
|
You need to emerge ncurses. |
|
Back to top |
|
|
z-lite Tux's lil' helper
Joined: 04 Aug 2003 Posts: 76
|
Posted: Fri Nov 07, 2003 7:14 am Post subject: |
|
|
I emerged, rebooted, and still get the same error. |
|
Back to top |
|
|
guitou Guru
Joined: 02 Oct 2003 Posts: 534 Location: France
|
Posted: Fri Nov 07, 2003 7:18 am Post subject: |
|
|
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 |
|
|
z-lite Tux's lil' helper
Joined: 04 Aug 2003 Posts: 76
|
Posted: Fri Nov 07, 2003 7:38 am Post subject: |
|
|
I get the same error when doing
make clean
and
make mrproper |
|
Back to top |
|
|
guitou Guru
Joined: 02 Oct 2003 Posts: 534 Location: France
|
Posted: Fri Nov 07, 2003 7:43 am Post subject: |
|
|
And what is the output of 'make help' ? |
|
Back to top |
|
|
scootersmk Apprentice
Joined: 17 May 2003 Posts: 186 Location: Knoxville, TN
|
Posted: Fri Nov 07, 2003 7:46 am Post subject: |
|
|
is there a symlink of your current kernel pointing to /usr/src/linux? _________________ Long live the gentoo forums!!!!! |
|
Back to top |
|
|
z-lite Tux's lil' helper
Joined: 04 Aug 2003 Posts: 76
|
Posted: Fri Nov 07, 2003 8:06 am Post subject: |
|
|
make help results in the same error: no rule to make target 'help'. stop.
How do I check for the symlink? |
|
Back to top |
|
|
guitou Guru
Joined: 02 Oct 2003 Posts: 534 Location: France
|
Posted: Fri Nov 07, 2003 3:36 pm Post subject: |
|
|
Just on silly question, did you cd in the right directory before calling make ? |
|
Back to top |
|
|
Pete_Keller l33t
Joined: 30 Sep 2003 Posts: 664 Location: Norwich, CT USA
|
Posted: Fri Nov 07, 2003 4:15 pm Post subject: |
|
|
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 |
|
|
z-lite Tux's lil' helper
Joined: 04 Aug 2003 Posts: 76
|
Posted: Fri Nov 07, 2003 7:20 pm Post subject: |
|
|
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 |
|
|
jaska Bodhisattva
Joined: 06 Jun 2003 Posts: 725 Location: Finland
|
Posted: Fri Nov 07, 2003 7:23 pm Post subject: |
|
|
Depends, some programs don't use the cflags at all. Portage always compiles at march=i386 so. |
|
Back to top |
|
|
z-lite Tux's lil' helper
Joined: 04 Aug 2003 Posts: 76
|
Posted: Fri Nov 07, 2003 7:26 pm Post subject: |
|
|
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 |
|
|
Pete_Keller l33t
Joined: 30 Sep 2003 Posts: 664 Location: Norwich, CT USA
|
Posted: Fri Nov 07, 2003 8:50 pm Post subject: |
|
|
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 |
|
|
Stravos n00b
Joined: 07 Nov 2003 Posts: 1
|
Posted: Fri Nov 07, 2003 9:15 pm Post subject: |
|
|
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 |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Nov 08, 2003 1:18 am Post subject: |
|
|
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 |
|
|
trapperjohn Apprentice
Joined: 11 Nov 2003 Posts: 242 Location: Bremen/Germany
|
Posted: Tue Nov 11, 2003 7:06 am Post subject: Realtek 8139C |
|
|
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 |
|
|
trapperjohn Apprentice
Joined: 11 Nov 2003 Posts: 242 Location: Bremen/Germany
|
|
Back to top |
|
|
|