MCUBOOT

For our project we switched over to using DIRECT_XIP mone primarily because of the faster boot time but it automatically enables downgrade protection. For our project we need the ability to downgrade. So is there anyway to have DIRECT_XIP while still allowing for the ability to downgrade.

Parents Reply
  • Hi Sorry for the late reply, but is it possible to modify the version number of the current image safely to allow downgrading? Creating a fork of the SDK is not really a viable option. If for example we were in the middle of modifying the version and we lost power would that essentially brick the unit as we would have no image with a valid version number a.k.a no bootable image?

Children
  • Hi,

    I would not recomend this approach, but theoretically you could modfiy the version and security counter in some cases in a semi-safe way by writing to the image trailer without erasing. That would only let you flip bits from 1 to 0.

    But why do you want to do this? If. you really need to downgrade while using downgrade protection, a possibility could be to build another variant of the old firmware with a higher version number. So that it is a higher version seen from the bootloader, but in fact is in other ways identical with the older version.

Related