From b2640f278e0bb3ec74cc5328b08f205091d31957 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 c6aa7de5..1fd98c05 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,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 a1bab862..cf336ae2 100644 --- a/layers/meta-tegrademo/conf/distro/tegrademo-mender.conf +++ b/layers/meta-tegrademo/conf/distro/tegrademo-mender.conf @@ -36,3 +36,6 @@ MENDER_STORAGE_TOTAL_SIZE_MB ?= "${@tegra_mender_calc_total_size(d) - int(d.getV SYSTEMD_DEFAULT_TARGET = "finished-booting.target" IMAGE_INSTALL_append_tegra = " tegra-eeprom-tool i2c-tools tegra-bup-payload" + +# Use cboot by default on TX2 to avoid uboot slot alignment issues +PREFERRED_PROVIDER_virtual/bootloader_tegra186 = "cboot-t18x"