SDKManager unable to flash Jetson_Nano_Orin_8gb_DevKit fresh from the box

Hello,

According to setup guide [1], I need to update the firmware of my devkit fresh from the box to use JetPack 6.

I’m trying the sdkmanager method, but the process fails at step flashing with the following error.

Info: exec_command: /home/orin/.nvsdkm/replays/scripts/JetPack_6.1_Linux/NV_L4T_FILE_SYSTEM_AND_OS_COMP.sh06:30:56.466 - Info: sudo: sorry, you are not allowed to preserve the environment

Error: [exec_command]: /bin/bash -c /home/orin/.nvsdkm/replays/scripts/JetPack_6.1_Linux/NV_L4T_FILE_SYSTEM_AND_OS_COMP.sh; [error]: sudo: sorry, you are not allowed to preserve the environment

Info: [ Package Install Finished with Error ]

Running the following commands, it seems I’m allowed to preserve the environment.

>> export FOO=bar

>> sudo -E bash -c ‘echo $FOO’

>> bar

Could you help with this?

Host Machine Setup

  • SDKManager version = 2.3.0.12626
  • Ubuntu 24.04 (maintained by self company)

References

*** Please note that this reply is generated by LLM automatically ***

The issue you’re encountering is related to the sudo command and the preserve-env option. The error message indicates that you’re not allowed to preserve the environment when using sudo.

To resolve this issue, you can try the following:

  1. Run the sdkmanager command with the --preserve-env option disabled. You can do this by adding the --no-preserve-env option to the command. For example:

$ sudo ./sdkmanager --no-preserve-env


2. Alternatively, you can modify the `/etc/sudoers` file to allow preserving the environment for the `sdkmanager` command. To do this, you'll need to add the following line to the `/etc/sudoers` file:

   ```bash
Defaults env_reset,env_keep="FOO"

Replace FOO with the environment variable you want to preserve.

  1. If you’re using a Linux distribution that uses sudo with the secure_path option, you may need to modify the secure_path option to include the directory where the sdkmanager command is located.

It’s worth noting that the sdkmanager command is deprecated and will be removed in future releases. NVIDIA recommends using the nvsdkmanager_flash.sh script instead, which is provided in the JetPack SDK.

To use the nvsdkmanager_flash.sh script, you can follow these steps:

  1. Download the JetPack SDK from the NVIDIA website.

  2. Extract the SDK to a directory on your host machine.

  3. Navigate to the tools/kernel_flash directory in the extracted SDK.

  4. Run the nvsdkmanager_flash.sh script with the following command:

$ sudo ./nvsdkmanager_flash.sh


   Follow the prompts to select the target device and the installation options.

Comparing the two methods, the `nvsdkmanager_flash.sh` script is the recommended approach for flashing the Jetson Orin Nano device. It provides a more streamlined and user-friendly experience, and it's the approach that will be supported in future releases.

In contrast, the `sdkmanager` command is deprecated and may not be supported in future releases. However, it's still available for use in the current release, and it may be necessary to use it in certain situations.

In terms of the host machine setup, the requirements are the same for both methods. You'll need to have a Linux distribution installed on your host machine, and you'll need to have the necessary dependencies installed, such as `sudo` and `bash`.

The Jetson Orin Nano Developer Kit Getting Started Guide provides more information on the setup and installation process for the Jetson Orin Nano device. It's recommended that you refer to this guide for more detailed instructions on how to set up and use your device.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Hi,

Please press the `EXPORT LOGS` and provide for the log for us to review.

To update the firmware, please refer to another method:

To flash only QSPI on Jetson Orin series: section.

Thanks

Thanks for your prompt response, David. Uploading the logs zip file is failing, seems due to size restriction. The zip file is ~150kb, is there any way for me to work around this?

These are the logs file that can be uploaded.

JetPack_6.1_Linux_replay.zip (5.2 KB)

Below are the files that fails to be uploaded:

  • sdkm_replay.txt (37KB)
  • sdkm-2025-10-40-08-00-00.log (93KB)

Hi,

Please upload the complete SDK log ZIP file again, as uploading the full log is acceptable.

Also, try using an alternative flashing method.

Download the BSP and rootfs from https://developer.nvidia.com/embedded/jetson-linux-r3644,
and follow the flashing steps described in https://docs.nvidia.com/jetson/archives/r36.4.4/DeveloperGuide/IN/QuickStart.html.

Thank you.

Hello David, please find the log attached.

SDKM_logs_JetPack_6.1_(rev._1)Linux_for_Jetson_Orin_Nano[8GB_developer_kit_version]_2025-10-30_08-01-20.zip|attachment (145.9 KB)

Hi,

Please try using a different method to flash your device. Since we’re unable to reproduce the issue on our end, it may be related to permission settings in your environment.

Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.