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 a1a88b5 commit 9a9fee5
Show file tree
Hide file tree
Showing 2 changed files with 23 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
6 changes: 6 additions & 0 deletions layers/meta-tegrademo/conf/distro/tegrademo-mender.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,9 @@ MENDER_ROOTFS_PART_B_NUMBER_jetson-nano-devkit = "2"
# Swap is in partition 3 on the 2GB devkit
MENDER_DATA_PART_NUMBER_jetson-nano-2gb-devkit = "4"
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"

0 comments on commit 9a9fee5

Please sign in to comment.