Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No eth0 after kernel compilation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
eimis
n00b
n00b


Joined: 05 Mar 2006
Posts: 29
Location: Lithuania

PostPosted: Sun Mar 12, 2006 6:36 pm    Post subject: No eth0 after kernel compilation Reply with quote

Hello!

Several days ago I have installed gentoo, but internet didn't work. I ran ifconfig -a and noticed, that eth0 wasn't listed at all. So I run modprobe 8139too (added to/etc/modules.autoload.d/kernel-2.6) and internet started work.
Today I decided to compile new kernel, because where was no sound with old one. I compiled it ( used http://gentoo-wiki.com/HOWTO_Compile_a_Kernel_Manually ), but it didn't work - "Unable to mount root fs on..." But now, then I try to boot with old kernel, but I get error:

Quote:
"* Error loading 8139too"


later:
Quote:

* Starting eth0
* bringing up eth0
* dhcp
* eth0 does not exist [!!]
* ERROR: Problem starting needed services.
* "netmount" was not started


My ethernet modules were 8139cp and 8139too, but now, when I run lsmod they aren't listed (mii isn't listed too).
So, can anybody help me?

Thanks for answers and sorry for mistakes :)
Back to top
View user's profile Send private message
kfiaciarka
Veteran
Veteran


Joined: 20 May 2005
Posts: 1498
Location: Dobre Miasto, Poland

PostPosted: Sun Mar 12, 2006 6:49 pm    Post subject: Reply with quote

Have you added them to /etc/modules.autoload/kernel-2.6?
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Sun Mar 12, 2006 7:00 pm    Post subject: Reply with quote

If you are compiling a kernel from existing sources, are you certain you rebuilt drivers for your ethernet card(s) ?
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
eimis
n00b
n00b


Joined: 05 Mar 2006
Posts: 29
Location: Lithuania

PostPosted: Sun Mar 12, 2006 7:49 pm    Post subject: Reply with quote

Code:
emerge -u gentoo-sources


Code:
USE="symlink x86 3dnow 3dnowex X aac aalib adns alsa apache2"


Code:
cd /usr/src/linux


Code:
make xconfig


Code:
make && make modules_install


Code:
cp arch/i386/boot/bzImage /boot/bzImage-new-kernel


That's all I did.
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Sun Mar 12, 2006 8:22 pm    Post subject: Reply with quote

Did you confirm that you built drivers for your nic, either compiled in the kernel, or as modules?
Code:
Device Drivers  --->
   Network device support  --->
      Ethernet (10 or 100Mbit)  --->
         [*] Ethernet (10 or 100Mbit)
            <M>   Generic Media Independent Interface device support
         <M> RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support

_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
eimis
n00b
n00b


Joined: 05 Mar 2006
Posts: 29
Location: Lithuania

PostPosted: Sun Mar 12, 2006 9:06 pm    Post subject: Reply with quote

Really I even didn't look at NIC driver. I have compiled kernel for Slackware and I never had such a problem.
Could you tell me, what are the differences between a driver compiled as module and compiled in kernel?
Back to top
View user's profile Send private message
kfiaciarka
Veteran
Veteran


Joined: 20 May 2005
Posts: 1498
Location: Dobre Miasto, Poland

PostPosted: Mon Mar 13, 2006 12:40 am    Post subject: Reply with quote

eimis wrote:
Really I even didn't look at NIC driver. I have compiled kernel for Slackware and I never had such a problem.
Could you tell me, what are the differences between a driver compiled as module and compiled in kernel?

Compiled-in is static, is a driver I would say. You can't load/unload it.
Modules can be dynamically loaded/unloaded.
Some people used to say that if you don't chande your hardware often you can have all needed things compiled-in as drivers.
Just find your way:)
Back to top
View user's profile Send private message
eimis
n00b
n00b


Joined: 05 Mar 2006
Posts: 29
Location: Lithuania

PostPosted: Mon Mar 13, 2006 7:41 am    Post subject: Reply with quote

Thanks, kfiaciarka.

And another question: I always configure kernel with make xconfig. And I can mark driver with tick and circle. Can anybody tell me, what do they (tick and circle) mean?
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Mon Mar 13, 2006 7:45 am    Post subject: Reply with quote

eimis wrote:
And another question: I always configure kernel with make xconfig. And I can mark driver with tick and circle. Can anybody tell me, what do they (tick and circle) mean?

tick = compiled into the kernel..
dot / circle = compiled as a kernel module..
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
eimis
n00b
n00b


Joined: 05 Mar 2006
Posts: 29
Location: Lithuania

PostPosted: Mon Mar 13, 2006 8:37 am    Post subject: Reply with quote

Yesterday, after I tryed to compile new kernel I got error:

Code:
# modprobe 8193too
FATAL: Module 8193too not found

# modprobe 8193cp
FATAL: Module 8193cp not found


Today I compiled my NIC drivers as modules. But they still not work. I get:

Code:
# modprobe 8139cp
FATAL: Error inserting 8139cp (/lib/modules/2.6.15-gentoo-r5/kernel/drivers/net/8139cp.ko): Invalid module format

# modprobe 8139too
FATAL: Error inserting 8139too (/lib/modules/2.6.15-gentoo-r5/kernel/drivers/net/8139too.ko): Invalid module format
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Mon Mar 13, 2006 9:01 am    Post subject: Reply with quote

You did compile in support for Loadable modules, right ?
Code:
Loadable module support  --->
   [*] Enable loadable module support
   [*]   Module unloading
   ...
   [*]   Automatic kernel module loading

_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
eimis
n00b
n00b


Joined: 05 Mar 2006
Posts: 29
Location: Lithuania

PostPosted: Mon Mar 13, 2006 9:19 am    Post subject: Reply with quote

Yes, I compiled it in kernel.

Perhaps 8139cp and 8139too don't work, because of mii module? Kernel doesn't load it automatically and when I run modprobe mii, I get:
Code:
# modprobe 8193cp
FATAL: Module 8193cp not found
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Mon Mar 13, 2006 9:24 am    Post subject: Reply with quote

Can you supply the outputs from:

Code:
# ls -l /lib/modules/`uname -r`/kernel/drivers/net

# lspci

_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
eimis
n00b
n00b


Joined: 05 Mar 2006
Posts: 29
Location: Lithuania

PostPosted: Mon Mar 13, 2006 10:21 am    Post subject: Reply with quote

I tryed to run other modules (for example cytherm), bet they aren't working too! I get message, that format is invalid.
Back to top
View user's profile Send private message
MengZhuo
n00b
n00b


Joined: 26 Mar 2006
Posts: 2

PostPosted: Mon Mar 27, 2006 1:24 am    Post subject: Reply with quote

I'm having the exact same problem, although I'm using the a 3com card (3c59x module, which always worked before)
First I did genkernel all, then everything worked, but my i had some clock problems so i should build the kernel manually. From then on, i always get invalid module support (even if i load the old genkernel)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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