LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-13-2013, 12:18 AM   #1
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Rep: Reputation: Disabled
Question linux kernel not support ethernet


I used Ubuntu 12.04. It's original support ethernet.
But after I downgrad kernel version to 2.6.32.45 .
The ethernet just doesn't work. What should I do to make
ethernet to work?Thanks
 
Old 06-13-2013, 09:49 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
To make an ethernet card work, there needs to be a kernel module ( driver ) loaded that supports the particular ethernet card you have. This is true for any kernel. Drivers are compiled at the same time the kernel itself gets compiled.

You are running Ubuntu. Odds are you have the driver, you need to find out which one, for your card and use the modprobe command to load it.

First thing is to open a command prompt, and run the command /sbin/lspci. That command will list the devices connected to your pci bus. In the list you should see the ehternet card. It will look something like this :

Quote:
00:07.0 Bridge: nVidia Corporation MCP61 Ethernet (rev a2)
Look for the key word, 'Ethernet'. The rest will probably be different on your system due to hardware differences.

You can then google for 'linux driver for your ethernet card' Usually common cards are not hard to find. If you can not find the driver, post the output from the command, and someone here can help.

You can look at the output of the command 'lsmod' to look at the list of loaded drivers. If the correct module is there, you can try to activate the device; with the command 'ifconfig eth0 up'. That command will not work if you do not have the driver loaded.

Once you know the name of the driver, as root, or sudo, try to load the driver. The command will be 'modprobe nameofdriver'. All commands without the quotes, just what is between the quotes.

If you get no response, that is success. You should be able to see the module listed with the command /sbin/lsmod.

Once the driver is loaded, and you use the command 'ifconfig eth0 up', you can look at Network Manager to see your configuration, and modify it if necessary.
 
Old 06-13-2013, 06:54 PM   #3
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question my /sbin/lspci command not found

How should I change the command to find my ethernet driver,
While I was in kernel 3.0.29. Is is supposed have ethernet drive exixt.
What command should I take?
 
Old 06-13-2013, 07:13 PM   #4
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question I found ethernet But I don't know how to find driver

As following is command by /sbin/lspci -k , I found :
2:00.1 Ethernet controller: Intel Corporation Platform Controller Hub EG20T Gigabit Ethernet Controller (rev 02)

Kernel driver in use: pch_gbe
Kernel modules: pch_gbe
02:00.2 Unassigned class

Then where is the ethernet driver could I find?
 
Old 06-13-2013, 07:14 PM   #5
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Pop!_OS
Posts: 945

Rep: Reputation: 297Reputation: 297Reputation: 297
Why did you downgrade the kernel? It is possible your ethernet was supported in a later kernel and not in the older one. Is there a reason you downgraded?
 
Old 06-13-2013, 07:21 PM   #6
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question pch_gbe is my ethernet driver

Right now my kernel is 3.2.0.29 and it got pch_gbe ethernet driver.
But When I downgrade kernel to 2.6.32.45 , the ethernet driver won't support.
Can I save the pch_gbe and how can I load this etherne driver into my
kernel version 2.6.32.45?
Very Appreciated!
 
Old 06-13-2013, 07:24 PM   #7
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Smile I need port older program in this kernel

Quote:
Originally Posted by jkirchner View Post
Why did you downgrade the kernel? It is possible your ethernet was supported in a later kernel and not in the older one. Is there a reason you downgraded?
I need to work program in this version 2.6.32.45.Because my original program was work in kernel version 2.6.32.45.It is orginal in
the PowerPc computer.
 
Old 06-13-2013, 07:56 PM   #8
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question I found ethernet driver located in everywhere

angela@angela-desktop:/$ sudo find -name pch_gbe*

./sys/bus/pci/drivers/pch_gbe

./sys/module/pch_gbe

./lib/modules/3.2.0-29-generic-pae/kernel/drivers/net/ethernet/oki-semi/pch_gbe

./lib/modules/3.2.0-29-generic-pae/kernel/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.ko

./usr/src/linux-headers-3.2.0-29/drivers/net/ethernet/oki-semi/pch_gbe

angela@angela-desktop:/$

In my kernel 3.0.29 the ethernet driver locate in the above path. When I down grade my kernel version to 2.6.32.45,

What should I do to ismod pch_gbe to all these path??
 
Old 06-14-2013, 04:32 AM   #9
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
see if this helps

http://linuxsoft.cern.ch/cern/slc61/...d-pch_gbe.html
 
Old 06-14-2013, 04:34 AM   #10
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
pch_gbe seems to be part of the kernel source tree only from 2.6.37

http://lxr.free-electrons.com/source...ain.c?v=2.6.37

so you will have to download the source code and compile it yourself.
 
Old 06-14-2013, 04:52 AM   #11
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by bsat View Post
pch_gbe seems to be part of the kernel source tree only from 2.6.37

http://lxr.free-electrons.com/source...ain.c?v=2.6.37

so you will have to download the source code and compile it yourself.
Oh~Thanks, That helps.
 
Old 06-14-2013, 05:03 AM   #12
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Just curious: Have you tried using one of the other intel 1000Mbit drivers available in the 2.6.32 kernel?

This one for example: Intel(R) PRO/1000 PCI-Express Gigabit Ethernet support (Intel support).
 
Old 06-14-2013, 10:37 AM   #13
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Smile Hi! Upstep follow, Thanks

I believe that I will try it next week!
It help a lot~~~
 
Old 06-17-2013, 08:12 PM   #14
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question I'd done compile & everthing but can't capture the mac address

I had compile the ethernet e1000 & make install, insmod as following message:

sudo find -name e1000

./sys/bus/pci/drivers/e1000

./sys/module/e1000

./lib/modules/2.6.32-02063245-generic/kernel/drivers/net/e1000

./lib/modules/3.2.0-29-generic-pae/kernel/drivers/net/ethernet/intel/e1000

./usr/src/linux-headers-2.6.32-02063245/drivers/net/e1000

./usr/src/linux-headers-3.2.0-29/drivers/net/ethernet/intel/e1000



e1000 was in every correct location but still can't work is my ethernet.
I found my computer can't auto capture the mac address. What should I do
to auto capture my mac address or fine my mac address?

Thanks
 
Old 06-18-2013, 01:49 AM   #15
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Can you post the output of the following commands:
Code:
dmesg | grep -i eth

lspci -vvs $(lspci | awk '/Ethernet/ { print $1 }')

lshw -class network      # should also show mac address
 
  


Reply

Tags
ubuntu 12.04



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
Does kgdb have ethernet support for 3.x kernel. Vivekpanwar Linux - Newbie 0 07-31-2012 01:21 AM
Adding Ethernet to kernel without Network support configured awp2513 Linux - Networking 1 10-16-2009 09:25 AM
Linux ethernet does not support ravibhure Linux - Newbie 2 09-02-2009 03:28 AM
Does Linux kernel 2.4.37 support RealTek RTL8102 Ethernet driver afa_linux Linux - Kernel 1 05-26-2009 02:53 PM
Building custom kernel with support for exotic ethernet card srainville Linux - Kernel 1 01-21-2008 12:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:17 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