[U-Boot-Users] eth interface (motfec) is not woring with u-boot 1.1.3

Hi,
I am using Denx u-boot 1.1.3 for MPC 870 board. I ported it for our board with mpc870 processor and I got the u-boot (->) prompt.
UART interface is working finr but Ethernet interface (motfec) is not up yet.
When I try from the u-boot prompt, I am getting following message. ------------------------------------------------------ TX timeout TX timeout ping failed; host 10.10.10.4 is not alive ------------------------------------------------------
Following board specific parameters are defined in the /include/configs/tc870.h file ------------------------------------------------------------------------------------------------------------ #define CONFIG_NET_MULTI 1 /* the only way to get the FEC in */ #define FEC_ENET 1 /* eth.c needs it that way... */ #define CONFIG_FEC_ENET 1 #undef CFG_DISCOVER_PHY #define CONFIG_MII 1 #define CONFIG_RMII 1 /* use RMII interface */
#define CONFIG_BAUDRATE 9600 /* console baudrate = 115kbps */ #define CONFIG_ETHADDR OO:11:22:33:44:55 /* board MAC addr */ #define CONFIG_IPADDR 10:10:10:2 /* board IP addr */
/*set allowable console baud rates*/ #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } #define CONFIG_OVERWRITE_ETHADDR_ONCE 1
#define CONFIG_XIN 10000000 /*#define CONFIG_XIN 50000000*/
/*#define MPC8XX_HZ 66666666*/ #define MPC8XX_HZ 50000000
#define CONFIG_8xx_GCLK_FREQ MPC8XX_HZ
/*#define CONFIG_8xx_CPUCLK_DEFAULT 50000000*/
#if 0 #define CONFIG_8xx_OSCLK 50000000 /* 50 MHz - PLL input clock */ #define CFG_8xx_CPUCLK_MIN 15000000 /* 50 MHz - CPU minimum clock */ #define CFG_8xx_CPUCLK_MAX 75000000 /* 75 MHz - CPU maximum clock */ #endif
------------------------------------------------------------------------------------------------------------
Any suggestion what is going wrong here If any thing is missing please let me know
Thanks Vijay
Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

vijay vijay wrote:
I am using Denx u-boot 1.1.3 for MPC 870 board. I ported it for our board with mpc870 processor and I got the u-boot (->) prompt.
UART interface is working fine but Ethernet interface (motfec) is not up yet.
ub> ping 10.10.10.4
TX timeout TX timeout ping failed; host 10.10.10.4 is not alive
There are at least two problems with your U-Boot 1.1.3 configuration:
#define CONFIG_ETHADDR OO:11:22:33:44:55 /* board MAC addr
*/
The first byte "OO" is two capital Os; perhaps "00" was the intended first byte of the MAC address?:
#define CONFIG_ETHADDR 00:11:22:33:44:55 /* board MAC addr */
#define CONFIG_IPADDR 10:10:10:2 /* board IP addr
*/
The bytes of a v4 IP number must be separated by "." (not ":"):
#define CONFIG_IPADDR 10.10.10.2 /* board IP addr */
Other than the above two suggestions, please try using a U-Boot version more current than 1.1.3, such as 1.3.x.
Sincerely,
Ken Fuchs

In message AA28F077645B324881335614E4F7C4284A49A9@win-ex01.bench.com you wrote:
There are at least two problems with your U-Boot 1.1.3 configuration:
#define CONFIG_ETHADDR OO:11:22:33:44:55 /* board MAC addr
*/
The first byte "OO" is two capital Os; perhaps "00" was the intended first byte of the MAC address?:
And of course even 00:11:22:33:44:55 is not a legal MAC address and MUST NOT BE USED. Please see the FAQ.
Best regards,
Wolfgang Denk

Ken Fuchs wrote:
There are at least two problems with your U-Boot 1.1.3 configuration:
vijays vijays wrote:
#define CONFIG_ETHADDR OO:11:22:33:44:55 /* board MAC addr */
The first byte "OO" is two capital Os; perhaps "00" was the intended first byte of the MAC address?:
Wolfgang Denx wrote:
And of course even 00:11:22:33:44:55 is not a legal MAC address and MUST NOT BE USED. Please see the FAQ.
Actually, 00:11:22:33:44:55 is a perfectly legal (universally administered) MAC address:
http://standards.ieee.org/regauth/oui/index.shtml
Just enter 00-11-22 for the OUI (Organizationally Unique Identifier).
In any case, 00-11-22-33-44-55 is an often used as a _locally administered_ MAC address. Such usage is definitely illegal as can be seen by referring to:
http://www.denx.de/wiki/view/DULG/WhereCanIGetAValidMACAddress
No doubt this is what you were referring to when you said "00:11:22:33:44:55 is not a legal MAC address". A better, easy to remember locally administered MAC address would be 02:03:04:05:06:07.
Sincerely,
Ken Fuchs

In message AA28F077645B324881335614E4F7C4284A49AA@win-ex01.bench.com you wrote:
And of course even 00:11:22:33:44:55 is not a legal MAC address and MUST NOT BE USED. Please see the FAQ.
Actually, 00:11:22:33:44:55 is a perfectly legal (universally administered) MAC address:
You are of course right - I was too terse. Thanks for adding the missing details.
No doubt this is what you were referring to when you said "00:11:22:33:44:55 is not a legal MAC address". A better, easy to remember locally administered MAC address would be 02:03:04:05:06:07.
ACK - or use tools/genethaddr to generate a random locally administered MAC address.
Best regards,
Wolfgang Denk
participants (3)
-
Ken.Fuchs@bench.com
-
vijay vijay
-
Wolfgang Denk