OE4T / meta-tegra

BSP layer for NVIDIA Jetson platforms, based on L4T
MIT License
385 stars 216 forks source link

initrd-flash does not substitute DTB_FILE for pre-signed builds #1452

Closed Lexmark-chad closed 6 months ago

Lexmark-chad commented 6 months ago

Build Info:

tegra-demo-distro, kirkstone branch, MACHINE = "p3768-0000-p3767-0000"

When running initrd-flash for pre-signed builds DTB_FILE does not get replaced with the kernel .dtb in the resulting initrd-flash.xml. Unsigned builds take a different path through initrd-flash in sign_binaries where the tegraXXX-flash-helper.sh script does the replacement via sed. As a result the NVMe does not get properly programmed and uefi will fallback to attempting to boot over the network.

If you have opinions regarding the best place to fix this let me know, otherwise I'll take my best guess and submit a PR. As of right now I'll probably add to this existing sed expression:

https://github.com/OE4T/meta-tegra/blob/kirkstone/recipes-bsp/tegra-binaries/tegra-helper-scripts/initrd-flash.sh#L403