Commit cd07ed3b authored by Dominik Ermel's avatar Dominik Ermel Committed by Fabio Utzig
Browse files

boot/zephyr: Fix Direct-XIP boot messages



The commit changes banner message to indicate that bootloader has been
built for Direct-XIP mode.
It also removes, in Direct-XIP compiled code, information on jumping
into first slot: that information is not always correct for Direct-XIP
and other messages correctly point slot that will be used.

Signed-off-by: default avatarDominik Ermel <dominik.ermel@nordicsemi.no>
parent 8a5e4987
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -371,7 +371,11 @@ void main(void)

    MCUBOOT_WATCHDOG_FEED();

#if !defined(MCUBOOT_DIRECT_XIP)
    BOOT_LOG_INF("Starting bootloader");
#else
    BOOT_LOG_INF("Starting Direct-XIP bootloader");
#endif

#ifdef CONFIG_MCUBOOT_INDICATION_LED
    /* LED init */
@@ -498,7 +502,11 @@ void main(void)
    BOOT_LOG_INF("Bootloader chainload address offset: 0x%x",
                 rsp.br_image_off);

#if defined(MCUBOOT_DIRECT_XIP)
    BOOT_LOG_INF("Jumping to the image slot");
#else
    BOOT_LOG_INF("Jumping to the first image slot");
#endif
    ZEPHYR_BOOT_LOG_STOP();
    do_boot(&rsp);