west build failed due to mcuboot sysbuild

Hi,

With NCS v3.1.0 and Nordic's downstream zephyr ncs-v3.1.0, I got build failure with following message:

--

warning: attempt to assign the value 'n' to the undefined symbol MCUBOOT_HARDWARE_DOWNGRADE_PREVENTION

--

This failure can be reproduced by building sample 'with_mcuboot'.

Command as below:

west build -p always -b nrf52840dk/nrf52840 zephyr/samples/sysbuild/with_mcuboot --sysbuild

But I can succeed to build it without '--sysbuild'. And BTW, with same system (machine with Ubuntu v22.04 installed) I can build this sample with original 'zephyr' according to 'Getting Started Guide'

docs.zephyrproject.org/.../index.html

Parents
  • Hi Dunk,
    I was not able to reproduce your issue, the sample works just fine on my machine. Could you please share your entire build log?

    Regards,
    Benjamin

  • Hi Benjamin,

    Thanks for reply. The full log of building this sample was provided.

    BTW, I'm working on the Ubuntu environment, not any GUI/IDE involved.
    The steps I was used to initiate my development environment as below:

    • python3 -m venv .venv
    • source .venv/bin/activate
    • pip install west

    west initialization with west.yml as below

    manifest:
      self:
        path: cbs
    
      remotes:
        - name: zephyrproject-rtos
          url-base: https://github.com/zephyrproject-rtos
        - name: nrfconnect
          url-base: https://github.com/nrfconnect
    
      projects:
        - name: zephyr
          remote: nrfconnect
          repo-path: sdk-zephyr
          revision: ncs-v3.1.0
          import: true
        - name: nrf
          remote: nrfconnect
          repo-path: sdk-nrf
          revision: v3.1.0
          import: true

    • west update
    • pip install -r zephyr/scripts/requirements.txt
    • west sdk install -t arm-zephyr-eabi -b .
    • west zephyr-export
    • source zephyr/zephyr-env.sh
Reply
  • Hi Benjamin,

    Thanks for reply. The full log of building this sample was provided.

    BTW, I'm working on the Ubuntu environment, not any GUI/IDE involved.
    The steps I was used to initiate my development environment as below:

    • python3 -m venv .venv
    • source .venv/bin/activate
    • pip install west

    west initialization with west.yml as below

    manifest:
      self:
        path: cbs
    
      remotes:
        - name: zephyrproject-rtos
          url-base: https://github.com/zephyrproject-rtos
        - name: nrfconnect
          url-base: https://github.com/nrfconnect
    
      projects:
        - name: zephyr
          remote: nrfconnect
          repo-path: sdk-zephyr
          revision: ncs-v3.1.0
          import: true
        - name: nrf
          remote: nrfconnect
          repo-path: sdk-nrf
          revision: v3.1.0
          import: true

    • west update
    • pip install -r zephyr/scripts/requirements.txt
    • west sdk install -t arm-zephyr-eabi -b .
    • west zephyr-export
    • source zephyr/zephyr-env.sh
Children
No Data
Related