Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(SOLVED)Complied ethernet into kernel,but can't connect
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
youngking
n00b
n00b


Joined: 22 Jun 2008
Posts: 3

PostPosted: Sun Jun 22, 2008 4:51 am    Post subject: (SOLVED)Complied ethernet into kernel,but can't connect Reply with quote

When I run /etc/init.d/net/eth0 start,this is the result:
Code:

    Starting eth0
    Bringing up eth0 192.168.1.10/24
    network interface eth0 does not exist
    Please verify hardware or kernel module (driver)

this is the result of run lspci:
Code:

01:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

I've complied all modules about 8139 into kernel,but the question remains.
I run dmesg | grep"8139" ,this is the result:
Code:

8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
8139cp 0000:01:0a.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp 0000:01:0a.0: Try the "8139too" driver instead.
8139too Fast Ethernet driver 0.9.28
eth0: RealTek RTL8139 at 0xe0012000, 00:19:e0:04:64:e1, IRQ 22
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'

So, I should have complied it into my kernel,isn't?
Note this sentence "8139cp 0000:01:0a.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip",it looks some strange,so when I complied my kernel again I choosed the option of support old chips.

At the end,my kernel is gentoo-2.6.25-r5,I refreshed my portage and emerge gentoo-souces again,but it does not have any effect.So strange questions,does any one can help me ?


Last edited by youngking on Sun Jun 22, 2008 3:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Sun Jun 22, 2008 6:24 am    Post subject: Reply with quote

The problem isn't the kernel but the wrong symlink in /etc/init.d

Code:
network interface eth0 does not exist


Try with dhcpcd different network interfaces,

Code:
dhcpcd eth1
ping www.google.com

dhcpcd eth2
ping www.google.com


Then create the correct symlink for the ethernet device:

Code:
Code Listing 2.9: Creating extra initscripts

# cd /etc/init.d
# ln -s net.lo net.eth1
# rc-update add net.eth1 default

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=8#doc_chap2
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Back to top
View user's profile Send private message
youngking
n00b
n00b


Joined: 22 Jun 2008
Posts: 3

PostPosted: Sun Jun 22, 2008 2:27 pm    Post subject: Reply with quote

Thks to Aniruddha,I resolved it.
Back to top
View user's profile Send private message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Sun Jun 22, 2008 2:51 pm    Post subject: Reply with quote

youngking wrote:
Thks to Aniruddha,I resolved it.


Don't forget to add (SOLVED) to your title :wink:
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
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