[PATCH] common/cmd_elf.c: Enable loadaddr as parameter in bootvx command
In the bootvx command the load address was only read from the env variable "loadaddr" and not optionally passed as paramter as described in the help. This is fixed with this patch. The behaviour is now the same as in the bootelf command. Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
4e26f1074c
commit
1bdd46832a
|
@ -96,12 +96,10 @@ int do_bootvx ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
|||
* If we don't know where the image is then we're done.
|
||||
*/
|
||||
|
||||
if ((tmp = getenv ("loadaddr")) != NULL) {
|
||||
addr = simple_strtoul (tmp, NULL, 16);
|
||||
} else {
|
||||
puts ("No load address provided\n");
|
||||
return 1;
|
||||
}
|
||||
if (argc < 2)
|
||||
addr = load_addr;
|
||||
else
|
||||
addr = simple_strtoul (argv[1], NULL, 16);
|
||||
|
||||
#if (CONFIG_COMMANDS & CFG_CMD_NET)
|
||||
/* Check to see if we need to tftp the image ourselves before starting */
|
||||
|
|
Loading…
Reference in New Issue