balena-os / balena-jetson

https://www.balena.io/os/
Apache License 2.0
44 stars 23 forks source link

[jetson-xavier] implementation for bootcount in cboot needed to support rollback-altboot #20

Closed acostach closed 2 years ago

acostach commented 4 years ago

implementation for bootcount in cboot is need for rollback-altboot to work.

Ideally we'll patch cboot too keep a bootcount and alter the root in the cmdline before passing it to the kernel (kernel cmdline comes from dtb for this board, cboot has no cmdline or anything as such, etc)

Followup in upstream forums at: https://devtalk.nvidia.com/default/topic/1063709/jetson-agx-xavier/cboot-build-with-debug-and-fat-partition-support/

acostach commented 2 years ago

Until a balena bootloader is available to overcome the features that are offered by u-boot but not present in cboot , we address this issue in these PRs:

Tested on Xavier NX devkit SD and eMMC.

acostach commented 2 years ago

On the Xavier AGX the following PR was needed https://github.com/balena-os/balena-jetson/pull/258 due to a problem related to MB1 in 32.6.1