Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from NVIDIA bootloader tools to tegra-boot-tools #32

Merged
merged 5 commits into from
Dec 30, 2020

Conversation

madisongh
Copy link
Member

For Mender builds, replace the tegra-redundant-boot tools from the L4T BSP with tegra-boot-tools:

  • Update the Mender state scripts to use the new tools
  • For cboot platforms, add bootcount check to initramfs and boot-success marking to normal rootfs using the utilities/services provided by tegra-boot-tools
  • Update runtime dependencies where needed to switch to the new tools

After this update:

  • The tegra-boot-control utility replaces nvbootctrl. An emulation script for nvbootctrl is added to handle downgrades (since the downloaded state scripts assume nvbootctrl is available).
  • The tegra-bootloader-update utility replaces nv_update_engine (and no nv_update_verifier service is installed) on cboot platforms, and replaces l4t_payload_updater_t210 on the TX1/Nano.
  • Boot count status can be viewed with tegra-bootinfo --show on cboot platforms.
  • The /etc/nv_boot_control.conf file is no longer present, since the new tools don't need it; they instead directly read the information they need from the hardware.
  • Bootloader updates on Xavier NX modules/devkits should take about half the time when BUP contents match what's already present in the QSPI flash, since the new tools only write updates when the contents are different.

…tools

replacing the NVIDIA bootloader update tools.

Note that for cboot platforms, the InstallEnter script may still need
to use nvbootctrl for getting the current boot slot, since the script
would run in the context of an older rootfs that only has the NVIDIA
tools installed.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Matt Madison <matt@madison.systems>
to provide a modified platform-preboot script for cboot platforms
that performs a bootcount check.

Signed-off-by: Matt Madison <matt@madison.systems>
* tegra-boot-tools-nvbootctrl added to provide the nvbootctrl compatibility
  script for handling downgrades to images that assume that the NVIDIA
  bootloader tools are in use.

* tegra-boot-tools-lateboot added for marking boots successful.

Signed-off-by: Matt Madison <matt@madison.systems>
which uses tegra-boot-tools for getting the current
boot slot.

Signed-off-by: Matt Madison <matt@madison.systems>
@madisongh madisongh merged commit 62a558a into master Dec 30, 2020
@madisongh madisongh deleted the tegra-boot-tools-switchover branch December 30, 2020 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant