Jetson AGX Thor使用l4t_backup_restore.sh镜像打包生成生产镜像问题

您好,目前在Jetson AGX Thor开发板上部署了我们的环境,使用

sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -b -c jetson-agx-thor-devkit

命令将板卡中的所有镜像同步到开发环境中,根据:

tools/backup_restore/README_backup_restore.txt

文档介绍,可以使用:

sudo FUSELEVEL=fuselevel_production CHIP_SKU=00:00:00:A0 ./tools/kernel_flash/l4t_initrd_flash.sh --use-backup-image --no-flash --network usb0 --massflash 1 jetson-agx-thor-devkit internal

命令将其打包生成可释放批量生产的包,实现批量烧写,当然这一步也是成功了,但是在验证烧写阶段,使用生成的mfi_jetson-agx-thor-devkit包中镜像烧写时会报找不到flash-images/,且不会使用tools/backup_restore/images里面的镜像。如下是使用的烧写命令:

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 1 --network usb0 jetson-agx-thor-devkit internal

是因为thor这个板卡不支持这个方式烧写吗,还是我使用的方法不对,这个步骤完全可以复现此问题。

Hi @haiteng.wang ,

Have you apply this patch ? Jetson AGX Thor (R39.2.0) Backup & Massflash Workflow - Multiple Issues - Jetson Systems / Jetson Thor - NVIDIA Developer Forums

and what jetpack version did you use now ?

Thanks!!

我使用的是JetPack sdk 7.2.1版本,最新版本上默认没有这个补丁吗

Hi @haiteng.wang ,

Sorry, I’m not at my computer right now, so I can’t confirm whether JP7.2.1 includes this patch or if the issue was resolved using another method.

However, I think you could try applying the patch first and then testing the mass flash again.

Thanks!!

Patch has not been applied to Jetpack 7.2.1

grep "GetSparseExpandedSize(" unified_flash/tools/flashtools/
bootburn_t264_py/bootburn_adb.py
scott@chithor:~/.git/jp721/Linux_for_Tegra$ grep "No device in recovery mode is required for convert alone"  tools/backup_restore/README_backup_restore.txt
scott@chithor:~/.git/jp721/Linux_for_Tegra$

And after you apply patch read tools/backup_restore/README_backup_restore.txt for directions on convert your created backup to massflash capability.

打上补丁之后确实有效,但还是有一个问题需要咨询以下您,我这边测试在制作镜像时,如使用的是1T的硬盘,制作完成后的镜像也只能烧写进1T的硬盘中,虽然镜像只有45G左右,依旧烧写不进128G或者500G的硬盘中,报错信息如下,因为实际产品使用的存储大小不固定,您看下是否有解决办法。

制作限制镜像为50G命令(存储实际有1T):

sudo ./l4t_initrd_flash.sh -S 50GiB --erase-all jetson-agx-thor-devkit internal

烧写报错:

wht@ubuntu24-none:~/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 1 --network usb0 jetson-agx-thor-devkit internal
/home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/tools/kernel_flash/l4t_initrd_flash_internal.sh --network usb0 --usb-instance 3-2 --device-instance 0 --flash-only --network usb0 jetson-agx-thor-devkit internal


  •                                              *
    
  • Step 1: Boot the device with flash initrd image *

  •                                              *
    

/home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit
2026-09-28 08:48:22,386 - INFO - Initializing SOC group selector
2026-09-28 08:48:22,387 - INFO - Found SOC group for board jetson-t264
********* Starting bootburn/flash_bsp_images.py *********
Command Line Arguments :: [‘/home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/bootburn/flash_bsp_images.py’, ‘-b’, ‘jetson-t264’, ‘–l4t’, ‘-D’, ‘-P’, ‘/home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace’, ‘–l4t_boot_chain_select’, ‘A’, ‘–usb-instance’, ‘3-2’]
[flash_bsp]: start time = 1790556502.4118402
Default Schema:/home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/bootburn_t264_py/nv-customer-data-schema.json

*** miniPDK – offline binary flashing (flash_bsp) ****
cwd in setBoardConfigPath :: /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/bootburn_t264_py
*** miniPDK in setBoardConfigPath ****
offline binary flashing (flash_bsp) board_config path is derived from cwd :: /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/bootburn_t264_py/../board_configs
cwd in loadBoardGoldenRegsFile :: /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/bootburn_t264_py
Check finished successfully
Done parsing command line

[flash_bsp]: [init(85)] : python 3 used
[flash_bsp]: [executeShellCommand(156)] : command = whoami
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/bootburn_t264_py
[flash_bsp]: [executeShellCommand(163)] : root

[flash_bsp_jetson-t264_die0]: Beginning flash BSP for die0

[flash_bsp_jetson-t264_die0]: [ValidateFlashToolVersion(1278)] : offlineImagesPath : /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace
[flash_bsp_jetson-t264_die0]: [ValidateFlashToolVersion(1283)] : ToolsVersion in Images folder : 1.0
[flash_bsp_jetson-t264_die0]: [ValidateFlashToolVersion(1284)] : ToolsVersion in Flashing tools folder : 1.0
[flash_bsp_jetson-t264_die0]: Created temporary directory: /tmp/tmp0mxbogz4
[flash_bsp]: [executeShellCommand(156)] : command = udevadm info -q path -n /dev/bus/usb/003/057
cwd = /tmp/tmp0mxbogz4
[flash_bsp]: [executeShellCommand(163)] : /devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-2

[flash_bsp_jetson-t264_die0]: [UpdateTargetInstanceInfo(3358)] : number of attempts to UpdateTargetInstance : 1

[flash_bsp]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --new_session --chip 0x26
cwd = /tmp/tmp0mxbogz4
[flash_bsp]: [executeShellCommand(163)] :
[flash_bsp]: [executeShellCommand(156)] : command = udevadm info -q path -n /dev/bus/usb/003/057
cwd = /tmp/tmp0mxbogz4
[flash_bsp]: [executeShellCommand(163)] : /devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-2

[flash_bsp_jetson-t264_die0]: [UpdateTargetInstanceInfo(3358)] : number of attempts to UpdateTargetInstance : 1

[flash_bsp]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --uid --chip 0x26
cwd = /tmp/tmp0mxbogz4
[flash_bsp]: [executeShellCommand(163)] : BR_CID: 0x80012641783DE2461400000017050180

[flash_bsp_jetson-t264_die0]: [GetTargetECID(790)] : Target BR_CID: 0x80012641783DE2461400000017050180

[flash_bsp_jetson-t264_die0]: [GetTargetECID(791)] : Target ECID: 0x1783DE2461400000017050180

[flash_bsp_jetson-t264_die0]: [CheckFuseForAuthentication(812)] : Authentication key is not fused on the target

[flash_bsp_jetson-t264_die0]: [GenAdbSerialNum(557)] : ADB serial number is 2U1TS931800000BGA0C0
[flash_bsp_jetson-t264_die0]: [CheckForDeviceType(888)] : device type = 8 int = 8
[flash_bsp_jetson-t264_die0]: [CheckForDeviceType(893)] : Detected ES production device type
[flash_bsp_jetson-t264_die0]: [init(85)] : python 3 used
[flash_bsp_jetson-t264_die0]: [init(109)] : python 3 used

In BoardSetFilePathsAndDefaultValues in targetConfig

n_FlashFirmware is not listed in the Boardconfig
*** in targetConfig, s_BrickOnCoreFWFlashFail not found in board_config ***
*** in targetConfig, s_BrickOnFirmwareUpdateFail not found in board_config ***
[flash_bsp_jetson-t264_die0]: [runPlatformDetection(1319)] : runPlatformDetection - rcm-flash
[flash_bsp_jetson-t264_die0]: [updateImageName(1025)] : updatedName - A_bct_BR_zerosign
[flash_bsp_jetson-t264_die0]: [updateImageName(1025)] : updatedName - psc_bl1_t264_prod_zerosign
[flash_bsp_jetson-t264_die0]: [updateImageName(1025)] : updatedName - mb1_t264_prod_zerosign
[flash_bsp_jetson-t264_die0]: [updateImageName(1025)] : updatedName - bct_MB1_zerosign
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = udevadm info -q path -n /dev/bus/usb/003/057
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : /devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-2

[flash_bsp_jetson-t264_die0]: [UpdateTargetInstanceInfo(3358)] : number of attempts to UpdateTargetInstance : 1

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --new_session --chip 0x26
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] :
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --uid
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : BR_CID: 0x80012641783DE2461400000017050180

[flash_bsp_jetson-t264_die0]: [updateImageName(1025)] : updatedName - psc_bl1_t264_prod_zerosign
[flash_bsp_jetson-t264_die0]: [updateImageName(1025)] : updatedName - mb1_t264_prod_zerosign
[flash_bsp_jetson-t264_die0]: [updateImageName(1025)] : updatedName - bct_MB1_zerosign
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --new_session --chip 0x26
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] :
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --uid
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : BR_CID: 0x80012641783DE2461400000017050180

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --download bct_br ./APbct_BR_zerosign.bct
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Sending bct_br

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --download mb1 ./mb1_t264_prod_zerosign.bin
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Sending mb1

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --download psc_bl1 ./psc_bl1_t264_prod_zerosign.bin
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Sending psc_bl1

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --download bct_mb1 ./bct_MB1_zerosign.bin
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Sending bct_mb1

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --chip 0x26 --pollbl --download applet applet/applet_blob.bin
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : BL: version 0.25.1.1-t264-75019003-d9a316ff last_boot_error: 0
Sending applet

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --chip 0x26 --ismb2applet
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : MB2 Applet version 01.00.0000

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegraparser_v2 --chip 0x26 --read_fusetype Sku e.bin
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] :
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --oem readfuses out.bin e.bin
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : MB2 Applet version 01.00.0000
Saved read fuses in file out.bin
Fuse read successful

[flash_bsp_jetson-t264_die0]: [CheckOptFuses(1155)] : Sku 0xa0

[flash_bsp_jetson-t264_die0]: [CheckOptFuses(1185)] : SkuName = [TA1090SA] 0xA0

[flash_bsp_jetson-t264_die0]: Obtain chip information (version, etc.) from target
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --oem platformdetails chip chip_info.bin --chip 0x26
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : MB2 Applet version 01.00.0000
Saved platform info in chip_info.bin
Chip minor revision: 1
Bootrom revision: 0x3
Ram code: 0xc
Chip sku: 0xa0
Chip Sample: prod

[flash_bsp_jetson-t264_die0]: Read Ram code
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/057 --chip 0x26 --reboot recovery
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : MB2 Applet version 01.00.0000

[flash_bsp_jetson-t264_die0]: [BootRCM(1239)] : BootRCM - rcm-flash
[flash_bsp_jetson-t264_die0]: [init(85)] : python 3 used
[flash_bsp_jetson-t264_die0]: [init(109)] : python 3 used

In BoardSetFilePathsAndDefaultValues in targetConfig

n_FlashFirmware is not listed in the Boardconfig
*** in targetConfig, s_BrickOnCoreFWFlashFail not found in board_config ***
[flash_bsp_jetson-t264_die0]: [updateImageName(1025)] : updatedName - A_bct_BR_zerosign
[flash_bsp_jetson-t264_die0]: [updateImageName(1025)] : updatedName - psc_bl1_t264_prod_zerosign
[flash_bsp_jetson-t264_die0]: [updateImageName(1025)] : updatedName - mb1_t264_prod_zerosign
[flash_bsp_jetson-t264_die0]: [updateImageName(1025)] : updatedName - bct_MB1_zerosign
[flash_bsp_jetson-t264_die0]: [getmembctName(1042)] : RAMCODE 12
[flash_bsp_jetson-t264_die0]: [getmembctName(1063)] : Selected membct_6 for memcfg
[flash_bsp_jetson-t264_die0]: [updateImageName(1025)] : updatedName - membct_6_zerosign
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = udevadm info -q path -n /dev/bus/usb/003/058
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : /devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-2

[flash_bsp_jetson-t264_die0]: [UpdateTargetInstanceInfo(3358)] : number of attempts to UpdateTargetInstance : 1

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/058 --new_session --chip 0x26
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] :
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/058 --uid
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : BR_CID: 0x80012641783DE2461400000017050180

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/058 --download bct_br ./A_bct_BR_zerosign.bct
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Sending bct_br

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/058 --download mb1 ./mb1_t264_prod_zerosign.bin
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Sending mb1

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/058 --download psc_bl1 ./psc_bl1_t264_prod_zerosign.bin
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Sending psc_bl1

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/058 --download bct_mb1 ./bct_MB1_zerosign.bin
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Sending bct_mb1

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/058 --chip 0x26 --pollbl
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : BL: version 0.25.1.1-t264-75019003-d9a316ff last_boot_error: 0

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/058 --download bct_mem membct_6_zerosign.bct
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Sending bct_mem

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/tegrarcm_v2 --instance /dev/bus/usb/003/058 --download blob ./rcm_blob.bin
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/rcm-flash
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Sending blob

[flash_bsp_jetson-t264_die0]: [FlashImages(3186)] :

[flash_bsp_jetson-t264_die0]: [FlashImages(3187)] : Flashing-Images starting

[flash_bsp_jetson-t264_die0]: [CheckUSBServiceInit(250)] : Waiting for USB device. This may take up to 100 seconds…
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = lsusb -d 0955:
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Bus 003 Device 058: ID 0955:7026 NVIDIA Corp. APX

[flash_bsp_jetson-t264_die0]: [CheckUSBServiceInit(263)] : Show ADB version
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb version
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Android Debug Bridge version 1.0.40
Version 28.0.0 rc1-generic
Installed as /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb

[flash_bsp_jetson-t264_die0]: [CheckUSBServiceInit(265)] : Android Debug Bridge version 1.0.40
Version 28.0.0 rc1-generic
Installed as /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb

[flash_bsp_jetson-t264_die0]: [CheckUSBServiceInit(266)] : Starting and finding the ADB device : 2U1TS931800000BGA0C0
[flash_bsp_jetson-t264_die0]: [CheckUSBServiceInit(268)] : Show Host version
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = uname -a
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Linux ubuntu24-none 7.0.0-34-generic #34~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 4 15:38:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = lsb_release -a
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : Distributor ID: Ubuntu
Description: Ubuntu 24.04.4 LTS
Release: 24.04
Codename: noble

[flash_bsp_jetson-t264_die0]: [CheckUSBServiceInit(274)] : Parsing the udevrule for 0955
[flash_bsp_jetson-t264_die0]: [grepInFolder(317)] : searchString : ATTRS{idVendor}==“0955”
[flash_bsp_jetson-t264_die0]: [startADBServer(179)] : Starting ADB server
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb start-server
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] :
[flash_bsp_jetson-t264_die0]: [AdbFindDevice(204)] : Block until device is online, with a time out of 100 seconds:
[flash_bsp_jetson-t264_die0]: [ListADBDevices(187)] : listing connected adb devices
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb devices -l
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : List of devices attached

[flash_bsp_jetson-t264_die0]: [ListADBDevices(191)] : listing connected adb devices with sudo
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb devices -l
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : List of devices attached

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = timeout 5 /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 wait-for-device
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(171)] : shell command – timeout 5 /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 wait-for-device failed
[flash_bsp_jetson-t264_die0]: [executeShellCommand(173)] : Output:
[flash_bsp_jetson-t264_die0]: [executeShellCommand(175)] : Return code: 124
[flash_bsp_jetson-t264_die0]: [executeShellCommand(177)] : stdout: b’’
[flash_bsp_jetson-t264_die0]: [executeShellCommand(179)] : stderr: None
[flash_bsp_jetson-t264_die0]: [ListADBDevices(187)] : listing connected adb devices
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb devices -l
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : List of devices attached

[flash_bsp_jetson-t264_die0]: [ListADBDevices(191)] : listing connected adb devices with sudo
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb devices -l
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : List of devices attached

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = timeout 5 /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 wait-for-device
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(171)] : shell command – timeout 5 /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 wait-for-device failed
[flash_bsp_jetson-t264_die0]: [executeShellCommand(173)] : Output:
[flash_bsp_jetson-t264_die0]: [executeShellCommand(175)] : Return code: 124
[flash_bsp_jetson-t264_die0]: [executeShellCommand(177)] : stdout: b’’
[flash_bsp_jetson-t264_die0]: [executeShellCommand(179)] : stderr: None
[flash_bsp_jetson-t264_die0]: [AdbFindDevice(214)] : the ADB device is not yet found online : 2U1TS931800000BGA0C0
[flash_bsp_jetson-t264_die0]: [AdbFindDevice(215)] : current totaltime in finding device online : 0
[flash_bsp_jetson-t264_die0]: [ListADBDevices(187)] : listing connected adb devices
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb devices -l
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : List of devices attached

[flash_bsp_jetson-t264_die0]: [ListADBDevices(191)] : listing connected adb devices with sudo
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb devices -l
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : List of devices attached

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = timeout 5 /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 wait-for-device
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(171)] : shell command – timeout 5 /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 wait-for-device failed
[flash_bsp_jetson-t264_die0]: [executeShellCommand(173)] : Output:
[flash_bsp_jetson-t264_die0]: [executeShellCommand(175)] : Return code: 124
[flash_bsp_jetson-t264_die0]: [executeShellCommand(177)] : stdout: b’’
[flash_bsp_jetson-t264_die0]: [executeShellCommand(179)] : stderr: None
[flash_bsp_jetson-t264_die0]: [AdbFindDevice(214)] : the ADB device is not yet found online : 2U1TS931800000BGA0C0
[flash_bsp_jetson-t264_die0]: [AdbFindDevice(215)] : current totaltime in finding device online : 5
[flash_bsp_jetson-t264_die0]: [ListADBDevices(187)] : listing connected adb devices
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb devices -l
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : List of devices attached

[flash_bsp_jetson-t264_die0]: [ListADBDevices(191)] : listing connected adb devices with sudo
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb devices -l
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : List of devices attached

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = timeout 5 /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 wait-for-device
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(171)] : shell command – timeout 5 /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 wait-for-device failed
[flash_bsp_jetson-t264_die0]: [executeShellCommand(173)] : Output:
[flash_bsp_jetson-t264_die0]: [executeShellCommand(175)] : Return code: 124
[flash_bsp_jetson-t264_die0]: [executeShellCommand(177)] : stdout: b’’
[flash_bsp_jetson-t264_die0]: [executeShellCommand(179)] : stderr: None
[flash_bsp_jetson-t264_die0]: [AdbFindDevice(214)] : the ADB device is not yet found online : 2U1TS931800000BGA0C0
[flash_bsp_jetson-t264_die0]: [AdbFindDevice(215)] : current totaltime in finding device online : 10
[flash_bsp_jetson-t264_die0]: [ListADBDevices(187)] : listing connected adb devices
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb devices -l
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : List of devices attached

[flash_bsp_jetson-t264_die0]: [ListADBDevices(191)] : listing connected adb devices with sudo
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb devices -l
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : List of devices attached

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = timeout 5 /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 wait-for-device
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] :
[flash_bsp_jetson-t264_die0]: [AdbFindDevice(214)] : the ADB device is not yet found online : 2U1TS931800000BGA0C0
[flash_bsp_jetson-t264_die0]: [AdbFindDevice(215)] : current totaltime in finding device online : 15
[flash_bsp_jetson-t264_die0]: [AdbFindDevice(221)] : found the device :2U1TS931800000BGA0C0 online at the end of :20 seconds
[flash_bsp_jetson-t264_die0]: [AdbPush(345)] : Push file via ADB to target destination
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 push /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/wr_sh.sh /tmp
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : [100%] /tmp/wr_sh.sh
/home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/wr_sh.sh: 1 file pushed. 0.3 MB/s (699 bytes in 0.002s)

[flash_bsp_jetson-t264_die0]: [AdbPush(345)] : Push file via ADB to target destination
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 push /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/nvdd /tmp
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : [ 10%] /tmp/nvdd
[ 20%] /tmp/nvdd
[ 30%] /tmp/nvdd
[ 40%] /tmp/nvdd
[ 50%] /tmp/nvdd
[ 60%] /tmp/nvdd
[ 70%] /tmp/nvdd
[ 80%] /tmp/nvdd
[ 90%] /tmp/nvdd
[100%] /tmp/nvdd
/home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/nvdd: 1 file pushed. 33.6 MB/s (648144 bytes in 0.018s)

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 shell /tmp/wr_sh.sh chmod 766 /tmp/wr_sh.sh
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] :
EXITCODE=0

[flash_bsp_jetson-t264_die0]: [AdbShell(336)] : EXITCODE = 0
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 shell /tmp/wr_sh.sh chmod 766 /tmp/nvdd
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] :
EXITCODE=0

[flash_bsp_jetson-t264_die0]: [AdbShell(336)] : EXITCODE = 0
[flash_bsp_jetson-t264_die0]: [UpdatePVITFullFlashing(2989)] :
*** In UpdatePVITFullFlashing ***

[flash_bsp_jetson-t264_die0]: [UpdatePVITFullFlashing(3004)] : Skipping PVIT update for bct in full flashing with unsigned customer data
[flash_bsp_jetson-t264_die0]: [ParallelFlashImages(2679)] : Working on 810c5b0000.spi
[flash_bsp_jetson-t264_die0]: [ParallelFlashImages(2679)] : Working on nvme0n1
[flash_bsp_jetson-t264_die0]: [EraseQspi(1512)] : Erasing Qspi(/dev/block/810c5b0000.spi) .. Start 0 Size 0
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 shell /tmp/wr_sh.sh /tmp/nvdd --device /dev/block/810c5b0000.spi -E eoffset=0,esize=0
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [FlashUsingADB(1258)] : [nvme0n1] Flashing for Partition primary_gpt
[flash_bsp_jetson-t264_die0]: [SendFileUsingADB(705)] : Flashing Partition - primary_gpt of size 20480 of File nvme0n1_gptmbr.img of size 20480
[flash_bsp_jetson-t264_die0]: [AdbPush(345)] : Push file via ADB to target destination
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 push nvme0n1_gptmbr.img /tmp
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : [100%] /tmp/nvme0n1_gptmbr.img
nvme0n1_gptmbr.img: 1 file pushed. 7.6 MB/s (20480 bytes in 0.003s)

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 shell /tmp/wr_sh.sh /tmp/nvdd --inputbin=/tmp/nvme0n1_gptmbr.img --device=/dev/nvme0n1 --startoffset=0 --partsize=20480 --l4t
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : 20480 bytes copied, 1.235219 sec, 16580.055844 bytes/sec

EXITCODE=0

[flash_bsp_jetson-t264_die0]: [AdbShell(336)] : EXITCODE = 0
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 shell /tmp/wr_sh.sh rm /tmp/nvme0n1_gptmbr.img
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] :
EXITCODE=0

[flash_bsp_jetson-t264_die0]: [AdbShell(336)] : EXITCODE = 0
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 shell /tmp/wr_sh.sh /tmp/nvdd --device /dev/nvme0n1 --startoffset 0 --partsize 20480 --md5sum 279b1bf8ce544a8c67273162e31b8ab2 --printmd5sum
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : rbMd5 : 279b1bf8ce544a8c67273162e31b8ab2

EXITCODE=0

[flash_bsp_jetson-t264_die0]: [checkMd5(485)] : target md5 = 279b1bf8ce544a8c67273162e31b8ab2 matches host side md5 = 279b1bf8ce544a8c67273162e31b8ab2
[flash_bsp_jetson-t264_die0]: [SendFileUsingADB(976)] : Image written correctly, md5 sum matches
[flash_bsp_jetson-t264_die0]: [FlashUsingADB(1258)] : [nvme0n1] Flashing for Partition secondary_gpt
[flash_bsp_jetson-t264_die0]: [SendFileUsingADB(705)] : Flashing Partition - secondary_gpt of size 16896 of File nvme0n1_gptbackup.img of size 16896
[flash_bsp_jetson-t264_die0]: [AdbPush(345)] : Push file via ADB to target destination
[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 push nvme0n1_gptbackup.img /tmp
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : [100%] /tmp/nvme0n1_gptbackup.img
nvme0n1_gptbackup.img: 1 file pushed. 6.4 MB/s (16896 bytes in 0.003s)

[flash_bsp_jetson-t264_die0]: [executeShellCommand(156)] : command = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/flash/adb -s 2U1TS931800000BGA0C0 shell /tmp/wr_sh.sh /tmp/nvdd --inputbin=/tmp/nvme0n1_gptbackup.img --device=/dev/nvme0n1 --startoffset=1024209526272 --partsize=16896 --l4t
cwd = /home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace/flash-images
[flash_bsp_jetson-t264_die0]: [executeShellCommand(163)] : :[E]: doWriteFile : 274: Error BadParameter (0x4)
:[E]: nvdd : 488: Error BadParameter (0x4)

EXITCODE=4

[flash_bsp_jetson-t264_die0]: [AdbShell(336)] : EXITCODE = 4
Process Process-1:2:
Traceback (most recent call last):
File “/usr/lib/python3.12/multiprocessing/process.py”, line 314, in _bootstrap
self.run()
File “/usr/lib/python3.12/multiprocessing/process.py”, line 108, in run
self._target(*self._args, **self._kwargs)
File “/home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/bootburn/../bootburn_t264_py/bootburn_adb.py”, line 1396, in FlashUsingADB
result = self.SendFileUsingADB(partitionInfo, SkipWriteZeroChunk, TempDir, queue, UpdatePartitions)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/bootburn/../bootburn_t264_py/bootburn_adb.py”, line 875, in SendFileUsingADB
AbnormalTermination(“Write failed on (%s)” % str(partitionInfo.LinuxPartitionName), nverror.NvError_FileWriteFailed)
File “/home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/bootburn/../bootburn_t264_py/flashtools_nverror.py”, line 263, in AbnormalTermination
raise OSError(errorCode)
OSError: 59
command line used was:
[‘/home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/tools/flashtools/bootburn/flash_bsp_images.py’, ‘-b’, ‘jetson-t264’, ‘–l4t’, ‘-D’, ‘-P’, ‘/home/wht/work/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images/flash_workspace’, ‘–l4t_boot_chain_select’, ‘A’, ‘–usb-instance’, ‘3-2’]

Write failed on (/dev/nvme0n1)

To keep in backup_restore method, this could be one way.

recreate your initial customer setup on a drive whose physical size equals the smallest SKU you’ll ship (e.g., 128GB NVMe). Run l4t_backup_restore.sh -b -c on that drive. The resulting gpt_2 offset then fits any drive ≥128GB.

For 500GB / 1TB units, add a first-boot oneshot systemd service to:

growpart /dev/nvme0n1p1
resize2fs /dev/nvme0n1pp1


Here’s another method from https://forums.developer.nvidia.com/t/emmc-size-differ-makes-backup-and-restore-fail/333446/3

  1. On the golden Jetson, prevent the EFI mount from interfering with clone:
    sudo sed -i “//boot/efi/d” /etc/fstab
  2. Follow “Cloning rootfs with initrd” in the Jetson Linux developer guide through step 6 (“Copy the system.img.raw file from the USB drive to the
    host machine”). This gives you the raw APP-partition image with all your customizations.
  3. On the host, mount it and overlay it onto a fresh BSP’s rootfs:
    sudo mount -o loop system.img.raw /mnt/rootfs
    cd ${path_to}/Linux_for_Tegra/rootfs/
    sudo rm -rf ./*
    sudo cp -rp /mnt/rootfs/* ./
    sudo umount /mnt/rootfs
  4. Package a massflash bundle sized to the smallest SKU you plan to ship:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --no-flash --massflash <N> \
     -S <smallest-target-size, e.g. 100GiB> \
     -c tools/kernel_flash/flash_l4t_t264_nvme.xml \
     --external-only --network usb0 \
     jetson-agx-thor-devkit internal
  1. Because GPT is regenerated at packaging time, the bundle now flashes cleanly onto any drive ≥ that size — 128GB, 500GB, or 1TB.
  2. To reclaim the extra capacity on larger SKUs, add a first-boot systemd oneshot serviceon the target:
  growpart /dev/nvme0n1p1
  resize2fs /dev/nvme0n1p1

您说的第二种方法确实可行,我们之前就是使用第二种方法,因为上传的烧写环境很大,所以还是想看看第一种方法是否可以跑通,我这边使用

sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -b -c jetson-agx-thor-devkit

命令将板卡同步镜像到开发环境,依旧烧写小于1T的硬盘就有问题。

完整流程:

拷贝板卡镜像到开发环境:

sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -b -c jetson-agx-thor-devkit

生成 massflash 包:

sudo FUSELEVEL=fuselevel_production ./tools/kernel_flash/l4t_initrd_flash.sh --use-backup-image --no-flash --network usb0 --massflash 1 jetson-agx-thor-devkit internal

烧写进板卡:

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 1 --network usb0 jetson-agx-thor-devkit internal

I think you would need to initially flash the board with your smallest size drive and then create golden image on it.

For Thor you may need EXT_NUM_SECTORS for NVMe devices smaller than the default supported size of > 234gb
.

  1. Check your smallest drive’s real sector count:
    sudo blockdev --getsz /dev/nvme0n1

For example, if that returns 250069680, initially flash it with:

sudo EXT_NUM_SECTORS=250069680 \
./tools/kernel_flash/l4t_initrd_flash.sh \
    -S 64GiB \
    --erase-all \
    jetson-agx-thor-devkit internal
  1. Boot the 128GB system and install and configure requirements for golden image.

  2. Create the backup from that 128gb device:

sudo ./tools/backup_restore/l4t_backup_restore.sh -e nvme0n1 -b -c jetson-agx-thor-devkit
  1. Use backup/massflash patch and generate the massflash package:
sudo FUSELEVEL=fuselevel_production \
./tools/kernel_flash/l4t_initrd_flash.sh \
    --use-backup-image \
    --no-flash \
    --network usb0 \
    --massflash 1 \
    jetson-agx-thor-devkit internal
  1. Flash your board:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh \
    --flash-only \
    --massflash 1 \
    --network usb0 \
    jetson-agx-thor-devkit internal

非常感谢您的支持,目前测试已经没有问题。

您好,这个patch可以应用到L4T 38.4(Jetpack 7.1)吗。