recovery: fix image copy + resetcycle counter
This commit is contained in:
parent
7966dca8a2
commit
7c5985594c
|
@ -118,12 +118,12 @@ static int do_run_recovery(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
return tftp_failed();
|
return tftp_failed();
|
||||||
|
|
||||||
rc = run_command("erase 0x9f050000 +0x7a0000"
|
rc = run_command("erase 0x9f050000 +0x7a0000; "
|
||||||
"cp.b 0x81000000 0x9f050000 +0x7a0000", 0);
|
"cp.b 0x81000000 0x9f050000 0x7a0000", 0);
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
return flash_failed();
|
return flash_failed();
|
||||||
|
|
||||||
return run_command("reset", 0);
|
return run_command("resetcycle; reset", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
U_BOOT_CMD(
|
U_BOOT_CMD(
|
||||||
|
|
Loading…
Reference in New Issue