linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 2 Ethernet port operating in a PPC405EP system
@ 2006-08-30 12:19 Chun Chung Lo
  2006-08-30 13:07 ` Wolfgang Denk
  0 siblings, 1 reply; 8+ messages in thread
From: Chun Chung Lo @ 2006-08-30 12:19 UTC (permalink / raw)
  To: linuxppc-embedded


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.=0D

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
=3D> setenv ipaddr 10.6.64.343
=3D> setenv ipaddr 10.6.64.34
=3D> ping 10.6.64.128
ENET Speed is 100 Mbps - FULL duplex connection

< the board holds here about several seconds >

ping failed; host 10.6.64.128 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.=0D

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

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 10.6.64.197...
info, Lease of 10.6.64.197 obtained, lease time 691200
deleting routers
SIOCDELRT: No such process
adding dns 10.6.2.11
adding dns 10.6.2.12
~ # ping 10.6.64.128
PING 10.6.64.128 (10.6.64.128): 56 data bytes
64 bytes from 10.6.64.128: icmp_seq=3D0 ttl=3D64 time=3D9.4 ms
64 bytes from 10.6.64.128: icmp_seq=3D1 ttl=3D64 time=3D0.3 ms
64 bytes from 10.6.64.128: icmp_seq=3D2 ttl=3D64 time=3D0.3 ms

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

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

<## snip ##>

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

http://ozlabs.org/pipermail/linuxppc-embedded/2003-December/012802.html

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

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2 Ethernet port operating in a PPC405EP system
  2006-08-30 12:19 Chun Chung Lo
@ 2006-08-30 13:07 ` Wolfgang Denk
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2006-08-30 13:07 UTC (permalink / raw)
  To: Chun Chung Lo; +Cc: linuxppc-embedded

In message <A7B1E4DD46AA7046A4398F745240F29402737D5C@ASPROEXG.astri.local> you wrote:
> 
> Sorry for such long e-mail.

Actually it's not so long...

> 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.

... as reading stops here. Both U-Boot 1.0.0 and Linux 2.4.20 are not
only old, they are ancient. Zillions of smaller and bigger bugs  have
been fixed since. Do yourself a favour and use current code.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
 The software required `Windows 95 or better', so I installed Linux.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: 2 Ethernet port operating in a PPC405EP system
@ 2006-08-30 13:17 Chun Chung Lo
  2006-08-30 18:23 ` Otto Solares
  0 siblings, 1 reply; 8+ messages in thread
From: Chun Chung Lo @ 2006-08-30 13:17 UTC (permalink / raw)
  To: wd; +Cc: linuxppc-embedded


Hi,

I know my source code is vert old. But since there are lots of
applications developed base on this 2 sets of source code, if the kernel
and U-Boot needs to change, the above applications (tons of codes) also
need to revise ... (lots of multimedia players, drivers, and other
supporting tools). My team cannot afford such great change.

So I say "update is not recommended" ...=0D

Thanks for your quick reply.

Best regards,
Lo Chun Chung

-----Original Message-----
From: wd@denx.de [mailto:wd@denx.de]=0D
Sent: Wednesday, 30 August, 2006 9:07 PM
To: Chun Chung Lo
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: 2 Ethernet port operating in a PPC405EP system=0D


In message
<A7B1E4DD46AA7046A4398F745240F29402737D5C@ASPROEXG.astri.local> you
wrote:
>=0D
> Sorry for such long e-mail.

Actually it's not so long...

> I am now working on a STB project, and our board is a IBM PPC405EP=0D
> 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=0D
> RTL8021CP PHY connected.

... as reading stops here. Both U-Boot 1.0.0 and Linux 2.4.20 are not
only old, they are ancient. Zillions of smaller and bigger bugs  have
been fixed since. Do yourself a favour and use current code.

Best regards,

Wolfgang Denk

--=0D
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
The software required `Windows 95 or better', so I installed Linux.

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2 Ethernet port operating in a PPC405EP system
  2006-08-30 13:17 Chun Chung Lo
@ 2006-08-30 18:23 ` Otto Solares
  2006-08-31  1:19   ` Matt Porter
  0 siblings, 1 reply; 8+ messages in thread
From: Otto Solares @ 2006-08-30 18:23 UTC (permalink / raw)
  To: Chun Chung Lo; +Cc: linuxppc-embedded

On Wed, Aug 30, 2006 at 09:17:20PM +0800, Chun Chung Lo wrote:
> I know my source code is vert old. But since there are lots of
> applications developed base on this 2 sets of source code, if the kernel
> and U-Boot needs to change, the above applications (tons of codes) also
> need to revise ... (lots of multimedia players, drivers, and other
> supporting tools). My team cannot afford such great change.
> 
> So I say "update is not recommended" ...

Hopefully your product will say:

"buy this product is not recommended" :)

Don't repeat the same mistake as the MediaMVP, it uses the same
processor and same kernel version, it sucks badly...

-otto

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: 2 Ethernet port operating in a PPC405EP system
@ 2006-08-31  0:54 Chun Chung Lo
  2006-08-31 22:07 ` Otto Solares
  0 siblings, 1 reply; 8+ messages in thread
From: Chun Chung Lo @ 2006-08-31  0:54 UTC (permalink / raw)
  To: Otto Solares; +Cc: linuxppc-embedded


Hi,

I really do not know what happened about MediaMVP, could you mind giving
me a review?

Thanks.

Best regards,
Lo Chun Chung

-----Original Message-----
From: Otto Solares [mailto:solca@guug.org]=0D
Sent: Thursday, 31 August, 2006 2:23 AM
To: Chun Chung Lo
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: 2 Ethernet port operating in a PPC405EP system


On Wed, Aug 30, 2006 at 09:17:20PM +0800, Chun Chung Lo wrote:
> I know my source code is vert old. But since there are lots of=0D
> applications developed base on this 2 sets of source code, if the=0D
> kernel and U-Boot needs to change, the above applications (tons of=0D
> codes) also need to revise ... (lots of multimedia players, drivers,=0D
> and other supporting tools). My team cannot afford such great change.
>=0D
> So I say "update is not recommended" ...

Hopefully your product will say:

"buy this product is not recommended" :)

Don't repeat the same mistake as the MediaMVP, it uses the same
processor and same kernel version, it sucks badly...

-otto

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2 Ethernet port operating in a PPC405EP system
  2006-08-30 18:23 ` Otto Solares
@ 2006-08-31  1:19   ` Matt Porter
  2006-08-31 22:08     ` Otto Solares
  0 siblings, 1 reply; 8+ messages in thread
From: Matt Porter @ 2006-08-31  1:19 UTC (permalink / raw)
  To: Otto Solares; +Cc: linuxppc-embedded

On Wed, Aug 30, 2006 at 01:23:03PM -0500, Otto Solares wrote:
> Don't repeat the same mistake as the MediaMVP, it uses the same
> processor and same kernel version, it sucks badly...

FWIW, MediaMVP doesn't use the same processor. It has an
STBx25xx which is quite different from a 405EP. It is
the same 405 core at least.

-Matt

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2 Ethernet port operating in a PPC405EP system
  2006-08-31  0:54 2 Ethernet port operating in a PPC405EP system Chun Chung Lo
@ 2006-08-31 22:07 ` Otto Solares
  0 siblings, 0 replies; 8+ messages in thread
From: Otto Solares @ 2006-08-31 22:07 UTC (permalink / raw)
  To: Chun Chung Lo; +Cc: linuxppc-embedded

On Thu, Aug 31, 2006 at 08:54:19AM +0800, Chun Chung Lo wrote:
> Hi,

Hi.

> I really do not know what happened about MediaMVP, could you mind giving
> me a review?

Sure, the problem with the MediaMVP is that it ships with a real old
and buggy kernel (specially the NIC driver) and with propietary kernel
modules, so you can't really upgrade the kernel.

I was succesful in booting a 2.6 kernel but without drivers for the
special hw I lost interest.

So I really hate vendors shipping buggy old kernels, that's all. :)

-otto

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2 Ethernet port operating in a PPC405EP system
  2006-08-31  1:19   ` Matt Porter
@ 2006-08-31 22:08     ` Otto Solares
  0 siblings, 0 replies; 8+ messages in thread
From: Otto Solares @ 2006-08-31 22:08 UTC (permalink / raw)
  To: Matt Porter; +Cc: linuxppc-embedded

On Wed, Aug 30, 2006 at 08:19:03PM -0500, Matt Porter wrote:
> On Wed, Aug 30, 2006 at 01:23:03PM -0500, Otto Solares wrote:
> > Don't repeat the same mistake as the MediaMVP, it uses the same
> > processor and same kernel version, it sucks badly...
> 
> FWIW, MediaMVP doesn't use the same processor. It has an
> STBx25xx which is quite different from a 405EP. It is
> the same 405 core at least.

You're right.  And kernel is 2.4.17 not 2.4.19 as I stated.

-otto

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-08-31 22:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-31  0:54 2 Ethernet port operating in a PPC405EP system Chun Chung Lo
2006-08-31 22:07 ` Otto Solares
  -- strict thread matches above, loose matches on Subject: below --
2006-08-30 13:17 Chun Chung Lo
2006-08-30 18:23 ` Otto Solares
2006-08-31  1:19   ` Matt Porter
2006-08-31 22:08     ` Otto Solares
2006-08-30 12:19 Chun Chung Lo
2006-08-30 13:07 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).