boards/arm/nrf91/common/nrf91_boot_image.c: print message if no image found
if there is no valid boot image found we print error message and panic
This commit is contained in:
parent
e75c19ce58
commit
b3ccc4c94c
@ -203,6 +203,16 @@ int board_boot_image(const char *path, uint32_t hdr_size)
|
|||||||
|
|
||||||
ARM_ISB();
|
ARM_ISB();
|
||||||
|
|
||||||
|
/* Check if reset is valid */
|
||||||
|
|
||||||
|
if (vt.reset == 0xffffffff)
|
||||||
|
{
|
||||||
|
syslog(LOG_ERR, "Not found image to boot!");
|
||||||
|
PANIC();
|
||||||
|
}
|
||||||
|
|
||||||
|
syslog(LOG_INFO, "Jump to 0x%" PRIx32 "\n", vt.reset);
|
||||||
|
|
||||||
/* Jump to non-secure entry point */
|
/* Jump to non-secure entry point */
|
||||||
|
|
||||||
nsfunc *ns_reset = (nsfunc *)(vt.reset);
|
nsfunc *ns_reset = (nsfunc *)(vt.reset);
|
||||||
|
Loading…
Reference in New Issue
Block a user