Skip to content

Commit 01f17eb

Browse files
sigvartmhcvinayak
authored andcommitted
[nrf noup] boot: zephyr: Boot even if EXT_ABI is not provided
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]> (cherry picked from commit b80046d)
1 parent 862bca5 commit 01f17eb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

boot/zephyr/main.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,16 @@ static void do_boot(struct boot_rsp *rsp)
256256
#endif
257257

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

261262
#ifdef PM_S0_ADDRESS
262263
/* Only fail if the immutable bootloader is present. */
263264
if (!provided) {
264-
BOOT_LOG_ERR("Failed to provide EXT_APIs\n");
265-
return;
265+
if (firmware_info == NULL) {
266+
BOOT_LOG_WRN("Unable to find firmware info structure in %p", vt);
267+
}
268+
BOOT_LOG_ERR("Failed to provide EXT_APIs to %p", vt);
266269
}
267270
#endif
268271
#endif

0 commit comments

Comments
 (0)