This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Implementing custom partition_manager subsystems without modifying sdk

I'm working on a project that has multiple custom partition manager configuration file that are implemented based on the instructions provided in this section of the partition manager guide. However, I want to find an alternative method to embedding files in a local copy of the sdk so the project requites less initial setup. Is this possible?

Parents Reply Children
  • So I have 3 pm.yml configuration files (lets call them pm.yml.1, pm.yml.2, and pm.yml.3). I put them in the

    <home dir>/ncs/nrf/subsys/partition_manager directory of my local copy of the sdk and then add their respective entries in the [menu "Zephyr subsystem configurations"] section of the Kconfig file in that same folder. If I don't do that then my project will not build. Is there a way I can have child images in my project without modifying my sdk?

  • Thanks for clarifying. 

    What version of NCS are you working on? The pm.yml can be placed anywhere in your SDK repository structure. Then from the relevant CmakeLists.txt you need to add e.g.

    ncs_add_partition_manager_config(pm.yml.1).

    For the simplicity of the Partition Manager, the "menu "Zephyr subsystem configurations" is added, however, these menu items could just as well be added to respective module. I.e. take
     
    if ZIGBEE && !SOC_NRF52833partition=ZBOSS_NVRAM
    partition-size=0x8000
    rsource "Kconfig.template.partition_size"
    endif
    This could also be placed in nrf\subsys\zigbee\Kconfig

     

    Vitalacy Guy said:
    If I don't do that then my project will not build

     Do you get any error messages? Can you share the project you are working on including the pm.yml files?

Related