Skip to content

Commit

Permalink
tegrademo-mender: Use cboot by default on TX2
Browse files Browse the repository at this point in the history
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 OE4T/meta-mender-community#8 (comment)

Signed-off-by: Dan Walkes <danwalkes@trellis-logic.com>
  • Loading branch information
dwalkes authored and madisongh committed Mar 28, 2021
1 parent 51f9610 commit b2640f2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions layers/meta-tegrademo/conf/distro/tegrademo-mender.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit b2640f2

Please sign in to comment.