"local variable 'bpmp_dtb' referenced before assignment" error in /tegraflash_impl_t234.py

I’m using a Jetson Orin Nano devkit, I’m trying to configure the pinmux using new .dtsi files, but when I try to flash I receive this error:

Traceback (most recent call last):
  File "/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py", line 1401, in tegraflash_update_bpmp_dtb
    if bpmp_dtb == None and bpmp_dtb_in_layout == None:
UnboundLocalError: local variable 'bpmp_dtb' referenced before assignment

I’ve included the output log. I’m following this guide: https://docs.nvidia.com/jetson/archives/r35.4.1/DeveloperGuide/text/HR/JetsonModuleAdaptationAndBringUp/JetsonOrinNxNanoSeries.html#generating-the-pinmux-dtsi-files

If anyone has any guidance on resolving this issue, that would be appreciated.

flash_error_log.txt (11.6 KB)


It looks like your flash command is wrong.

Please directly copy from this document.


For example,

this is what you use


But this is actually what our document uses:


The correct command is passing a string “-c xxxxx” to the -p parameter. But your command is passing nothing to -p and then give -c another parameter.

Hi Wayne,

Thanks for looking into this. I do include the quotation marks in my flash command, it is just removed in the in the output log. I directly copied the command you linked, but get the same result. I have included the updated log and included the input command at the top.

flash_error_log_2.txt (11.8 KB)

Did you ever customize anything else inside the Linux_for_Tegra BSP directory?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.