Skip to content

tests: boot: test_mcuboot: fail on spi nor devices platform #88850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hakehuang opened this issue Apr 21, 2025 · 5 comments
Open

tests: boot: test_mcuboot: fail on spi nor devices platform #88850

hakehuang opened this issue Apr 21, 2025 · 5 comments
Assignees
Labels
area: MCUBoot bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx platform: NXP NXP priority: low Low impact/importance bug

Comments

@hakehuang
Copy link
Collaborator

hakehuang commented Apr 21, 2025

Describe the bug

tests/boot/test_mcuboot fails on all NXP spi not like platforms

Please also mention any information which could help others to understand
the problem you're facing:

  • What target platform are you using?
  • all NXP spi nor flash platforms
platform result release
mimxrt1160_evk/mimxrt1166/cm7 failed v4.1.0-2646-ge41909a32ce9
frdm_mcxw71/mcxw716c failed v4.1.0-2646-ge41909a32ce9
lpcxpresso55s06/lpc55s06 failed v4.1.0-2646-ge41909a32ce9
mimxrt685_evk/mimxrt685s/cm33 failed v4.1.0-2646-ge41909a32ce9
twr_ke18f/mke18f16 failed v4.1.0-2646-ge41909a32ce9
mimxrt1040_evk/mimxrt1042 failed v4.1.0-2646-ge41909a32ce9
mimxrt1024_evk/mimxrt1024 failed v4.1.0-2646-ge41909a32ce9
frdm_ke17z512/mke17z9 failed v4.1.0-2646-ge41909a32ce9
frdm_k82f/mk82f25615 failed v4.1.0-2646-ge41909a32ce9
frdm_ke17z/mke17z7 failed v4.1.0-2646-ge41909a32ce9
  • What have you tried to diagnose or workaround this issue?
  • git bisect
  • Is this a regression? If yes, have you been able to "git bisect" it to a
    specific commit?
efd4f93045789f1fc7a82aa1fc5a3fed6d0b2e03 is the first bad commit
commit efd4f93045789f1fc7a82aa1fc5a3fed6d0b2e03
Author: Jamie McCrae <[email protected]>
Date:   Wed Apr 9 09:40:19 2025 +0100

    west.yml: MCUboot synchronization from upstream

    Update Zephyr fork of MCUboot to revision:
      20f98e0a975c24864872e0df5701eb1082e9c957

      - 20f98e0a Updates for 2.2.0-rc1 release
      - 7a33bcaa boot: bootutil: loader: Add include for flash
        function
      - 8a9627d9 boot/zephyr/boards: nrf54h20dk 'iron' board
        configuration
      - de7a9dc5 zephyr: Disable SPI_NOR by default for
        nrf7002dk/nrf5340/cpuapp
      - 5aed4245 swap_move: correct appsize calcs and warning
      - 454c033f bootutil: swap-scratch: Fix conflicts after support
        of devices w/o erase
      - 572b8fb2 boot: zephyr: flash_map_extended: Add pointless
        workaround for clang
      - 091af82e boot/zephyr: nrf54h20dk adaptations
      - ed434f33 boot: bootutil: Fix clash of STRUCT_PACKED definition
      - 33ad4973 boot: zephyr: add support for mcx_n9xx_evk
      - 881608eb boot/zephyr: Use MCUBOOT_RAM_LOAD instead of
        CONFIG_BOOT_RAM_LOAD
      - 993c2ff8 boot/bootutil/ram_load: Add flash area pointer to
        bootloader state
      - 8b7c7cc9 zephyr: flash map: fix comparison signedness
      - b92d4dd7 boot: zephyr: Only supply MBEDTLS config file path
        if set
      - 9fa0c6b5 zephyr: Fix translation of PSA Kconfig to MCUboot
        config
      - 2d681da4 bootutil: Fix ed25519 pure signature verification

    Signed-off-by: Jamie McCrae <[email protected]>

 west.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

To Reproduce

scripts/twister --device-testing --hardware-map /home/ubuntu/nxp/mimxrt1040_evk/map.yaml -T tests/boot/test_mcuboot/ --west-flash

Expected behavior

Run pass

Impact

mcuboot

Logs and console output

*** Booting MCUboot v2.1.0-r1-294-g20f98e0a975c ***
*** Usng Zephyr OS build v4.1.0-2646-e41909a32ce9 ***
c: Starting bootloader
*** Booting MCUboot v2.1.0-r1-294-g20f98e0a975c ***
*** Usng Zephyr OS build v4.1.0-2646-e41909a32ce9 ***
c: Starting bootloader
*** Booting MCUboot v2.1.0-r1-294-g20f98e0a975c ***
*** Usng Zephyr OS build v4.1.0-2646-e41909a32ce9 ***
c: Starting bootloader

on mimxrt1040_evk

*** Booting MCUboot v2.1.0-rc1-294-g20f98e0a975c ***
*** Using Zephyr OS build v4.1.0-2646-ge41909a32ce9 ***
I: Starting bootloader
W: Cannot upgrade: not a compatible amount of sectors
E: Image in the primary slot is not valid!
E: Unable to find bootable image
*** Booting MCUboot v2.1.0-rc1-294-g20f98e0a975c ***
*** Using Zephyr OS build v4.1.0-2646-ge41909a32ce9 ***
I: Starting bootloader
W: Cannot upgrade: not a compatible amount of sectors
E: Image in the primary slot is not valid!
E: Unable to find bootable image
*** Booting MCUboot v2.1.0-rc1-294-g20f98e0a975c ***
*** Using Zephyr OS build v4.1.0-2646-ge41909a32ce9 ***
I: Starting bootloader
W: Cannot upgrade: not a compatible amount of sectors
I: Bootloader chainload address offset: 0x20000
I: Image version: v0.0.0
I: Jumping to the first image slot

Environment (please complete the following information):

  • OS: (e.g. Linux, MacOS, Windows)
  • Toolchain (e.g Zephyr SDK, ...)
  • Commit SHA or Version used: v4.1.0-2654-gf087aa264e9
@hakehuang hakehuang added the bug The issue is a bug, or the PR is fixing a bug label Apr 21, 2025
@hakehuang
Copy link
Collaborator Author

@butok

@henrikbrixandersen
Copy link
Member

CC: @nordicjm

@butok
Copy link
Collaborator

butok commented Apr 22, 2025

Not verified yet, but this might be caused by: mcu-tools/mcuboot@5aed424

@danieldegrasse danieldegrasse added the priority: low Low impact/importance bug label Apr 22, 2025
@danieldegrasse danieldegrasse changed the title tests: boot: test_mcuboot: fail on spi nor devices platfrom tests: boot: test_mcuboot: fail on spi nor devices platform Apr 22, 2025
@katgiadla katgiadla added the platform: nRF Nordic nRFx label Apr 23, 2025
@github-project-automation github-project-automation bot moved this to To triage in nRF platform Apr 23, 2025
@katgiadla
Copy link
Collaborator

The same issue occurs for bootloader.mcuboot[nrf52840dk/nrf52840] from version v4.1.0-2515-ge1a035.

@butok
Copy link
Collaborator

butok commented Apr 23, 2025

mcu-tools/mcuboot#2266 (comment)
=> To be fixed by mcu-tools/mcuboot@efa3039, but not fixed.

@nordic-piks nordic-piks moved this from To triage to Backlog in nRF platform Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: MCUBoot bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx platform: NXP NXP priority: low Low impact/importance bug
Projects
Status: Backlog
Development

No branches or pull requests

5 participants