Skip to content

Commit

Permalink
[nrf noup] boot: zephyr: Boot even if EXT_ABI is not provided
Browse files Browse the repository at this point in the history
This removes the `return;` to ensure that the application is booted even
if EXT_ABI is not provided to the application because it does not
include `FW_INFO`.

Added a bit more description to the error messages when FW_INFO is not
found and EXT_ABI is not able to be provided to the next image.

Ref. NCSDK-24132

Signed-off-by: Sigvart Hovland <[email protected]>
  • Loading branch information
sigvartmh authored and cvinayak committed Oct 18, 2023
1 parent 1f38eb8 commit b80046d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions boot/zephyr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,16 @@ static void do_boot(struct boot_rsp *rsp)
#endif

#if defined(CONFIG_FW_INFO) && !defined(CONFIG_EXT_API_PROVIDE_EXT_API_UNUSED)
bool provided = fw_info_ext_api_provide(fw_info_find((uint32_t)vt), true);
const struct fw_info *firmware_info = fw_info_find((uint32_t) vt);
bool provided = fw_info_ext_api_provide(firmware_info, true);

#ifdef PM_S0_ADDRESS
/* Only fail if the immutable bootloader is present. */
if (!provided) {
BOOT_LOG_ERR("Failed to provide EXT_APIs\n");
return;
if (firmware_info == NULL) {
BOOT_LOG_WRN("Unable to find firmware info structure in %p", vt);
}
BOOT_LOG_ERR("Failed to provide EXT_APIs to %p", vt);
}
#endif
#endif
Expand Down

0 comments on commit b80046d

Please sign in to comment.