# What is the version of flash.sh corresponding to python,in jetson xavier agx. Flashing Support

**URL:** <https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095>\
**Category:** Jetson AGX Xavier\
**Tags:** boot\
**Created:** [December 5, 2023, 2:01pm UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095 "2023-12-05T14:01:20Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhangpengfei22](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zhangpengfei22](https://forums.developer.nvidia.com/u/zhangpengfei22)\
**Post date:** [December 5, 2023, 2:01pm UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/1 "2023-12-05T14:01:21Z")

</div>

What is the version of flash.sh corresponding to python,in jetson xavier agx. Flashing Support

---

<div class="post-metadata">

**Author:** ![DaveYYY](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/daveyyy/32/233244_2.png) [@DaveYYY](https://forums.developer.nvidia.com/u/DaveYYY)\
**Post date:** [December 6, 2023, 12:54am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/3 "2023-12-06T00:54:39Z")

</div>

I don’t know what you are asking about.  
Can you please elaborate more?

---

<div class="post-metadata">

**Author:** ![zhangpengfei22](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zhangpengfei22](https://forums.developer.nvidia.com/u/zhangpengfei22)\
**Post date:** [December 6, 2023, 2:15am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/4 "2023-12-06T02:15:28Z")

</div>

I’m using the R35.3.1 version. The system is ubuntu20.04. The python version of the system is 3.8.5. How do I solve the following problems?

```auto
feifei@feifei-computer:~/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Li
nux_for_Tegra$ sudo ./flash.sh jetson-xavier-nx-devkit mmcblk0p1
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
# Target Board Information:
# Name: jetson-xavier-nx-devkit, Board Family: t186ref, SoC: Tegra 194, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
copying soft_fuses(/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
./tegraflash.py --chip 0x19 --applet "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod.bin" --skipuid --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --bins "mb2_applet nvtboot_applet_t194.bin" --cmd "dump eeprom boardinfo cvm.bin;reboot recovery" 
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 
[0.0064] Generating RCM messages
[0.0089] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod.bin zerosbk
[0.0095] Header already present for /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod.bin
[0.0174] tegrasign_v3.py --key None --getmode mode.txt
[0.0175] Assuming zero filled SBK key
[0.0194] tegrasign_v3.py --file /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[0.0196] Assuming zero filled SBK key
[0.0251] Warning: /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/v3_cmac_12341.out is not found
[0.0266] Traceback (most recent call last):
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegrasign_v3.py", line 554, in tegrasign
    retVal = sign_single_file(p_keylist[0], internal)
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegrasign_v3_internal.py", line 379, in sign_single_file
    write_file(hash_fh, buff_hash)
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegrasign_v3_util.py", line 679, in write_file
    file_handle.write(data)
TypeError: a bytes-like object is required, not 'str'

[0.0266] Encounter exception when signing
[0.0266] a bytes-like object is required, not 'str'
[0.0266] *********Error. Quitting.*********
[0.0274] tegrahost_v2 --chip 0x19 0 --updatesigheader /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.hash zerosbk
[0.0281] File read failed
Error: Return value 2
Command tegrahost_v2 --chip 0x19 0 --updatesigheader /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.hash zerosbk
Reading board information failed.

```

---

<div class="post-metadata">

**Author:** ![DaveYYY](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/daveyyy/32/233244_2.png) [@DaveYYY](https://forums.developer.nvidia.com/u/DaveYYY)\
**Post date:** [December 6, 2023, 2:25am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/5 "2023-12-06T02:25:13Z")

</div>

`tegrasign_v3_util.py` is still Python 2, so you also need to have Python 2 installed.

---

<div class="post-metadata">

**Author:** ![zhangpengfei22](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zhangpengfei22](https://forums.developer.nvidia.com/u/zhangpengfei22)\
**Post date:** [December 6, 2023, 2:35am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/6 "2023-12-06T02:35:17Z")

</div>

I installed the python2  
Use the command:`sudo apt install python2`  
. But the error is the same as before.

---

<div class="post-metadata">

**Author:** ![DaveYYY](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/daveyyy/32/233244_2.png) [@DaveYYY](https://forums.developer.nvidia.com/u/DaveYYY)\
**Post date:** [December 6, 2023, 2:39am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/7 "2023-12-06T02:39:26Z")

</div>

That’s because **python** on your system is still linked to Python 3.  
Change the link to Python 2 or add the shebang in ` tegrasign_v3_util.py`:

```auto
#!/usr/bin/env python2

from __future__ import print_function

#
# Copyright (c) 2018-2023, NVIDIA Corporation. All Rights Reserved.
#
# NVIDIA Corporation and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA Corporation is strictly prohibited.
#

```

---

<div class="post-metadata">

**Author:** ![zhangpengfei22](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zhangpengfei22](https://forums.developer.nvidia.com/u/zhangpengfei22)\
**Post date:** [December 6, 2023, 3:01am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/9 "2023-12-06T03:01:58Z")

</div>

I added the link and the execution result is as follows.

```auto
feifei@feifei-computer:~/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra$ sudo ./flash.sh jetson-xavier-nx-devkit mmcblk0p1
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
# Target Board Information:
# Name: jetson-xavier-nx-devkit, Board Family: t186ref, SoC: Tegra 194, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
copying soft_fuses(/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
./tegraflash.py --chip 0x19 --applet "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod.bin" --skipuid --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --bins "mb2_applet nvtboot_applet_t194.bin" --cmd "dump eeprom boardinfo cvm.bin;reboot recovery" 
Traceback (most recent call last):
  File "./tegraflash.py", line 24, in <module>
    import tegraflash_internal
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 28, in <module>
    from tegrasign_v3 import (compute_sha, do_key_derivation,
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegrasign_v3.py", line 13, in <module>
    from tegrasign_v3_internal import *
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegrasign_v3_internal.py", line 13, in <module>
    from tegrasign_v3_util import *
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegrasign_v3_util.py", line 565
    print('[%8.4f] ' % diff_time, end='')
                                       ^
SyntaxError: invalid syntax
Reading board information failed.
feifei@feifei-computer:~/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra$ python --version
Python 2.7.18

```

---

<div class="post-metadata">

**Author:** ![zhangpengfei22](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zhangpengfei22](https://forums.developer.nvidia.com/u/zhangpengfei22)\
**Post date:** [December 6, 2023, 3:05am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/10 "2023-12-06T03:05:20Z")

</div>

This line of code is already in the source file that I downloaded earlier.

```auto
from __future__ import print_function

#
# Copyright (c) 2018-2023, NVIDIA Corporation. All Rights Reserved.
#
# NVIDIA Corporation and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA Corporation is strictly prohibited.
#

import binascii

```

---

<div class="post-metadata">

**Author:** ![DaveYYY](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/daveyyy/32/233244_2.png) [@DaveYYY](https://forums.developer.nvidia.com/u/DaveYYY)\
**Post date:** [December 6, 2023, 3:10am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/11 "2023-12-06T03:10:40Z")

</div>

你有run過`sudo ./tools/l4t_flash_prerequisites.sh`嗎  
理論上需要的package裝完之後不應該有這樣的錯誤

我的環境是這樣

```auto
davey@dave-yu-nvidia-pc:/mnt/1T-HDD/BSP/r35.4.1-2/Linux_for_Tegra$ python --version
Python 2.7.17
davey@dave-yu-nvidia-pc:/mnt/1T-HDD/BSP/r35.4.1-2/Linux_for_Tegra$ python2 --version
Python 2.7.17
davey@dave-yu-nvidia-pc:/mnt/1T-HDD/BSP/r35.4.1-2/Linux_for_Tegra$ python3 --version
Python 3.6.9

```

---

<div class="post-metadata">

**Author:** ![zhangpengfei22](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zhangpengfei22](https://forums.developer.nvidia.com/u/zhangpengfei22)\
**Post date:** [December 6, 2023, 3:29am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/12 "2023-12-06T03:29:11Z")

</div>

Here is my python version and the results of the execution.

```auto
feifei@feifei-computer:~/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra$ sudo ./flash.sh jetson-xavier-nx-devkit mmcblk0p1
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
# Target Board Information:
# Name: jetson-xavier-nx-devkit, Board Family: t186ref, SoC: Tegra 194, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
copying soft_fuses(/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
./tegraflash.py --chip 0x19 --applet "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod.bin" --skipuid --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --bins "mb2_applet nvtboot_applet_t194.bin" --cmd "dump eeprom boardinfo cvm.bin;reboot recovery" 
Traceback (most recent call last):
  File "./tegraflash.py", line 24, in <module>
    import tegraflash_internal
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 28, in <module>
    from tegrasign_v3 import (compute_sha, do_key_derivation,
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegrasign_v3.py", line 13, in <module>
    from tegrasign_v3_internal import *
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegrasign_v3_internal.py", line 13, in <module>
    from tegrasign_v3_util import *
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegrasign_v3_util.py", line 22, in <module>
    import yaml
ImportError: No module named yaml
Reading board information failed.
feifei@feifei-computer:~/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra$ python --version
Python 2.7.18
feifei@feifei-computer:~/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra$ python --version
Python 2.7.18
feifei@feifei-computer:~/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra$ python --version

```

---

<div class="post-metadata">

**Author:** ![DaveYYY](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/daveyyy/32/233244_2.png) [@DaveYYY](https://forums.developer.nvidia.com/u/DaveYYY)\
**Post date:** [December 6, 2023, 3:30am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/13 "2023-12-06T03:30:52Z")

</div>

請你先run `sudo ./tools/l4t_flash_prerequisites.sh`

---

<div class="post-metadata">

**Author:** ![zhangpengfei22](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zhangpengfei22](https://forums.developer.nvidia.com/u/zhangpengfei22)\
**Post date:** [December 6, 2023, 7:37am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/14 "2023-12-06T07:37:41Z")

</div>

我是按照您说的进行的。

```auto
feifei@feifei-computer:~/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra$ python --version
Python 2.7.18
feifei@feifei-computer:~/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra$ python2 --version
Python 2.7.18
feifei@feifei-computer:~/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra$ python3 --version
Python 3.8.10
feifei@feifei-computer:~/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra$ sudo ./tools/l4t_flash_prerequisites.sh
命中:1 http://mirrors.aliyun.com/ubuntu focal InRelease
命中:2 http://mirrors.aliyun.com/ubuntu focal-updates InRelease                                      
命中:3 http://packages.microsoft.com/repos/code stable InRelease                          
命中:4 http://mirrors.aliyun.com/ubuntu focal-backports InRelease                                           
命中:5 http://mirrors.aliyun.com/ubuntu focal-security InRelease     
命中:6 https://repo.radeon.com/amdgpu/23.20/amdgpu/ubuntu focal InRelease
命中:7 https://repo.radeon.com/amdgpu/23.20/rocm/apt/5.7 focal InRelease
正在读取软件包列表... 完成
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
注意，选中 'python-is-python2' 而非 'python'
cpp 已经是最新版 (4:9.3.0-1ubuntu2)。
device-tree-compiler 已经是最新版 (1.5.1-1)。
dosfstools 已经是最新版 (4.1-2)。
whois 已经是最新版 (5.5.6)。
abootimg 已经是最新版 (0.6-1build1)。
binfmt-support 已经是最新版 (2.2.0-2)。
lbzip2 已经是最新版 (2.5-2)。
python-is-python2 已经是最新版 (2.7.17-4)。
sshpass 已经是最新版 (1.06-1)。
binutils 已经是最新版 (2.34-6ubuntu1.6)。
cpio 已经是最新版 (2.13+dfsg-2ubuntu0.3)。
libxml2-utils 已经是最新版 (2.9.10+dfsg-5ubuntu0.20.04.6)。
nfs-kernel-server 已经是最新版 (1:1.3.4-2.5ubuntu3.5)。
openssl 已经是最新版 (1.1.1f-1ubuntu2.20)。
python3-yaml 已经是最新版 (5.3.1-1ubuntu0.1)。
udev 已经是最新版 (245.4-4ubuntu3.22)。
uuid-runtime 已经是最新版 (2.34-0.1ubuntu9.4)。
qemu-user-static 已经是最新版 (1:4.2-3ubuntu6.27)。
升级了 0 个软件包，新安装了 0 个软件包，要卸载 0 个软件包，有 12 个软件包未被升级。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
lz4 已经是最新版 (1.9.2-2ubuntu0.20.04.1)。
升级了 0 个软件包，新安装了 0 个软件包，要卸载 0 个软件包，有 12 个软件包未被升级。

```

```auto
feifei@feifei-computer:~/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra$ sudo ./flash.sh jetson-xavier-nx-devkit mmcblk0p1
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
# Target Board Information:
# Name: jetson-xavier-nx-devkit, Board Family: t186ref, SoC: Tegra 194, 
# OpMode: production, Boot Authentication: NS, 
# Disk encryption: disabled ,
###############################################################################
copying soft_fuses(/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
./tegraflash.py --chip 0x19 --applet "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod.bin" --skipuid --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --bins "mb2_applet nvtboot_applet_t194.bin" --cmd "dump eeprom boardinfo cvm.bin;reboot recovery" 
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 
[0.0069] Generating RCM messages
[0.0089] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod.bin zerosbk
[0.0096] Header already present for /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod.bin
[0.0175] tegrasign_v3.py --key None --getmode mode.txt
[0.0179] Assuming zero filled SBK key
[0.0206] tegrasign_v3.py --file /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[0.0207] Assuming zero filled SBK key
[0.0220] Warning: /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/v3_cmac_14405.out is not found
[0.0227] Traceback (most recent call last):
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegrasign_v3.py", line 554, in tegrasign
    retVal = sign_single_file(p_keylist[0], internal)
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegrasign_v3_internal.py", line 379, in sign_single_file
    write_file(hash_fh, buff_hash)
  File "/home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/tegrasign_v3_util.py", line 680, in write_file
    file_handle.write(data)
TypeError: a bytes-like object is required, not 'str'

[0.0227] Encounter exception when signing
[0.0227] a bytes-like object is required, not 'str'
[0.0227] *********Error. Quitting.*********
[0.0233] tegrahost_v2 --chip 0x19 0 --updatesigheader /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.hash zerosbk
[0.0240] File read failed
Error: Return value 2
Command tegrahost_v2 --chip 0x19 0 --updatesigheader /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin /home/feifei/下载/nvidia-linux-35.31/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.hash zerosbk
Reading board information failed.

```

但还是失败了，请问这样的话可能是什么地方出错了呢。

---

<div class="post-metadata">

**Author:** ![DaveYYY](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/daveyyy/32/233244_2.png) [@DaveYYY](https://forums.developer.nvidia.com/u/DaveYYY)\
**Post date:** [December 6, 2023, 8:15am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/15 "2023-12-06T08:15:34Z")

</div>

你可以另外找一台乾淨、新裝好的Ubuntu PC再試一次嗎  
你的Python環境可能有點混亂，我也不知道具體是哪裡出問題

---

<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:** [December 6, 2023, 8:52am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/16 "2023-12-06T08:52:00Z")

</div>

> [@Error "images\_list\_signed.xml" on Initial Setup of Forge Carrier Board for AGX Orin](https://forums.developer.nvidia.com/t/error-images-list-signed-xml-on-initial-setup-of-forge-carrier-board-for-agx-orin/255987):
>
> I will install for the first time on my Forge Carrier Board for AGX Orin, which I use in projects. I made the necessary installations on the host computer and I start the flash process with the commands I shared in the image, but “FileNotFoundError: [Errno 2] No such file or directory: ‘images\_list\_signed.xml’ Reading board information failed.” i am getting the error. How can I solve it? Thanks in advance for your help. When I start the flash process the …

大概是因為你的路徑有中文吧

---

<div class="post-metadata">

**Author:** ![zhangpengfei22](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zhangpengfei22](https://forums.developer.nvidia.com/u/zhangpengfei22)\
**Post date:** [December 6, 2023, 8:59am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/17 "2023-12-06T08:59:35Z")

</div>

好的，非常感谢您的帮助。

---

<div class="post-metadata">

**Author:** ![zhangpengfei22](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zhangpengfei22](https://forums.developer.nvidia.com/u/zhangpengfei22)\
**Post date:** [December 6, 2023, 1:06pm UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/18 "2023-12-06T13:06:44Z")

</div>

问题已经解决，非常感谢您的帮助

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [January 1, 2024, 8:07am UTC](https://forums.developer.nvidia.com/t/what-is-the-version-of-flash-sh-corresponding-to-python-in-jetson-xavier-agx-flashing-support/275095/20 "2024-01-01T08:07:15Z")

</div>

Closed on January 1, 2024, 8:07am UTC

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