From e24f557e046623aa9b6ae7cad1067d0247bb4c2e Mon Sep 17 00:00:00 2001 From: Dan Walkes Date: Sat, 20 Mar 2021 19:46:47 -0600 Subject: [PATCH] tegrademo-mender: Use cboot by default on TX2 Since uboot slot alignment issues are tricky, unless you know what you are doing you probably want cboot as your bootloader for TX2/mender See discussion at https://github.com/OE4T/meta-mender-community/pull/8#issuecomment-745564642 Signed-off-by: Dan Walkes --- README.md | 17 +++++++++++++++++ .../conf/distro/tegrademo-mender.conf | 3 +++ 2 files changed, 20 insertions(+) diff --git a/README.md b/README.md index b6b80a36..8dd295c7 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,23 @@ Currently supported distributions are listed below: | tegrademo | Default distro used to demonstrate/test meta-tegra features | | tegrademo-mender | Adds [mender](https://www.mender.io/) OTA support | +### tegrademo-mender + +The tegrademo-mender distro demonstrates [mender](https://www.mender.io/) OTA update +support with customizations on the tegrademo distribution including: + +1. Dual A/B rootfs support with read-only-rootfs. +2. Integration with cboot and [tegra-boot-tools](https://github.com/OE4T/tegra-boot-tools) + to support persistent systemd machine-id settings on read only rootfs. +3. Boot slot and rootfs partition synchronization through boot tools and bootloader +integration. + +The synchronization of boot slot and root filesystem partition is more complicated to +manage and test with via u-boot (see [this issue](https://github.com/BoulderAI/meta-mender-community/pull/1#issue-516955713) +for detail). For this reason, the tegrademo-mender distribution defaults to use the +cboot bootloader on Jetson TX2, instead of the default u-boot bootloader used by +meta-tegra. If you need to use a different bootloader you can customize the setting +of `PREFERRED_PROVIDER_virtual/bootloader_tegra186` in your distro layer. ## Images diff --git a/layers/meta-tegrademo/conf/distro/tegrademo-mender.conf b/layers/meta-tegrademo/conf/distro/tegrademo-mender.conf index d86bb42b..c56a7d8c 100644 --- a/layers/meta-tegrademo/conf/distro/tegrademo-mender.conf +++ b/layers/meta-tegrademo/conf/distro/tegrademo-mender.conf @@ -48,3 +48,6 @@ MENDER_ROOTFS_PART_B_NUMBER_jetson-nano-2gb-devkit = "2" # Overrides until meta-mender-tegra is updated BOOTENV_SIZE_jetson-nano-devkit = "0x8000" BOOTENV_SIZE_jetson-nano-2gb-devkit = "0x8000" + +# Use cboot by default on TX2 to avoid uboot slot alignment issues +PREFERRED_PROVIDER_virtual/bootloader_tegra186 = "cboot-t18x"