LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 01-08-2009, 02:32 PM   #1
legcard
Member
 
Registered: May 2007
Posts: 33

Rep: Reputation: 15
New kernel compile drops eth2 (redhat)


I have been struggling long time with new RH 2.6.27.10 kernel. After much angst with nvidia, got it to compile. Then I noticed that i was missing eth2(onboard NIC). I have researched and done lspci -v thinking that it would show me what I did wrong. I tried comparing the old .config with the new .config. I am lost. I used xconfig and the only thing I changed was Security Options to allow updated policy file. What happened to my ethernet?

ifconfig -a (old kernel)
eth0 Link encap:Ethernet HWaddr 00:10:64:30:F7:11
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Base address:0xbf00 Memory:fdbe0000-fdc00000

eth1 Link encap:Ethernet HWaddr 00:0E:0C:BC:2B:81
inet addr:192.1.1.60 Bcast:192.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::20e:cff:febc:2b81/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4522 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2154597 (2.0 MiB) TX bytes:590 (590.0 b)
Base address:0xdf00 Memory:fdee0000-fdf00000

eth2 Link encap:Ethernet HWaddr 00:0E:0C:BC:2C:64
inet addr:172.16.4.3 Bcast:172.16.4.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Base address:0xde00 Memory:fdea0000-fdec0000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2464 errors:0 dropped:0 overruns:0 frame:0
TX packets:2464 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3433062 (3.2 MiB) TX bytes:3433062 (3.2 MiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

****** ifconfig -a with new kernel ******************
eth0 Link encap:Ethernet HWaddr 00:10:64:30:F7:11
inet6 addr: fe80::210:64ff:fe30:f711/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4936 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2216550 (2.1 MiB) TX bytes:0 (0.0 b)

eth1 Link encap:Ethernet HWaddr 00:0E:0C:BC:2C:64
inet addr:192.1.1.60 Bcast:192.1.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


**********With old (2.6.9.67) kernel**************
lspci -v (partial)
02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
Subsystem: Super Micro Computer Inc: Unknown device 109a
Flags: bus master, fast devsel, latency 0, IRQ 225
Memory at fdbe0000 (32-bit, non-prefetchable) [size=128K]
I/O ports at bf00 [size=32]
Capabilities: [c8] Power Management version 2
Capabilities: [d0] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable+
Capabilities: [e0] Express Endpoint IRQ 0
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number f1-2a-89-ff-ff-48-30-00

03:00.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05)
Subsystem: Intel Corporation PRO/1000 GT Desktop Adapter
Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 209
Memory at fdee0000 (32-bit, non-prefetchable) [size=128K]
Memory at fdec0000 (32-bit, non-prefetchable) [size=128K]
I/O ports at df00 [size=64]
Capabilities: [dc] Power Management version 2
Capabilities: [e4] PCI-X non-bridge device.

03:03.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05)
Subsystem: Intel Corporation PRO/1000 GT Desktop Adapter
Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 177
Memory at fdea0000 (32-bit, non-prefetchable) [size=128K]
Memory at fde80000 (32-bit, non-prefetchable) [size=128K]
I/O ports at de00 [size=64]
Capabilities: [dc] Power Management version 2
Capabilities: [e4] PCI-X non-bridge device.


**********With the new kernel (2.6.27.10)***************
lspci -v (partial listing)
02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
Subsystem: Super Micro Computer Inc: Unknown device 109a
Flags: bus master, fast devsel, latency 0, IRQ 5
Memory at fdbe0000 (32-bit, non-prefetchable) [size=128K]
I/O ports at bf00 [size=32]
Capabilities: [c8] Power Management version 2
Capabilities: [d0] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [e0] Express Endpoint IRQ 0
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number f1-2a-89-ff-ff-48-30-00

03:00.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05)
Subsystem: Intel Corporation PRO/1000 GT Desktop Adapter
Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 20
Memory at fdee0000 (32-bit, non-prefetchable) [size=128K]
Memory at fdec0000 (32-bit, non-prefetchable) [size=128K]
I/O ports at df00 [size=64]
[virtual] Expansion ROM at fdd00000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2
Capabilities: [e4] PCI-X non-bridge device.

03:03.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05)
Subsystem: Intel Corporation PRO/1000 GT Desktop Adapter
Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 23
Memory at fdea0000 (32-bit, non-prefetchable) [size=128K]
Memory at fde80000 (32-bit, non-prefetchable) [size=128K]
I/O ports at de00 [size=64]
[virtual] Expansion ROM at fdd20000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2
Capabilities: [e4] PCI-X non-bridge device.

I would appreciate any ideas you have. Thank you in advance.


Linda
 
Old 01-08-2009, 07:27 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,285

Rep: Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029
Did you do an install_modules ?.
Easy check would be to compare "lsmod" from both.
 
Old 01-09-2009, 08:53 AM   #3
legcard
Member
 
Registered: May 2007
Posts: 33

Original Poster
Rep: Reputation: 15
Yes, I did a make install_modules. This is what I did after bzip2 of linux-2.6.27-10. I made a backup copy of the .config from my 2.6.9-67 kernel.
make clean
make mrproper
make oldconfig and just took the defaults. Must have flown past Security options so had to boot to CD to set selinux=disabled in /etc/selinux/selinux.conf
make CONFIG_DEBUG_SECTION_MISMATCH=y
make modules
make modules_install
make install
ln -s /usr/src/linux-2.6-27-10 /usr/src/linux
init 6 and wait for Xserver to flounder looking for nvidia
init 3 (CTrl-Alt-F2)
cd /root and run sh NVIDIA-blah-blah
init 5 and up it comes
uname -a show me new kernel so I change the /boot/grub/grub.conf file to default=0 to get the new kernel at bootup.

ifconfig -a shows only eth0, eth 1 and lo0. I've been told that the onboard NIC is supposed to be eth0 but it doesn't look that way to me. We normally activate eth1 and eth2 and leave eth0 deactivated.

I have also tried xconfig. I tried kernel 2.6.27.9 the first week or so and moved onto 2.6.27.10. I'm in week 3 and ready to jump out a window if I can't get this done. This is my first kernel change out so my inexperience is not helping. The only reason I am changing is CVE-2008-5134.

Thanks for looking.
 
Old 01-09-2009, 10:02 AM   #4
legcard
Member
 
Registered: May 2007
Posts: 33

Original Poster
Rep: Reputation: 15
OK, so I did an lsmod and to my surprise e1000 was listed as used by 0 in both the old kernel and the new. Man pages are slim on lsmod so I'm not sure what that is telling me. My guess is that e1000 does not have a module in the kernel. Hmm, does all hardware have modules in the kernel. I would think that would make it hard to change out hardware when things go bad/wrong, you have to re-compile your kernel. Is that right?

lsmod on 2.6.9-67 kernel
Module Size Used by
vfat 17089 1
fat 44129 1 vfat
usb_storage 62729 1
nvidia 6902568 26
parport_pc 28033 1
lp 15661 0
parport 38025 2 parport_pc,lp
autofs4 26053 0
sunrpc 144037 1
dm_mirror 31557 0
dm_mod 67177 1 dm_mirror
button 10705 0
battery 12997 0
ac 8901 0
i2c_core 26049 1 nvidia
md5 8129 1
ipv6 243553 10
uhci_hcd 33241 0
ehci_hcd 32325 0
snd_intel8x0 35049 0
snd_ac97_codec 65425 1 snd_intel8x0
snd_pcm_oss 52729 0
snd_mixer_oss 21953 1 snd_pcm_oss
snd_pcm 92485 2 snd_intel8x0,snd_pcm_oss
snd_timer 28229 1 snd_pcm
snd_page_alloc 14541 2 snd_intel8x0,snd_pcm
snd_mpu401_uart 11457 1 snd_intel8x0
snd_rawmidi 28005 1 snd_mpu401_uart
snd_seq_device 12105 1 snd_rawmidi
snd 57765 9 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi, snd_seq_device
soundcore 13089 1 snd
e1000 122705 0
floppy 58193 0
ext3 120137 4
jbd 60121 1 ext3
ata_piix 19141 5
libata 106141 1 ata_piix
sd_mod 20801 8
scsi_mod 120909 3 usb_storage,libata,sd_mod

lsmod on kernle 2.6.27.10
Module Size Used by
vfat 13832 1
fat 48184 1 vfat
usb_storage 71644 1
parport_pc 28008 1
lp 13864 0
parport 36380 2 parport_pc,lp
autofs4 21792 0
sunrpc 173232 3
dm_mirror 21384 0
dm_log 13064 1 dm_mirror
dm_mod 52848 2 dm_mirror,dm_log
button 10648 0
battery 14992 0
ac 8588 0
nvidia 6899928 26
ipv6 219728 16
ehci_hcd 34208 0
uhci_hcd 24604 0
i2c_i801 12824 0
i2c_core 25224 2 nvidia,i2c_i801
rng_core 8460 0
snd_intel8x0 31692 1
snd_ac97_codec 92724 1 snd_intel8x0
ac97_bus 6024 1 snd_ac97_codec
snd_pcm_oss 39648 0
snd_mixer_oss 17416 1 snd_pcm_oss
snd_pcm 70056 4 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer 23828 1 snd_pcm
snd 51852 7 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore 10980 1 snd
snd_page_alloc 12052 2 snd_intel8x0,snd_pcm
e1000 114196 0
floppy 55080 0
ext3 112472 4
jbd 47920 1 ext3
ata_piix 19852 5
libata 154008 1 ata_piix
dock 12840 1 libata
sd_mod 27784 8
scsi_mod 137756 3 usb_storage,libata,sd_mod
 
Old 01-26-2009, 11:37 AM   #5
legcard
Member
 
Registered: May 2007
Posts: 33

Original Poster
Rep: Reputation: 15
I wanted to give the answer here myself in case this happens to others. I found out after a lot of digging that Intel no longer feeds network drivers to kernel.org. Extra reading: http://www.osnews.com/story/20318/Ma...nel_2_6_27)and ( http://support.intel.com/support/net.../cs-008441.htm ).

So I went to Intell and drilled down until I found the driver http://www.intel.com/support/network/sb/CS-006120.htm

- Put the [driver.gz file in /usr/local and then gunzip'd the driver (had trouble with tar zvf)
- # cd /usr/local/e1000e-0.5.8.2/src
# make install #(verified the new modules were in /lib/modules/2.6.27-10/kernel/drivers/net/e1000e; it is e1000e.ko)
# vi /etc/modprobe.conf and changed the alias lines for eth0/eth1/eth2 to e1000e (write and quit)
# init 6
# ifconfig -a (and look for eth0/1/2 to ensure that new driver took)
- go back and clean up /usr/local

Last edited by legcard; 01-26-2009 at 11:39 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New kernel compile drops eth2 (redhat) legcard Linux - Software 0 01-08-2009 01:00 PM
How to compile 2.6 kernel on RedHat Ninja_212 Red Hat 1 03-08-2004 02:18 AM
how to compile the redhat kernel mmoohh Linux - Newbie 5 10-21-2003 07:26 PM
How can I compile a new kernel for Redhat 9? Sgaileach1 Linux - Software 6 07-28-2003 08:40 PM
RedHat 7.1 - Kernel Compile aford Linux - Newbie 18 03-13-2002 01:52 PM


All times are GMT -5. The time now is 01:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration