airvolute / dcs-deploy

GNU General Public License v3.0
1 stars 0 forks source link

Waiting for target to boot-up... #22

Closed roby2014 closed 5 months ago

roby2014 commented 5 months ago

Hello. I was able to flash my DCS2 some days ago using jp_512_20_configs branch. However, I was trying to flash another Orin NX 16GB today, and I'm having issues:

> python3 dcs_deploy.py flash orin_nx 512 2.0 nvme full
identifier: ['flash', 'orin_nx', '512', '2.0', 'nvme', 'full']
prev_identifier: ['flash', 'orin_nx', '512', '2.0', 'nvme', 'full']
matched configuration: config_7
Resources for your config are already downloaded!
Binaries already prepared!. Skipping!
Images already generated! Skipping generating images!
--------------------------------------------------------------------------------
Flash images! ...
calling: sudo tools/kernel_flash/l4t_initrd_flash.sh --flash-only --external-device nvme0n1p1  --network usb0 -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml --no-systemimg" airvolute-dcs2.0+p3767-0000 external
/home/user/.dcs_deploy/flash/orin_nx_nvme_2.0_512_full/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --network usb0 --usb-instance 1-11.1.2 --device-instance 0 --flash-only --external-device nvme0n1p1 -c "tools/kernel_flash/flash_l4t_external_custom.xml" --network usb0 airvolute-dcs2.0+p3767-0000 external
**********************************************
*                                            *
*  Step 1: Build the flashing environment    *
*                                            *
**********************************************
Create flash environment 0
/home/user/.dcs_deploy/flash/orin_nx_nvme_2.0_512_full/Linux_for_Tegra/bootloader /home/user/.dcs_deploy/flash/orin_nx_nvme_2.0_512_full/Linux_for_Tegra
/home/user/.dcs_deploy/flash/orin_nx_nvme_2.0_512_full/Linux_for_Tegra
Finish creating flash environment 0.
****************************************************
*                                                  *
*  Step 2: Boot the device with flash initrd image *
*                                                  *
****************************************************
/home/user/.dcs_deploy/flash/orin_nx_nvme_2.0_512_full/Linux_for_Tegra/temp_initrdflash/bootloader0 /home/user/.dcs_deploy/flash/orin_nx_nvme_2.0_512_full/Linux_for_Tegra
./tegraflash.py --bl uefi_jetson_with_dtb_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --bldtb tegra234-p3767-0000-p3509-a02.dtb --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --cmd "rcmboot"  --cfg secureflash.xml --chip 0x23 --mb1_bct mb1_bct_MB1_sigheader.bct.encrypt --mem_bct mem_rcm_sigheader.bct.encrypt --mb1_cold_boot_bct mb1_cold_boot_bct_MB1_sigheader.bct.encrypt --mb1_bin mb1_t234_prod_aligned_sigheader.bin.encrypt --psc_bl1_bin psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins "psc_fw pscfw_t234_prod_sigheader.bin.encrypt; mts_mce mce_flash_o10_cr_prod_sigheader.bin.encrypt; mb2_applet applet_t234_sigheader.bin.encrypt; mb2_bootloader mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt; xusb_fw xusb_t234_prod_sigheader.bin.encrypt; dce_fw display-t234-dce_sigheader.bin.encrypt; nvdec nvdec_t234_prod_sigheader.fw.encrypt; bpmp_fw bpmp_t234-TE980M-A1_prod_sigheader.bin.encrypt; bpmp_fw_dtb tegra234-bpmp-3767-0000-a02-3509-a02_with_odm_sigheader.dtb.encrypt; sce_fw camera-rtcpu-sce_sigheader.img.encrypt; rce_fw camera-rtcpu-t234-rce_sigheader.img.encrypt; ape_fw adsp-fw_sigheader.bin.encrypt; spe_fw spe_t234_sigheader.bin.encrypt; tos tos-optee_t234_sigheader.img.encrypt; eks eks_t234_sigheader.img.encrypt; kernel boot0.img; kernel_dtb tegra234-p3767-0000-p3509-a02.dtb"    --secondary_gpt_backup  --bct_backup  --instance 1-11.1.2
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands

 Entering RCM boot

[   0.0396 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from --mb1_bin
[   0.0396 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from --psc_bl1_bin
[   0.0396 ] rcm boot with presigned binaries
[   0.0400 ] tegrarcm_v2 --instance 1-11.1.2 --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.0404 ] BR_CID: 0x80012344705DD5002800000018000280
[   0.0517 ] Sending bct_br
[   0.0621 ] Sending mb1
[   0.0625 ] Sending psc_bl1
[   0.0743 ] Sending bct_mb1
[   0.0808 ] Generating blob for T23x
[   0.0831 ] tegrahost_v2 --chip 0x23 0 --generateblob blob.xml blob.bin
[   0.0837 ] The number of images in blob is 18
[   0.0841 ] blobsize is 73476181
[   0.0841 ] Added binary blob_uefi_jetson_with_dtb_sigheader.bin.encrypt of size 2916416
[   0.1220 ] Added binary blob_pscfw_t234_prod_sigheader.bin.encrypt of size 375168
[   0.1223 ] Added binary blob_mce_flash_o10_cr_prod_sigheader.bin.encrypt of size 190592
[   0.1225 ] Added binary blob_applet_t234_sigheader.bin.encrypt of size 277312
[   0.1227 ] Not supported type: mb2_applet
[   0.1228 ] Added binary blob_mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt of size 438768
[   0.1234 ] Added binary blob_xusb_t234_prod_sigheader.bin.encrypt of size 164864
[   0.1239 ] Added binary blob_display-t234-dce_sigheader.bin.encrypt of size 9097216
[   0.1288 ] Added binary blob_nvdec_t234_prod_sigheader.fw.encrypt of size 294912
[   0.1305 ] Added binary blob_bpmp_t234-TE980M-A1_prod_sigheader.bin.encrypt of size 1051136
[   0.1312 ] Added binary blob_tegra234-bpmp-3767-0000-a02-3509-a02_with_odm_sigheader.dtb.encrypt of size 258688
[   0.1315 ] Added binary blob_camera-rtcpu-sce_sigheader.img.encrypt of size 166304
[   0.1322 ] Added binary blob_camera-rtcpu-t234-rce_sigheader.img.encrypt of size 537952
[   0.1329 ] Added binary blob_adsp-fw_sigheader.bin.encrypt of size 400864
[   0.1330 ] Added binary blob_spe_t234_sigheader.bin.encrypt of size 270336
[   0.1332 ] Added binary blob_tos-optee_t234_sigheader.img.encrypt of size 1127568
[   0.1334 ] Added binary blob_eks_t234_sigheader.img.encrypt of size 9232
[   0.1336 ] Added binary blob_boot0.img of size 55556096
[   0.1676 ] Added binary blob_tegra234-p3767-0000-p3509-a02.dtb of size 341653
[   0.2293 ] tegrarcm_v2 --instance 1-11.1.2 --chip 0x23 0 --pollbl --download bct_mem mem_rcm_sigheader.bct.encrypt --download blob blob.bin
[   0.2297 ] BL: version 1.2.0.0-t234-54845784-562369e5 last_boot_error: 0
[   0.3235 ] Sending bct_mem
[   0.3459 ] Sending blob
[   3.5439 ] RCM-boot started

/home/user/.dcs_deploy/flash/orin_nx_nvme_2.0_512_full/Linux_for_Tegra
***************************************
*                                     *
*  Step 3: Start the flashing process *
*                                     *
***************************************
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...

Step 1 and 2, I can see the NVIDIA CORP... device on lsusb, but after step 3, it disappears, and it gets stuck on Waiting for target to boot-up....

I think this issue started after I tried to flash the orin with meta-tegra doflash script instead of initrd.... Would that be possible?

Any idea? How can I provide more debug details/logs?

eMrazSVK commented 5 months ago

Hello, sadly this happens from time to time and this seems to be Nvidia related and most probably this has nothing to do with our flashing tool.

See many threads on Nvidia forum: https://forums.developer.nvidia.com/t/flashing-orin-nx-from-ubuntu-20-04-stuck-on-waiting-for-target-to-boot-up/273548 https://forums.developer.nvidia.com/t/flashing-orin-nx-from-docker-stuck-on-waiting-for-target-to-boot-up/255575 https://forums.developer.nvidia.com/t/flash-orin-nx-custom-board-stay-in-waitinng-for-target-to-boot-up/268014 ...