Encrypted partition full image OTA

Hi all,
I am running A/B scheme+ full disk encryption on NVME, Now I try to test full image OTA on top of that. it seems the existing full image OTA script does not work on this encryption+A/B scheme on NVME anymore, I try to do it myself. It is pretty much working,. For example current rootfs partition is 0.the approach I used is to copy the new rootfs to the encrypted partition 1. I also copy the kernel and kernel device tree to partition 1’s boot partition. It boots up with my new kernel and rootfs.
but I have couple of questions:

  1. Do I need copy or dd the u-boot device tree to the emmc partition?
  2. when I boot up to new rootfs partition 1, I cannot use command nvbootctrl set-active-boot-slot 0 to swich back to slot 0 anymore. It shows below error:
 nvbootctrl set-active-boot-slot 0
null input file!
Init SMD partition failed!
null input file!
null input file!
Error setting active boot slot: Input/output error

may I know any idea how to solve this?
thanks

Hi jiangpen,

Before you did this, can your nvbootctrl command work as expected?

@KevinFFF , updated
I copied over the file below, it can switch back to partition A, but it boots up to partition A and reboot it self, try to boot to partition B again. I think some fall over etc happening.

/etc/nv_boot_control.conf

Why you need to do this manually?

It may be caused from it fails to boot from partition A so that it boots from partition B.
I believe sudo nvbootctrl dump-slots-info will return the status about slot A unbootable and it is in slot B.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.