Azure FOTA w/o Partition Manager (NCS v2.9.3)

Hi,

 I would like to know if its possible to run Azure FOTA functionality w/o using Partition Manager (aka `SB_CONFIG_PARTITION_MANAGER=n`) ?

 Trying to build this gets the following errors:

1. 

nrf/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c:20:10: fatal error: pm_config.h: No such file or directory
   20 | #include <pm_config.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

2. 

nrf/subsys/net/lib/fota_download/src/fota_download.c:12:10: fatal error: pm_config.h: No such file or directory
   12 | #include <pm_config.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

Trying to remove the include, creates these other issues:

3. 

nrf/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c:60:41: error: 'PM_MCUBOOT_SECONDARY_SIZE' undeclared here (not in a function); did you mean 'PM_MCUBOOT_SECONDARY_0_SIZE'?
   60 | #define PM_MCUBOOT_SECONDARY_0_SIZE     PM_MCUBOOT_SECONDARY_SIZE
      |                                         

4. 

nrf/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c:61:41: error: 'PM_MCUBOOT_SECONDARY_ADDRESS' undeclared here (not in a function); did you mean 'PM_MCUBOOT_SECONDARY_0_ADDRESS'?
   61 | #define PM_MCUBOOT_SECONDARY_0_ADDRESS  PM_MCUBOOT_SECONDARY_ADDRESS
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Trying to hack these further you get:

ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe:zephyr/linker_zephyr_pre0.cmd:61 cannot move location counter backwards (from 000000000000c300 to 000000000000c200)
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Best regards.

Parents Reply
  • Hi Benjamin,

     I've tried increasing the config field to `CONFIG_NET_MAX_CONTEXTS=32` it does not seem to do anything. Is still the same error:

    [00:00:39.231,048] <err> download_client: Failed to create socket, errno 12
    [00:00:39.231,079] <err> fota_download: Download client error
    [00:00:39.231,079] <dbg> fota_download: download_client_callback: No DFU target was initialized
    [00:00:39.231,140] <err> azure_fota: FOTA download failed
    

    Best regards.

Children
No Data
Related