Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eth0: unknown interface: No such device
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
Guest






PostPosted: Wed Aug 07, 2002 7:37 pm    Post subject: eth0: unknown interface: No such device Reply with quote

After installing gentoo (in wich my network card was working perfectly with the 8139too module) I'm having problems with it :(

During startup and if I use the ifconfig eth0 192...... command as described in the install manual, I get this message:

SIOCSIFADDR: No such device
eth0: unknown interface: No such device
SIOCSIFBRDADDR: No such device
eth0: unknown interface: No such device
SIOCSIFNETMASK: No such device
eth0: unknown interface: No such device

I went trough my dmesg and couldn't find anything that looks like the name of my network card...

Did I screw something up while compiling the kernel?
I'm kind of a linux newbie (I'm more used to fbsd)
Any ideas on how to fix this and what SIOCSIF* means?
Back to top
format c:
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2002
Posts: 89
Location: Berlin

PostPosted: Wed Aug 07, 2002 7:58 pm    Post subject: Reply with quote

I think the module for your Realtek-card isn't load. Try a

modprobe 8139too
ifconfic -a

If your card detected wirte 8139too in the

/etc/modules.autoload

If the modules not loaded and you've compiled a new kernel before, try this:

uname -r # show kernel_name
depmod -ae kernel_name
depmod -a kernel_name
depmod kernel_name

Hope it is helpfull
Back to top
View user's profile Send private message
=X¥®µ§=
n00b
n00b


Joined: 19 Jul 2002
Posts: 53
Location: Belgium

PostPosted: Wed Aug 07, 2002 8:02 pm    Post subject: Reply with quote

I'd already tried to modprobe 8139too but he doesn't find that module...
with ifconfig -a I only get the local configuration and not the eth0 one

would
uname -r # show kernel_name
depmod -ae kernel_name
depmod -a kernel_name
depmod kernel_name

still be helpful then?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Aug 07, 2002 8:13 pm    Post subject: Reply with quote

I believe the name of the Realtek 8139 module is rtl8139, not 8139too.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
=X¥®µ§=
n00b
n00b


Joined: 19 Jul 2002
Posts: 53
Location: Belgium

PostPosted: Wed Aug 07, 2002 8:15 pm    Post subject: Reply with quote

thx, I'll try that - during install it was named 8139too though
Back to top
View user's profile Send private message
format c:
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2002
Posts: 89
Location: Berlin

PostPosted: Wed Aug 07, 2002 8:16 pm    Post subject: Reply with quote

maybe

look in
/lib/modules/kernel_name/drivers/net
for 8139too.o

If it is there, there's a good chance for the depmods. If it isn't you haven't compiled it with your kernel.

supplement:
http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/ref-guide/s1-modules-ethernet.html
Back to top
View user's profile Send private message
=X¥®µ§=
n00b
n00b


Joined: 19 Jul 2002
Posts: 53
Location: Belgium

PostPosted: Wed Aug 07, 2002 9:26 pm    Post subject: Reply with quote

ok, I've recompiled the kernel, with support for my network card this time ;)
my internet connection works with other words

however I changed some other stuff too and I screwed up again:
[boot message]
Code:

failed to calculate dependencies

loading module ide_scsi...
failed to load ide-scsi               [!!!]

loading module sg...
failed to load sg               [!!!]

loading module ide_scsi...
failed to load sr_mod               [!!!] 

now what did I do that causes this :? :cry:
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Wed Aug 07, 2002 11:43 pm    Post subject: Reply with quote

=X¥®µ§= wrote:
now what did I do that causes this :? :cry:


Sounds like the modules you put in /etc/modules.autoload were not built or not installed.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
=X¥®µ§=
n00b
n00b


Joined: 19 Jul 2002
Posts: 53
Location: Belgium

PostPosted: Thu Aug 08, 2002 7:44 am    Post subject: Reply with quote

so how do I do that??
isn't that supposed to happen with the modules modules_install part of kernel compilation? or did I forget that? (I don't think so but I'm not 100% sure...)
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Aug 08, 2002 7:54 am    Post subject: Reply with quote

=X¥®µ§= wrote:
isn't that supposed to happen with the modules modules_install part of kernel compilation?

In general, yes. However, many things can get in the way:
  • make modules failed with an error, so the needed modules were not installed
  • /boot was not mounted when you copied your kernel to it
  • your bootloader is not choosing the kernel you think it is
  • the module autoloader is not active in your kernel
  • changes in configuration made dependencies stale when you compiled, so needed other modules were not built
You will probably get more helpful error messages by trying to run modprobe on the relevant modules by hand, as when the init scripts do it for you, they can be somewhat terse in case of failure.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
=X¥®µ§=
n00b
n00b


Joined: 19 Jul 2002
Posts: 53
Location: Belgium

PostPosted: Thu Aug 08, 2002 9:49 am    Post subject: Reply with quote

Quote:
make modules failed with an error, so the needed modules were not installed

I did 'make modules modules_install' again: no error
Quote:

/boot was not mounted when you copied your kernel to it

it was
Quote:
your bootloader is not choosing the kernel you think it is

it is
Quote:
the module autoloader is not active in your kernel

how can I turn this on? but I don't think it's thisone either
Quote:
changes in configuration made dependencies stale when you compiled, so needed other modules were not built

how to fix this?
Quote:

You will probably get more helpful error messages by trying to run modprobe on the relevant modules by hand, as when the init scripts do it for you, they can be somewhat terse in case of failure.

Code:

>modprobe ide-scsi
/lib/modules/2.4.19-gentoo-r5/kernel/drivers/scsi/scsi_mod.o: unresolved symbol _mmx_memcpy
/lib/modules/2.4.19-gentoo-r5/kernel/drivers/scsi/scsi_mod.o: insmod /lib/modules/2.4.19-gentoo-r5/kernel/drivers/scsi/scsi_mod.o failed
/lib/modules/2.4.19-gentoo-r5/kernel/drivers/scsi/scsi_mod.o: insmod ide-scsi failed
>modprobe sr_mod
/lib/modules/2.4.19-gentoo-r5/kernel/drivers/scsi/scsi_mod.o: unresolved symbol _mmx_memcpy
/lib/modules/2.4.19-gentoo-r5/kernel/drivers/scsi/scsi_mod.o: insmod /lib/modules/2.4.19-gentoo-r5/kernel/drivers/scsi/scsi_mod.o failed
/lib/modules/2.4.19-gentoo-r5/kernel/drivers/scsi/scsi_mod.o: insmod sr_mod failed
>modprobe sg
/lib/modules/2.4.19-gentoo-r5/kernel/drivers/scsi/scsi_mod.o: unresolved symbol _mmx_memcpy
/lib/modules/2.4.19-gentoo-r5/kernel/drivers/scsi/scsi_mod.o: insmod /lib/modules/2.4.19-gentoo-r5/kernel/drivers/scsi/scsi_mod.o failed
/lib/modules/2.4.19-gentoo-r5/kernel/drivers/scsi/scsi_mod.o: insmod sg failed


is that to any help for you?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Aug 08, 2002 10:07 am    Post subject: Reply with quote

=X¥®µ§= wrote:

Quote:
the module autoloader is not active in your kernel

how can I turn this on? but I don't think it's thisone either

Loadable module support -> Kernel module loader

Quote:
Quote:
changes in configuration made dependencies stale when you compiled, so needed other modules were not built

how to fix this?

Stash your .config file somewhere safe, and then "make mrproper", bring the .config file back, "make dep" again.

Quote:
Code:

>modprobe ide-scsi
/lib/modules/2.4.19-gentoo-r5/kernel/drivers/scsi/scsi_mod.o: unresolved symbol _mmx_memcpy

is that to any help for you?

Yes. You've got an Athlon, right? I have seen several such unresolved mmx-related symbol errors, usually involving the nvidia modules. Three things to try:
  • turn off "Set version information on all module symbols", then run "make mrproper" (saving your .config file),
  • use vanilla-sources instead of gentoo-sources,
  • change your processor setting in the kernel configuration to be a P3 instead of an Athlon

_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Aug 08, 2002 11:41 am    Post subject: Reply with quote

thx I have an Athlon indeed
when I added my network card in the kernel I changed it form pentium to athlon so that was the problem, I changed it back and it works!!
are the linux developers aware of this problem?

only 1 thing left to figure out: "failed to calculate dependencies" still remains, you can see this right before it starts loading those 3 modules

any ideas?
Back to top
Guest






PostPosted: Thu Aug 08, 2002 11:55 am    Post subject: Reply with quote

I pulled the following from a google search thread(I can't seem to find the directions on how to use these code, list. img., emoticons,etc things):

"> The offending function is _mmx_memcpy, which can be found in the System.map
> (but, opposed to other functions, with an upper "T" instead of "t").
I had the same problem after I accidentally compiled the kernel with
SMP support. make mrproper did help. (safe your .config before trying it)"

I have used the 'make mrproper' command(when compiling a new kernel) numerous times and it does seem to clear some things up. In case you're not familiar with 'mrproper' see the linux kernel howto. However, the sequence of its use is:

cp /usr/src/linux-xx-gentoo-xx/.config ---> to,say,your home dir. (mrproper will wipe out the one in the kernel tree).
cd /usr/src/linux-xx-gentoo-xx
make mrproper
make menuconfig --->(at the bottom of the menuconfig screen is something like 'load an alternate configuration file' which you will select and type in the location where you copied the .config file to, e.g /home/=X¥®µ§=/.config, which will load that configuration file. Otherwise, you build the kernel from the default config.)

And you know the rest of the drill. HTH, Bill
Back to top
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Aug 08, 2002 6:18 pm    Post subject: Reply with quote

Anonymous wrote:
only 1 thing left to figure out: "failed to calculate dependencies" still remains

Try running "update-modules" by hand (as root) and see what the error message is. If it's "/etc/modules.conf not automatically generated", run "update-modules --force" once, and it should be fine after that. Otherwise, post the error message.
_________________
For every higher wall, there is a taller ladder
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