Adding COMPATIBLE_SPEC support for BUP payloads #1135
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is already present in the JetPack 5/R35.1.0-based branches, but was more involved for R32.7.x because:
When using the stock NVIDIA bootloader update tools, the
setup-nv-boot-control
service will add a COMPATIBLE_SPEC line to the configuration file so that BUP payload entries either matching the actual TNSPEC or the compatible spec will be considered valid for an update. The new version of thetegra-bootloader-update
tool implements similar logic for its compatibility checks.With the above changes, the
TEGRA_BUP_SPECS
settings for all machines needed revising. In most cases, fewer specs are required, making BUP packages smaller and taking less time to build/sign.For reviewing, I'd appreciate it if someone could cross check the
setup-nv-boot-control.sh
changes here (and the translation of the logic in that script to the C code here in tegra-boot-tools) to derive the compatible spec string against NVIDIA's implementation in theirnv-l4t-bootloader-config.sh
script. To get a copy of the NVIDIA script, extract it from thenvidia-l4t-init
package, which you can download here, with:The relevant function in that script is called
generate_compatible_spec_info
.