warning from partition_manager on NCS 2.5.0

I'm trying to migrate my project from NCS2.4.2 to NCS2.5.0.

At that time, the following warning occurs.

          ---------------------------------------------------------------------
          --- WARNING: Using a bootloader without pm_static.yml.            ---
          --- There are cases where a deployed product can consist of       ---
          --- multiple images, and only a subset of these images can be     ---
          --- upgraded through a firmware update mechanism. In such cases,  ---
          --- the upgradable images must have partitions that are static    ---
          --- and are matching the partition map used by the bootloader     ---
          --- programmed onto the device.                                   ---
          ---------------------------------------------------------------------

What should I do?

Bootloader settings in proj.conf.

CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_SECURE_BOOT=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
CONFIG_MCUMGR_TRANSPORT_BT_AUTHEN=n
CONFIG_MCUMGR_MGMT_NOTIFICATION_HOOKS=y
CONFIG_MCUMGR_GRP_IMG_UPLOAD_CHECK_HOOK=y

  • So in our system we have a custom board folder.

    In our project folder, we have "configuration\custombrd"

    Within the "custombrd" folder we have a pm_static_CPUAPP.yml and pm_static_CPUNET.yml.

    we then added this to the makefile

    set(APPLICATION_CONFIG_DIR "configuration/\${BOARD}")
    SET(PM_STATIC_YML_FILE ${CMAKE_CURRENT_SOURCE_DIR}/configuration/custombrd/pm_static_CPUAPP.yml)
    SET(hci_rpmsg_b0n_OVERLAY_CONFIG "${CMAKE_CURRENT_SOURCE_DIR}/configuration/custombrd/child_image/b0/prj.conf")
    SET(hci_rpmsg_PM_STATIC_YML_FILE ${CMAKE_CURRENT_SOURCE_DIR}/configuration/custombrd/pm_static_CPUNET.yml)

    we do define a prj.conf file in each of the "child_image\b0", "child_image\hci_rpmsg" and "child_image\mcuboot"

    There is some reference help if you search Zephyr for "pm_static_CPUNET". As usual it is not very clear. 

    Best of luck. We have updated to 2.5.1, with no observed issues yet.

Related