How to flash Jetson Orin NX 16GB moudule

Hi everyone,
I use Jetson Orin NX 16GB moudule and the carrier board is Xavier NX Devkit, I want to flash rootfs to Orin NX module internal EMMC. How to do? Thanks.

There is no internal eMMC in Orin NX, please mount an NVMe and then flash with the latest Jetpack SDK.

Hi kenny,

Please download BSP package from R35.2.1.

Install NVMe SSD on the Xavier NX carrier board and run the following command to flash the board.

$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" --showlogs --network usb0 p3509-a02+p3767-0000 internal

I tried that solution but I faced that error. Why can’t I create the image file?

************************************
*                                  *
*  Step 1: Generate flash packages *
*                                  *
************************************
Create folder to store images to flash
Generate image for internal storage devices
Generate images to be flashed
ADDITIONAL_DTB_OVERLAY=""  /Data/Linux_for_Tegra/flash.sh --no-flash --sign  -c bootloader/t186ref/cfg/flash_t234_qspi.xml p3509-a02+p3767-0000 internal

###############################################################################
# L4T BSP Information:
# R35 , REVISION: 2.1
# User release: 0.0
/Data/Linux_for_Tegra/flash.sh: line 1703: /Data/Linux_for_Tegra/rootfs/etc/user_release_version: No such file or directory
###############################################################################
Board ID() version() sku() revision()
Chip SKU() ramcode() fuselevel(fuselevel_production) board_FAB()
emc_opt_disable_fuse:(0)
Copy /Data/Linux_for_Tegra/kernel/dtb/tegra234-p3767-0000-p3509-a02.dtb to /Data/Linux_for_Tegra/kernel/dtb/tegra234-p3767-0000-p3509-a02.dtb.rec
Using UUID 300748d9-38ef-4d22-bc6c-bcb30af25ef5 for mounting root APP partition.
copying bctfile(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-p3767-0000-sdram-l4t.dts)... done.
copying device_config(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-device-p3767-0000.dts)... done.
copying misc_config(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-misc-p3767-0000.dts)... done.
copying pinmux_config(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-pinmux-p3767-hdmi-a03.dtsi)... done.
copying gpioint_config(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-gpioint-p3767-0000.dts)... done.
copying pmic_config(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-pmic-p3767-0000-a02.dts)... done.
copying pmc_config(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-padvoltage-p3767-hdmi-a03.dtsi)... done.
copying deviceprod_config(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-cprod-p3767-0000.dts)... done.
copying prod_config(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-prod-p3767-0000.dts)... done.
copying scr_config(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-scr-p3767-0000.dts)... done.
copying wb0sdram(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-p3767-0000-wb0sdram-l4t.dts)... done.
copying bootrom_config(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-reset-p3767-0000.dts)... done.
copying dev_params(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct-p3767-0000-l4t.dts)... done.
copying dev_params_b(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-br-bct_b-p3767-0000-l4t.dts)... done.
copying mb2bct_cfg(/Data/Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-misc-p3767-0000.dts)... done.
Existing pscfwfile(/Data/Linux_for_Tegra/bootloader/pscfw_t234_prod.bin) reused.
Existing pscbl1file(/Data/Linux_for_Tegra/bootloader/psc_bl1_t234_prod.bin) reused.
Existing mtsmcefile(/Data/Linux_for_Tegra/bootloader/mce_flash_o10_cr_prod.bin) reused.
Existing mb2applet(/Data/Linux_for_Tegra/bootloader/applet_t234.bin) reused.
Existing bootloader(/Data/Linux_for_Tegra/bootloader/mb2_t234.bin) reused.
copying initrd(/Data/Linux_for_Tegra/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...
/Data/Linux_for_Tegra/bootloader/ramdisk_tmp /Data/Linux_for_Tegra/bootloader /Data/Linux_for_Tegra
36188 blocks

gzip: /Data/Linux_for_Tegra/kernel/Image: not in gzip format
_BASE_KERNEL_VERSION=5.10.104-tegra
find: ‘/Data/Linux_for_Tegra/rootfs/lib’: No such file or directory
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/bin/mv': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/bin/mv /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/mv
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/bin/sync': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/bin/sync /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/sync
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/sbin/blockdev': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/sbin/blockdev /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/blockdev
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/cut': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/cut /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/cut
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/cksum': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/cksum /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/cksum
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/sha1sum': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/sha1sum /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/sha1sum
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/seq': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/seq /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/seq
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/dirname': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/dirname /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/dirname
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/tr': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/tr /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/tr
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/du': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/du /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/du
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/chattr': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/chattr /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/chattr
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/sbin/mtd_debug': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/sbin/mtd_debug /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/mtd_debug
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//ld-2.31.so': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//ld-2.31.so /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//ld-2.31.so
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libc-2.31.so': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libc-2.31.so /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libc-2.31.so
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libdl-2.31.so': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libdl-2.31.so /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libdl-2.31.so
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libm-2.31.so': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libm-2.31.so /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libm-2.31.so
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libnsl-2.31.so': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libnsl-2.31.so /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libnsl-2.31.so
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libnss_files-2.31.so': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libnss_files-2.31.so /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libnss_files-2.31.so
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libnss_nis-2.31.so': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libnss_nis-2.31.so /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libnss_nis-2.31.so
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libpthread-2.31.so': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libpthread-2.31.so /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libpthread-2.31.so
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libresolv-2.31.so': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libresolv-2.31.so /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libresolv-2.31.so
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//librt-2.31.so': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//librt-2.31.so /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//librt-2.31.so
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libwrap.so.0': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libwrap.so.0 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libwrap.so.0
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libaudit.so.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libaudit.so.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libaudit.so.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libpam.so.0': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libpam.so.0 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libpam.so.0
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libpam_misc.so.0': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libpam_misc.so.0 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libpam_misc.so.0
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libsystemd.so.0': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libsystemd.so.0 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libsystemd.so.0
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//liblzma.so.5': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//liblzma.so.5 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//liblzma.so.5
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libgcrypt.so.20': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libgcrypt.so.20 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libgcrypt.so.20
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libgpg-error.so.0': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libgpg-error.so.0 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libgpg-error.so.0
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libutil.so.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libutil.so.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libutil.so.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libcrypt.so.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libcrypt.so.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libcrypt.so.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libz.so.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libz.so.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libz.so.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libcap.so.2': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libcap.so.2 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libcap.so.2
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libcap-ng.so.0': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libcap-ng.so.0 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libcap-ng.so.0
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libprocps.so.8': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libprocps.so.8 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libprocps.so.8
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libnss_compat.so.2': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libnss_compat.so.2 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libnss_compat.so.2
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libmnl.so.0': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libmnl.so.0 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libmnl.so.0
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libdbus-1.so.3': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libdbus-1.so.3 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/libdbus-1.so.3
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libreadline.so.8': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libreadline.so.8 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/libreadline.so.8
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libtinfo.so.6': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libtinfo.so.6 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/libtinfo.so.6
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libdevmapper.so.1.02.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libdevmapper.so.1.02.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/libdevmapper.so.1.02.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libblkid.so.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libblkid.so.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/libblkid.so.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libuuid.so.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libuuid.so.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/libuuid.so.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libudev.so.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libudev.so.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/libudev.so.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libselinux.so.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libselinux.so.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/libselinux.so.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib//libpcre.so.3': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib//libpcre.so.3 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/libpcre.so.3
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/lib//libssl.so.1.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/lib//libssl.so.1.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/libssl.so.1.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/lib//libgssapi_krb5.so.2': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/lib//libgssapi_krb5.so.2 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libgssapi_krb5.so.2
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/lib//libkrb5.so.3': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/lib//libkrb5.so.3 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libkrb5.so.3
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/lib//libk5crypto.so.3': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/lib//libk5crypto.so.3 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libk5crypto.so.3
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/lib//libkrb5support.so.0': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/lib//libkrb5support.so.0 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libkrb5support.so.0
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/lib//libcrypto.so.1.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/lib//libcrypto.so.1.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libcrypto.so.1.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/lib//liblz4.so.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/lib//liblz4.so.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//liblz4.so.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/lib//libelf.so.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/lib//libelf.so.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libelf.so.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/lib//libbsd.so.0': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/lib//libbsd.so.0 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libbsd.so.0
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/lib//libzstd.so.1': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/lib//libzstd.so.1 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libzstd.so.1
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/lib//libe2p.so.2': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/lib//libe2p.so.2 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libe2p.so.2
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/lib//libcom_err.so.2': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/lib//libcom_err.so.2 /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib//libcom_err.so.2
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib/modules/5.10.104-tegra/kernel/drivers/mtd/mtd.ko': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib/modules/5.10.104-tegra/kernel/drivers/mtd/mtd.ko /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/modules/5.10.104-tegra/kernel/drivers/mtd/mtd.ko
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib/modules/5.10.104-tegra/kernel/drivers/mtd/mtdblock.ko': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib/modules/5.10.104-tegra/kernel/drivers/mtd/mtdblock.ko /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/modules/5.10.104-tegra/kernel/drivers/mtd/mtdblock.ko
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib/modules/5.10.104-tegra/kernel/drivers/mtd/mtd_blkdevs.ko': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib/modules/5.10.104-tegra/kernel/drivers/mtd/mtd_blkdevs.ko /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/modules/5.10.104-tegra/kernel/drivers/mtd/mtd_blkdevs.ko
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib/modules/5.10.104-tegra/kernel/drivers/mtd/devices/qspi_mtd.ko': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib/modules/5.10.104-tegra/kernel/drivers/mtd/devices/qspi_mtd.ko /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/modules/5.10.104-tegra/kernel/drivers/mtd/devices/qspi_mtd.ko
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/lib/modules/5.10.104-tegra/kernel/drivers/spi/spi-tegra210-qspi.ko': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/lib/modules/5.10.104-tegra/kernel/drivers/spi/spi-tegra210-qspi.ko /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/modules/5.10.104-tegra/kernel/drivers/spi/spi-tegra210-qspi.ko
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/etc/ssh/sshd_config': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/etc/ssh/sshd_config /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//etc/ssh/sshd_config
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/sbin/sshd': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/sbin/sshd /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/sshd
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/bin/su': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/bin/su /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/su
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/whoami': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/whoami /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/whoami
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/passwd': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/passwd /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/passwd
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/bin/which': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/bin/which /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/which
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/bin/ps': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/bin/ps /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/ps
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/bin/ping': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/bin/ping /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/ping
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/sbin/dhclient-script': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/sbin/dhclient-script /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//sbin/dhclient-script
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/bin/ip': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/bin/ip /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/ip
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/bin/run-parts': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/bin/run-parts /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/run-parts
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/w.procps': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/w.procps /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/w
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/scp': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/scp /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/scp
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/find': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/find /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/find
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/xxd': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/xxd /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/xxd
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/head': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/head /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/head
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/bin/kmod': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/bin/kmod /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/kmod
cp: cannot stat '/Data/Linux_for_Tegra/rootfs/usr/bin/diff': No such file or directory
warning: cp -f /Data/Linux_for_Tegra/rootfs/usr/bin/diff /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//bin/diff
sed: can't read /Data/Linux_for_Tegra/bootloader/ramdisk_tmp//etc/ssh/sshd_config: No such file or directory
command is failed
Error: failed to generate images
Cleaning up...

Hi @ieren1503 ,

it looks like that you do not have install / unpack the sample root filesystems in the rootfs folder.

Take a look in your: /Data/Linux_for_Tegra/rootfs/

Is there only a readme file?

If yes,

Download:
https://developer.nvidia.com/downloads/linux-sample-root-filesystem-r3521aarch64tbz2

Untar Jetson Linux.
$ tar xf Jetson_Linux_R35.2.1_aarch64.tbz2

Go to Rootfs
$ cd Linux_for_Tegra/rootfs/

Extract Rootfs
$ sudo tar xpf …/…/Tegra_Linux_Sample-Root-Filesystem_R35.2.1_aarch64.tbz2

Go to Linux_for_Tegra
$ cd Linux_for_Tegra

Install the flashing prerequisites.
sudo ./tools/l4t_flash_prerequisites.sh

Apply the binaries.
$ sudo ./apply_binaries.sh

And unpack the content in the tar directly in your rootfs folder (without subfiles).

Try to flash again.
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p “-c bootloader/t186ref/cfg/flash_t234_qspi.xml” --showlogs --network usb0 p3509-a02+p3767-0000 internal

Good luck.

2 Likes

Came close with this solution, however on boot with NVMe as the flash device using a Xavier carrier board, the boot process freezes with the console complaining SDMMC could not be initialized:

I> DMA heap: [base:0x430000000, size:0x800000]
I> Task: ARI update carveout TZDRAM (0x50001e80)
I> Task: Enable hot-plug capability (0x50025b5c)
I> Task: PSC mailbox init (0x50015c10)
I> Task: Crypto init (0x5000573c)
I> Task: Enable GP-SE clock (0x50001fe4)
I> Task: DICE Identity init (0x50018fcc)
I> DICE is not enabled.
I> Task: OEM SC7 context save init (0x500186cc)
I> Task: I2C register (0x50001e44)
I> Task: Map CCPLEX_INTERWORLD_SHMEM carveout (0x50001e2c)
I> Task: Boot device init (0x50001d74)
I> Boot_device: QSPI_FLASH instance: 0
I> Qspi clock source : pllc_out0
I> QSPI-0l initialized successfully
E> Error in command_complete 18000 int_status
E> Sending CMD_SD_SEND_IF_COND failed
E> Error opening sdcard-0
E> Failed to initialize device 6-0
C> Storage init failed
C> Task 0x0 failed (err: 0x39390706)
E> Top caller module: SDMMC, error module: SDMMC, reason: 0x06, aux_info: 0x07
I> Busy Spin

I believe this is because the Orin NX does not include eMMC but let me know.

I’m getting the exact same error by following the process above, and I’m also using the Orin NX in the Xavier NX Devkit and a NVME in the M2 port:

I> MB2 (version: 0.0.0.0-t234-54845784-a9c0116a)
I> t234-A01-1-Silicon (0x12347)
I> Boot-mode : Coldboot
I> Emulation: 
I> Entry timestamp: 0x001eb702
I> Regular heap: [base:0x40040000, size:0x10000]
I> DMA heap: [base:0x430000000, size:0x800000]
I> Task: ARI update carveout TZDRAM (0x50001e80)
I> Task: Enable hot-plug capability (0x50025b5c)
I> Task: PSC mailbox init (0x50015c10)
I> Task: Crypto init (0x5000573c)
I> Task: Enable GP-SE clock (0x50001fe4)
I> Task: DICE Identity init (0x50018fcc)
I> DICE is not enabled.
I> Task: OEM SC7 context save init (0x500186cc)
I> Task: I2C register (0x50001e44)
I> Task: Map CCPLEX_INTERWORLD_SHMEM carveout (0x50001e2c)
I> Task: Boot device init (0x50001d74)
I> Boot_device: QSPI_FLASH instance: 0
I> Qspi clock source : pllc_out0
I> QSPI-0l initialized successfully
E> Error in command_complete 18001 int_status
E> Sending CMD_SD_SEND_IF_COND failed
E> Error opening sdcard-0
E> Failed to initialize device 6-0
C> Storage init failed
C> Task 0x0 failed (err: 0x39390706)
E> Top caller module: SDMMC, error module: SDMMC, reason: 0x06, aux_info: 0x07
I> Busy Spin

and the last error during flashing was:

Writing gpt_secondary_3_0.bin (parittion: secondary_gpt) into /dev/mtd0
Sha1 checksum matched for /qspi/internal/gpt_secondary_3_0.bin
Writing /qspi/internal/gpt_secondary_3_0.bin (16896 bytes) into  /dev/mtd0:67091968
Copied 16896 bytes from /qspi/internal/gpt_secondary_3_0.bin to address 0x03ffbe00 in flash
[ 363]: l4t_flash_from_kernel: Successfully flash the qspi
[ 363]: l4t_flash_from_kernel: Flashing success
Error flashing non-qspi storage

Should the last word be “external” instead of “internal” @KevinFFF ?

In the initramfs I see the nvme drive is detected correctly:

[    7.810494] qspi_mtd spi6.0: MX25U51279G (65536 Kbytes)
[    7.810633] qspi_mtd spi6.0: mtd .name = spi6.0, .size = 0x4000000 (64MiB) .erasesize = 0x00010000 (64KiB) .numeraseregions = 0
[    7.814979] 1 fixed-partitions partitions found on MTD device spi6.0
[    7.815136] Creating 1 MTD partitions on "spi6.0":
[    7.819102] 0x000000000000-0x000004000000 : "Whole_flash0"
insmod /lib/modules/5.10.104-tegra/kernel/drivers/spi/spi-tegra210-qspi.ko 
insmod /lib/modules/5.10.104-tegra/kernel/drivers/hwmon/pwm-fan.ko 
[    7.848384] using random self ethernet address
[    7.848511] using random host ethernet address
[    7.851146] Mass Storage Function, version: 2009/09/11
[    7.851284] LUN: removable file: (no medium)
[    7.856691] LUN: removable file: (no medium)
[    7.861017] LUN: removable file: (no medium)
[    7.865506] LUN: removable file: (no medium)
Add /dev/nvme0n1
[    7.872742] rndis0: HOST MAC 4a:69:81:b2:df:d6
[    7.875272] rndis0: MAC 42:e2:bf:18:5b:33
[    7.879577] tegra-xudc 3550000.xudc: EP 0 (type: ctrl, dir: out) enabled
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-5.0# [    8.321058] tegra-xudc 3550000.xudc: EP 5 (type: intr, dir: in) enabled
[    8.321257] tegra-xudc 3550000.xudc: EP 3 (type: bulk, dir: in) enabled
[    8.321461] tegra-xudc 3550000.xudc: EP 2 (type: bulk, dir: out) enabled
[    8.321734] IPv6: ADDRCONF(NETDEV_CHANGE): rndis0: link becomes ready
[    8.321844] tegra-xudc 3550000.xudc: EP 7 (type: bulk, dir: in) enabled
[    8.322127] tegra-xudc 3550000.xudc: EP 4 (type: bulk, dir: out) enabled
[    8.416371] mmc1: SDHCI controller on 3400000.sdhci [3400000.sdhci] using ADMA 64-bit

bash-5.0# 
bash-5.0# ls /dev/nvme0
nvme0       nvme0n1p1   nvme0n1p2   nvme0n1p4   nvme0n1p6   nvme0n1p8
nvme0n1     nvme0n1p10  nvme0n1p3   nvme0n1p5   nvme0n1p7   nvme0n1p9

No, it doesn’t make any difference, the process fails the same with:

Copied 16896 bytes from /qspi/internal/gpt_secondary_3_0.bin to address 0x03ffbe00 in flash
[ 364]: l4t_flash_from_kernel: Successfully flash the qspi
[ 364]: l4t_flash_from_kernel: Flashing success
Error flashing non-qspi storage

Same for you @ivan.smith1 ?

Ok, the problem was solved by formatting the NVME drive to contain a single ext4 partition, then plugging it back again and re-trying the flashing procedure. I don’t understand why MB2 decided to look for a SDMMC drive and fail because the nvme hadn’t been flashed successfully. Maybe this can be addressed in a new release? Also, maybe it’s possible in the next release to allow the flashing tools to write the QSPI directly without having to flash the external memory, just like on the rest of the Jetson devices?

Hi @alexandru7ac9a

Honestly, I would like to confirm what is the flash command you are using.

Also, please avoid sharing logs that is already parsed by yourself. If you want us to clearly know what happened, share the full log.

For a flash problem, share both host side and device side log.

@alexandru7ac9a Yeah, same problem here with the exact same error and carrier board (Xavier NX dev kit). The flashing process stops complaining about non-qspi storage if I include the --external-only parameter:

Writing gpt_secondary_3_0.bin (parittion: secondary_gpt) into /dev/mtd0
Sha1 checksum matched for /mnt/internal/gpt_secondary_3_0.bin
Writing /mnt/internal/gpt_secondary_3_0.bin (16896 bytes) into /dev/mtd0:67091968
Copied 16896 bytes from /mnt/internal/gpt_secondary_3_0.bin to address 0x03ffbe00 in flash
[ 362]: l4t_flash_from_kernel: Successfully flash the qspi
[ 362]: l4t_flash_from_kernel: Flashing success
[ 362]: l4t_flash_from_kernel: The device size indicated in the partition layout xml is smaller than the actual size. This utility will try to fix the GPT.
Flash is successful
Reboot device
Cleaning up…

but then freezes on boot complaining about SDMMC (it freezes regardless but get less flashing errors with the above). Thanks for following up on the partition trick, I’ll try that today to see if the workaround works for me as well.

My conclusion is the Orin NX isn’t anywhere near close to prime-time or even being usable at this stage so continuing to look at the Xavier NX for automation work with my clients which is disappointing from a company like Nvidia since I’ll be unable to recommend upgrading any of our hardware until the kinks get worked out.

Please let me know what the ETA looks like for properly supporting the Orin NX via SDK manager (or elsewhere) so these products can actually be tested and used. I keep hearing about ‘next release’ including fixes but the hardware has been available for almost 2 months now. Whats the problem?

1 Like

Hi Wayne, the command I used was

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" --showlogs --network usb0 p3509-a02+p3767-0000 internal

The NVME had 5 partitions (one FAT and the rest EXT4) on it and this was causing the flash to fail on my side. Once I formatted it and created one EXT4 partition, flashing completed successfully.

Hi,

One question here, have you ever tried to change the “internal” one directly to “external”?

Hi Wayne, yes, both ‘internal’ and ‘external’ had the same problem. After I formatted the NVME the board flashed successfully. So this problem is now solved on my side.

Hi @alexandru7ac9a

Could you share the exact steps that you format your nvme drive?

I tried to format some non-ext4 partition on my nvme drive but I still cannot reproduce your issue.

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