interrupt: Handle the new I_ME message to interrupt the normal boot
For easy recovery the UBL will send the I_ME message and if it is answered by sending a 0x23 as hexstring the UART boot mode will be answered.
This commit is contained in:
parent
2fa58b6e40
commit
7d96e789af
|
@ -349,7 +349,7 @@ main(int argc, char *argv[])
|
|||
|
||||
/* Wait for the device to send the BOOTME sequence.
|
||||
* If the UBL is already running, it will send BOOTPSP. */
|
||||
found = wait_for_message("BOOTME", "BOOTPSP", NULL);
|
||||
found = wait_for_message("BOOTME", "BOOTPSP", "I_ME");
|
||||
if (found == 0)
|
||||
goto error;
|
||||
else if (found == 1) {
|
||||
|
@ -358,6 +358,10 @@ main(int argc, char *argv[])
|
|||
ret = send_binary(options->ubl, "/tmp/ubl.bin", SEND_UBL, 0, 0);
|
||||
if (ret)
|
||||
goto error;
|
||||
} else if (found == 3) {
|
||||
log_info("Sending interrupt command to UBL ($%08X)", 0x23);
|
||||
send_message(" CMD\n");
|
||||
send_number(0x23, 8);
|
||||
}
|
||||
|
||||
/* UBL is now running. Send command */
|
||||
|
|
Loading…
Reference in New Issue