cmd_recovery: modify address and command to match skylab/carambola boards

This commit is contained in:
Alexander Couzens 2015-03-01 19:20:29 +01:00
parent 08ebe9fb54
commit 7e556fd4b1
1 changed files with 5 additions and 6 deletions

View File

@ -109,8 +109,7 @@ static int do_run_recovery(cmd_tbl_t *cmdtp, int flag, int argc, const char *arg
BLINK_LED(5);
status_led_set(0, STATUS_LED_ON);
rc = run_command("mtdpart default; "
"nand erase.part U-Boot-Environment", 0);
rc = run_command("erase 0x9f040000 +0x10000", 0);
if (rc < 0)
return env_failed();
@ -119,18 +118,18 @@ static int do_run_recovery(cmd_tbl_t *cmdtp, int flag, int argc, const char *arg
return dhcp_failed();
rc = run_command("setenv filesize 0; "
"tftp 85000000 sysmocom-recovery.ubi", 0);
"tftp 0x81000000 sysmocom-ap2-recovery", 0);
if (rc < 0) {
rc = run_command("setenv filesize 0; "
"set serverip 255.255.255.255; "
"tftp 85000000 sysmocom-recovery.ubi", 0);
"tftp 0x81000000 sysmocom-ap2-recovery", 0);
}
if (rc < 0)
return tftp_failed();
rc = run_command("nand erase.part RootFs; "
"nand write 85000000 RootFs ${filesize} ", 0);
rc = run_command("erase 0x9f050000 +0x7a0000"
"cp.b 0x81000000 0x9f050000 +0x7a0000", 0);
if (rc < 0)
return flash_failed();