What's new

problem bringing up eth0 when loading

mesman00

What's that...?
ok, i just finished doing a fresh install of gentoo. i added my network cards module to modules.autuload (8139too- atleast this is what it is on the livecd, could it be different?). it tells me that it fails to load this module, and then it tells me that it fails to bring up eth0. does anyone know what is going on here, do i need to run some additional scripts to get my network up? my network card is a:
Realtek RTL8139(A) PCI Fast Ethernet Adaptor
does anyone know what the proper module for this card is that i need to add to modules.autoload, or anything else i can do do get my internet up and running. thanks

edit* i just recompiled my kernel, and under network card i changed it from what was selected to what my card actually is. however, after restarting it still gives me the same errors.
 
OP
mesman00

mesman00

What's that...?
it's the gentoo-kernel, whatever the newest version is. and what do you mean compile it as a module?

this is what the compile command for my kernel looks like after configuring it:

make dep && make clean bzImage modules modules_install
 
Last edited:

Slougi

New member
Are you loading the module?

Edit: sorry, didn't read the post properly. The module name should be in the help for the driver. Just press "?" on the keyboard when the driver is highlighted in the menuconfig.
 
OP
mesman00

mesman00

What's that...?
ok...let me get in one more thing. also, when gentoo is loading, it said that devfs must be enable in the kernel. however, in my kernel, "/dev file system suppor" is enalbe under "File Systems." However, i still get this error everytime i load up. this is exactly how i compiled my kernel:

cd /usr/src/linux
source /etc/profile
make menuconfig
(config kernel)
make dep && make clean bzImage modules modules_install
mv /boot/bzImage /boot/bzImage.orig

am i missing something that is causing things not to work right. thanks

*edit* i just checked, in makemenu the module is listed at 8139too. therefore, i have it right in modules.autoload. however, it still tells me it isn't found.
 
Last edited:

euphoria

Emutalk Member
mesman00 said:
ok...let me get in one more thing. also, when gentoo is loading, it said that devfs must be enable in the kernel. however, in my kernel, "/dev file system suppor" is enalbe under "File Systems." However, i still get this error everytime i load up. this is exactly how i compiled my kernel:

cd /usr/src/linux
source /etc/profile
make menuconfig
(config kernel)
make dep && make clean bzImage modules modules_install
mv /boot/bzImage /boot/bzImage.orig

am i missing something that is causing things not to work right. thanks

*edit* i just checked, in makemenu the module is listed at 8139too. therefore, i have it right in modules.autoload. however, it still tells me it isn't found.

Maybe you missed something or i'm missing, but it seems you don't copy the compiled kernel to /boot/ ?? Maybe something like:
cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage
but propably you've done this and then i have no clue
:)
 

Malcolm

Not a Moderator
The Khan Artist said:
If it is compiled as a module, there will be an asterisk next to it in the kernel config.

If its a module a [M] will apear beside the option, if its compiled _into_ the kernel then it has [*] beside the option.
Originally posted by euphoria
Maybe you missed something or i'm missing, but it seems you don't copy the compiled kernel to /boot/ ?? Maybe something like:
cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage
but propably you've done this and then i have no clue
If he can boot without the CD then he must have moved his bzImage over.

My suggestion is go back into the kernel config (make menuconfig) and enable the regular 8139 driver. Make sure you choose it as a module as you won't have to recompile everything.
Now do a 'make modules modules_install' and try that module.

That all I got

[edit]
If you have a nvidia card and you've already installed the nvidia-kernel and kernel-glx ebuilds you're going to have to re-compile the kernel one as its written over every time you do a 'make modules_install'
[/Edit]
 
Last edited:

Slougi

New member
Nvidia drivers do net get overwritten, alsa will get though.

Other things to check is whether /boot is mounted, that the /usr/src/linux symlink is correct. Can't think of anything beside that. Oh, witten had a problem like this too. Make sure you disable SMP! Everything worked after that.
 
OP
mesman00

mesman00

What's that...?
Slougi said:
Nvidia drivers do net get overwritten, alsa will get though.

Other things to check is whether /boot is mounted, that the /usr/src/linux symlink is correct. Can't think of anything beside that. Oh, witten had a problem like this too. Make sure you disable SMP! Everything worked after that.

ok, how do i check to make sure that /boot is mounted? should i just do "cd /boot". second, how do i make sure that the "/usr/src/linux symlink is correct". better yet, what is that? third, how do i disable SMP? Is it in the kernel menuconfig?
also, any idea about the devfs problem?

*edit* i just noticed this error when loading up gentoo, maybe it has something to do with my problems:

fsck 1.33
fsck.xfs: not found
fsck: Error 2 while executing fsck.xfs from /dev/hda7
 
Last edited:

Slougi

New member
You should have specified /boot in /etc/fstab during the install. Just mount it (mount /boot) then copy the kernel there. The /usr/src/linux symlink should point to the current kernel. For example on my box:

Code:
louai@Gondolin louai $ cd /usr/src/
louai@Gondolin src $ ls -l
total 3
lrwxrwxrwx    1 root     root           16 May  8 13:35 linux -> linux-2.4.20-ck6
drwxr-xr-x   14 root     root          720 May  5 01:16 linux-2.4.20
drwxr-xr-x   14 root     root          664 Jun 12 16:49 linux-2.4.20-ck6
drwxr-xr-x    7 root     root          192 Apr 18 11:58 pc
louai@Gondolin src $

I hope that makes it clearer. As to the fsck.xfs problem, once networking is go emerge xfsprogs.
PS: Yes, SMP is in menuconfig under processor.

Actually before doing anything at all check the following:

1) Module is loaded (lsmod)
2) /etc/conf.d/net is configured correctly
3) if module loaded whether ifconfig sees the NIC (ifconfig -a)

If 3) is true it is just configured wrongly somehow.
 
OP
mesman00

mesman00

What's that...?
ok, i got it figured out. apparently i formatted the partition as xfs, not ext2 like i thought. then, i used the gentoo-sources kernel which is not compatible with xfs. i think this is where my problems were coming from. therefore, i reformatted the drive and setup everything up from scratch. (ext2 for boot, ext3 for root). however, when i restart my computer, instead of going directly to the grub boot menu, it just brings me to a grub command prompt. at that prompt i have to type:
configfile /boot/grub/grub.conf
to bring up the actual boot menu. then i can boot into either linux or windows fine, and everything in linux loads up fine (including internet). so, does anyone know how to fix this?
 

Top