From 7fc3ad3d0b60f37c5165f414d609ab563a32b5a9 Mon Sep 17 00:00:00 2001 From: Jamie McCrae Date: Wed, 24 Jul 2024 14:09:45 +0100 Subject: [PATCH] boot: zephyr: Fix RAM load chain load address Fixes showing the wrong address when booting a RAM load image Signed-off-by: Jamie McCrae --- boot/zephyr/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/boot/zephyr/main.c b/boot/zephyr/main.c index 95da276b..74299698 100644 --- a/boot/zephyr/main.c +++ b/boot/zephyr/main.c @@ -534,8 +534,13 @@ int main(void) FIH_PANIC; } +#ifdef CONFIG_BOOT_RAM_LOAD + BOOT_LOG_INF("Bootloader chainload address offset: 0x%x", + rsp.br_hdr->ih_load_addr); +#else BOOT_LOG_INF("Bootloader chainload address offset: 0x%x", rsp.br_image_off); +#endif #if defined(MCUBOOT_DIRECT_XIP) BOOT_LOG_INF("Jumping to the image slot");