Skip to content
Snippets Groups Projects
Commit e006927a authored by Haavard Skinnemoen's avatar Haavard Skinnemoen
Browse files

AVR32: Initialize ipaddr, loadaddr and bootfile at startup


I don't know why the relevant layers can't do this by itself, but this
is what ppc does.

Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
parent f188896c
No related branches found
No related tags found
No related merge requests found
......@@ -264,6 +264,7 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
#ifndef CFG_ENV_IS_NOWHERE
extern char * env_name_spec;
#endif
char *s;
cmd_tbl_t *cmdtp;
bd_t *bd;
......@@ -336,11 +337,20 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
/* initialize environment */
env_relocate();
bd->bi_ip_addr = getenv_IPaddr ("ipaddr");
devices_init();
jumptable_init();
console_init_r();
s = getenv("loadaddr");
if (s)
load_addr = simple_strtoul(s, NULL, 16);
#if defined(CONFIG_CMD_NET)
s = getenv("bootfile");
if (s)
copy_filename(BootFile, s, sizeof(BootFile));
#if defined(CONFIG_NET_MULTI)
puts("Net: ");
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment