View previous topic :: View next topic |
Author |
Message |
eimis n00b

Joined: 05 Mar 2006 Posts: 29 Location: Lithuania
|
Posted: Sun Mar 12, 2006 6:36 pm Post subject: No eth0 after kernel compilation |
|
|
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 |
|
 |
kfiaciarka Veteran


Joined: 20 May 2005 Posts: 1498 Location: Dobre Miasto, Poland
|
Posted: Sun Mar 12, 2006 6:49 pm Post subject: |
|
|
Have you added them to /etc/modules.autoload/kernel-2.6? |
|
Back to top |
|
 |
TheRAt Veteran


Joined: 03 Jun 2002 Posts: 1580
|
Posted: Sun Mar 12, 2006 7:00 pm Post subject: |
|
|
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 |
|
 |
eimis n00b

Joined: 05 Mar 2006 Posts: 29 Location: Lithuania
|
Posted: Sun Mar 12, 2006 7:49 pm Post subject: |
|
|
Code: | emerge -u gentoo-sources |
Code: | USE="symlink x86 3dnow 3dnowex X aac aalib adns alsa apache2" |
Code: | make && make modules_install |
Code: | cp arch/i386/boot/bzImage /boot/bzImage-new-kernel |
That's all I did. |
|
Back to top |
|
 |
TheRAt Veteran


Joined: 03 Jun 2002 Posts: 1580
|
Posted: Sun Mar 12, 2006 8:22 pm Post subject: |
|
|
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 |
|
 |
eimis n00b

Joined: 05 Mar 2006 Posts: 29 Location: Lithuania
|
Posted: Sun Mar 12, 2006 9:06 pm Post subject: |
|
|
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 |
|
 |
kfiaciarka Veteran


Joined: 20 May 2005 Posts: 1498 Location: Dobre Miasto, Poland
|
Posted: Mon Mar 13, 2006 12:40 am Post subject: |
|
|
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 |
|
 |
eimis n00b

Joined: 05 Mar 2006 Posts: 29 Location: Lithuania
|
Posted: Mon Mar 13, 2006 7:41 am Post subject: |
|
|
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 |
|
 |
TheRAt Veteran


Joined: 03 Jun 2002 Posts: 1580
|
Posted: Mon Mar 13, 2006 7:45 am Post subject: |
|
|
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 |
|
 |
eimis n00b

Joined: 05 Mar 2006 Posts: 29 Location: Lithuania
|
Posted: Mon Mar 13, 2006 8:37 am Post subject: |
|
|
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 |
|
 |
TheRAt Veteran


Joined: 03 Jun 2002 Posts: 1580
|
Posted: Mon Mar 13, 2006 9:01 am Post subject: |
|
|
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 |
|
 |
eimis n00b

Joined: 05 Mar 2006 Posts: 29 Location: Lithuania
|
Posted: Mon Mar 13, 2006 9:19 am Post subject: |
|
|
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 |
|
 |
TheRAt Veteran


Joined: 03 Jun 2002 Posts: 1580
|
Posted: Mon Mar 13, 2006 9:24 am Post subject: |
|
|
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 |
|
 |
eimis n00b

Joined: 05 Mar 2006 Posts: 29 Location: Lithuania
|
Posted: Mon Mar 13, 2006 10:21 am Post subject: |
|
|
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 |
|
 |
MengZhuo n00b

Joined: 26 Mar 2006 Posts: 2
|
Posted: Mon Mar 27, 2006 1:24 am Post subject: |
|
|
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 |
|
 |
|