26a27
> #include "replace.h"
56d56
< extern int rt2880_eth_initialize(bd_t *bis);
59c59,61
< static char rt2880_gmac1_mac[]=CONFIG_ETHADDR;
---
> /* Modified 2007/11/05 */
> static uchar rt2880_gmac1_mac[]="01:AA:BB:CC:DD:EE"; /*default MAC address*/
> /* End */
118,119c120,122
< 	char *tmp, *end;
< 
---
> 	uchar *tmp, *end;
>     	uchar mac_temp[7];
> 	
228c231
< 			tmp = getenv (enetvar);
---
> 			//tmp = getenv (enetvar);
229a233
> 
231,232c235,258
< 			printf("\n enetvar=%s,Eth addr:%s\n ",enetvar,tmp);
< 			for (i=0; i<6; i++) {
---
> 			/* Modified 2007/11/05 */
>             		if (0xff != *(unsigned char *)0xBC440004)
> 			{
> 				tmp = (unsigned char *)0xBC440004;
> 				for (i=0; i<6; i++)
> 					env_enetaddr[i] = tmp[i];					
> 			}
> 			else
> 			{
> 				for (i=0; i<6; i++)
> 				{
> 					env_enetaddr[i] = tmp ? simple_strtoul(tmp, &end, 16) : 0;
> 					mac_temp[i] = env_enetaddr[i];
> 					if(tmp)
> 						tmp = (*end) ? end+1 : end;
> 				}
> 				mac_temp[i] = '\0';
> 				printf("\nSystem boot for the FIRST time ,Setting the MAC Address...\n");
> 				replace(0x04, mac_temp);
> 			}
> 
> #if 0
> 			for (i=0; i<6; i++) 
> 			{
237a264,266
> #endif
>             /* End */
> 
325c354
< 
---
> //drivers/rt2880_eth.c(936, 3605)(977)
