JetPack 4.2 cannot flash Nano

I used JetPack 4.2 to flash my Nano manually(SDK manager), and I had put an SD card into Nano and entered recovery mode.

JetPack log

3:46:09 INFO : ========== Choose an environment ==========
13:46:09 INFO : command finished successfully
13:46:09 ERROR : Jetson device is not in recovery mode.
13:46:09 DEBUG : running command < lsusb | grep “NVidia Corp” >
13:46:09 INFO : command finished successfully
13:46:09 DEBUG : running command < lsusb | grep 0955:7020 >
13:46:09 INFO : 0) Normal
13:46:09 INFO : 1) Jetson Nano
13:46:09 INFO : 2) Jetson TX2
13:46:09 INFO : 3) NXP IMX8M
13:46:09 INFO : 4) MTK MT7686
13:46:09 INFO : command finished successfully
13:46:09 ERROR : Jetson device is not in recovery mode.
13:46:19 DEBUG : running command < lsusb | grep “NVidia Corp” >
13:46:19 INFO : command finished successfully
13:46:19 DEBUG : running command < lsusb | grep 0955:7020 >
13:46:19 INFO : command finished successfully
13:46:19 ERROR : Jetson device is not in recovery mode.
13:46:19 DEBUG : running command < lsusb | grep “NVidia Corp” >
13:46:19 INFO : command finished successfully
13:46:19 DEBUG : running command < lsusb | grep 0955:7020 >
13:46:19 INFO : 0) Normal
13:46:19 INFO : 1) Jetson Nano
13:46:19 INFO : 2) Jetson TX2
13:46:19 INFO : 3) NXP IMX8M
13:46:19 INFO : 4) MTK MT7686
13:46:19 INFO : command finished successfully
13:46:19 ERROR : Jetson device is not in recovery mode.
13:46:20 DEBUG : running command < lsusb | grep “NVidia Corp” >
13:46:20 INFO : command finished successfully
13:46:20 DEBUG : running command < lsusb | grep 0955:7020 >
13:46:20 INFO : command finished successfully
13:46:20 ERROR : Jetson device is not in recovery mode.
13:46:20 DEBUG : running command < lsusb | grep “NVidia Corp” >
13:46:20 INFO : command finished successfully
13:46:20 DEBUG : running command < lsusb | grep 0955:7020 >
13:46:20 INFO : 0) Normal
13:46:20 INFO : 1) Jetson Nano
13:46:20 INFO : 2) Jetson TX2
13:46:20 INFO : 3) NXP IMX8M
13:46:20 INFO : 4) MTK MT7686
13:46:20 INFO : command finished successfully
13:46:20 ERROR : Jetson device is not in recovery mode.
13:46:21 DEBUG : running command < lsusb | grep “NVidia Corp” >
13:46:21 INFO : command finished successfully
13:46:21 DEBUG : running command < lsusb | grep 0955:7020 >
13:46:21 INFO : command finished successfully
13:46:21 ERROR : Jetson device is not in recovery mode.
13:46:21 DEBUG : running command < lsusb | grep “NVidia Corp” >
13:46:21 INFO : command finished successfully
13:46:21 DEBUG : running command < lsusb | grep 0955:7020 >
13:46:21 INFO : command finished successfully
13:46:21 ERROR : Jetson device is not in recovery mode.
13:46:22 DEBUG : running command < lsusb | grep “NVidia Corp” >
13:46:22 INFO : command finished successfully
13:46:22 DEBUG : running command < lsusb | grep 0955:7020 >
13:46:22 INFO : command finished successfully
13:46:22 ERROR : Jetson device is not in recovery mode.
13:46:22 DEBUG : running command < lsusb | grep “NVidia Corp” >
13:46:22 INFO : command finished successfully
13:46:22 DEBUG : running command < lsusb | grep 0955:7020 >
13:46:22 INFO : 0) Normal
13:46:22 INFO : 1) Jetson Nano
13:46:22 INFO : 2) Jetson TX2
13:46:22 INFO : 3) NXP IMX8M
13:46:22 INFO : 4) MTK MT7686
13:46:22 INFO : command finished successfully
13:46:22 ERROR : Jetson device is not in recovery mode.
13:46:22 DEBUG : running command < lsusb | grep “NVidia Corp” >
13:46:22 INFO : command finished successfully
13:46:22 DEBUG : running command < lsusb | grep 0955:7020 >
13:46:22 INFO : 0) Normal
13:46:22 INFO : 1) Jetson Nano
13:46:22 INFO : 2) Jetson TX2
13:46:22 INFO : 3) NXP IMX8M
13:46:22 INFO : 4) MTK MT7686
13:46:22 INFO : command finished successfully
13:46:22 ERROR : Jetson device is not in recovery mode.
13:46:43 INFO : Device Mode Host Setup in Flash : install ‘Device Mode Host Setup in Flash’ Skipped
13:46:43 INFO : Flash Jetson Nano : install ‘Flash Jetson Nano’ Skipped
13:46:46 INFO : Device Mode Host Setup in Target SDK : install ‘Device Mode Host Setup in Target SDK’ Skipped
13:46:46 INFO : DateTime Target Setup : install ‘DateTime Target Setup’ Skipped
13:46:46 INFO : CUDA Toolkit for L4T : install ‘CUDA Toolkit for L4T’ Skipped
13:46:46 INFO : cuDNN on Target : install ‘cuDNN on Target’ Skipped
13:46:46 INFO : TensorRT on Target : install ‘TensorRT on Target’ Skipped
13:46:46 INFO : OpenCV on Target : install ‘OpenCV on Target’ Skipped
13:46:46 INFO : VisionWorks on Target : install ‘VisionWorks on Target’ Skipped
13:46:46 INFO : Multimedia API : install ‘Multimedia API’ Skipped
13:46:48 INFO : All done!

0955:7020 doesn’t match Nano’s

Bus 001 Device 046: ID 0955:7f21 NVidia Corp.

Environment

Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

Hi lonesomesnow,

Please make sure your Jetson-nano is really into recovery mode.
See comments from Stephen: https://devtalk.nvidia.com/default/topic/1048660/jetson-tx2/i-can-t-install-jetpack-4-2-sdk-on-my-tx2/post/5328041/#5328041

Following above steps and still get the same error, please try flash Jetson-Nano by manually:

Copy the image to your sdcard first
Put device into recovery mode
Flash with below command:
$ sudo ./flash.sh jetson-nano-qspi-sd mmcblk0p1

SDCard image: http://developer.nvidia.com/embedded/dlc/jetson-nano-dev-kit-sd-card-image
User guide: https://developer.nvidia.com/embedded/dlc/jetson-nano-dev-kit-user-guide

Flashing Nano with flash.sh -> OK
JetPack -> failed

Hi lonesomesnow,

If you still can’t using SDK manager to flash Jetson-Nano, you can try using a graphical program like Etcher.
Please reference this link: https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit#write
OR flashing by manually is fine.

Using flash.sh, dd, or Etcher can flash Nano, but I’m confused about what’s the correct DID when Nano is in recovery mode? JetPack tries to get 0955:7020 but my Ubuntu shows Nano is 0955:7f21
Thanks!

Hi lonesomesnow,

The correct ID for recovery mode is 0955:7f21. The 0955:7020 is used for usb-device mode.
Can you please run “lsusb | grep -e NVidia -e 0955” and paste the output? Seems you have multiple Jetson devices connected to host machine at the same time, and SDKM has a bug in handling them.

$ lsusb | grep ‘0955’

Bus 001 Device 046: ID 0955:7f21 NVidia Corp.

Only one Nvidia device is connected to my computer.

From the first log, I can see below lines. Do you have any idea why 0) to 4) are listed? Can you please zip and attach the full ~/.nvsdkm directory?
13:46:20 DEBUG : running command < lsusb | grep 0955:7020 >
13:46:20 INFO : 0) Normal
13:46:20 INFO : 1) Jetson Nano
13:46:20 INFO : 2) Jetson TX2
13:46:20 INFO : 3) NXP IMX8M
13:46:20 INFO : 4) MTK MT7686

0)…4) is a script I called in bashrc to help me set a working environment.
I have no Nano on hand now, I borrowed it from an Agent and have given it back just now.
I will check if my script affects JetPack execution after getting my own Nano.
Thanks!

I removed my script and tried it again, and it worked.
Thanks a lot!