Skip to content

Commit

Permalink
[nrf noup] boot/zephyr: fix fw_info search
Browse files Browse the repository at this point in the history
By the upstream patch the vt get now the pointer to the copy
of the arm_vector instead of original.

This patch fixes address of the firmware which is to be taken by
the fw_info_find.

Signed-off-by: Andrzej Puzdrowski <[email protected]>
(cherry picked from commit 3be724f)
  • Loading branch information
nvlsianpu authored and anangl committed Jun 28, 2024
1 parent f0a0c50 commit f3ae1af
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion boot/zephyr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,14 @@ static void do_boot(struct boot_rsp *rsp)
#endif

#if defined(CONFIG_FW_INFO) && !defined(CONFIG_EXT_API_PROVIDE_EXT_API_UNUSED)
const struct fw_info *firmware_info = fw_info_find((uint32_t) vt);
uintptr_t fw_start_addr;

rc = flash_device_base(rsp->br_flash_dev_id, &fw_start_addr);
assert(rc == 0);

fw_start_addr += rsp->br_image_off + rsp->br_hdr->ih_hdr_size;

const struct fw_info *firmware_info = fw_info_find(fw_start_addr);
bool provided = fw_info_ext_api_provide(firmware_info, true);

#ifdef PM_S0_ADDRESS
Expand Down

0 comments on commit f3ae1af

Please sign in to comment.