提交 d72da158 编写于 作者: S Simon Glass 提交者: Tom Rini

bootm: Correct the arguments for the ELF image loader

The arguments were out of place since commit 983c72f4, since this file was
missed and not tested. Correct this.
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 f320a4d8
......@@ -156,16 +156,16 @@ int do_bootvx(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
* If we don't know where the image is then we're done.
*/
if (argc < 2)
if (argc < 1)
addr = load_addr;
else
addr = simple_strtoul(argv[1], NULL, 16);
addr = simple_strtoul(argv[0], NULL, 16);
#if defined(CONFIG_CMD_NET)
/*
* Check to see if we need to tftp the image ourselves before starting
*/
if ((argc == 2) && (strcmp(argv[1], "tftp") == 0)) {
if ((argc == 1) && (strcmp(argv[0], "tftp") == 0)) {
if (NetLoop(TFTPGET) <= 0)
return 1;
printf("Automatic boot of VxWorks image at address 0x%08lx ...\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册