SDK manager Flashing failed, please help me

Hi.

Since several days ago, I can’t flash Jetpack4.4DP through SDK manager.

Here is my log file.

• 13:53:03 INFO : Automatic trying to flash the target device with Manual Flash option...
• 13:53:03 DEBUG : running command < [ `lsusb | grep -c "0955:"` -ne 1 ] >
• 13:53:03 DEBUG : command terminated with error
• 13:53:03 INFO : Only one NVIDIA device detected, as expected.
• 13:53:03 DEBUG : running command < lsusb | grep 0955:7020 >
• 13:53:03 DEBUG : command terminated with error
• 13:53:03 INFO : Jetson device is in recovery mode.
• 13:53:03 DEBUG : running command < lsusb | grep 0955:7019 >
• 13:53:03 INFO : Bus 001 Device 008: ID 0955:7019 NVidia Corp.
• 13:53:03 INFO : command finished successfully
• 13:53:03 INFO : Verified, 0955:7019 detected in recovery mode.
• 13:53:03 INFO : Device Mode Host Setup in Flash : Start to install 'Device Mode Host Setup in Flash'
• 13:53:03 DEBUG : Device Mode Host Setup in Flash : using adapter to install NV_DEVICE_MODE_SETUP_IMAGE_COMP@JETSON_AGX_XAVIER to /home/jhai/nvidia/nvidia_sdk/JetPack_4.4_DP_Linux_DP_JETSON_AGX_XAVIER
• 13:53:03 INFO : Device Mode Host Setup in Flash : [ Disk Avail:361.56 GB ]
• 13:53:03 INFO : Device Mode Host Setup in Flash : Using GenericInstaller to Install NV_DEVICE_MODE_SETUP_IMAGE_COMP
• 13:53:03 INFO : Device Mode Host Setup in Flash : change working directory to /home/jhai/nvidia/nvidia_sdk/JetPack_4.4_DP_Linux_DP_JETSON_AGX_XAVIER
• 13:53:03 INFO : Device Mode Host Setup in Flash : [ Component Install Started ]
• 13:53:03 INFO : Device Mode Host Setup in Flash : current working directory is /home/jhai/nvidia/nvidia_sdk/JetPack_4.4_DP_Linux_DP_JETSON_AGX_XAVIER
• 13:53:03 INFO : Device Mode Host Setup in Flash : exec_command [host]:
• 13:53:03 INFO : Device Mode Host Setup in Flash : **********************
• 13:53:03 INFO : Device Mode Host Setup in Flash : #!/bin/bash
• 13:53:03 INFO : Device Mode Host Setup in Flash : set -e
• 13:53:03 INFO : Device Mode Host Setup in Flash : set +e
• 13:53:03 INFO : Device Mode Host Setup in Flash : eth_port_name=$(ip route show default | awk '/default via/ {print $5; exit}')
• 13:53:03 INFO : Device Mode Host Setup in Flash : if [[ $eth_port_name == '' ]]; then
• 13:53:03 INFO : Device Mode Host Setup in Flash : echo 'Can not found route default $eth_port_name, device mode setup failed!'
• 13:53:03 INFO : Device Mode Host Setup in Flash : exit 0
• 13:53:03 INFO : Device Mode Host Setup in Flash : fi
• 13:53:03 INFO : Device Mode Host Setup in Flash : echo 'Found route default' $eth_port_name', setting up device mode'
• 13:53:03 INFO : Device Mode Host Setup in Flash : setup_t='192.168.55.0/24'
• 13:53:03 INFO : Device Mode Host Setup in Flash : sudo iptables -t nat -A POSTROUTING -s $setup_t -o $eth_port_name -j MASQUERADE
• 13:53:03 INFO : Device Mode Host Setup in Flash : sudo iptables -A FORWARD -s $setup_t -o $eth_port_name -j ACCEPT
• 13:53:03 INFO : Device Mode Host Setup in Flash : sudo iptables -A FORWARD -d $setup_t -m state --state ESTABLISHED,RELATED -i $eth_port_name -j ACCEPT
• 13:53:03 INFO : Device Mode Host Setup in Flash : sudo sysctl -w net.ipv4.ip_forward=1
• 13:53:03 INFO : Device Mode Host Setup in Flash : check_google_dns=$(dig @8.8.8.8 nvidia.com || true)
• 13:53:03 INFO : Device Mode Host Setup in Flash : if [[ $check_google_dns == *'Got answer'* ]]; then
• 13:53:03 INFO : Device Mode Host Setup in Flash : echo 'Device mode on host successfuly set with DNS 8.8.8.8!'
• 13:53:03 INFO : Device Mode Host Setup in Flash : exit 0
• 13:53:03 INFO : Device Mode Host Setup in Flash : else
• 13:53:03 INFO : Device Mode Host Setup in Flash : echo 'Default google DNS is not working, trying to find a valid server in local host settings!'
• 13:53:03 INFO : Device Mode Host Setup in Flash : dns_list=$(nmcli -t device show $eth_port_name | grep 'DNS' | grep -o '[^:]*$')
• 13:53:03 INFO : Device Mode Host Setup in Flash : for dns in $dns_list; do
• 13:53:03 INFO : Device Mode Host Setup in Flash : check_dns=$(dig @$dns nvidia.com || true)
• 13:53:03 INFO : Device Mode Host Setup in Flash : if [[ $check_dns == *'Got answer'* ]]; then
• 13:53:03 INFO : Device Mode Host Setup in Flash : sudo iptables -t nat -A PREROUTING -p tcp -d 8.8.8.8 --dport 53 -j DNAT --to-destination $dns
• 13:53:03 INFO : Device Mode Host Setup in Flash : sudo iptables -t nat -A PREROUTING -p udp -d 8.8.8.8 --dport 53 -j DNAT --to-destination $dns
• 13:53:03 INFO : Device Mode Host Setup in Flash : echo 'Device mode on host successfuly set with DNS' $dns'!'
• 13:53:03 INFO : Device Mode Host Setup in Flash : exit 0
• 13:53:03 INFO : Device Mode Host Setup in Flash : fi
• 13:53:03 INFO : Device Mode Host Setup in Flash : done
• 13:53:03 INFO : Device Mode Host Setup in Flash : echo 'Can not found a valid DNS server, device mode setup failed!'
• 13:53:03 INFO : Device Mode Host Setup in Flash : echo 'If needed to use device mode, please change the target default dns to a valid server by following the steps in release note.'
• 13:53:03 INFO : Device Mode Host Setup in Flash : exit 0
• 13:53:03 INFO : Device Mode Host Setup in Flash : fi
• 13:53:03 INFO : Device Mode Host Setup in Flash : **********************
• 13:53:03 INFO : Device Mode Host Setup in Flash : exec_command: /tmp/tmp_NV_DEVICE_MODE_SETUP_IMAGE_COMP.sh
• 13:53:03 INFO : Device Mode Host Setup in Flash : Found route default enp0s31f6, setting up device mode
• 13:53:03 INFO : Device Mode Host Setup in Flash : [host] [sudo] password for jhai:
• 13:53:03 INFO : Device Mode Host Setup in Flash :
• 13:53:03 INFO : Device Mode Host Setup in Flash : net.ipv4.ip_forward = 1
• 13:53:03 INFO : Device Mode Host Setup in Flash : Device mode on host successfuly set with DNS 8.8.8.8!
• 13:53:03 INFO : Device Mode Host Setup in Flash : [ Component Install Finished Successfully ]
• 13:53:03 INFO : Device Mode Host Setup in Flash : [ 12.00 KB used. Disk Avail: 361.56 GB ]
• 13:53:03 INFO : Device Mode Host Setup in Flash : [ NV_DEVICE_MODE_SETUP_IMAGE_COMP Install took 0s ]
• 13:53:03 INFO : Device Mode Host Setup in Flash : command finished successfully
• 13:53:03 INFO : Device Mode Host Setup in Flash : Install 'Device Mode Host Setup in Flash' success
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : Start to install 'Flash Jetson AGX Xavier 16GB/32GB'
• 13:53:03 DEBUG : Flash Jetson AGX Xavier 16GB/32GB : using adapter to install NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP@JETSON_AGX_XAVIER to /home/jhai/nvidia/nvidia_sdk/JetPack_4.4_DP_Linux_DP_JETSON_AGX_XAVIER
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : [ Disk Avail:361.56 GB ]
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : Using GenericInstaller to Install NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : change working directory to /home/jhai/nvidia/nvidia_sdk/JetPack_4.4_DP_Linux_DP_JETSON_AGX_XAVIER/Linux_for_Tegra
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : [ Component Install Started ]
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : current working directory is /home/jhai/nvidia/nvidia_sdk/JetPack_4.4_DP_Linux_DP_JETSON_AGX_XAVIER/Linux_for_Tegra
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : exec_command [host]:
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : **********************
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : #!/bin/bash
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : set -e
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : set -e
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : if [ -e ./bootloader/system.img ]; then
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : echo sudo ./flash.sh --no-systemimg jetson-xavier mmcblk0p1
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : sudo ./flash.sh --no-systemimg jetson-xavier mmcblk0p1
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : else
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : echo sudo ./flash.sh jetson-xavier mmcblk0p1
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : sudo ./flash.sh jetson-xavier mmcblk0p1
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : fi
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : sleep 20
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : **********************
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : exec_command: /tmp/tmp_NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP.sh
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : sudo ./flash.sh jetson-xavier mmcblk0p1
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : ###############################################################################
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : # L4T BSP Information:
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : # R32 , REVISION: 4.2
• 13:53:03 INFO : Flash Jetson AGX Xavier 16GB/32GB : ###############################################################################
• 13:53:08 INFO : Flash Jetson AGX Xavier 16GB/32GB : Error: probing the target board failed.
• 13:53:08 INFO : Flash Jetson AGX Xavier 16GB/32GB : Make sure the target board is connected through
• 13:53:08 INFO : Flash Jetson AGX Xavier 16GB/32GB : USB port and is in recovery mode.
• 13:53:08 ERROR : Flash Jetson AGX Xavier 16GB/32GB : [exec_command]: /bin/bash -c /tmp/tmp_NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP.sh; [error]: exit status 1
• 13:53:08 INFO : Flash Jetson AGX Xavier 16GB/32GB : [ Component Install Finished with Error ]
• 13:53:08 INFO : Flash Jetson AGX Xavier 16GB/32GB : [ 4.00 KB used. Disk Avail: 361.56 GB ]
• 13:53:08 INFO : Flash Jetson AGX Xavier 16GB/32GB : [ NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP Install took 5s ]
• 13:53:08 ERROR : Flash Jetson AGX Xavier 16GB/32GB : [error]: Run commands failed at step Install: command /tmp/tmp_NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP.sh finished with error
• 13:53:08 INFO : Flash Jetson AGX Xavier 16GB/32GB :
• 13:53:08 ERROR : Flash Jetson AGX Xavier 16GB/32GB : command terminated with error
• 13:53:08 ERROR : Flash Jetson AGX Xavier 16GB/32GB : Install 'Flash Jetson AGX Xavier 16GB/32GB' failure, command < using adapter to install NV_L4T_FLASH_XAVIER_WITH_OS_IMAGE_COMP@JETSON_AGX_XAVIER to /home/jhai/nvidia/nvidia_sdk/JetPack_4.4_DP_Linux_DP_JETSON_AGX_XAVIER > terminated with error.
• 13:53:08 INFO : Device Mode Host Setup in Target SDK : Install 'Device Mode Host Setup in Target SDK' Skipped
• 13:53:08 INFO : DateTime Target Setup : Install 'DateTime Target Setup' Skipped
• 13:53:08 INFO : CUDA Toolkit for L4T : Install 'CUDA Toolkit for L4T' Skipped
• 13:53:09 INFO : cuDNN on Target : Install 'cuDNN on Target' Skipped
• 13:53:09 INFO : TensorRT on Target : Install 'TensorRT on Target' Skipped
• 13:53:09 INFO : OpenCV on Target : Install 'OpenCV on Target' Skipped
• 13:53:09 INFO : VisionWorks on Target : Install 'VisionWorks on Target' Skipped
• 13:53:09 INFO : VPI on Target : Install 'VPI on Target' Skipped
• 13:53:09 INFO : NVIDIA Container Runtime with Docker integration (Beta) : Install 'NVIDIA Container Runtime with Docker integration (Beta)' Skipped
• 13:53:09 INFO : Multimedia API : Install 'Multimedia API' Skipped
• 13:53:09 INFO : DeepStream : Install 'DeepStream' Skipped
• 13:53:10 INFO : All done!

===============================================================================

I can fine jetson board with ‘lsusb’ command.
And also, I don’t use VM.
My host PC is Ubuntu 18.04.
Can anyone helps me?

thanks!

I try jetpack4.3. and it looks like working.

I don’t know why.
I’ve install Jetpack4.4 several weeks ago.
But why can’t now??..

I guess you need to try other usb cable. Also, make sure you can really see the device in lsusb after put it into recovery mode.

The things which I can’t understand is…

Now I try install Jetpack4.3 and it success.

And install Jetpack4.4DP again to “Jetpack 4.3 installed AGX board” is also success.

I’m not sure, but flash Jetpack4.4DP to ‘Jetpack4.4DP installed AGX board’ have some problem, I guess.

Thanks to reply!

I’m not sure, but flash Jetpack4.4DP to ‘Jetpack4.4DP installed AGX board’ have some problem, I guess.

No, when device is in recovery mode, flash process does not know what you’ve installed on your board.
Please try more times.

OK.
Now I’m on flashing Jetpack 4.4 DP.
I while check more times!

Thanks!

(Anyway. I’m happy to it works now. I can’t do anything for 3 days because of this problem)

Also, you don’t really need to run sdkmanager every time. We usually run it once and use Linux_for_Tegra for the rest of work if you just want to test the flash.

Can you tell me direction to use Linux_for_Tegra folder?
(is there any documents?)
I want to know the command to install manually.

Hi,

Linux_for_Tegra folder is installed by sdkmanager, so you should search the path indicated on the sdkmanager GUI.

You could refer to the quick start guide on our download center to know how to use flash.sh script.

Or you could read this wiki page too.
https://elinux.org/Jetson/General_debug