Skip to content

Commit 6a5331b

Browse files
sigvartmhbjarki-andreasen
authored andcommitted
[nrf noup] 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 41cc274)
1 parent 9f7ec60 commit 6a5331b

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
@@ -206,13 +206,16 @@ static void do_boot(struct boot_rsp *rsp)
206206
#endif
207207

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

211212
#ifdef PM_S0_ADDRESS
212213
/* Only fail if the immutable bootloader is present. */
213214
if (!provided) {
214-
BOOT_LOG_ERR("Failed to provide EXT_APIs\n");
215-
return;
215+
if (firmware_info == NULL) {
216+
BOOT_LOG_WRN("Unable to find firmware info structure in %p", vt);
217+
}
218+
BOOT_LOG_ERR("Failed to provide EXT_APIs to %p", vt);
216219
}
217220
#endif
218221
#endif

0 commit comments

Comments
 (0)