2 Ethernet port operating in a PPC405EP system

Chun Chung Lo cclo at astri.org
Wed Aug 30 22:19:24 EST 2006

Hi all,

Sorry for such long e-mail.

I am now working on a STB project, and our board is a IBM PPC405EP with
2 ethernet ports. U-Boot 1.0.0 and linux 2.4.20 (from MontaVista) is
used and update is not recommended. Each ethernet port has a RTL8021CP
PHY connected.

Under u-boot environment, only 1 ethernet port is operating. But
sometimes the port is not able to PING other PCs within the same subnet.
Also some modifications are made (under bd_t) to let linux kernel fetch
2 different MAC address when boot into linux kernel.

Error log (U-Boot):

<## snip ##>
Hit any key to stop autoboot:  0
=> setenv ipaddr
=> setenv ipaddr
=> ping
ENET Speed is 100 Mbps - FULL duplex connection

< the board holds here about several seconds >

ping failed; host is not alive
<## snip ##>

Under linux environment, 2 ethernet ports are operating. But sometimes
only ethernet 1 is operating (by running a udhcpc, from
busybox-v1.00-pre8); sometimes both are not operating.

When ethernet 1 is operating (can fetch a IP address from DHCP server,
say, then I assigned a static IP address (say, and let the board PING to different subnets at the same
time. But the ethernet 2 cannot PING out while ethernet 1 is operating

Error log (Linux):

<## snip ##>
Press CTRL-C to enter shell within 1 sec

~ # udhcpc -i eth0 -s /etc/udhcpc.sh
info, udhcpc (v0.9.9-pre) started
debug, Sending discover...
debug, Sending discover...

< the ethernet port 1 goes wrong and cannot get IP from DHCP server,
until I plug and unplug the ethernet cable several times, it works again

debug, Sending discover...
debug, Sending select for
info, Lease of obtained, lease time 691200
deleting routers
SIOCDELRT: No such process
adding dns
adding dns
~ # ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=9.4 ms
64 bytes from icmp_seq=1 ttl=64 time=0.3 ms
64 bytes from icmp_seq=2 ttl=64 time=0.3 ms

--- ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.3/3.3/9.4 ms
~ # ifconfig eth1
EMAC1 open, with PHY @ 0x13
ibm_ocp_phy.c: cclo - fep->link = 1
 ------ phy: RTL8201CP,  mii_parse_anar(0x000001e1), phy=0x13 ------
eth1: IBM EMAC: link up, 100 Mbps Full Duplex, auto-negotiation
eth1: IBM EMAC: MAC cc:0b:20:08:21:b2.
~ # ping
PING ( 56 data bytes

--- ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
~ #

<## snip ##>

I also serached something about this issue on internet, I found


Are there any updates about this issue? Or my problem is not related to

Please help. Thanks.

Best regards,
Lo Chun Chung

This message (including any attachments) is for the named addressee(s)'s use only. It may contain
sensitive, confidential, private proprietary or legally privileged information intended for a
specific individual and purpose, and is protected by law. If you are not the intended recipient,
please immediately delete it and all copies of it from your system, destroy any hard copies of it
and notify the sender. Any use, disclosure, copying, or distribution of this message and/or any
attachments is strictly prohibited.

More information about the Linuxppc-embedded mailing list