We are seeing FOTA fail when updating from SLM using NCS 1.9.1 to SLM using NCS 2.0.0.
In summary, it appears that when NCS 2.0.0 image boots up, it never confirms and is then reverted back to NCS 1.9.1.
Details:
1. Start OTA download. Download completes successfully. I can see new image in the secondary slot.
2. Restart SLM using XRESET AT command. The new application boots up but does not report XOFTA=5,x status.
3. Reading FOTA=6 status, only shows NCS 2.0.0 image in the primary slot. It also results in the `slm_fota: failed in area 7 banker header: -5` message.
4. After waiting several minutes and issuing another XRESET, the SLM reboots back into NCS 1.9.1 image and sends XFOTA=5,-9 status. Doing XFOTA=6, shows NCS 1.9.1 image in the primary slot and NCS 2.0.0 image in the secondary slot.
00> [00:03:31.328,826] <inf> dfu_target_mcuboot: MCUBoot image upgrade scheduled. Reset device to apply 00> *** Booting Zephyr OS build b05b8ad63acf *** 00> I: Starting bootloader 00> I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 00> I: Secondary image: magic=good, swap_type=0x2, copy_done=0x3, image_ok=0x3 00> I: Boot source: none 00> I: Swap type: test 00> I: Bootloader chainload address offset: 0x10000 00> I: Jumping to the first image slot 00> *** Booting Zephyr OS build v3.0.99-ncs1 *** 00> 00> [00:00:00.463,958] <inf> slm: Serial LTE Modem 00> [00:00:00.563,781] <inf> silvertree: SLM AT ST Init 00> [00:00:00.569,396] <inf> slm_at_host: at_host init done 00> [00:00:31.202,606] <wrn> slm_fota: failed in area 7 banker header: -5 00> *** Booting Zephyr OS build b05b8ad63acf *** 00> I: Starting bootloader 00> I: Primary image: magic=good, swap_type=0x2, copy_done=0x1, image_ok=0x3 00> I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 00> I: Boot source: none 00> I: Swap type: revert 00> I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 00> I: Bootloader chainload address offset: 0x10000 00> I: Jumping to the first image slot 00> *** Booting Zephyr OS build b05b8ad63acf ***
We are able to successfully OTA from NCS 2.0.0 image to another image also using NCS 2.0.0. But OTAing from NCS 1.9.1 image fails.