T5000自研载板,JetPack 7.2.1,不带nvme ssd,flash script刷机

使用刷机命令
sudo SKIP_EEPROM_CHECK=1 ./l4t_initrd_flash.sh jetson-agx-thor-devkit internal
刷机仍然会探测nvme ssd设备,现在载板上没有nvme ssd,我需要全部刷到模组自带的emmc里面,需要怎么修改呢?

AGX Thor does not have emmc in the SOM.

所以刷系统,必须是刷到nvme ssd吗?

Yes, it will flash into NVMe SSD by default.
Please check the board config(jetson-agx-thor-devkit.conf) for details.

You could see if following actually works to flash rootfs to usb drive.

Linux_for_Tegra/‌tools/‌kernel_flash/README_initrd_flash.txt

Workflow 3: How to flash to an external storage:
Requirements
To flash to an externally connected storage device, you need to create your own
partition config xml file for the external device. For information about how to
do this, see the 'External Storage Device Partition' section in the developer
guide.

There are three examples xml files in the tools/kernel_flash folder. These
examples assume that the attached external storage is 64 gibibytes and above:
- flash_l4t_external.xml contains both the rootfs, kernel and kernel-dtb on the
  external storage device.
- flash_l4t_nvme_rootfs_enc.xml is a sample partition configuration that is used for
  disk encryption feature on external storage.
- flash_l4t_nvme_rootfs_ab.xml is a sample partition configuration that is used for the
  rootfs ab feature on external storage.

To flash, run this command from the Linux_for_Tegra folder:
$ sudo ADDITIONAL_DTB_OVERLAY_OPT=<opt> ./l4t_initrd_flash.sh --external-device <external-device> \
      -c <external-partition-layout> \
      [ --external-only ] \
      <board-name> <rootdev>
Where:
- <board-name> and <rootdev> variables are similar to those that are used for
  flash.sh. (See more details in the official documentation's board name
  table).
- <root-dev> can be set to "mmcblk0p1" or "internal" for booting from internal
  device or "external", "sda1" or "nvme0n1p1" for booting from external device.
  If your external device's external partition layout has "APP" partition,
  specifying here "nvme0n1p1" will generate the rootfs boot commandline:
  root=/dev/nvme0n1p1. If <rootdev> is internal or external, the tool will
  generate rootfs commandline: root=PARTUUID=...
  Note: For the Jetson units with dual NVMe, <rootdev> must be internal or external,
  so that root=PARTUUID=... is used in the kernel commandline.
- <external-partition-layout> is the partition layout for the external storage
  device in XML format.
- <external-device> is the name of the external storage device you want to flash
  as it appears in the '/dev/' folder (i.e nvme0n1p1, nvme1n1p1, sda1).
- Use --external-only to flash only the external storage device.
  If you do not provide the "--external-only" option, the command will flash both internal and
  external storage devices.
- (Optional) Declare ADDITIONAL_DTB_OVERLAY_OPT=<opt> where <opt> can be BootOrderNvme.dtbo.
  This allows UEFI to prioritize booting from NVMe SSD. <opt> can also be BootOrderUsb.dtbo, which
  allows UEFI to prioritize booting from the USB storage drive

Flash USB-connected storage use APP partition on it as root filesystem

sudo ADDITIONAL_DTB_OVERLAY_OPT="BootOrderUsb.dtbo" ./l4t_initrd_flash.sh --external-device sda1 
-c ./tools/kernel_flash/flash_l4t_t264_nvme.xml --showlogs  jetson-agx-thor-devkit internal

好的,我用这个方法试一下

你好,现在我更换了载板,板子上nvme ssd连接到了pcie c3上。但是现在我只刷写固件,也会报错。
配置文件更改如下:
~/Linux_for_Tegra/p3834-0008-p4071-0000-nvme.conf

-UPHY_CONFIG=“tegra264-mb1-bct-uphy-lanes-p4071-0000.dts”;

+UPHY_CONFIG=“”

+ODMDATA=“uphy0-config-6,pcie@3_status=okay,uphy1-config-0,pcie@4_status=okay”*;
*
Linux_for_Tegra/bootloader/generic/BCT/tegra264-mb2-bct-common.dtsi

  • cvb_eeprom_read_size = <0x100>;
  • cvb_eeprom_read_size = <0x0>;
    设备树更改如下:
    ~/Linux_for_Tegra/source/hardware/nvidia/t264/nv-public/nv-platform/tegra264-p4071-0000.dtsi
    /* PCIe C3 is SNN on Jedha */

      pcie@a808440000 {
    
          *//status = "disabled";*
    
          status = "okay";
    
      };
    
    
    
      */\* PCIe C4 is SNN on Jedha \*/*
    
      pcie@a808460000 {
    
          *//status = "disabled";*
    
          status = "okay";
    
      };
    
    
    
      */\* PCIe C5 to enable NVME \*/*
    
      pcie@a808480000 {
    
          *//status = "okay";*
    
          status = "disabled";
    
      };
    

执行烧写命令:
sudo SKIP_EEPROM_CHECK=1 BOARDID=3834 BOARDSKU=0008 RAMCODE=0 ./l4t_initrd_flash.sh --qspi-only --showlogs jetson-agx-thor-devkit internal
串口日志如附件:

uartlog.log (73.1 KB)

主机侧日志:

host.log (365.0 KB)

please do all of these

  1. . sudo fdtput -t i bootloader/generic/tegra264-bpmp-3834-0008-4071-xxxx.dtb /uphy uphy0-config 6

  2. . sudo fdtput -t s bootloader/generic/tegra264-bpmp-3834-0008-4071-xxxx.dtb /pcie/pcie@3 status okay

  3. . sudo fdtput -t s kernel/dtb/tegra264-p4071-0080+p3834-0008-qspi-ufs-nvme.dtb /bus@0/pcie@a808440000 status okay

  4. . echo ‘ODMDATA=“uphy0-config-6,pcie@3_status=okay”;’ >> p3834-0008-p4071-0000-nvme.conf

  5. . sudo sed -i ‘s|^UPHY_CONFIG=.*|UPHY_CONFIG=“”|g’ p3834-0008-p4071-0000-nvme.conf (set UPHY_CONFIG to empty).”

Also, the flash command seems not correct to me. Not sure why you just want to flash qspi only.

是刷写系统失败,所有我想单独烧录qspi试一下,现在系统已经烧录成功了