Orin not completing system configuration setup after flashing

Purpose: I need to be able to recursively copy the NVidia Linux_for_Tegra directory into a working Linux_for_Tegra directory, where I can run make menuconfig to modify the kernel.

I am recursively copying from the $(HOME)/nvidia_sdk/JetPack_5.0.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra directory into a ${HOME}/workspace/Linux_for_Tegra directory as SU.

I can flash Orin for the $(HOME)/nvidia_sdk/JetPack_5.0.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra using:

sudo ./flash.sh -C nv-auto-config jetson-agx-orin-devkit mmcblk0p1

or

sudo ./flash.sh jetson-agx-orin-devkit mmcblk0p1

and it will flash and configure correctly. However, if I try to perform the same operation (without performing a make menuconfig) in my ${HOME}/workspace/Linux_for_Tegra directory, it appears to flash correctly, but Orin does not complete the system configuration setup after flashing using the same flash parameters as above.

Here is the output of the system console:

The flash appears to complete successfully:

Output_for_flash_sh.txt (82.7 KB)

I have a monitor and keyboard connected to the Orin. It appears to go through the system configuration correctly, but then it just hangs (I’ve waited more than an hour). If I reset Orin, it simply has me go through the system configuration setup again and then it hangs again; e.g.

Output_after_reboot.txt (60.2 KB)

I would appreciate any assistance you can provide.

Thank you.

Your topic was posted in the wrong category. I am moving this to the Jetson AGX Orin category for visibility.

What if you directly run l4t_create_default_users.sh script in your ${HOME}/workspace/Linux_for_Tegra directory ? Would that bypass the configuration?

I’ll try that. THX

OK, here’s the result of doing that.

###############################################################################

L4T BSP Information:

R35 , REVISION: 1.0

###############################################################################

Target Board Information:

Name: jetson-agx-orin-devkit, Board Family: t186ref, SoC: Tegra 234,

OpMode: production, Boot Authentication: NS,

Disk encryption: disabled ,

###############################################################################
copying emc_fuse_dev_params(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-diag-boot.dts)… done.
copying device_config(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3701-0000.dts)… done.
copying misc_config(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3701-0000.dts)… done.
./tegraflash.py --chip 0x23 --applet “/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/mb1_t234_prod.bin” --skipuid --cfg readinfo_t234_min_prod.xml --dev_params tegra234-br-bct-diag-boot.dts --device_config tegra234-mb1-bct-device-p3701-0000.dts --misc_config tegra234-mb1-bct-misc-p3701-0000.dts --bins “mb2_applet applet_t234.bin” --cmd “dump eeprom cvm cvm.bin; dump custinfo custinfo_out.bin; reboot recovery”
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands

[ 0.0238 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 0.0249 ] File rcm_state open failed
[ 0.0254 ] ERROR: failed to read rcm_state
[ 0.0254 ]
[ 0.0264 ] tegrasign_v3.py --key None --getmode mode.txt
[ 0.0266 ] Assuming zero filled SBK key
[ 0.0258 ] Pre-processing config: tegra234-mb1-bct-device-p3701-0000.dts
[ 0.0535 ] Pre-processing config: tegra234-mb1-bct-misc-p3701-0000.dts
[ 0.1614 ] Parsing partition layout
[ 0.1664 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[ 0.1688 ] Parsing partition layout
[ 0.1701 ] tegraparser_v2 --pt readinfo_t234_min_prod.xml.tmp
[ 0.1718 ] Creating list of images to be signed
[ 0.2062 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --list images_list.xml zerosbk
[ 0.2076 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[ 0.2087 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[ 0.2092 ] MB1: Nvheader already present is mb1_t234_prod_aligned.bin
[ 0.2135 ] Header already present for mb1_t234_prod_aligned_sigheader.bin
[ 0.2141 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[ 0.2195 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[ 0.2198 ] adding BCH for mb2_t234_aligned.bin
[ 0.2227 ] MB1: Nvheader already present is psc_bl1_t234_prod_aligned.bin
[ 0.2371 ] Header already present for psc_bl1_t234_prod_aligned_sigheader.bin
[ 0.2375 ] adding BCH for mb2_t234_aligned.bin
[ 0.2545 ] Generating signatures
[ 0.2555 ] tegrasign_v3.py --key None --list images_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.2559 ] Assuming zero filled SBK key
[ 0.2855 ] Warning: pub_key.key is not found
[ 0.2849 ] Parsing dev params for multi chains
[ 0.2949 ] Generating br-bct
[ 0.3102 ] Updating dev and MSS params in BR BCT
[ 0.3104 ] tegrabct_v2 --dev_param tegra234-br-bct-diag-boot_cpp.dtb --brbct br_bct.cfg --chip 0x23 0
[ 0.3120 ] Updating bl info
[ 0.3134 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updateblinfo readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[ 0.3148 ] WARNING: boot chain is not completed. set to 0
[ 0.3160 ] Get Signed section of bct
[ 0.3169 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --listbct bct_list.xml
[ 0.3186 ] Signing BCT
[ 0.3196 ] tegrasign_v3.py --key None --list bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.3200 ] Assuming zero filled SBK key
[ 0.3245 ] Sha saved in br_bct_BR.sha
[ 0.3248 ] Warning: pub_key.key is not found
[ 0.3239 ] Updating BCT with signature
[ 0.3254 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesig bct_list_signed.xml
[ 0.3267 ] Offset :4608 Len :3584
[ 0.3275 ] Generating SHA2 Hash
[ 0.3284 ] tegrasign_v3.py --key None --list bct_list.xml --sha sha512
[ 0.3287 ] Assuming zero filled SBK key
[ 0.3287 ] Assuming zero filled SBK key
[ 0.3323 ] Sha saved in br_bct_BR.sha
[ 0.3319 ] Updating BCT with SHA2 Hash
[ 0.3330 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x23 0 --updatesha bct_list_signed.xml
[ 0.3340 ] Offset :4608 Len :3584
[ 0.3343 ] Offset :68 Len :8124
[ 0.3347 ] Generating coldboot mb1-bct
[ 0.3358 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct.cfg --misc tegra234-mb1-bct-misc-p3701-0000_cpp.dtb --device tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.3367 ] MB1-BCT version: 0.9

[ 0.3386 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.3389 ] Added Platform Config 9 data with size :- 80
[ 0.3389 ]
[ 0.3390 ] Updating mb1-bct with firmware information
[ 0.3401 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo readinfo_t234_min_prod.xml.bin
[ 0.3435 ] tegrahost_v2 --chip 0x23 0 --align mb1_cold_boot_bct_MB1_aligned.bct
[ 0.3462 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1_aligned.bct zerosbk
[ 0.3476 ] adding BCH for mb1_cold_boot_bct_MB1_aligned.bct
[ 0.3502 ] tegrasign_v3.py --key None --list mb1_cold_boot_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.3504 ] Assuming zero filled SBK key
[ 0.3532 ] Warning: pub_key.key is not found
[ 0.3536 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_cold_boot_bct_MB1_aligned_sigheader.bct.encrypt mb1_cold_boot_bct_MB1_aligned_sigheader.bct.hash zerosbk
[ 0.3558 ] Generating recovery mb1-bct
[ 0.3569 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct.cfg --misc tegra234-mb1-bct-misc-p3701-0000_cpp.dtb --device tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.3581 ] MB1-BCT version: 0.9

[ 0.3607 ] Parsing config file :tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.3610 ] Added Platform Config 9 data with size :- 80
[ 0.3610 ]
[ 0.3611 ] Updating mb1-bct with firmware information
[ 0.3626 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct_MB1.bct --recov --updatefwinfo readinfo_t234_min_prod.xml.bin
[ 0.3665 ] tegrahost_v2 --chip 0x23 0 --align mb1_bct_MB1_aligned.bct
[ 0.3691 ] tegrahost_v2 --chip 0x23 0 --magicid MBCT --appendsigheader mb1_bct_MB1_aligned.bct zerosbk
[ 0.3704 ] adding BCH for mb1_bct_MB1_aligned.bct
[ 0.3727 ] tegrasign_v3.py --key None --list mb1_bct_MB1_aligned_sigheader.bct_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.3729 ] Assuming zero filled SBK key
[ 0.3753 ] Warning: pub_key.key is not found
[ 0.3757 ] tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[ 0.3779 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.3780 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.3780 ] Copying signatures
[ 0.3790 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[ 0.3869 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[ 0.3872 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from images_list
[ 0.3872 ] Boot Rom communication
[ 0.3885 ] tegrarcm_v2 --new_session --chip 0x23 0 --uid --download bct_br br_bct_BR.bct --download mb1 mb1_t234_prod_aligned_sigheader.bin.encrypt --download psc_bl1 psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
[ 0.3900 ] BR_CID: 0x80012344705DD10F2000000013FF0200
[ 0.4756 ] Sending bct_br
[ 0.5588 ] Sending mb1
[ 0.5595 ] Sending psc_bl1
[ 0.5682 ] Sending bct_mb1
[ 0.5737 ] Boot Rom communication completed
[ 0.5769 ] tegrahost_v2 --chip 0x23 0 --align applet_t234_aligned.bin
[ 0.5793 ] tegrahost_v2 --chip 0x23 0 --magicid MB2A --appendsigheader applet_t234_aligned.bin zerosbk
[ 0.5804 ] adding BCH for applet_t234_aligned.bin
[ 0.5929 ] tegrasign_v3.py --key None --list applet_t234_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key --sha sha512
[ 0.5931 ] Assuming zero filled SBK key
[ 0.5966 ] Warning: pub_key.key is not found
[ 0.5970 ] tegrahost_v2 --chip 0x23 0 --updatesigheader applet_t234_aligned_sigheader.bin.encrypt applet_t234_aligned_sigheader.bin.hash zerosbk
[ 0.5996 ] Sending mb2_applet…

[ 0.6011 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[ 0.6028 ] BL: version 0.23.0.0-t234-54845784-92215740 last_boot_error: 0
[ 0.7591 ] Sending applet
[ 0.8789 ] completed
[ 0.8809 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 0.8824 ] MB2 Applet version 01.00.0000
[ 1.0758 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 1.0774 ] MB2 Applet version 01.00.0000
[ 1.1626 ] Retrieving board information
[ 1.1637 ] tegrarcm_v2 --chip 0x23 0 --oem platformdetails chip chip_info.bin
[ 1.1651 ] MB2 Applet version 01.00.0000
[ 1.2491 ] Saved platform info in chip_info.bin
[ 1.2545 ] Chip minor revision: 1
[ 1.2546 ] Bootrom revision: 0x7
[ 1.2547 ] Ram code: 0x0
[ 1.2548 ] Chip sku: 0xd0
[ 1.2549 ] Chip Sample: prod
[ 1.2558 ] Retrieving EEPROM data
[ 1.2558 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/cvm.bin --chip 0x23 0
[ 1.2575 ] MB2 Applet version 01.00.0000
[ 1.3408 ] Saved platform info in /home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/cvm.bin
[ 1.3755 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 1.3770 ] MB2 Applet version 01.00.0000
[ 1.4671 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 1.4684 ] MB2 Applet version 01.00.0000
[ 1.5532 ] Dumping customer Info
[ 1.5553 ] tegrarcm_v2 --chip 0x23 0 --oem dump bct tmp.bct
[ 1.5568 ] MB2 Applet version 01.00.0000
[ 1.6411 ] Saved bct in tmp.bct
[ 1.6506 ] tegrabct_v2 --brbct tmp.bct --chip 0x23 0 --custinfo /home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/custinfo_out.bin
[ 1.6526 ] C[ 1.6533 ] ustomer data saved in /home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/custinfo_out.bin successfully
[ 1.6534 ] Rebooting to recovery mode
[ 1.6555 ] tegrarcm_v2 --chip 0x23 0 --ismb2
[ 1.7432 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[ 1.7449 ] MB2 Applet version 01.00.0000
[ 1.8291 ] Booting to recovery mode
[ 1.8312 ] tegrarcm_v2 --chip 0x23 0 --reboot recovery
[ 1.8325 ] MB2 Applet version 01.00.0000
Board ID(3701) version(500) sku(0000) revision(H.0)
Copy /home/dr_b/YorLabs/Xavier/Linux_for_Tegra/kernel/dtb/tegra234-p3701-0000-p3737-0000.dtb to /home/dr_b/YorLabs/Xavier/Linux_for_Tegra/kernel/dtb/tegra234-p3701-0000-p3737-0000.dtb.rec
copying bctfile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-p3701-0000-p3737-0000-TE990M-sdram.dts)… done.
copying device_config(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3701-0000.dts)… done.
copying misc_config(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3701-0000.dts)… done.
copying pinmux_config(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-pinmux-p3701-0000.dtsi)… done.
copying gpioint_config(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-gpioint-p3701-0000.dts)… done.
copying pmic_config(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-pmic-p3701-0000.dts)… done.
copying pmc_config(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-padvoltage-p3701-0000.dtsi)… done.
copying deviceprod_config(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-cprod-p3701-0000.dts)… done.
copying prod_config(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-prod-p3701-0000.dts)… done.
copying scr_config(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-scr-p3701-0000.dts)… done.
copying wb0sdram(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-p3701-0000-p3737-0000-TE990M-wb0sdram.dts)… done.
copying bootrom_config(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-reset-p3701-0000.dts)… done.
copying dev_params(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-p3701-0000.dts)… done.
copying dev_params_b(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct_b-p3701-0000.dts)… done.
copying mb2bct_cfg(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-misc-p3701-0000.dts)… done.
Existing pscfwfile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/pscfw_t234_prod.bin) reused.
Existing pscbl1file(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/psc_bl1_t234_prod.bin) reused.
Existing mtsmcefile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/mce_flash_o10_cr_prod.bin) reused.
Existing mb2applet(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/applet_t234.bin) reused.
Existing bootloader(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/mb2_t234.bin) reused.
copying initrd(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/l4t_initrd.img)… done.
Making Boot image… done.
bl is uefi
Not signing of boot.img
Making recovery ramdisk for recovery image…
Re-generating recovery ramdisk for recovery image…
/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/ramdisk_tmp /home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader /home/dr_b/YorLabs/Xavier/Linux_for_Tegra
36144 blocks

gzip: /home/dr_b/YorLabs/Xavier/Linux_for_Tegra/kernel/Image: not in gzip format
_BASE_KERNEL_VERSION=5.10.104-tegra
53066 blocks
Making Recovery image…
copying recdtbfile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/kernel/dtb/tegra234-p3701-0000-p3737-0000.dtb.rec)… done.
20+0 records in
20+0 records out
20 bytes copied, 0.000382933 s, 52.2 kB/s
Existing sosfile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/mb1_t234_prod.bin) reused.
Existing tegraboot(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/mb2_t234.bin) reused.
Existing cpu_bootloader(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/mb2_t234.bin) reused.
Existing mb2blfile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/mb2_t234.bin) reused.
Existing xusbfile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/xusb_t234_prod.bin) reused.
Existing dcefile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/display-t234-dce.bin) reused.
Existing nvdecfile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/nvdec_t234_prod.fw) reused.
Existing psc_rf(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/psc_rf_t234_prod.bin) reused.
Existing mb2_rf(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/mb2rf_t234.bin) reused.
Existing mb1file(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/mb1_t234_prod.bin) reused.
Existing bpffile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/bpmp_t234-TE990M-A1_prod.bin) reused.
Existing scefile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/camera-rtcpu-sce.img) reused.
Existing camerafw(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/camera-rtcpu-t234-rce.img) reused.
Existing apefile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/adsp-fw.bin) reused.
Existing spefile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/spe_t234.bin) reused.
Existing wb0boot(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/sc7_t234_prod.bin) reused.
Existing tosfile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tos-optee_t234.img) reused.
Existing eksfile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/eks.img) reused.
copying dtbfile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/kernel/dtb/tegra234-p3701-0000-p3737-0000.dtb)… done.
Copying nv_boot_control.conf to rootfs
Not signing of kernel-dtb
populating kernel to rootfs… done.
populating initrd to rootfs… done.
populating kernel_tegra234-p3701-0000-p3737-0000.dtb to rootfs… done.
No signing of initrd and extlinux.conf
Making system.img…
Setting “FDT /boot/dtb/kernel_tegra234-p3701-0000-p3737-0000.dtb” successfully in the extlinux.conf…done.
populating rootfs from /home/dr_b/YorLabs/Xavier/Linux_for_Tegra/rootfs … populating /boot/extlinux/extlinux.conf … done.
Sync’ing system.img … done.
Converting RAW image to Sparse image… done.
system.img built successfully.
Existing tbcfile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/uefi_jetson.bin) reused.
131072+0 records in
131072+0 records out
67108864 bytes (67 MB, 64 MiB) copied, 0.6956 s, 96.5 MB/s
Sync’ing esp.img … done.
copying tbcdtbfile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/kernel/dtb/tegra234-p3701-0000-p3737-0000.dtb)… done.
copying cfgfile(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/t186ref/cfg/flash_t234_qspi_sdmmc.xml) to flash.xml… done.
Existing flashapp(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegraflash.py) reused.
Existing overlay_dtb(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/L4TConfiguration.dtbo) reused.
Existing overlay_dtb(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegra234-p3737-overlay-pcie.dtbo) reused.
Existing overlay_dtb(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegra234-p3737-audio-codec-rt5658-40pin.dtbo) reused.
Existing overlay_dtb(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegra234-p3737-a03-overlay.dtbo) reused.
Existing overlay_dtb(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegra234-p3737-a04-overlay.dtbo) reused.
Existing overlay_dtb(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/L4TRootfsInfo.dtbo) reused.
Existing overlay_dtb(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegra234-p3737-camera-dual-imx274-overlay.dtbo) reused.
Existing overlay_dtb(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegra234-p3737-camera-e3331-overlay.dtbo) reused.
Existing overlay_dtb(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegra234-p3737-camera-e3333-overlay.dtbo) reused.
Existing overlay_dtb(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegra234-p3737-camera-imx185-overlay.dtbo) reused.
Existing overlay_dtb(/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegra234-p3737-camera-imx390-overlay.dtbo) reused.
./tegraflash.py --bl uefi_jetson_with_dtb.bin --odmdata gbe-uphy-config-22,hsstp-lane-map-3,nvhs-uphy-config-0,hsio-uphy-config-0,gbe0-enable-10g --overlay_dtb L4TConfiguration.dtbo,tegra234-p3737-overlay-pcie.dtbo,tegra234-p3737-audio-codec-rt5658-40pin.dtbo,tegra234-p3737-a03-overlay.dtbo,tegra234-p3737-a04-overlay.dtbo,L4TRootfsInfo.dtbo,tegra234-p3737-camera-dual-imx274-overlay.dtbo,tegra234-p3737-camera-e3331-overlay.dtbo,tegra234-p3737-camera-e3333-overlay.dtbo,tegra234-p3737-camera-imx185-overlay.dtbo,tegra234-p3737-camera-imx390-overlay.dtbo --bldtb tegra234-p3701-0000-p3737-0000.dtb --applet mb1_t234_prod.bin --cmd “flash; reboot” --cfg flash.xml --chip 0x23 --concat_cpubl_bldtb --cpubl uefi_jetson.bin --device_config tegra234-mb1-bct-device-p3701-0000.dts --misc_config tegra234-mb1-bct-misc-p3701-0000.dts --pinmux_config tegra234-mb1-bct-pinmux-p3701-0000.dtsi --gpioint_config tegra234-mb1-bct-gpioint-p3701-0000.dts --pmic_config tegra234-mb1-bct-pmic-p3701-0000.dts --pmc_config tegra234-mb1-bct-padvoltage-p3701-0000.dtsi --deviceprod_config tegra234-mb1-bct-cprod-p3701-0000.dts --prod_config tegra234-mb1-bct-prod-p3701-0000.dts --scr_config tegra234-mb2-bct-scr-p3701-0000.dts --wb0sdram_config tegra234-p3701-0000-p3737-0000-TE990M-wb0sdram.dts --br_cmd_config tegra234-mb1-bct-reset-p3701-0000.dts --dev_params tegra234-br-bct-p3701-0000.dts,tegra234-br-bct_b-p3701-0000.dts --mb2bct_cfg tegra234-mb2-bct-misc-p3701-0000.dts --bins “psc_fw pscfw_t234_prod.bin; mts_mce mce_flash_o10_cr_prod.bin; mb2_applet applet_t234.bin; mb2_bootloader mb2_t234.bin; xusb_fw xusb_t234_prod.bin; dce_fw display-t234-dce.bin; nvdec nvdec_t234_prod.fw; bpmp_fw bpmp_t234-TE990M-A1_prod.bin; sce_fw camera-rtcpu-sce.img; rce_fw camera-rtcpu-t234-rce.img; ape_fw adsp-fw.bin; spe_fw spe_t234.bin; tos tos-optee_t234.img; eks eks.img” --sdram_config tegra234-p3701-0000-p3737-0000-TE990M-sdram.dts --cust_info custinfo_out.bin --secondary_gpt_backup --bct_backup --boot_chain A
saving flash command in /home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/flashcmd.txt
saving Windows flash command to /home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/flash_win.bat
*** Flashing target device started. ***
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands

[ 0.0295 ] tegrasign_v3.py --key None --getmode mode.txt
[ 0.0297 ] Assuming zero filled SBK key
[ 0.0169 ] Parsing partition layout
[ 0.0583 ] tegraparser_v2 --pt flash.xml.tmp
Traceback (most recent call last):
File “/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 1370, in tegraflash_update_bpmp_dtb
if bpmp_dtb == None and bpmp_dtb_in_layout == None:
UnboundLocalError: local variable ‘bpmp_dtb’ referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “./tegraflash.py”, line 1369, in
tegraflash_run_commands()
File “./tegraflash.py”, line 1210, in tegraflash_run_commands
interpreter.onecmd(command)
File “/usr/lib/python3.8/cmd.py”, line 217, in onecmd
return func(arg)
File “./tegraflash.py”, line 271, in do_flash
self.chip_inst.tegraflash_flash(exports)
File “/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 878, in tegraflash_flash
self.tegraflash_parse_partitionlayout()
File “/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 458, in tegraflash_parse_partitionlayout
self.tegraflash_update_bpmp_dtb()
File “/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 1436, in tegraflash_update_bpmp_dtb
raise tegraflash_exception('Unexpected error in updating: ’ + bpmp_dtb + ’ ’ + str(e))
UnboundLocalError: local variable ‘bpmp_dtb’ referenced before assignment
Failed flashing t186ref.
+(/home/dr_b/YorLabs/Xavier/yor_xavier_scripts/flash_jetson_EVERYTHING.bash:219): popd
~/YorLabs/Xavier/yor_xavier_scripts
+(/home/dr_b/YorLabs/Xavier/yor_xavier_scripts/flash_jetson_EVERYTHING.bash:221): set +x
+(./setup_and_build_kernel_5.10.26_for_ORIN.bash:202): ‘[’ ‘!’ -z /home/dr_b/YorLabs/Xavier/yor_xavier_scripts/…/Orin-setup-build-2022_09_30_15_14_43.errors ‘]’
+(./setup_and_build_kernel_5.10.26_for_ORIN.bash:203): grep -i -e warning -e error /home/dr_b/YorLabs/Xavier/yor_xavier_scripts/…/Orin-setup-build-2022_09_30_15_14_43.log
+(./setup_and_build_kernel_5.10.26_for_ORIN.bash:204): cat /home/dr_b/YorLabs/Xavier/yor_xavier_scripts/…/Orin-setup-build-2022_09_30_15_14_43.errors
[ 0.0254 ] ERROR: failed to read rcm_state
[ 0.2855 ] Warning: pub_key.key is not found
[ 0.3148 ] WARNING: boot chain is not completed. set to 0
[ 0.3248 ] Warning: pub_key.key is not found
[ 0.3532 ] Warning: pub_key.key is not found
[ 0.3753 ] Warning: pub_key.key is not found
[ 0.3779 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.3780 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.5966 ] Warning: pub_key.key is not found
[ 0.6028 ] BL: version 0.23.0.0-t234-54845784-92215740 last_boot_error: 0
UnboundLocalError: local variable ‘bpmp_dtb’ referenced before assignment
raise tegraflash_exception('Unexpected error in updating: ’ + bpmp_dtb + ’ ’ + str(e))
UnboundLocalError: local variable ‘bpmp_dtb’ referenced before assignment
+(./setup_and_build_kernel_5.10.26_for_ORIN.bash:205): echo ’ ’

+(./setup_and_build_kernel_5.10.26_for_ORIN.bash:205): echo ’ ’

+(./setup_and_build_kernel_5.10.26_for_ORIN.bash:208): set +x

Hi,

I don’t think what you posted has anything to do with set default user…

Please reinstall your whole BSP and install again…

Also, please do not paste all log into comment… please attach them as text file…

So, I did a set default user and was still getting flash errors. I read on the forum that the current Orin SDK sources are incomplete and that I should use the public-source tar file, which I downloaded and built against. This produced the error I listed in the post during flashing using flash.sh; i.e.

Traceback (most recent call last):
File “/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 1370, in tegraflash_update_bpmp_dtb
if bpmp_dtb == None and bpmp_dtb_in_layout == None:
UnboundLocalError: local variable ‘bpmp_dtb’ referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “./tegraflash.py”, line 1369, in
tegraflash_run_commands()
File “./tegraflash.py”, line 1210, in tegraflash_run_commands
interpreter.onecmd(command)
File “/usr/lib/python3.8/cmd.py”, line 217, in onecmd
return func(arg)
File “./tegraflash.py”, line 271, in do_flash
self.chip_inst.tegraflash_flash(exports)
File “/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 878, in tegraflash_flash
self.tegraflash_parse_partitionlayout()
File “/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 458, in tegraflash_parse_partitionlayout
self.tegraflash_update_bpmp_dtb()
File “/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 1436, in tegraflash_update_bpmp_dtb
raise tegraflash_exception('Unexpected error in updating: ’ + bpmp_dtb + ’ ’ + str(e))
UnboundLocalError: local variable ‘bpmp_dtb’ referenced before assignment
Failed flashing t186ref.

–Ben

Hi,

Orin SDK sources has nothing to do with your flash issue… You shouldn’t need to care about what happened to source. If you have some purpose of SDK source… please elaborate it.

I think the issue here seems to be your usecase that you want to make a copy of original L4T folder…and cause bpmp dtb fails to get read by flash script.

Let me be more specific. As I stated initially, I need to modify the kernel kconfig options to enable certain features that are disable in the current Orin Jetson configuration. Consequently, I need to run make menuconfig followed by make, as per the instructions laid out on the NVidia website. I can flash Orin via the SDK GUI without any changes. When I build Jetson using the sources in the SDK via make and then try to flash it I get the initial problem that I listed in my first post.

I researching Orin related flash issues, I came across a post stating that the Orin SDK source was incomplete and that one should use sources from the latest public-source tarball on the NVidia download website, which I did. This is what I get when I build the source (without modification to the kconfig) and try to flash.

I appreciate your help on this matter Wayne,
–Ben

I think you should tell what change you’ve made here.

What steps did you try to update those software?

What steps did you try to skip system configuration?

The point is I think you have multiple issues in this topic.
The flash issue is one, while the boot failure is another.

Actually, I think neither software change you made to kernel nor the l4t create default user script would cause flash failure. Need you to elaborate each step to find out which one is causing problem.

Hi Wayne,

I’ve attached the script that I use to configure and build the kernel, as well as the resulting log file. Thank you again for your help.

–Ben

Steps_for_Building_and_Flashing_Orin.bash (10.9 KB)

Orin_build_and_flash_2022_10_07.log (42.2 KB)

Hi Wayne,

Here is a second log, which reflects the script that I sent you earlier. The first log was generated using nvbuild.sh instead of the individual make statements as a comparison.

Thanks again for all of your help,
–Ben
Orin_build_and_flash_2022_10_07-using-make.log (651.3 KB)

OK, I made a couple of changes to the script, which is below and now I’m back to getting this error:

*** Flashing target device started. ***
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands


[ 0.0416 ] tegrasign_v3.py --key None --getmode mode.txt
[ 0.0418 ] Assuming zero filled SBK key
[ 0.0219 ] Parsing partition layout
[ 0.0432 ] tegraparser_v2 --pt flash.xml.tmp
Traceback (most recent call last):
** File “/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 1370, in tegraflash_update_bpmp_dtb**
** if bpmp_dtb == None and bpmp_dtb_in_layout == None:**
UnboundLocalError: local variable ‘bpmp_dtb’ referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
** File “./tegraflash.py”, line 1369, in **
** tegraflash_run_commands()**
** File “./tegraflash.py”, line 1210, in tegraflash_run_commands**
** interpreter.onecmd(command)**
** File “/usr/lib/python3.8/cmd.py”, line 217, in onecmd**
** return func(arg)**
** File “./tegraflash.py”, line 271, in do_flash**
** self.chip_inst.tegraflash_flash(exports)**
** File “/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 878, in tegraflash_flash**
** self.tegraflash_parse_partitionlayout()**
** File “/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 458, in tegraflash_parse_partitionlayout**
** self.tegraflash_update_bpmp_dtb()**
** File “/home/dr_b/YorLabs/Xavier/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 1436, in tegraflash_update_bpmp_dtb**
** raise tegraflash_exception('Unexpected error in updating: ’ + bpmp_dtb + ’ ’ + str(e))**
UnboundLocalError: local variable ‘bpmp_dtb’ referenced before assignment
Failed flashing t186ref.

Here’s the revision script:
Steps_for_Building_and_Flashing_Orin.bash (11.2 KB)

Here’s the full output from the run:
Orin_build_and_flash_2022_10_07-using-make-run-2.log (838.3 KB)

Any help regarding this matter would be greatly appreciated,
–Ben

Hi,

I just want to say that. It looks like even kernel dtb file is gone under your setup.

From your log,

Board ID(3701) version(500) sku(0000) revision(H.0)
Error: missing dtbfile ().

And I believe you have more files which are gone too…

Thanks for getting back to me so fast.

NOTE: I downloaded gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-

These are the steps that I am following:

Your problem has nothing to do with toolchain. I am not sure why you are so persistent about the process of building code.

The problem is totally not related to the code you built… it is just some binaries are missing… And some of them are even not public-source ones… Thus, definitely not related to your build code process…

No, I got it. That message was sent earlier; i.e. it was probably queued up to be sent as a response to an earlier message. We had lost internet access for a time. I’m checking for the missing binaries now. Thanks for your help.

I did a Meld directory comparison between the NVidia Orin SDK Linux_for_tegra and my Linux_for Tegra directory tree – specifically keying in on *.bin file differences – they are the same. What am I missing?

THX,

Then I would say do not try such copy… The flash script just cannot read those binaries with such setup…

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