JP6.0 about Generating a Flash Image to Flash Later

Nvidia团队好:
我有三个问题
一,我注意到文档中关于生成刷写Image的部分相比5.1.2有所变化,在不连接目标板的情况下,使用下面的命令来生成

$ sudo BOARDID=3701 BOARDSKU=0000 FAB=500 BOARDREV=500 CHIP_SKU=D0 RAMCODE=0 FUSELEVEL=fuselevel_production ./flash.sh --no-flash jetson-agx-orin-devkit mmcblk0p1

以前可能只指定BOARDID BOARDSKU 就可以
可以介绍一下BOARDREV,CHIP_SKU,RAMCODE,FUSELEVEL的意义吗
文档里貌似没有写,像RAMCODE ,我在论坛里搜了一下,没有多少相关的信息。

二,SDKManager中显示,对于Jetpack 6.X Supported Host Operating System 最低为Ubuntu 20.04 是不是意味着,Ubuntu 18.04 不适合生成刷写镜像?
因为我在Ubuntu 18.04中,rootfs为 tegra_linux_sample-root-filesystem_r36.3.0_aarch64.tbz2
使用上述命令

会报错

user@HostSoft:/home/linuxHost/jenkins/image_6.0/temp/L4t_32G$ sudo BOARDID=3701 BOARDSKU=0000 FAB=500 BOARDREV=500 CHIP_SKU=D0 RAMCODE=0 FUSELEVEL=fuselevel_production ./flash.sh --no-flash jetson-agx-orin-devkit mmcblk0p1
[sudo] password for user:
###############################################################################
# L4T BSP Information:
# R36 , REVISION: 3.0
# User release: 0.0
###############################################################################
Board ID(3701) version(500) sku(0000) revision(500)
Chip SKU(D0) ramcode() fuselevel(fuselevel_production) board_FAB(500)
Copy /home/linuxHost/jenkins/image_6.0/temp/L4t_32G/kernel/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb to /home/linuxHost/jenkins/image_6.0/temp/L4t_32G/kernel/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb.rec
copying bctfile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-p3701-0000-sdram-l4t.dts)... done.
copying minratchet_config(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-mb1-bct-ratchet-p3701-0000.dts)... done.
copying device_config(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-mb1-bct-device-p3701-0000.dts)... done.
copying misc_config(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-mb1-bct-misc-p3701-0000.dts)... done.
copying pinmux_config(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-mb1-bct-pinmux-p3701-0000-a04.dtsi)... done.
copying gpioint_config(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-mb1-bct-gpioint-p3701-0000.dts)... done.
copying pmic_config(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-mb1-bct-pmic-p3701-0005.dts)... done.
copying pmc_config(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-mb1-bct-padvoltage-p3701-0000-a04.dtsi)... done.
copying deviceprod_config(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-mb1-bct-cprod-p3701-0000.dts)... done.
copying prod_config(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-mb1-bct-prod-p3701-0000.dts)... done.
copying scr_config(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-mb2-bct-scr-p3701-0000.dts)... done.
copying wb0sdram(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-p3701-0000-wb0sdram-l4t.dts)... done.
copying bootrom_config(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-mb1-bct-reset-p3701-0000.dts)... done.
Existing uphylane_config(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/tegra234-mb1-bct-uphylane-si.dtsi) reused.
copying dev_params(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-br-bct-p3701-0000.dts)... done.
copying dev_params_b(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-br-bct_b-p3701-0000.dts)... done.
copying mb2bct_cfg(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/BCT/tegra234-mb2-bct-misc-p3701-0000.dts)... done.
Existing pscfwfile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/pscfw_t234_prod.bin) reused.
Existing pscbl1file(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/psc_bl1_t234_prod.bin) reused.
Existing mtsmcefile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/mce_flash_o10_cr_prod.bin) reused.
Existing tscfwfile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/tsec_t234.bin) reused.
Existing mb2applet(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/applet_t234.bin) reused.
Existing bootloader(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/mb2_t234.bin) reused.
copying initrd(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/l4t_initrd.img)... done.
bl is uefi
Making Boot image... done.
Not signing of boot.img
Making recovery ramdisk for recovery image...
Re-generating recovery ramdisk for recovery image...
/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/ramdisk_tmp /home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader /home/linuxHost/jenkins/image_6.0/temp/L4t_32G
47738 blocks

gzip: /home/linuxHost/jenkins/image_6.0/temp/L4t_32G/kernel/Image: not in gzip format
_BASE_KERNEL_VERSION=5.15.136-tegra
cp: cannot stat '/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/rootfs/usr/lib/modules/5.15.136-tegra/modules.builtin.alias.bin': No such file or directory
warning: cp -f /home/linuxHost/jenkins/image_6.0/temp/L4t_32G/rootfs/usr/lib/modules/5.15.136-tegra/modules.builtin.alias.bin /home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/ramdisk_tmp//lib/modules/5.15.136-tegra/modules.builtin.alias.bin
77878 blocks
Making Recovery image...
copying recdtbfile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/kernel/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb.rec)... done.
20+0 records in
20+0 records out
20 bytes copied, 0.000413593 s, 48.4 kB/s
Existing sosfile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/mb1_t234_prod.bin) reused.
Existing tegraboot(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/mb2_t234.bin) reused.
Existing cpu_bootloader(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/mb2_t234.bin) reused.
Existing mb2blfile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/mb2_t234.bin) reused.
Existing xusbfile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/xusb_t234_prod.bin) reused.
Existing pvafile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/nvpva_020.fw) reused.
Existing dcefile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/display-t234-dce.bin) reused.
Existing nvdecfile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/nvdec_t234_prod.fw) reused.
Existing psc_rf(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/psc_rf_t234_prod.bin) reused.
Existing mb2_rf(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/mb2rf_t234.bin) reused.
Existing mb1file(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/mb1_t234_prod.bin) reused.
Existing bpffile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/bpmp_t234-TE990M-A1_prod.bin) reused.
copying bpfdtbfile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/generic/tegra234-bpmp-3701-0000-3737-0000.dtb)... done.
Existing camerafw(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/camera-rtcpu-t234-rce.img) reused.
Existing apefile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/adsp-fw.bin) reused.
Existing spefile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/spe_t234.bin) reused.
Existing wb0boot(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/sc7_t234_prod.bin) reused.
Existing tosfile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/tos-optee_t234.img) reused.
Existing eksfile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/bootloader/eks_t234.img) reused.
copying dtbfile(/home/linuxHost/jenkins/image_6.0/temp/L4t_32G/kernel/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb)... done.
Copying nv_boot_control.conf to rootfs
        populating kernel to rootfs... done.
        populating initrd to rootfs... done.
        populating kernel_tegra234-p3737-0000+p3701-0000-nv.dtb to rootfs... done.
Making system.img...
        populating rootfs from /home/linuxHost/jenkins/image_6.0/temp/L4t_32G/rootfs ... tar: boot/dtb: Cannot open: File exists
tar: Exiting with failure status due to previous errors
Failed. Your APPSIZE might be too small.

三,如果./flash.sh --no-flash jetson-agx-orin-devkit mmcblk0p1 执行成功,可以用 ./flash.sh -r jetson-agx-orin-devkit mmcblk0p1 来刷写吗,还是必须用flashcmd.txt中的命令

$ cd bootloader
$ sudo bash ./flashcmd.txt

谢谢

Hi Pelva,

Are you using the devkit or custom board for AGX Orin?

May I know which document are you referring to?

Yes, SDK Manager is not working with Ubuntu 18.04 to flash the Jetpack 6.X.
You can still use Ubuntu 18.04 to flash the board through flash command manually but SDK Manager is not supported to perform flash process.

Please just try using the following command to flash your board.

$ sudo ./flash.sh jetson-agx-orin-devkit internal

Hi, KevinFFF
感谢回复。

我正在使用开发板测试,但最终我要使用我们自已的底板+ Orin 模组

下面是36.3中的介绍,explaining-board-configuration-file-and-generating-a-flash-image-to-flash-later 这一段是之前5.X版本没有的
Flashing Support — NVIDIA Jetson Linux Developer Guide 1 documentation

而在35.4.1中,no-flash参数更多的是与l4t_initrd_flash.sh 配合使用
Flashing Support — Jetson Linux Developer Guide documentation (nvidia.com)

也就是说,我可以先使用 --no-flash 来生成system.img,然后使用 -r参数 复用刚刚生成的img吧。因为我们的流程是,生成img在一台主机,刷写在另一台主机。

在Ubuntu20.04里,使用SdkManager 下载所有文件后,执行

sudo BOARDID=3701 BOARDSKU=0000 FAB=500 BOARDREV=500 CHIP_SKU=D0 RAMCODE=0 FUSELEVEL=fuselevel_production ./flash.sh --no-flash jetson-agx-orin-devkit mmcblk0p1

没有报错,
而在Ubuntu18.04中,在 Jetson Linux 36.3 | NVIDIA Developer 下载 BSP和Sample RootFS,报上面的错误,有什么原因会导致这个情况呢
并且,我注意到命令执行时 和执行后,并没有生成system.img.raw.

ll -h bootloader/sys*                           
-rw-r--r-- 1 root root 55G 7月  22 18:27 bootloader/system.img

如果在flash.sh 中增加-S 70GiB 参数,生成的system.img会变成70多G,真奇怪,莫非有循环引用吗,rootfs打包之后才2G多。

生成镜像不成功的问题已经解决了,原因是我在rootfs/boot下创建一个叫dtb的文件,这里应该是一个文件夹。
日志里有警告:如下

那么第一个问题,根据文档介绍:

  1. Place the Jetson target into recovery mode.
  2. Run this command to generate bootloader/cvm.bin and bootloader/chip_info.bin_bak:
    $ sudo ./flash.sh --no-flash --no-systemimg mmcblk0p1

这里的Jetson target使用的Carrier Board是开发板吗,还是使用我们自己的板卡?

這裡說的參數都只跟module有關 跟你的板子是DevKit還是custom board沒有關係

好的,十分感谢!

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