LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-29-2012, 08:39 AM   #1
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Rep: Reputation: 16
internal nics +fb not working after recompile with kernel 3.3.3


Hi,

My default debian install is working ok.
Recompiled my kernel with a 3.3.3 kernel and have the following issues :

- framebuffer is not working
(seems like update-initramfs -c -k 3.3.3 did not include it in the image ? )

- internal nics not detected, ifconfig only show "lo"
no messages in dmesg about my internal nics whatsoever.
lsmod does not show e1000e loaded as opposed to the default debian kernel.
If I manually modprobe e1000e, dmesg shows he found both nics eth0 & eth1 but no success when issueing lspci -v or ifconfig... only have "lo" available :-/

Hope you guys can give me some advice

Just installed the latest debianAMD64.
Here some info :

root@jaffa:/# more /etc/debian_version
6.0.4

default debian kernel :
# uname -a
Linux jaffa 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012 x86_64 GNU/Linux

note : I have the same server with an older setup and kernel 2.6.22.24.02.08 that is using e1000 instead of e1000e as a driver... :


# lspci -v

05:00.0 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper) (rev 01)
Subsystem: Intel Corporation Device 346c
Flags: bus master, fast devsel, latency 0, IRQ 57
Memory at b8c20000 (32-bit, non-prefetchable) [size=128K]
Memory at b8800000 (32-bit, non-prefetchable) [size=4M]
I/O ports at 2020 [size=32]
Capabilities: [c8] Power Management version 2
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [e0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 00-04-23-ff-ff-dd-65-46
Kernel driver in use: e1000e

05:00.1 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper) (rev 01)
Subsystem: Intel Corporation Device 346c
Flags: bus master, fast devsel, latency 0, IRQ 58
Memory at b8c00000 (32-bit, non-prefetchable) [size=128K]
Memory at b8400000 (32-bit, non-prefetchable) [size=4M]
I/O ports at 2000 [size=32]
Capabilities: [c8] Power Management version 2
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [e0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 00-04-23-ff-ff-dd-65-46
Kernel driver in use: e1000e

----------

# grep -ie "e1000\|intel" /boot/config-3.3.3
CONFIG_NET_VENDOR_INTEL=y
# CONFIG_E1000 is not set
CONFIG_E1000E=m

root@jaffa:/home/ben/3.3.3/etc/modprobe.d# grep -ie "e1000\|intel" /boot/config-2.6.32-5-amd64
CONFIG_HAVE_INTEL_TXT=y
CONFIG_CPU_SUP_INTEL=y
CONFIG_X86_MCE_INTEL=y
CONFIG_MICROCODE_INTEL=y
CONFIG_MTD_CFI_INTELEXT=m
CONFIG_MTD_INTEL_VR_NOR=m
CONFIG_E1000=m
CONFIG_E1000E=m

if more info is needed I will be happy to add it !

thx
 
Old 04-29-2012, 10:26 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Perhaps the mkinitramfs tool has changed syntax in recent updates, but try this:
Code:
mkinitramfs -o /boot/initrd.img-3.3.3 3.3.3
Rebuild the Grub2 image too, of course

As for the NIC's, try forcing the older drivers instead of the latest by blacklisting the latter.
 
Old 04-29-2012, 12:14 PM   #3
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
made an initramfs with your suggested command, system boots but no difference in Framebuffering or network device.

Here some more findings :

1 - After booting in kernel 3.3.3 following modules are loaded by default :
root@jaffa:/home/ben# more loaded_modules_3.3.3.log
Module Size Used by
binfmt_misc 6186 1
kvm_intel 115191 0
kvm 291363 1 kvm_intel
ext2 51769 1
loop 14043 0
ext4 348426 6
mbcache 4962 2 ext2,ext4
jbd2 56738 1 ext4
crc16 1311 1 ext4

------------------------------------------
2 - after doing # modprobe e1000e i get the following output in dmesg :

[ 10.512722] sshd (800): /proc/800/oom_adj is deprecated, please use /proc/800/oom_score_adj instead.
[ 123.502751] e1000e: Intel(R) PRO/1000 Network Driver - 1.5.1-k
[ 123.502754] e1000e: Copyright(c) 1999 - 2011 Intel Corporation.
[ 123.505408] e1000e 0000:05:00.0: irq 64 for MSI/MSI-X
[ 123.555820] e1000e 0000:05:00.0: eth0: (PCI Express:2.5GT/s:Width x4) 00:04:23:dd:65:46
[ 123.555823] e1000e 0000:05:00.0: eth0: Intel(R) PRO/1000 Network Connection
[ 123.555902] e1000e 0000:05:00.0: eth0: MAC: 5, PHY: 5, PBA No: 301000-001
[ 123.558484] e1000e 0000:05:00.1: irq 65 for MSI/MSI-X
[ 123.613249] e1000e 0000:05:00.1: eth1: (PCI Express:2.5GT/s:Width x4) 00:04:23:dd:65:47
[ 123.613252] e1000e 0000:05:00.1: eth1: Intel(R) PRO/1000 Network Connection
[ 123.613331] e1000e 0000:05:00.1: eth1: MAC: 5, PHY: 5, PBA No: 301000-001

AND

# lspci shows :

05:00.0 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper) (rev 01)
05:00.1 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper) (rev 01)

-------------------------------------------

3 - Now for a reason I ignore # ifconfig will only still show "lo" .


Any suggestions ? Maybe I forgot to compile something that is needed to create devices ?
 
Old 04-29-2012, 12:32 PM   #4
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
getting the impression that the driver for e1000e in 3.3.3 is broke/bugged.

Will try via the driver from the intel website that I downloaded here :
http://downloadcenter.intel.com/Deta...=3003&lang=eng
 
Old 04-29-2012, 01:13 PM   #5
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
Ok, new info :-)

So I installed the latest driver from the intel site, installed the new module in /lib/modules/3.3.3/kernel/drivers/net/e1000e.ko


also added the following lines in /etc/modprobe.d/aliases.conf :
alias eth0 e1000e
alias eth1 e1000e

----

# modprobe -v e1000e :

[ 939.422071] e1000e: Intel(R) PRO/1000 Network Driver - 1.11.3-NAPI <-- as opposed to 1.5.2-K driver from 3.3.3
[ 939.422334] e1000e: Copyright(c) 1999 - 2012 Intel Corporation.
[ 939.425901] e1000e 0000:05:00.0: irq 64 for MSI/MSI-X
[ 939.507351] e1000e 0000:05:00.0: eth0: (PCI Express:2.5GT/s:Width x4) 00:04:23:dd:65:46
[ 939.507817] e1000e 0000:05:00.0: eth0: Intel(R) PRO/1000 Network Connection
[ 939.508161] e1000e 0000:05:00.0: eth0: MAC: 6, PHY: 5, PBA No: 301000-001
[ 939.511646] e1000e 0000:05:00.1: irq 65 for MSI/MSI-X
[ 939.584295] e1000e 0000:05:00.1: eth1: (PCI Express:2.5GT/s:Width x4) 00:04:23:dd:65:47
[ 939.584762] e1000e 0000:05:00.1: eth1: Intel(R) PRO/1000 Network Connection
[ 939.585099] e1000e 0000:05:00.1: eth1: MAC: 6, PHY: 5, PBA No: 301000-001
[ 953.481807] e1000e 0000:05:00.0: irq 64 for MSI/MSI-X
[ 953.537298] e1000e 0000:05:00.0: irq 64 for MSI/MSI-X

-------------

Now you would figure eth0 comes up automatically and takes his config from /etc/networking/interfaces...
No such thing :-(

/etc/init.d/networking restart or # services networking restart doesn't make my interface come up...

The culprit seems to be in /etc/init.d/networking:

If I change the -a to the name of the interface, being eth0 , and I reload the script everything starts to work as a charm !!!

log_warning_msg "Running $0 $1 is deprecated because it may not enable again some interfaces"
log_action_begin_msg "Reconfiguring network interfaces"
#ifdown -a --exclude=lo || true
ifdown eth0 --exclude=lo || true
#if ifup -a --exclude=lo; then
if ifup eth0 --exclude=lo; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
;;

-------

man ifup/ifdown shows the following for -a

-a, --all
If given to ifup, affect all interfaces marked auto. <-- what the hell is auto ?

so checked my /etc/networking/interfaces :
root@jaffa:/home/ben# more /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.1.249
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

--------
auto eth0 seemed to be missing, weird, as I never edited this file before. This is info put in there during OS install.

added auto eth0 & removed allow-hotplug eth0 , because I have an onboard nic, doesnt make sense to me...

-------

# service networking restart WORKS LIKE A CHARM now :-)


THIS PROBLEM IS SOLVED, I RULE :-D
 
  


Reply



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
Trying to recompile kernel but config's not working. SonicGT Linux - Newbie 11 08-25-2005 08:01 PM
Syanptics touchpad not working after recompile of kernel microsoft/linux Linux - Laptop and Netbook 13 02-18-2005 09:23 AM
Modem not working after kernel recompile blk96gt Slackware 3 07-28-2004 02:47 PM
Mouse not working after kernel recompile. phekno Linux - Newbie 2 12-03-2003 07:50 PM
kernel recompile not working tokyo-jamie Linux - General 8 09-02-2003 09:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:06 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration