Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: at91_ether: Your bootloader did not configure a MAC address
PostPosted: Fri Mar 16, 2007 5:17 pm 
Offline

Joined: Thu Feb 15, 2007 4:42 pm
Posts: 22
When booting kernel I've got the message

"at91_ether: Your bootloader did not configure a MAC address".

Due to that I can not mount root file system throgh NFS.

On other hand , after downloading uImage by tftp and kommand 'bootm' all working well. MAC address in u-boot is configured and written into flash. U-boot sees it too.(printenv shows it).

On the site
http://www.gelato.unsw.edu.au/lxr/sourc ... 91_ether.c
I read that
" - It must always set the MAC address after reset, even if it doesn't
365 * happen to access the Ethernet while it's booting. Some versions of
366 * U-Boot on the AT91RM9200-DK do not do this."

How to workaround all that? Thank you!
Andrew


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 17, 2007 10:59 am 
Offline

Joined: Wed Apr 26, 2006 8:38 am
Posts: 6
in uboot add
setenv ethaddr 04:25:fe:ed:00:18
before booting linux.

don't forget a saveenv

This mac-address above is the sample mac from atmel


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 17, 2007 2:41 pm 
Offline

Joined: Thu Feb 03, 2005 11:41 am
Posts: 87
Location: Erfurt/Germany
Hi,

it's already explained here: http://www.at91.com/phpbb/viewtopic.php?t=2646.

There is also a long discussion about that on the arm-linux mailing list.

So please read the u-boot docs and FAQ.

--
Mike

_________________
Senior IT Consultant
Germany


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 17, 2007 4:17 pm 
Offline

Joined: Thu Feb 15, 2007 4:42 pm
Posts: 22
Thank you all! I have fixed the issue.

I have added --->

in at91rm9200dk.c :

int board_late_init(void)
{
/
/* Fix Ethernet Initialization Bug when starting Linux from U-Boot */
#if (CONFIG_COMMANDS & CFG_CMD_NET)
eth_init(gd->bd);
#endif

return 0;
}

in at91rm9200dk.h :

define CONFIG_COMMANDS \
((CONFIG_CMD_DFL | CFG_CMD_MII | CFG_CMD_NET | \
CFG_CMD_DHCP ) & \
~(CFG_CMD_BDI | \
CFG_CMD_IMI | \
CFG_CMD_AUTOSCRIPT | \
CFG_CMD_FPGA | \
CFG_CMD_MISC | \
CFG_CMD_LOADS ))


#define CONFIG_DRIVER_ETHER 1

#define BOARD_LATE_INIT 1


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: