-
We would like to sign the boot files that we are using and ultimately burn the fuses. I'm seeing two issues:
When looking at tegra21-flash-helper.sh, it looks like it's immediately checking that the chipid is the correct value before doing anything else:
I assumed that nothing should need to be connected to just sign the images files. Is that incorrect? If so, could this be rectified? It would be nice to not have anything connected while we're building and signing images as part of our build process. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
I see that logic at https://github.com/OE4T/meta-tegra/blob/master/recipes-bsp/tegra-binaries/tegra-helper-scripts/tegra210-flash-helper.sh#L114:L117 however it looks like it's only executed when "${BOARDID}" and "${FAB}" aren't set. Assuming you are using nano the FAB is specific to the part you are generating for, which is probably why it's looking up the chip ID. So I suspect you can probably execute this script in a manner similar to the flash.sh --no-flash examples in the link you shared by specifying BOARDID=3448 and FAB=xxxx . It looks like these values shouldn't ultimately be necessary for signing only based on the NVIDIA nano instructions. Not sure about best practices for this workflow. Others will probably be more help than I am. It may be that some options are missing in the script to fully support. It would be great to get this documented somewhere in my opinion, so whatever you learn here will be valuable.
If you haven't already you might try making sure you can successfully sign using NVIDIA's scripts first, then map the successful commands to the helper scripts. I went through this a while back on TX2 and wrote some scripts to help automate, however they might be too far out of date to be useful now. See https://github.com/Trellis-Logic/secureboot-tegra |
Beta Was this translation helpful? Give feedback.
-
There is some documentation on the wiki about how to set this up. If you're trying get your build to generate pre-signed output, and that's not working, let me know which branch and if you customized your build more than just setting TEGRA_SIGNING_ARGS as described on the wiki page, as well as exactly which recipe/build task is failing. I do regularly run test builds for secure boot support, but admittedly using a code signing server rather than embedding the signing keys in the build configuration, so there might be a bug that needs addressing. |
Beta Was this translation helpful? Give feedback.
There is some documentation on the wiki about how to set this up. If you're trying get your build to generate pre-signed output, and that's not working, let me know which branch and if you customized your build more than just setting TEGRA_SIGNING_ARGS as described on the wiki page, as well as exactly which recipe/build task is failing. I do regularly run test builds for secure boot support, but admittedly using a code signing server rather than embedding the signing keys in the build configuration, so there might be a bug that needs addressing.