R39.2.1 用T5000 模拟t3000性能 烧录问题

hi:

我看开发文档中有这一项,用T5000的模组模拟t3000的性能,我按照那个命令发现烧录失败,能帮忙看看是哪里的问题,谢谢!

sudo ./l4t_initrd_flash.sh p3834-0008-as-p5767-0000-nvme internal
mingming@xyz-build:~/Workspace/jp7.2.1/Linux_for_Tegra$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0bda:b00c Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device 033: ID 0955:7020 NVIDIA Corp. L4T (Linux for Tegra) running on Tegra
Bus 001 Device 049: ID 0955:7026 NVIDIA Corp. APX
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
mingming@xyz-build:~/Workspace/jp7.2.1/Linux_for_Tegra$ 
mingming@xyz-build:~/Workspace/jp7.2.1/Linux_for_Tegra$ sudo ./l4t_initrd_flash.sh p3834-0008-as-p5767-0000-nvme internal
./l4t_initrd_flash.sh: line 238: /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
# Entry added by NVIDIA initrd flash tool
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/tmp 127.0.0.1(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
Export list for localhost:
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/tmp 127.0.0.1
14:30:08.402 - Debug: Checking UFW status and NFS port rules...
14:30:08.459 - Debug: UFW is not active. NFS port is accessible.
14:30:08.460 - Debug: Checking VPN connections...
14:30:08.464 - Debug: IPSec service is not running.
14:30:08.466 - Debug: VPN routes none in tun|tap|ppp|vpn|gpd.
14:30:08.467 - Debug: No VPN connection detected.
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --no-flash p3834-0008-as-p5767-0000-nvme internal
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 49: /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 50: /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 52: /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 53: /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 54: /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 55: /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 56: /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 57: /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash.func: line 310: /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
************************************
*                                  *
*  Step 1: Generate flash packages *
*                                  *
************************************
Run image gen script: /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_create_images_for_kernel_flash.sh --boot-chain-flash ALL --boot-chain-select A p3834-0008-as-p5767-0000-nvme internal
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_create_images_for_kernel_flash.sh: line 467: /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_create_images_for_kernel_flash.sh: line 744: /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
Create folder to store images to flash
Generate image for internal storage devices
Generate images to be flashed
ADDITIONAL_DTB_OVERLAY=""  /home/mingming/Workspace/jp7.2.1/Linux_for_Tegra/flash.sh --no-flash --sign --boot-chain-flash ALL --boot-chain-select A  p3834-0008-as-p5767-0000-nvme internal

Error: Invalid target board - p3834-0008-as-p5767-0000-nvme.

Usage: sudo ./flash.sh [options] <target_board> <rootdev>
  Where,
        target board: Valid target board name or 'autodetect'
        rootdev: Proper root device.
    options:
        -b <emc_bctfile> ------ use the specified emc_bct file.
        -c <cfgfile> ---------- Flash partition table config file.
        -d <dtbfile> ---------- device tree file.
        -e <bpmp_file> -------- use the specified bpmp file.
        -f <flashapp> --------- Path to flash application (tegraflash.py)
        -g <bpmp_dtb_file> ---- use the specified bpmp dtb file
        -h -------------------- print this message.
        -i <enc rfs key file>-- key for disk encryption support.
        -k <partition id> ----- partition name or number specified in flash.cfg.
        -l <tbcdtbfile> ------- cpu bootloader dtb file.
        -m <mts preboot> ------ MTS preboot such as mts_preboot_si.
        -n <nfs args> --------- Static nfs network assignments
                                <Client IP>:<Server IP>:<Gateway IP>:<Netmask>
        -o <odmdata> ---------- ODM data.
        -r -------------------- skip building and reuse existing system.img.
        -u <PKC key file>------ PKC key or PKC keylist used for odm fused board.
                                This option is also used for cpu-bootloader signing in PV key feature.
        -v <SBK key file>------ Secure Boot Key (SBK) key used for ODM fused board.
        -w <wb0boot> ---------- warm boot binary such as nvtbootwb0.bin
        -x <tegraid> ---------- Tegra CHIPID.
        -B <boardid> ---------- BoardId.
        -C <cmdline> ---------- Kernel commandline arguments.
                                WARNING:
                                Each option in this kernel commandline gets
                                higher preference over the values set by
                                flash.sh. In case of NFS booting, this script
                                adds NFS booting related arguments, if -i option
                                is omitted.
        -F <uefi_bin_name> ---- UEFI binary name such as uefi_t26x_general.bin.
        -G <file name> -------- Read partition and save image to file.
        -I <initrd> ----------- initrd file. Null initrd is default.
        -K <kernel> ----------- Kernel image file such as zImage or Image.
        -L <bootloader> ------- Bootloader such as cboot.bin or u-boot-dtb.bin.
        -M <mts boot> --------- MTS boot file such as mts_si.
        -N <nfsroot> ---------- i.e. <my IP addr>:/my/exported/nfs/rootfs.
        -R <rootfs dir> ------- Sample rootfs directory.
        -S <size> ------------- Rootfs size in bytes. Valid only for internal
                                rootdev. KiB, MiB, GiB short hands are allowed,
                                for example, 1GiB means 1024 * 1024 * 1024 bytes.
        -T <ext num sectors> ---The number of the sectors of the external storage device.
                                The default value is 119537664 if this option is not set.
        -U <int num sectors> ---The number of the sectors of the internal storage device.
                                The default value is 119537664 if this option is not set.
        -Z -------------------- Print configurations and then exit.
        --no-flash ------------ perform all steps except physically flashing the board.
                                This will create a system.img.
                                If combined with --rcm-boot, the command will generate rcmboot_blob.
                                If combined with --read-info, the command will generate readinfocmd.txt.
        --external-device------ Generate flash images for external devices
        --sparseupdate--------- only flash partitions that have changed. Currently only support SPI flash memory
        --no-systemimg -------- Do not create or re-create system.img.
        --bup ----------------- Generate bootloader update payload(BUP).
        --single-image-bup <part name> Generate specified single image BUP, this must work with --bup.
        --bup-type <type> ----- Generate specific type bootloader update payload(BUP), such as bl or kernel.
        --multi-spec----------- Enable support for building multi-spec BUP.
        --clean-up------------- Clean up BUP buffer when multi-spec is enabled.
        --usb-instance <id> --- Specify the USB instance to connect to;
                                <id> = USB port path (e.g. 3-14).
        --no-root-check ------- Typical usage of this script require root permissions.
                                Pass this option to allow running the script as a
                                regular user, in which case only specific combinations
                                of command-line options will be functional.
        --uefi-keys <keys_conf> Specify UEFI keys configuration file.
        --rcm-boot ------------ Do RCM boot instead of physically flashing the board.
        --sign ---------------- Sign images and store them under "bootloader/signed"
                                directory. The board will not be physically flashed.
        --image --------------- Specify the image to be written into board.
        --boot-chain-flash <c>  Flash only a specific boot chain (ex. "A, "B", "all").
                                Defaults to "all", inputs are case insensitive.
                                Not suitable for production.
        --boot-chain-select <c> Specify booting chain (ex. "A" or "B") after the board is flashed.
                                Defaults to "A", inputs are case insensitive.
        --pv-crt -------------- The certificate for the key that is used to sign cpu_bootloader
        --with-systemimg ------ Generate system images also when using -k option
        --pv-enc <enc_key>----- The encryption key that is used to encrypt cpu_bootloader.
        --uefi-enc <uefi_enc_key> Key file (0x23: 32-byte) to encrypt UEFI payloads
        --uda-dir-------------- Directory to store user data that will be encrypted in UDA partition.
        --generic-passphrase -- Use generic passphrase for disk encryption.
        --disable-random-iv --- Disable generation of random IV, SALT1, SALT2 and DERSTR.
        --read-info ----------- Read and display board related info, fuse info (based on fuse_t234.xml),
                                and EEPROM content.
        --reuse-uuid ---------  Reuse uuid which is already generated first time.
        --qspi-only  ---------  Flash QSPI device only.
        --passthrough --------  Additional options to passthrough the tegraflash command
        --read-ramcode -------  Generate read_ramcode script in the flashcmd.txt command script.
        --gen-read-eeprom ----  Generate read_eeprom script with all signed binaries. User later can run
                                read_eeprom.sh from host to dump EEPROM content on a target device after
                                putting the target device in RCM mode. Since all binaries are signed already,
                                there is no key needed even the device has PKC fuse burned.
        --hsm ----------------  Enable HSM for signing (and encrypting) images. This option must be used with
                                -u option (image signing). -v or --pv-enc is optional (image encryption).
        --debug --------------  Enable debug mode, and enable '--keep' option to tegraflash.py
                                For now, the debug mode will enable saving of unencrypted and unsigned files
                                for UEFI encryption/signing debugging.
        --gen-systemimg-only -  Generate system.img only, program then exits.

Error: failed to generate images
Cleaning up...
mingming@xyz-build:~/Workspace/jp7.2.1/Linux_for_Tegra$ 

我们自己设计的板子,估计是用下面的命令

sudo EXT_NUM_SECTORS=239075328 SKIP_EEPROM_CHECK=1 UNIFIED_FLASH=1 ROOTFS_AB=1 ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --external-device nvme1n1 -c tools/kernel_flash/flash_l4t_t264_nvme_rootfs_ab.xml --showlogs --erase-all p3834-0008-as-p5767-0000-nvme nvme1n1p1

p3834-0008-as-p5767-0000-p4071-0000-nvme.conf

hi:

我还想问下是不是 要用这个p3834-0008-as-p5767-0000-p4071-0000-nvme 编译一遍,然后再烧录?

I think so. Here’s the file and nr_cpus=8 mem=32G"; looks like the description of T3000 from the webpage for your picture above.

platform_emulation_overlay()
{
        CMDLINE_ADD+=" nr_cpus=8 mem=32G";
        OVERLAY_DTB_FILE+=",tegra264-p4071-0000+p3834-0008-as-p5767-0000.dtbo";
        BPFDTB_FILE="tegra264-bpmp-3834-0008-as-5767-0000-4071-xxxx.dtb";
}

hi:

thanks

大神,这个问题解决了吗?我这边也遇到这个问题了,用p3834-0008-as-p5767-0000-p4071-0000-nvme这个配置也不行,和你不同的是,我用的是官方的AGX Thor 完整的一整套开发套件,核心板是T5000,目前跑的是R39.2.0版本SDK,设备进入Recovery模式下后进行的操作如下:

p3834-0008-as-p5767-0000-nvme

ubuntu@krinwave:/media/data/zhongzy/r39.2.1/Linux_for_Tegra$ sudo ./l4t_initrd_flash.sh p3834-0008-as-p5767-0000-nvme internal
[sudo] password for ubuntu:
./l4t_initrd_flash.sh: line 238: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory

Entry added by NVIDIA initrd flash tool

/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/tmp 127.0.0.1(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
Export list for localhost:
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/tmp 127.0.0.1
11:21:49.264 - Debug: Checking UFW status and NFS port rules…
11:21:49.314 - Debug: UFW is not active. NFS port is accessible.
11:21:49.315 - Debug: Checking VPN connections…
11:21:49.318 - Debug: IPSec service is not running.
11:21:49.319 - Debug: VPN routes none in tun|tap|ppp|vpn|gpd.
11:21:49.320 - Debug: No VPN connection detected.
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --no-flash p3834-0008-as-p5767-0000-nvme internal
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 49: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 50: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 52: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 53: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 54: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 55: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 56: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh: line 57: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash.func: line 310: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory


  •                              *
    
  • Step 1: Generate flash packages *

  •                              *
    

Run image gen script: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_create_images_for_kernel_flash.sh --boot-chain-flash ALL --boot-chain-select A p3834-0008-as-p5767-0000-nvme internal
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_create_images_for_kernel_flash.sh: line 467: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_create_images_for_kernel_flash.sh: line 744: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/p3834-0008-as-p5767-0000-nvme.conf: No such file or directory
Create folder to store images to flash
Generate image for internal storage devices
Generate images to be flashed
ADDITIONAL_DTB_OVERLAY=“” /media/data/zhongzy/r39.2.1/Linux_for_Tegra/flash.sh --no-flash --sign --boot-chain-flash ALL --boot-chain-select A p3834-0008-as-p5767-0000-nvme internal

Error: Invalid target board - p3834-0008-as-p5767-0000-nvme.

Usage: sudo ./flash.sh [options] <target_board>
Where,
target board: Valid target board name or ‘autodetect’
rootdev: Proper root device.
options:
-b <emc_bctfile> ------ use the specified emc_bct file.
-c ---------- Flash partition table config file.
-d ---------- device tree file.
-e <bpmp_file> -------- use the specified bpmp file.
-f --------- Path to flash application (tegraflash.py)
-g <bpmp_dtb_file> ---- use the specified bpmp dtb file
-h -------------------- print this message.
-i – key for disk encryption support.
-k ----- partition name or number specified in flash.cfg.
-l ------- cpu bootloader dtb file.
-m ------ MTS preboot such as mts_preboot_si.
-n --------- Static nfs network assignments
:::
-o ---------- ODM data.
-r -------------------- skip building and reuse existing system.img.
-u ------ PKC key or PKC keylist used for odm fused board.
This option is also used for cpu-bootloader signing in PV key feature.
-v ------ Secure Boot Key (SBK) key used for ODM fused board.
-w ---------- warm boot binary such as nvtbootwb0.bin
-x ---------- Tegra CHIPID.
-B ---------- BoardId.
-C ---------- Kernel commandline arguments.
WARNING:
Each option in this kernel commandline gets
higher preference over the values set by
flash.sh. In case of NFS booting, this script
adds NFS booting related arguments, if -i option
is omitted.
-F <uefi_bin_name> ---- UEFI binary name such as uefi_t26x_general.bin.
-G -------- Read partition and save image to file.
-I ----------- initrd file. Null initrd is default.
-K ----------- Kernel image file such as zImage or Image.
-L ------- Bootloader such as cboot.bin or u-boot-dtb.bin.
-M --------- MTS boot file such as mts_si.
-N ---------- i.e. :/my/exported/nfs/rootfs.
-R ------- Sample rootfs directory.
-S ------------- Rootfs size in bytes. Valid only for internal
rootdev. KiB, MiB, GiB short hands are allowed,
for example, 1GiB means 1024 * 1024 * 1024 bytes.
-T —The number of the sectors of the external storage device.
The default value is 119537664 if this option is not set.
-U —The number of the sectors of the internal storage device.
The default value is 119537664 if this option is not set.
-Z -------------------- Print configurations and then exit.
–no-flash ------------ perform all steps except physically flashing the board.
This will create a system.img.
If combined with --rcm-boot, the command will generate rcmboot_blob.
If combined with --read-info, the command will generate readinfocmd.txt.
–external-device------ Generate flash images for external devices
–sparseupdate--------- only flash partitions that have changed. Currently only support SPI flash memory
–no-systemimg -------- Do not create or re-create system.img.
–bup ----------------- Generate bootloader update payload(BUP).
–single-image-bup Generate specified single image BUP, this must work with --bup.
–bup-type ----- Generate specific type bootloader update payload(BUP), such as bl or kernel.
–multi-spec----------- Enable support for building multi-spec BUP.
–clean-up------------- Clean up BUP buffer when multi-spec is enabled.
–usb-instance — Specify the USB instance to connect to;
= USB port path (e.g. 3-14).
–no-root-check ------- Typical usage of this script require root permissions.
Pass this option to allow running the script as a
regular user, in which case only specific combinations
of command-line options will be functional.
–uefi-keys <keys_conf> Specify UEFI keys configuration file.
–rcm-boot ------------ Do RCM boot instead of physically flashing the board.
–sign ---------------- Sign images and store them under “bootloader/signed”
directory. The board will not be physically flashed.
–image --------------- Specify the image to be written into board.
–boot-chain-flash Flash only a specific boot chain (ex. "A, “B”, “all”).
Defaults to “all”, inputs are case insensitive.
Not suitable for production.
–boot-chain-select Specify booting chain (ex. “A” or “B”) after the board is flashed.
Defaults to “A”, inputs are case insensitive.
–pv-crt -------------- The certificate for the key that is used to sign cpu_bootloader
–with-systemimg ------ Generate system images also when using -k option
–pv-enc <enc_key>----- The encryption key that is used to encrypt cpu_bootloader.
–uefi-enc <uefi_enc_key> Key file (0x23: 32-byte) to encrypt UEFI payloads
–uda-dir-------------- Directory to store user data that will be encrypted in UDA partition.
–generic-passphrase – Use generic passphrase for disk encryption.
–disable-random-iv — Disable generation of random IV, SALT1, SALT2 and DERSTR.
–read-info ----------- Read and display board related info, fuse info (based on fuse_t234.xml),
and EEPROM content.
–reuse-uuid --------- Reuse uuid which is already generated first time.
–qspi-only --------- Flash QSPI device only.
–passthrough -------- Additional options to passthrough the tegraflash command
–read-ramcode ------- Generate read_ramcode script in the flashcmd.txt command script.
–gen-read-eeprom ---- Generate read_eeprom script with all signed binaries. User later can run
read_eeprom.sh from host to dump EEPROM content on a target device after
putting the target device in RCM mode. Since all binaries are signed already,
there is no key needed even the device has PKC fuse burned.
–hsm ---------------- Enable HSM for signing (and encrypting) images. This option must be used with
-u option (image signing). -v or --pv-enc is optional (image encryption).
–debug -------------- Enable debug mode, and enable ‘–keep’ option to tegraflash.py
For now, the debug mode will enable saving of unencrypted and unsigned files
for UEFI encryption/signing debugging.
–gen-systemimg-only - Generate system.img only, program then exits.

Error: failed to generate images
Cleaning up…

p3834-0008-as-p5767-0000-p4071-0000-nvme

ubuntu@krinwave:/media/data/zhongzy/r39.2.1/Linux_for_Tegra$ sudo ./l4t_initrd_flash.sh p3834-0008-as-p5767-0000-p4071-0000-nvme internal
/media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --no-flash p3834-0008-as-p5767-0000-p4071-0000-nvme internal


  •                              *
    
  • Step 1: Generate flash packages *

  •                              *
    

Run image gen script: /media/data/zhongzy/r39.2.1/Linux_for_Tegra/tools/kernel_flash/l4t_create_images_for_kernel_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_t264_nvme.xml --boot-chain-flash ALL --boot-chain-select A p3834-0008-as-p5767-0000-p4071-0000-nvme internal
Create folder to store images to flash
Generate image for internal storage devices
Generate images to be flashed
ADDITIONAL_DTB_OVERLAY=“” /media/data/zhongzy/r39.2.1/Linux_for_Tegra/flash.sh --no-flash --sign --boot-chain-flash ALL --boot-chain-select A p3834-0008-as-p5767-0000-p4071-0000-nvme internal

###############################################################################

L4T BSP Information:

R39 , REVISION: 2.1

User release: 0.0

###############################################################################

Target Board Information:

Name: p3834-0008-as-p5767-0000-p4071-0000-nvme, Board Family: generic, SoC: Tegra 234,

OpMode: production, Boot Authentication: NS,

Disk encryption: disabled ,

###############################################################################
Error: The Actual SoC ID(0x23) mismatches intended p3834-0008-as-p5767-0000-p4071-0000-nvme SoC ID(0x26).
Error: failed to generate images
Cleaning up…
ubuntu@krinwave:/media/data/zhongzy/r39.2.1/Linux_for_Tegra$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 003: ID 413c:301a Dell Computer Corp. Dell MS116 Optical Mouse
Bus 001 Device 005: ID 0955:7323 NVIDIA Corp. APX
Bus 001 Device 007: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 078: ID 413c:2113 Dell Computer Corp. KB216 Wired Keyboard
Bus 001 Device 125: ID 0955:7026 NVIDIA Corp. APX
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 05e3:0612 Genesys Logic, Inc. Hub
Bus 002 Device 003: ID 0bda:0328 Realtek Semiconductor Corp. USB3.0-CRW

设备要么找不到模拟用的配置文件,要么设备ID匹配不上。
也请各路大神指导,官方人员看到也请解答一下,非常感谢。

I do not know if you must use boardctl as described below, but that is what is in this document.

https://docs.nvidia.com/jetson/archives/r39.2.1/DeveloperGuide/SD/PlatformPowerAndPerformance/JetsonThor.html#platform-emulation

To emulate the T3000 module by using the Jetson AGX Thor developer kit with this BSP, follow these steps:

Untar the Jetpack 7.2.1 bsp package:

     tar xf ${L4T_RELEASE_PACKAGE}
     sudo tar xpf ${SAMPLE_FS_PACKAGE} -C Linux_for_Tegra/rootfs/
     cd Linux_for_Tegra/
     sudo ./tools/l4t_flash_prerequisites.sh
     sudo ./apply_binaries.sh --openrm

Put the Jetson AGX Thor developer kit into recovery mode:
./tools/board_automation/boardctl -t thor-jetson recovery

Flash the board using the corrected T3000 emulation flash configuration
sudo ./l4t_initrd_flash.sh p3834-0008-as-p5767-0000-p4071-0000-nvme internal

Reset the board:
./tools/board_automation/boardctl -t thor-jetson reset

非常感谢您的答疑,我先前就是像你回答的那样操作的,

现在问题已解决,问题出现在烧录系统的Ubuntu主机端,除了连接了进入了Recovery模式的Thor设备外,同时该主机也连接了另一台同样进入了Recovery模式的Orin NX设备,匹配设备ID时可能错误地用Orin NX设备id去匹配了,导致烧录失败。
现在有个疑问,既然每个型号的PID都不一样,NVIDIA官方是否可以在多型号设备烧录时自动匹配设备ID ?如果可以实现的话,建议纳入官方的优化项。

This looks like it could help your case.

Linux_for_Tegra$ grep -A58 “findadev(” nvautoflash.sh
nvmassfusegen.sh has a copy of this function too.

findadev()
{
	# Splitting this line is too dangerous.
	local devpaths=($(find /sys/bus/usb/devices/usb*/ -name devnum -print0 | {
		local fn_devnum;
		local found=();
		while read -r -d "" fn_devnum; do
			local dir;
			local vendor;
			local product;
			local busnum;
			local devpath;
			local fn_busnum;
			local fn_devpath;
			dir="$(dirname "${fn_devnum}")";
			vendor="$(cat "${dir}/idVendor")";
			if [ "${vendor}" != "0955" ]; then
				continue
			fi;
			product="$(cat "${dir}/idProduct")";
			case "${product}" in
			"7023") ;;	# AGX Orin
			"7223") ;;	# SKU4 Orin
			"7323") ;;	# Orin NX 16GB
			"7423") ;;	# Orin NX 8GB
			"7523") ;;	# Orin Nano 8GB
			"7623") ;;	# Orin Nano 4GB
			"7026") ;;	# AGX Thor
			"7226") ;;	# AGX Thor T4000
			"7326") ;;	# AGX Thor prod fused
			*) continue ;;
			esac
			fn_busnum="${dir}/busnum";
			if [ ! -f "${fn_busnum}" ]; then
				continue;
			fi;
			fn_devpath="${dir}/devpath";
			if [ ! -f "${fn_devpath}" ]; then
				continue;
			fi;
			# Only include devices for which the DEVNAME exists. In a container
			# environment, the DEVNAME for this device may not have been mapped
			# in, which is the case for when a device is in recovery mode, but
			# that device is not mapped into the current container.
			devname=$(udevadm info --query=property "$dir" | grep DEVNAME | cut -d= -f2)
			if [ ! -e "$devname" ]; then
				continue
			fi

			busnum="$(cat "${fn_busnum}")";
			devpath="$(cat "${fn_devpath}")";

			found+=("${busnum}-${devpath}");
		done;
		echo "${found[@]}";
	}))
	echo "${#devpaths[@]}";
}

Or

sudo grep -ir idProduct --include=*.sh --exclude-dir=rootfs --exclude-dir=source |sort
nvautoflash.sh:			product="$(cat "${dir}/idProduct")";
nvautoflash.sh:			product="$(cat "${dir}/idProduct")";
nvmassfusegen.sh:			product="$(cat "${dir}/idProduct")";
nvmassfusegen.sh:		product="\\\$(cat "\\\${dir}/idProduct")"
nvsdkmanager_flash.sh:    for f in /sys/bus/usb/devices/*/idProduct; do
tools/kernel_flash/initrd_flash/nv_enable_remote.sh:	echo 0x7035 > idProduct
tools/kernel_flash/initrd_flash/nv_enable_remote.sh:	echo 0x7100 > /sys/kernel/config/usb_gadget/l4t/idProduct
tools/kernel_flash/initrd_flash/nv_enable_remote.sh:	# If this script is modified outside NVIDIA, the idVendor and idProduct values
tools/kernel_flash/l4t_initrd_flash_internal.sh:# respectively, vendor, model, idVendor, idProduct, and serial.
tools/kernel_flash/l4t_initrd_flash.sh:			product="$(cat "${dir}/idProduct")"

Thank you very much