Skip to content

Commit

Permalink
initrd-flash.sh: fix sed command when using SBK
Browse files Browse the repository at this point in the history
- When secure boot is enabled the resulting doflash.sh contains
  'uefi_jetson_with_dtb_aligned_blob_w_bin_sigheader_encrypt.bin.signed'
  vs
  'uefi_jetson_with_dtb_sigheader_encrypt.bin.signed' when secure
  boot is not enabled.  Update the sed command to work with both.

- The command to replace '_aligned_blob_w_bin' with '' must appear before
  the command to replace 'uefi_jetson' with 'rcmboot_uefi_jetson'.

Signed-off-by: Chad McQuillen <[email protected]>
  • Loading branch information
Lexmark-chad authored and madisongh committed Aug 3, 2024
1 parent d47fa36 commit a715a1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ prepare_for_rcm_boot() {
fi
"$here/rewrite-tegraflash-args" -o rcm-boot.sh --bins kernel=initrd-flash.img,kernel_dtb=$dtbfile_for_rcmboot --cmd rcmboot --add="--securedev" flash_signed.sh || return 1
if [ "$CHIPID" = "0x23" ]; then
sed -i -e's,mb2_t234_with_mb2_bct_MB2,mb2_t234_with_mb2_cold_boot_bct_MB2,' -e's, uefi_jetson, rcmboot_uefi_jetson,' rcm-boot.sh || return 1
sed -i -e's,mb2_t234_with_mb2_bct_MB2,mb2_t234_with_mb2_cold_boot_bct_MB2,' -e's,_aligned_blob_w_bin,,' -e's, uefi_jetson, rcmboot_uefi_jetson,' rcm-boot.sh || return 1
fi
chmod +x rcm-boot.sh
fi
Expand Down

0 comments on commit a715a1e

Please sign in to comment.