# Use sdkmanager to flash the jetson orin nx failed

**URL:** <https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757>\
**Category:** Jetson Orin NX\
**Tags:** sdkm\
**Created:** [October 22, 2024, 11:50am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757 "2024-10-22T11:50:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![deng.luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@deng.luo](https://forums.developer.nvidia.com/u/deng.luo)\
**Post date:** [October 22, 2024, 11:50am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/1 "2024-10-22T11:50:50Z")

</div>

I am trying to flash my Nvidia Jetson Orin NX 16GB with JetPack 6.0, but it fails.  
Every time I click the Flash button in the under above picture ,it will failed.

 ![1729597477042](https://global.discourse-cdn.com/nvidia/original/4X/3/e/c/3ecffce18d2983fc5118f205bdd9747aa9a7685c.png)  
 ![1729597787294](https://global.discourse-cdn.com/nvidia/original/4X/5/f/f/5ff229bdcdea507e34d5a3c1c76eae38fae7b26a.png)

the log in the terminal is under above:  
19:49:27 INFO: Device info before flash: Jetson Orin NX 16GB | 001/019 | 1-1 | 2.002.00 | Recovery | 0955:7323  
19:49:27 DEBUG: running command \< true \>  
19:49:27 INFO: command finished successfully  
19:49:27 DEBUG: running command \< /tmp/device\_mode\_host\_setup.luodeng.sh \>  
19:49:27 INFO: exec\_command: /tmp/device\_mode\_host\_setup.luodeng.sh  
19:49:27 INFO: [host] [sudo] password for luodeng:  
19:49:27 INFO: net.ipv4.ip\_forward = 1  
19:49:27 INFO: Device mode on host successfully set with DNS 8.8.8.8!  
19:49:27 INFO: command finished successfully  
19:49:28 DEBUG: running command \< true \>  
19:49:28 INFO: command finished successfully  
19:49:28 DEBUG: Flash Jetson Linux - flash: using adapter to install NV\_L4T\_FLASH\_JETSON\_LINUX\_COMP@JETSON\_ORIN\_NX\_TARGETS to /home/luodeng/nvidia/nvidia\_sdk/JetPack\_5.1.4\_Linux\_JETSON\_ORIN\_NX\_TARGETS  
19:49:28 INFO: Flash Jetson Linux - flash: current working directory is /home/luodeng/nvidia/nvidia\_sdk/JetPack\_5.1.4\_Linux\_JETSON\_ORIN\_NX\_TARGETS/Linux\_for\_Tegra  
19:49:28 INFO: Flash Jetson Linux - flash: user entered nvme0n1p1  
19:49:28 INFO: Flash Jetson Linux - flash: \*\*\* Checking ONLINE mode … OK.  
19:49:28 INFO: Flash Jetson Linux - flash: \*\*\* Checking target board connection … 1 connections found.  
19:49:28 INFO: Flash Jetson Linux - flash: \*\*\* Reading ECID … FUSELEVEL=fuselevel\_production hwchipid=0x23 bootauth=NS  
19:49:28 INFO: Flash Jetson Linux - flash: \*\*\* Reading EEPROM … “/home/luodeng/nvidia/nvidia\_sdk/JetPack\_5.1.4\_Linux\_JETSON\_ORIN\_NX\_TARGETS/Linux\_for\_Tegra/bootloader/tegraflash.py” --chip 0x23 --applet “/home/luodeng/nvidia/nvidia\_sdk/JetPack\_5.1.4\_Linux\_JETSON\_ORIN\_NX\_TARGETS/Linux\_for\_Tegra/bootloader/mb1\_t234\_prod.bin” --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” --skipuid --cmd “dump eeprom cvm cvm.bin; reboot recovery”  
19:49:28 INFO: Flash Jetson Linux - flash: ModuleNotFoundError: No module named ‘yaml’  
19:49:28 INFO: Flash Jetson Linux - flash: [NV\_L4T\_FLASH\_JETSON\_LINUX\_COMP Install took 0s]  
19:49:28 ERROR: Flash Jetson Linux - flash: command terminated with error  
19:49:28 SUMMARY: Flash Jetson Linux - flash: First Error: Installation failed.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [October 22, 2024, 4:18pm UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/2 "2024-10-22T16:18:37Z")

</div>

> [@deng.luo](#):
>
> ModuleNotFoundError: No module named ‘yaml’

Run "pip install pyyaml " and try again.

---

<div class="post-metadata">

**Author:** ![deng.luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@deng.luo](https://forums.developer.nvidia.com/u/deng.luo)\
**Post date:** [October 23, 2024, 12:55am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/3 "2024-10-23T00:55:25Z")

</div>

Thanks for your reply.

![1729644358255](https://global.discourse-cdn.com/nvidia/original/4X/3/e/2/3e2564b03b3304daf9a6f3eb2a10441dbb85a7ee.png)  
My host machine has installed the pyyaml before. I tried again after run "pip install pyyaml ", the results has never changed.  
Looking forward your further reply.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [October 23, 2024, 1:54am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/4 "2024-10-23T01:54:50Z")

</div>

What is the default python running on your host? Python3 or python2?

---

<div class="post-metadata">

**Author:** ![deng.luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@deng.luo](https://forums.developer.nvidia.com/u/deng.luo)\
**Post date:** [October 24, 2024, 1:34am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/5 "2024-10-24T01:34:59Z")

</div>

My default python is python2. I changed the default python to python3, it still dose not work.

 ![1729733485327](https://global.discourse-cdn.com/nvidia/original/4X/a/a/b/aabad9ac41ba21f7087afe3a5f24e7371b0dc767.png)

Looking forward your further reply.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [October 24, 2024, 3:06am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/6 "2024-10-24T03:06:28Z")

</div>

There is a “EXPORT LOGS” button on sdkmanager. Please click it after your flash failure and attach the whole zip file here.

---

<div class="post-metadata">

**Author:** ![deng.luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@deng.luo](https://forums.developer.nvidia.com/u/deng.luo)\
**Post date:** [October 24, 2024, 7:00am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/7 "2024-10-24T07:00:57Z")

</div>

Thanks for your reply.  
The “export logs” file is under above.

[SDKM\_logs\_JetPack\_5.1.4\_Linux\_for\_Jetson\_Orin\_NX\_modules\_2024-10-24\_14-57-08.zip](https://forums.developer.nvidia.com/uploads/short-url/hl1q43u8ATEOT80u4WfgKaDgf3n.zip) (65.3 KB)

Looking forward your further reply.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [October 24, 2024, 7:09am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/8 "2024-10-24T07:09:04Z")

</div>

> [@WayneWWW](#):
>
> pip install pyyaml

Could you also try pip3 install pyyaml?  
The log is still same.

> ModuleNotFoundError: No module named ‘yaml’

---

<div class="post-metadata">

**Author:** ![deng.luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@deng.luo](https://forums.developer.nvidia.com/u/deng.luo)\
**Post date:** [October 24, 2024, 7:26am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/9 "2024-10-24T07:26:57Z")

</div>

As your suggestion , I runned “pip3 install pyyaml”, the result is under above.

 ![1729754753183](https://global.discourse-cdn.com/nvidia/original/4X/b/a/5/ba567eefec955337f66395fb6eaa5e65c178fdb9.png)

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [October 24, 2024, 7:28am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/10 "2024-10-24T07:28:30Z")

</div>

please fix that by yourself. This is not related to what we can help here.

---

<div class="post-metadata">

**Author:** ![deng.luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@deng.luo](https://forums.developer.nvidia.com/u/deng.luo)\
**Post date:** [October 24, 2024, 9:16am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/11 "2024-10-24T09:16:01Z")

</div>

I have fixed the problem of “pip3 install pyyaml” .

 ![1729761030292](https://global.discourse-cdn.com/nvidia/original/4X/8/7/3/87384382fd5cf8717d28df407092bbe8f0e170c4.png)  
But it does not still work!  
 ![image](https://global.discourse-cdn.com/nvidia/original/4X/b/9/8/b98c821c8938633acea240fe541e56266f7c2163.png)  
In my opinion , the device has recognized the usb.  
 ![image](https://global.discourse-cdn.com/nvidia/original/4X/7/5/5/755d9797859a47f4f80a9a781c666438c3481ccf.png)  
Why it still need I unplug the USB and PowerJack . I Ifollowed the requirements, but it still couldn’t be Flashed.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [October 24, 2024, 11:58am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/12 "2024-10-24T11:58:20Z")

</div>

Could you just test if any of your python2 or python3 can import yaml?

---

<div class="post-metadata">

**Author:** ![deng.luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@deng.luo](https://forums.developer.nvidia.com/u/deng.luo)\
**Post date:** [October 25, 2024, 1:08am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/13 "2024-10-25T01:08:41Z")

</div>

Thanks for your reply .  
I have made a test with ChatGPT suggestion. The result is under above.

 ![1729818273742](https://global.discourse-cdn.com/nvidia/original/4X/d/1/c/d1ca938366edc3ab149ee1d916aa4699b2bf32bb.png)  
Looking forward your further reply.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [October 25, 2024, 3:17am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/14 "2024-10-25T03:17:58Z")

</div>

Looks like your python2 still has no yaml installed.

---

<div class="post-metadata">

**Author:** ![deng.luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@deng.luo](https://forums.developer.nvidia.com/u/deng.luo)\
**Post date:** [October 28, 2024, 6:20am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/15 "2024-10-28T06:20:12Z")

</div>

I have installed the yaml of python2 and python3, but it still does not work!  
 ![1730096065001](https://global.discourse-cdn.com/nvidia/original/4X/7/0/d/70dd2d396f9bedb8fe32a4cc9380e10130eed2c9.png)  
I think the problem is probably not the yaml.  
The log is under above.

14:11:55 SUMMARY: File System and OS - target\_image: Install completed successfully.  
14:12:10 INFO: Device info before flash: Jetson Orin NX 16GB | 001/002 | 1-1 | 2.002.00 | Recovery | 0955:7323  
14:12:10 DEBUG: running command \< true \>  
14:12:10 INFO: exec\_command: /tmp/device\_mode\_host\_setup.luodeng.sh  
14:12:10 INFO: Found route default ens33, setting up device mode  
14:12:10 INFO: net.ipv4.ip\_forward = 1  
14:12:10 INFO: Device mode on host successfully set with DNS 8.8.8.8!  
14:12:10 INFO: command finished successfully  
14:12:11 DEBUG: running command \< true \>  
14:12:11 INFO: exec\_command: true  
14:12:11 INFO: command finished successfully  
14:12:11 DEBUG: running command \< bash /tmp/PREFLASH\_VERIFY\_JP\_61.sh \>  
14:12:21 INFO: sudo ./nvautoflash.sh --print\_boardid to verify access to jetson bootrom  
14:12:21 INFO: \*\*\* Checking ONLINE mode … OK.  
14:12:21 INFO: \*\*\* Checking target board connection … 1 connections found.  
14:12:21 INFO: \*\*\* Reading ECID … FUSELEVEL=fuselevel\_production hwchipid=0x23 bootauth=NS  
14:12:21 INFO: \*\*\* Reading EEPROM … “/home/luodeng/nvidia/nvidia\_sdk/JetPack\_6.1\_Linux\_JETSON\_ORIN\_NX\_TARGETS/Linux\_for\_Tegra/bootloader/tegraflash.py” --chip 0x23 --applet “/home/luodeng/nvidia/nvidia\_sdk/JetPack\_6.1\_Linux\_JETSON\_ORIN\_NX\_TARGETS/Linux\_for\_Tegra/bootloader/mb1\_t234\_prod.bin” --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” --skipuid --cmd “dump eeprom cvm cvm.bin; reboot recovery”  
14:12:22 INFO: ModuleNotFoundError: No module named ‘yaml’  
14:12:22 ERROR: — Error: Reading board information failed.  
14:12:22 INFO: command finished successfully  
14:12:24 DEBUG: running command \< true \>  
14:12:24 INFO: exec\_command: true  
14:12:24 INFO: command finished successfully  
14:12:24 DEBUG: Flash Jetson Linux - flash: using adapter to install NV\_L4T\_FLASH\_JETSON\_LINUX\_COMP@JETSON\_ORIN\_NX\_TARGETS to /home/luodeng/nvidia/nvidia\_sdk/JetPack\_6.1\_Linux\_JETSON\_ORIN\_NX\_TARGETS  
14:12:24 INFO: Flash Jetson Linux - flash: current working directory is /home/luodeng/nvidia/nvidia\_sdk/JetPack\_6.1\_Linux\_JETSON\_ORIN\_NX\_TARGETS/Linux\_for\_Tegra  
14:12:24 INFO: Flash Jetson Linux - flash: sudo ./nvsdkmanager\_flash.sh --storage nvme0n1p1 --nv-auto-config --username agent09  
14:12:24 INFO: Flash Jetson Linux - flash: user entered nvme0n1p1 --nv-auto-config --username agent09  
14:12:24 INFO: Flash Jetson Linux - flash: \*\*\* Checking ONLINE mode … OK.  
14:12:24 INFO: Flash Jetson Linux - flash: \*\*\* Checking target board connection … 1 connections found.  
14:12:24 INFO: Flash Jetson Linux - flash: \*\*\* Reading ECID … FUSELEVEL=fuselevel\_production hwchipid=0x23 bootauth=NS  
14:12:24 INFO: Flash Jetson Linux - flash: \*\*\* Reading EEPROM … “/home/luodeng/nvidia/nvidia\_sdk/JetPack\_6.1\_Linux\_JETSON\_ORIN\_NX\_TARGETS/Linux\_for\_Tegra/bootloader/tegraflash.py” --chip 0x23 --applet “/home/luodeng/nvidia/nvidia\_sdk/JetPack\_6.1\_Linux\_JETSON\_ORIN\_NX\_TARGETS/Linux\_for\_Tegra/bootloader/mb1\_t234\_prod.bin” --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” --skipuid --cmd “dump eeprom cvm cvm.bin; reboot recovery”  
14:12:24 INFO: Flash Jetson Linux - flash: ModuleNotFoundError: No module named ‘yaml’  
14:12:24 ERROR: Flash Jetson Linux - flash: \*\*\* ERROR: Parsing boardid failed  
14:12:24 ERROR: Flash Jetson Linux - flash: command terminated with error  
14:12:24 SUMMARY: Flash Jetson Linux - flash: First Error: Installation failed.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [October 28, 2024, 6:26am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/16 "2024-10-28T06:26:57Z")

</div>

Could you go to your “/home/luodeng/nvidia/nvidia\_sdk/JetPack\_6.1\_Linux\_JETSON\_ORIN\_NX\_TARGETS/Linux\_for\_Tegra/”

and run this command directly and see what would happen?

```auto
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 \
  -c tools/kernel_flash/flash_l4t_t234_nvme.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml" \
  --showlogs --network usb0 jetson-orin-nano-devkit internal

```

---

<div class="post-metadata">

**Author:** ![deng.luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@deng.luo](https://forums.developer.nvidia.com/u/deng.luo)\
**Post date:** [October 28, 2024, 7:03am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/17 "2024-10-28T07:03:38Z")

</div>

Thanks for your reply.  
I have run the command and the result was under above.

 ![1730098941474](https://global.discourse-cdn.com/nvidia/original/4X/5/a/9/5a93ee154700c81959e1057e4f77b1eb6ddcc65e.png)

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [October 28, 2024, 8:04am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/18 "2024-10-28T08:04:17Z")

</div>

Will entering this command in python console work?

```auto
 python
Python 2.7.18 (default, Jul 1 2022, 12:27:04) 
[GCC 9.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> 

```

```auto
python3 
Python 3.8.10 (default, Sep 11 2024, 16:02:53) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml

```

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [October 28, 2024, 8:13am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/19 "2024-10-28T08:13:52Z")

</div>

And what is the result of ls -l /usr/bin/python?

---

<div class="post-metadata">

**Author:** ![deng.luo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@deng.luo](https://forums.developer.nvidia.com/u/deng.luo)\
**Post date:** [October 28, 2024, 8:25am UTC](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757/21 "2024-10-28T08:25:01Z")

</div>

The results is under above.

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/f/7/5/f75e256270019dac1992da3e6d4915eba84b475d.png)  
 ![1730103487343](https://global.discourse-cdn.com/nvidia/original/4X/1/3/e/13e67751679d2223cdc52b6121150c2658fcfe4b.png)

[Next page](https://forums.developer.nvidia.com/t/use-sdkmanager-to-flash-the-jetson-orin-nx-failed/310757.md?page=2)
