Jetson AGX Xavier Flash Failure

Hello,

I have been running into an issue while attempting to connect to my Jetson. I am able to successfully install everything up to the point “Flash Jetson OS”. At this point, I receive the following report:

16:09:06 ERROR : Flash Jetson AGX Xavier : lost connection
16:11:17 INFO : Flash Jetson AGX Xavier : exit status 255
16:11:17 WARNING : Flash Jetson AGX Xavier : command scp -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /tmp/tmp_NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP.sh aulick_jetson@192.168.55.1:~; ssh -t -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no aulick_jetson@192.168.55.1 "~/tmp_NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP.sh && rm -f ~/tmp_NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP.sh" finished with error, but ignored
16:11:17 INFO : Flash Jetson AGX Xavier : exec_command: sleep 20
16:11:37 INFO : Flash Jetson AGX Xavier : exec_command: sudo ./flash.sh jetson-xavier mmcblk0p1
16:11:37 INFO : Flash Jetson AGX Xavier : ###############################################################################
16:11:37 INFO : Flash Jetson AGX Xavier : # L4T BSP Information:
16:11:37 INFO : Flash Jetson AGX Xavier : # R32 (release), REVISION: 1.0, GCID: 14531094, BOARD: t186ref, EABI: aarch64,
16:11:37 INFO : Flash Jetson AGX Xavier : # DATE: Wed Mar 13 07:41:08 UTC 2019
16:11:37 INFO : Flash Jetson AGX Xavier : ###############################################################################
16:11:44 INFO : Flash Jetson AGX Xavier : Error: probing the target board failed.
16:11:44 INFO : Flash Jetson AGX Xavier : Make sure the target board is connected through
16:11:44 INFO : Flash Jetson AGX Xavier : USB port and is in recovery mode.
16:11:44 INFO : Flash Jetson AGX Xavier : exit status 1
16:11:44 INFO : Flash Jetson AGX Xavier : [ Component Install Finished with Error ]
16:11:44 ERROR : Flash Jetson AGX Xavier : NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP command sudo ./flash.sh jetson-xavier mmcblk0p1 finished with error
16:11:44 INFO : Flash Jetson AGX Xavier :
16:11:44 INFO : Flash Jetson AGX Xavier : [ 16.00 KB used. Disk Avail: 172.65 GB ]
16:11:44 INFO : Flash Jetson AGX Xavier : [ NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP Install took 4m50s ]
16:11:44 INFO : Flash Jetson AGX Xavier : command sudo ./flash.sh jetson-xavier mmcblk0p1 finished with error
16:11:44 ERROR : Flash Jetson AGX Xavier : command terminated with error
16:11:44 ERROR : Flash Jetson AGX Xavier : install 'Flash Jetson AGX Xavier' failure, command < cd '/home/evanp/nvidia/nvidia_sdk/JetPack_4.2_Linux_P2888' ; /opt/nvidia/sdkmanager/resources/app/output/installUtils/adapter -a='install' -c='eyJpZCI6Ik5WX0w0VF9GTEFTSF9YQVZJRVJfV0lUSF9PU19JTUFHRV9DT01QIiwibmFtZSI6IkZsYXNoIEpldHNvbiBBR1ggWGF2aWVyIiwiZGVzY3JpcHRpb24iOiJGbGFzaCBKZXRzb24gQUdYIiwiY29tcFR5cGUiOiJmbGFzaCIsImlzVmlzaWJsZSI6dHJ1ZSwibGljZW5zZUlkIjoiTlZfSkVUUEFDS19PU19FVUxBIiwiaXNEZXRlY3RhYmxlSW5zdGFsbCI6ZmFsc2UsImlzSW5zdGFsbFBhdGhDdXN0b21pemFibGUiOnRydWUsInRpbWVvdXRTZWNvbmRzIjozNjAwLCJ2ZXJzaW9uIjoiMzIuMSIsIm9wZXJhdGluZ1N5c3RlbXMiOlsidWJ1bnR1MTYwNCIsInVidW50dTE4MDQiXSwiaW5zdGFsbFNpemVNQiI6MzAwNTMsImRvd25sb2FkRmlsZXMiOltdLCJpbnN0YWxsUGFyYW1ldGVycyI6eyJpbnN0YWxsRGlyIjoie3tUQVJHRVRfUk9PVH19L3t7QlVORExFX1RJVExFfX1fe3tCT0FSRF9JRH19L0xpbnV4X2Zvcl9UZWdyYSIsImluc3RhbGxDb21tYW5kcyI6W3sicmVtb3RlRXhlY0Jhc2giOlsic3Vkby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dvcmQiOiJhdWxpY2tfamV0c29uIiwiaG9zdCI6IjE5Mi4xNjguNTUuMSIsInBvcnQiOiIyMiJ9fQ==' -i='NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP' -v='32.1' -l='/home/evanp/nvidia/nvidia_sdk/JetPack_4.2_Linux_P2888' -L='/home/evanp/.nvsdkm/logs/JetPack_4.2_Linux' -p='12056' -t='P2888' -e='undefined' > terminated with error
16:11:44 INFO : Device Mode Host Setup in Target SDK : install 'Device Mode Host Setup in Target SDK' Skipped
16:11:45 INFO : DateTime Target Setup : install 'DateTime Target Setup' Skipped
16:11:45 INFO : CUDA Toolkit for L4T : install 'CUDA Toolkit for L4T' Skipped
16:11:45 INFO : cuDNN on Target : install 'cuDNN on Target' Skipped
16:11:45 INFO : TensorRT on Target : install 'TensorRT on Target' Skipped
16:11:45 INFO : OpenCV on Target : install 'OpenCV on Target' Skipped
16:11:45 INFO : VisionWorks on Target : install 'VisionWorks on Target' Skipped
16:11:45 INFO : Multimedia API : install 'Multimedia API' Skipped
16:11:46 INFO : All done!

I have verified that the Jetson is recognized by my computer and is in Recovery mode. I have Python 3.0 installed. I am running the SDK Manager on a Dell XPS 13. I only have the USB-C port available on the host device, and due to this, I have used both a USB-C to USB-C cable, and also a USB-C to USB-A cable paired with a USB-A to USB-C adapter-- both of which I resulted in the same state and error message stated above.

I am not sure what quite to do after this point, what do you suggest?

You might be the first one that use adapters during flash.

Could you try to manually flash the board?

The command is

“sudo ./flash.sh jetson-xavier mmcblk0p1” under Linux_for_Tegra folder.

You need Python 2, not Python 3 (not that 3 would hurt, but it won’t help). Perhaps this is not related to the problem, but if not, then you will eventually need Python 2.

I opened up the flash script in “/home/<MY_USER>/nvidia/nvidia_sdk/JetPack_4.2_Linux_P2888/Linux_for_Tegra” to find that jetson-xavier is not one of the available options when running the script. Is there a reason for why it’s not showing up in the script or can you help point me to a work-around solution?

Thanks!

Whatever you select for the target to flash is what should be there. If you’ve only run it with a TX2 setting, then only the TX2 content would be there. Also, don’t forget to set to not delete temp content.

Could you share what is under your Linux_for_Tegra??

I ran it with the command line install & flash:
sdkmanager --cli install --user <MY_EMAIL> --logintype devzone --product Jetson --version 4.2 --targetos Linux --host --target P2888 --flash all

It stated my available target options as follows:
Available options are:
Jetson 4.2
sdkmanager --cli install --user <MY_EMAIL> --logintype devzone --product Jetson --version 4.2 --targetos Linux --host --target P2888 --flash all
sdkmanager --cli install --user <MY_EMAIL> --logintype devzone --product Jetson --version 4.2 --targetos Linux --host --target P3310 --flash all
sdkmanager --cli install --user <MY_EMAIL> --logintype devzone --product Jetson --version 4.2 --targetos Linux --host --target P3489-0000 --flash all
sdkmanager --cli install --user <MY_EMAIL> --logintype devzone --product Jetson --version 4.2 --targetos Linux --host --target P3448-0000 --flash all

My /home//nvidia/nvidia_sdk/JetPack_4.2_Linux_P2888/Linux_for_Tegra directory contents are:

apply_binaries.sh jetson-xavier-maxn.conf p2771-3489-ucm1.conf
bootloader jetson-xavier-slvs-ec.conf p2771-3489-ucm2.conf
build_l4t_bup.sh kernel p2972-0000.conf.common
flash.sh nv_tegra p2972-0000-devkit.conf
jetson-tx2-as-4GB.conf p2771-0000-as-0888.conf p2972-0000-devkit-maxn.conf
jetson-tx2.conf p2771-0000.conf.common p2972-0000-devkit-slvs-ec.conf
jetson-tx2i.conf p2771-0000-devkit.conf rootfs
jetson-xavier.conf p2771-0000-dsi-hdmi-dp.conf source_sync.sh

And this is the block of code in that flash file, I spoke of:

*** special handling for NV issue 2501257 ***

if [ “${ext_target_board}” = “jetson-nano” ] ||
[ “${ext_target_board}” = “p3448-0000” ] ; then
echo "*** sign dtb *** ";
cp flash.xml flash.xml_
sed -i “/"PAD"/ a ${dtbfilename} ” flash.xml_
sed -i ‘s/“PAD”/“RP1”/g’ flash.xml_
cp “${flashcmdfile}” “${flashcmdfile}"
sed -i ‘s/flash; reboot/sign /g’ "${flashcmdfile}

sed -i ‘s/flash.xml/flash.xml_ /g’ “${flashcmdfile}"
bash "${flashcmdfile}

echo "*** flashing ${target_board} by sending signed dtb *** ";
sed -i “s|–bldtb ${dtbfilename}|–bldtb signed/${dtbfilename}.encrypt|g” “${flashcmdfile}”
bash “${flashcmdfile}”
# remove temporary files
rm flash.xml_
rm “${flashcmdfile}_”
exit 0;
fi;

If some content is missing, then it might be an unpack failure. There is a recent Ubuntu bug in one of the bzip2 updates which broke things. See:
[url]Jetpack 4.2 Xavier Install Failed - Jetson AGX Xavier - NVIDIA Developer Forums

If you have the incorrect version of bzip2, then content would be missing.

Are you using any virtualization on the XPS 13, or are you running Ubuntu native on the laptop?

Not sure why the blocking code is for nano…

I see you have “jetson-xavier.conf” under Linux_for_Tegra. Could you share the flash steps and flash error? Please note that we are not using sdkmanager here. Just the flash script.

linuxdev I tried out what was in that thread post, resulting in the same “flash failure” outcome.

snarky I’m running a clean install of Ubuntu 18.04 LTS.

I’ve reverted back to the sdk_manager GUI, despite the issues I had with it. In which I resolved that (GUI related) issue, by following:
https://devtalk.nvidia.com/default/topic/1042240/jetson-agx-xavier/jetpack-4-0-installation-problem-solved-/

What is the problem now??

Could you just share the error message when you try to flash under My/home//nvidia/nvidia_sdk/JetPack_4.2_Linux_P2888/Linux_for_Tegra ?

I mean running “sudo ./flash.sh jetson-xavier mmcblk0p1”.

Please note that sdkmanager also uses this script to flash the board too…