Re: 2 Ethernet port operating in a PPC405EP system

2006-08-31 Thread Otto Solares
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
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


2 Ethernet port operating in a PPC405EP system

2006-08-31 Thread Otto Solares
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



2 Ethernet port operating in a PPC405EP system

2006-08-30 Thread Chun Chung Lo

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 10.6.64.343
= setenv ipaddr 10.6.64.34
= 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.

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

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=0 ttl=64 time=9.4 ms
64 bytes from 10.6.64.128: icmp_seq=1 ttl=64 time=0.3 ms
64 bytes from 10.6.64.128: icmp_seq=2 ttl=64 time=0.3 ms

--- 10.6.64.128 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 192.168.1.120
EMAC1 open, with PHY @ 0x13
ibm_ocp_phy.c: cclo - fep-link = 1
 -- phy: RTL8201CP,  mii_parse_anar(0x01e1), phy=0x13 --
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.


___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: 2 Ethernet port operating in a PPC405EP system

2006-08-30 Thread Otto Solares
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
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


RE: 2 Ethernet port operating in a PPC405EP system

2006-08-30 Thread Chun Chung Lo

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:[EMAIL PROTECTED]
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
 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

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.


___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


2 Ethernet port operating in a PPC405EP system

2006-08-30 Thread Chun Chung Lo

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 10.6.64.343
= setenv ipaddr 10.6.64.34
= 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.

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

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=0 ttl=64 time=9.4 ms
64 bytes from 10.6.64.128: icmp_seq=1 ttl=64 time=0.3 ms
64 bytes from 10.6.64.128: icmp_seq=2 ttl=64 time=0.3 ms

--- 10.6.64.128 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 192.168.1.120
EMAC1 open, with PHY @ 0x13
ibm_ocp_phy.c: cclo - fep-link = 1
 -- phy: RTL8201CP,  mii_parse_anar(0x01e1), phy=0x13 --
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.





2 Ethernet port operating in a PPC405EP system

2006-08-30 Thread Wolfgang Denk
In message A7B1E4DD46AA7046A4398F745240F29402737D5C at 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 at denx.de
 The software required `Windows 95 or better', so I installed Linux.



2 Ethernet port operating in a PPC405EP system

2006-08-30 Thread Chun Chung Lo

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

Thanks for your quick reply.

Best regards,
Lo Chun Chung

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


In message
A7B1E4DD46AA7046A4398F745240F29402737D5C at 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 at 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.





2 Ethernet port operating in a PPC405EP system

2006-08-30 Thread Otto Solares
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



2 Ethernet port operating in a PPC405EP system

2006-08-30 Thread Matt Porter
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