r32.3.1 Is there a tegraflash.py available to run on the Jetson Tx2?


The L4T flashing tools do not run on the Jetson’s themselves, they run on an Ubuntu x86_64 host PC.

so what tools are available on the Tx2 to sign and encrypt a new kernel dtb

Your flash.sh does not allow me to specify the input kernel.dts to use to build the dtb.signed.encrypted blob that gets downloaded to my device.

I can get a copy of the running dts from /sys/firmware/devicetree/base make changes on the Tx2 and never change the good copy of dtb on my usb connected linux box, but I can’t sign the blob and encrypt it so I can use dd to move my dtb to /dev/mmcblk0p30: PARTLABEL=“kernel-dtb” PARTUUID=“5cfcf27a-fa0f-4318-a11c-42656feedd6d”

Based on multiple forum topic your tools are not appreciated by seasoned developers


Hi Terry,

There is no tool that can generate signed dtb on device directly.

Brief steps for your to update the DTB files more easily.

  1. build the DTB
  2. replace new DTB files with $OUT/bootloader/tegra186.dtb
  3. generate signed files with tegraflash.py
  4. copy the signed DTB to target device.
  5. replace the kernel-dtb partition (/dev/mmcblk0p26) with dd command.

The command to sign dtb could be seen during running flash.sh.

$ sudo ./flash.sh -r -k kernel-dtb jetson-tx2 mmcblk0p1

You shall see something like

./tegraflash.py --bl nvtboot_recovery_cpu.bin  --chip 0x18 --applet mb1_recovery_prod.bin  --cfg flash.xml  --sdram_    config P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --sdram_config P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A0    2_l4t.cfg --misc_config tegra186-mb1-bct-misc-si-l4t.cfg --pinmux_config tegra186-mb1-bct-pinmux-quill-p3310-1000-c0    3.cfg --pmic_config tegra186-mb1-bct-pmic-quill-p3310-1000-c03.cfg --pmc_config tegra186-mb1-bct-pad-quill-p3310-100    0-c03.cfg --prod_config tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg --scr_config minimal_scr.cfg --scr_cold_boot_    config mobile_scr.cfg --br_cmd_config tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --dev_params emmc.cfg  --cfg      flash.xml --bins "mb2_bootloader nvtboot_recovery.bin; mts_preboot preboot_d15_prod_cr.bin; mts_bootpack mce_mts_d    15_prod_cr.bin; bpmp_fw bpmp.bin; bpmp_fw_dtb tegra186-a02-bpmp-quill-p3310-1000-c01-00-te770d-ucm2.dtb; tlk tos.img    ; eks eks.img; bootloader_dtb tegra186-quill-p3310-1000-c03-00-base.dtb"  --cmd "sign;