04-22-2020 04:51 PM
This is for the ZCU111 RFSOC. I have two different PetaLinux software images (containing kernel, dtb, rootfs), each signed and encrypted with bootgen, stored on an SD card. I would like to provide a Linux user on the board with the ability to choose whether the first or second image is used for the next boot. I would also like ensure that the user is not able to run an unsigned, unencrypted image.
Is this possible? I have looked through https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842403/Zynq+Ultrascale+MPSoC+Multiboot+and+Fallback but it only seems to provide a fallback boot mode in case one image fails. I do not see a way for a user to select between the first or second image.
04-24-2020 09:33 AM
It is possible but you would have to make modifications.
Since the 'Linux' user is selecting first or second image, one possible method would write the image number into an unused flash location. When uboot runs, it would check the flash location to determine which images to load and start running.