Issues creating basic rootfs for Jetson Linux 36.2

Hi, following the guide to setup and flash a basic rootfs for an Orin NX 16GB reComputer J4012 I find that I have to add multiple packages to the binary list to get the scripts to even work. Here’s the steps I’ve used:

$ wget https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v2.0/release/jetson_linux_r36.2.0_aarch64.tbz2
$ tar xf jetson_linux_r36.2.0_aarch64.tbz2
$ cd Linux_for_Tegra
$ sudo ./tools/samplefs/nv_build_samplefs.sh --abi aarch64 --distro ubuntu --flavor basic --version jammy
$ sudo tar xpf ./tools/samplefs/sample_fs.tbz2 -C ./rootfs/
$ sudo ./apply_binaries.sh --factory

It fails at the apply_binaries.sh script unless I add the patch described below.
I have also tried without --factory, though that fails on even more packages (mostly GUI packages that I obviously don’t want for a basic rootfs).

Here are some of the errors I’m getting:

...

Unpacking nvidia-l4t-bootloader (36.2.0-20231130105725) ...
Setting up jetson-gpio-common (2.1.3ubuntu1) ...
Setting up python3-jetson-gpio (2.1.3ubuntu1) ...
dpkg: dependency problems prevent configuration of python-jetson-gpio:
 python-jetson-gpio depends on python2:any (<< 2.8).
 python-jetson-gpio depends on python2:any (>= 2.7~).

dpkg: error processing package python-jetson-gpio (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-l4t-3d-core:
 nvidia-l4t-3d-core depends on nvidia-l4t-wayland (= 36.2.0-20231130105725); however:
  Package nvidia-l4t-wayland is not installed.
 nvidia-l4t-3d-core depends on nvidia-l4t-x11 (= 36.2.0-20231130105725); however:
  Package nvidia-l4t-x11 is not installed.

dpkg: error processing package nvidia-l4t-3d-core (--install):
 dependency problems - leaving unconfigured

...

/usr/sbin/nv-update-initrd: line 106: strings: command not found
Error:  is empty
dpkg: error processing package nvidia-l4t-initrd (--install):
 installed nvidia-l4t-initrd package post-installation script subprocess returned error exit status 1

I get it to work by applying the patches below, although I would prefer if I didn’t have to. Specially python2 now that we’re finally on Jammy, and nvidia-l4t-wayland, nvidia-l4t-x11 etc… are not needed for our basic rootfs.

Patch for apply_binaries.sh to run with --factory, but keep some necessary packages (i.e. keep the ones removed from “skiplist”, e.g. keep nvidia-l4t-3d-core, nvidia-l4t-apt-source, etc…):

diff --git a/nv_tegra/nv-apply-debs.sh b/nv_tegra/nv-apply-debs.sh
index 809b06f..a2cf189 100755
--- a/nv_tegra/nv-apply-debs.sh
+++ b/nv_tegra/nv-apply-debs.sh
@@ -172,18 +172,12 @@ deb_list_force_install=()
 force_install_deb_list=()
 
 # List of packages to skip for dgpu
-dgpu_skiplist=("nvidia-l4t-3d-core")
-dgpu_skiplist+=("nvidia-l4t-apt-source")
-dgpu_skiplist+=("nvidia-l4t-cuda")
-dgpu_skiplist+=("nvidia-l4t-gbm")
+dgpu_skiplist=("nvidia-l4t-gbm")
 dgpu_skiplist+=("nvidia-l4t-graphics-demos")
 dgpu_skiplist+=("nvidia-l4t-jetsonpower-gui-tools")
 dgpu_skiplist+=("nvidia-l4t-nvml")
-dgpu_skiplist+=("nvidia-l4t-nvpmodel")
 dgpu_skiplist+=("nvidia-l4t-nvpmodel-gui-tools")
-dgpu_skiplist+=("nvidia-l4t-wayland")
 dgpu_skiplist+=("nvidia-l4t-weston")
-dgpu_skiplist+=("nvidia-l4t-x11")

Patch for nvubuntu-jammy-basic-aarch64-packages. Some packages are removed because they are not necessary in a basic rootfs, though packages like python2, binutils, cpio, libvulkan1 etc… were required for the flashing scripts to even run.

diff --git a/tools/samplefs/nvubuntu-jammy-basic-aarch64-packages b/tools/samplefs/nvubuntu-jammy-basic-aarch64-packages
index 0b2619e..d54bb4d 100644
--- a/tools/samplefs/nvubuntu-jammy-basic-aarch64-packages
+++ b/tools/samplefs/nvubuntu-jammy-basic-aarch64-packages
@@ -5,12 +5,15 @@ apt
 base-files
 base-passwd
 bash
+bash-completion
+bc
+binutils
 bridge-utils
 bsdutils
 bzip2
 ca-certificates
-containerd
 coreutils
+cpio
 cpp
 cpp-11
 dash
@@ -20,7 +23,6 @@ debianutils
 device-tree-compiler
 diffutils
 distro-info-data
-docker.io
 dpkg
 e2fsprogs
 file
@@ -35,6 +37,7 @@ gpgv
 grep
 gzip
 hostname
+ifupdown
 init-system-helpers
 iproute2
 iputils-ping
@@ -84,6 +87,7 @@ libevdev2
 libexpat1
 libext2fs2
 libfdisk1
+libffi7
 libffi8
 libfido2-1
 libfontconfig1
@@ -197,16 +201,11 @@ libunistring2
 libunwind8
 libutempter0
 libuuid1
+libvulkan1
 libwacom-bin
 libwacom-common
 libwacom9
-libwayland-client0
-libwayland-server0
 libwrap0
-libx11-6
-libx11-data
-libx11-dev
-libx11-xcb1
 libxau-dev
 libxau6
 libxaw7
@@ -265,6 +264,7 @@ passwd
 perl-base
 procps
 python-apt-common
+python2
 python3
 python3-apport
 python3-apt
@@ -308,17 +308,15 @@ systemd-sysv
 systemd-timesyncd
 sysvinit-utils
 tar
+tmux
 tzdata
 ubuntu-keyring
 ucf
 udev
 usrmerge
 util-linux
+vim
 wpasupplicant
-x11-common
-x11-xkb-utils
-x11-xserver-utils
-x11proto-dev
 xauth
 xbitmaps
 xcvt
@@ -329,20 +327,6 @@ xfonts-utils
 xinit
 xkb-data
 xorg-sgml-doctools
-xserver-common
-xserver-xorg
-xserver-xorg-core
-xserver-xorg-input-all
-xserver-xorg-input-libinput
-xserver-xorg-input-wacom
-xserver-xorg-legacy
-xserver-xorg-video-all
-xserver-xorg-video-amdgpu
-xserver-xorg-video-ati
-xserver-xorg-video-fbdev
-xserver-xorg-video-nouveau
-xserver-xorg-video-radeon
-xserver-xorg-video-vesa
 xterm
 xtrans-dev
 xxd

Is there anything I am missing, as I would prefer things to work without any changes? This was also a problem for the previous Jetson Linux version 35.4.1, though with a different set of missing packages - And I hoped it would be fixed for 36.2. I haven’t tried the Desktop rootfs or the Sample rootfs, though these worked fine on 35.4.1 without any changes.

Hi,

Maybe dependencies of some nvidia-l4t-xxx packages are not configure correctly; we’ll check this.
We should also add those missing packages back.
Thanks for reporting.

The flashing seems to work with the patch mentioned above, but now I have problems with setting the power model and overclocking. I had a similar issue with the power model in version 35.4.1, though I found the missing package (bc) as explained here NVPM WARN: power mode is not set! And cannot set it using config file - #5 by hvbotten

Now it seems like there are different errors:

root@motus-tegra:~# sudo jetson_clocks
Error: nvidia-smi not found.
root@motus-tegra:~# nvpmodel -m 3 --verbose
NVPM VERB: Config file: /etc/nvpmodel.conf
NVPM VERB: parsing done for /etc/nvpmodel.conf
NVPM VERB: Using default settings.
NVPM VERB: set power mode as 25W(3) in /etc/nvpmodel.conf.
NVPM ERROR: Error opening /sys/devices/platform/gpu.0/tpc_pg_mask: 2
NVPM ERROR: optMask is 1, no request for power mode
NVPM VERB: Using default settings.

I thought nvidia-smi wasn’t supported for Tegra-based platforms, so why is jetson_clocks complaining about it missing? And what is happening with nvpmodel? The /etc/nvpmodel.conf is similar to the one presented here.

I’ll try to flash the samplefs (or desktop) and see if the problem is present there as well, but I would like some information about the errors above if possible.

For information this is the command I used to flash the device (after creating the default user), in case I’m doing something wrong

Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash.sh \
    --external-device nvme0n1p1 \
    -c Linux_for_Tegra/tools/kernel_flash/flash_l4t_external.xml \
    -p "-c Linux_for_Tegra/bootloader/generic/cfg/flash_t234_qspi.xml" \
    --showlogs \
    --network usb0 \
    jetson-orin-nano-devkit \
    internal

EDIT: Found out that i needed the nvidia-l4t-nvml package for nvidia-smi, though it’s is still not working:

root@motus-tegra:~# sudo jetson_clocks
Error: fail to do nvidia-smi operation. The exit code of nvidia-smi is 255
root@motus-tegra:~# nvidia-smi
Unable to determine the device handle for GPU00002:00:00.0: Unkown Error

Which makes sense as we have an internal GPU…

With the minimal rootfs these commands work, though I had to add some packages for it to flash properly as well (like matplotlib and python-tk, which are packages I really wish i didn’t have to add to a minimal rootfs :/ ).

I don’t know why you are doing this.
You should not be using the --factory option.

if [ "${FACTORY}" == "true" ]; then
	deb_skiplist=("${dgpu_skiplist[@]}")
	deb_skiplist+=("nvidia-l4t-camera")
	deb_skiplist+=("nvidia-l4t-gstreamer")
	deb_skiplist+=("nvidia-l4t-multimedia")
	deb_skiplist+=("nvidia-l4t-pva")
	deb_skiplist+=("nvidia-l4t-dgpu-config")
	deb_skiplist+=("nvidia-l4t-dgpu-apt-source")
	deb_skiplist+=("nvidia-l4t-dgpu-x11")
	deb_skiplist+=("nvidia-l4t-dgpu-tools")
elif [ "${DGPU}" == "true" ]; then
	deb_skiplist=("${dgpu_skiplist[@]}")
	deb_skiplist+=("nvidia-l4t-display-kernel")
	deb_skiplist+=("nvidia-l4t-factory-service")
	# dependent packages at the time of flashing.
	force_install_deb_list+=("nvidia-l4t-camera")
	force_install_deb_list+=("nvidia-l4t-gstreamer")
	force_install_deb_list+=("nvidia-l4t-multimedia")
	force_install_deb_list+=("nvidia-l4t-pva")
else
	deb_skiplist=()
	deb_skiplist+=("nvidia-l4t-dgpu-config")
	deb_skiplist+=("nvidia-l4t-factory-service")
	deb_skiplist+=("nvidia-l4t-dgpu-apt-source")
	deb_skiplist+=("nvidia-l4t-dgpu-x11")
	deb_skiplist+=("nvidia-l4t-dgpu-tools")
fi

That way, those nvidia-l4-dgpu-xxx packages are installed, so maybe that’s why your system think there’s a dGPU installed, and thus jetson_clocks complaining about nvidia-smi.

You might be onto something there, though there are no dGPU packages installed with the --factory flag. I would assume that’s what the --dgpu flag is for. The reason why I wanted to use --factory (with some extra necessary packages) is because the default version was trying to install a bunch of nvidia-l4t-gui... packages, and then failing because the nvubuntu-jammy-basic-aarch64-packages does not contain all the necessary packages for GUI applications.

Here is the output of apply_binaries.sh --factory to show that there are no dgpu packages being installed, but I will try to run it without the --factory flag and add the necessary packages later:

$ sudo ./apply_binaries.sh --factory
Using rootfs directory of: /home/kilter/projects/l4t_basic/Linux_for_Tegra/rootfs
Installing extlinux.conf into /boot/extlinux in target rootfs
/home/kilter/projects/l4t_basic/Linux_for_Tegra/nv_tegra/nv-apply-debs.sh
Root file system directory is /home/kilter/projects/l4t_basic/Linux_for_Tegra/rootfs
Copying public debian packages to rootfs
Skipping installation of nvidia-l4t-camera_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-dgpu-apt-source_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-dgpu-config_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-dgpu-tools_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-dgpu-x11_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-gbm_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-graphics-demos_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-jetsonpower-gui-tools_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-multimedia_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-multimedia-utils_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-nvpmodel-gui-tools_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-pva_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-weston_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-igx-bootloader_36.2.0-20231130105725_arm64.deb ....
Start L4T BSP package installation
QEMU binary is not available, looking for QEMU from host system
Found /usr/bin/qemu-aarch64-static
Installing QEMU binary in rootfs
/home/kilter/projects/l4t_basic/Linux_for_Tegra/rootfs /home/kilter/projects/l4t_basic/Linux_for_Tegra
Installing BSP Debian packages in /home/kilter/projects/l4t_basic/Linux_for_Tegra/rootfs
Selecting previously unselected package nvidia-l4t-core.
(Reading database ... 18936 files and directories currently installed.)
Preparing to unpack .../nvidia-l4t-core_36.2.0-20231130105725_arm64.deb ...
Pre-installing... skip compatibility checking.
Unpacking nvidia-l4t-core (36.2.0-20231130105725) ...
Setting up nvidia-l4t-core (36.2.0-20231130105725) ...
Selecting previously unselected package jetson-gpio-common.
(Reading database ... 18997 files and directories currently installed.)
Preparing to unpack .../jetson-gpio-common_2.1.3ubuntu1_arm64.deb ...
Unpacking jetson-gpio-common (2.1.3ubuntu1) ...
Selecting previously unselected package python3-jetson-gpio.
Preparing to unpack .../python3-jetson-gpio_2.1.3ubuntu1_arm64.deb ...
Unpacking python3-jetson-gpio (2.1.3ubuntu1) ...
Selecting previously unselected package python-jetson-gpio.
Preparing to unpack .../python-jetson-gpio_2.1.3ubuntu1_arm64.deb ...
Unpacking python-jetson-gpio (2.1.3ubuntu1) ...
Selecting previously unselected package nvidia-l4t-3d-core.
Preparing to unpack .../nvidia-l4t-3d-core_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-3d-core (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-apt-source.
Preparing to unpack .../nvidia-l4t-apt-source_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-apt-source (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-configs.
Preparing to unpack .../nvidia-l4t-configs_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-configs (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-cuda.
Preparing to unpack .../nvidia-l4t-cuda_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-cuda (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-factory-service.
Preparing to unpack .../nvidia-l4t-factory-service_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-factory-service (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-firmware.
Preparing to unpack .../nvidia-l4t-firmware_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-firmware (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-init.
Preparing to unpack .../nvidia-l4t-init_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-init (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-initrd.
Preparing to unpack .../nvidia-l4t-initrd_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-initrd (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-jetson-io.
Preparing to unpack .../nvidia-l4t-jetson-io_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-jetson-io (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-nvfancontrol.
Preparing to unpack .../nvidia-l4t-nvfancontrol_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-nvfancontrol (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-nvml.
Preparing to unpack .../nvidia-l4t-nvml_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-nvml (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-nvpmodel.
Preparing to unpack .../nvidia-l4t-nvpmodel_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-nvpmodel (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-nvsci.
Preparing to unpack .../nvidia-l4t-nvsci_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-nvsci (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-oem-config.
Preparing to unpack .../nvidia-l4t-oem-config_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-oem-config (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-openwfd.
Preparing to unpack .../nvidia-l4t-openwfd_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-openwfd (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-optee.
Preparing to unpack .../nvidia-l4t-optee_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-optee (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-tools.
Preparing to unpack .../nvidia-l4t-tools_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-tools (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-vulkan-sc.
Preparing to unpack .../nvidia-l4t-vulkan-sc_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-vulkan-sc (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-vulkan-sc-dev.
Preparing to unpack .../nvidia-l4t-vulkan-sc-dev_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-vulkan-sc-dev (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-vulkan-sc-samples.
Preparing to unpack .../nvidia-l4t-vulkan-sc-samples_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-vulkan-sc-samples (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-vulkan-sc-sdk.
Preparing to unpack .../nvidia-l4t-vulkan-sc-sdk_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-vulkan-sc-sdk (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-wayland.
Preparing to unpack .../nvidia-l4t-wayland_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-wayland (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-x11.
Preparing to unpack .../nvidia-l4t-x11_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-x11 (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-xusb-firmware.
Preparing to unpack .../nvidia-l4t-xusb-firmware_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-xusb-firmware (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-display-kernel.
Preparing to unpack .../nvidia-l4t-display-kernel_5.15.122-tegra-36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-display-kernel (5.15.122-tegra-36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-kernel.
Preparing to unpack .../nvidia-l4t-kernel_5.15.122-tegra-36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-kernel (5.15.122-tegra-36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-kernel-dtbs.
Preparing to unpack .../nvidia-l4t-kernel-dtbs_5.15.122-tegra-36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-kernel-dtbs (5.15.122-tegra-36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-kernel-headers.
Preparing to unpack .../nvidia-l4t-kernel-headers_5.15.122-tegra-36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-kernel-headers (5.15.122-tegra-36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-kernel-oot-headers.
Preparing to unpack .../nvidia-l4t-kernel-oot-headers_5.15.122-tegra-36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-kernel-oot-headers (5.15.122-tegra-36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-kernel-oot-modules.
Preparing to unpack .../nvidia-l4t-kernel-oot-modules_5.15.122-tegra-36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-kernel-oot-modules (5.15.122-tegra-36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-bootloader.
Preparing to unpack .../nvidia-l4t-bootloader_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-bootloader (36.2.0-20231130105725) ...
Setting up jetson-gpio-common (2.1.3ubuntu1) ...
Setting up python3-jetson-gpio (2.1.3ubuntu1) ...
Setting up python-jetson-gpio (2.1.3ubuntu1) ...
Setting up nvidia-l4t-apt-source (36.2.0-20231130105725) ...
Pre-installing... skip changing source list.
Setting up nvidia-l4t-configs (36.2.0-20231130105725) ...
Setting up nvidia-l4t-cuda (36.2.0-20231130105725) ...
Setting up nvidia-l4t-factory-service (36.2.0-20231130105725) ...
Setting up nvidia-l4t-firmware (36.2.0-20231130105725) ...
Setting up nvidia-l4t-init (36.2.0-20231130105725) ...
/var/lib/dpkg/info/nvidia-l4t-init.postinst: line 54: cannot create temp file for here-document: No such file or directory
Setting up nvidia-l4t-nvfancontrol (36.2.0-20231130105725) ...
Setting up nvidia-l4t-nvml (36.2.0-20231130105725) ...
Setting up nvidia-l4t-nvpmodel (36.2.0-20231130105725) ...
Setting up nvidia-l4t-nvsci (36.2.0-20231130105725) ...
Setting up nvidia-l4t-oem-config (36.2.0-20231130105725) ...
Setting up nvidia-l4t-openwfd (36.2.0-20231130105725) ...
Setting up nvidia-l4t-optee (36.2.0-20231130105725) ...
Setting up nvidia-l4t-tools (36.2.0-20231130105725) ...
Setting up nvidia-l4t-vulkan-sc (36.2.0-20231130105725) ...
Setting up nvidia-l4t-vulkan-sc-dev (36.2.0-20231130105725) ...
Setting up nvidia-l4t-vulkan-sc-sdk (36.2.0-20231130105725) ...
Setting up nvidia-l4t-wayland (36.2.0-20231130105725) ...
Setting up nvidia-l4t-x11 (36.2.0-20231130105725) ...
Setting up nvidia-l4t-xusb-firmware (36.2.0-20231130105725) ...
Setting up nvidia-l4t-kernel (5.15.122-tegra-36.2.0-20231130105725) ...
Using the existing boot entry 'primary'
Pre-installing kernel package, skip flashing
Setting up nvidia-l4t-kernel-dtbs (5.15.122-tegra-36.2.0-20231130105725) ...
Pre-installing kernel-dtbs package, skip flashing
Setting up nvidia-l4t-kernel-headers (5.15.122-tegra-36.2.0-20231130105725) ...
Setting up nvidia-l4t-kernel-oot-headers (5.15.122-tegra-36.2.0-20231130105725) ...
Setting up nvidia-l4t-kernel-oot-modules (5.15.122-tegra-36.2.0-20231130105725) ...
Setting up nvidia-l4t-bootloader (36.2.0-20231130105725) ...
Pre-installing bootloader package, skip flashing
Setting up nvidia-l4t-3d-core (36.2.0-20231130105725) ...
Setting up nvidia-l4t-initrd (36.2.0-20231130105725) ...
nv-update-initrd: deferring update (trigger activated)
Pre-installing initrd package, skip flashing
Setting up nvidia-l4t-jetson-io (36.2.0-20231130105725) ...
Setting up nvidia-l4t-vulkan-sc-samples (36.2.0-20231130105725) ...
Setting up nvidia-l4t-display-kernel (5.15.122-tegra-36.2.0-20231130105725) ...
Processing triggers for nvidia-l4t-kernel (5.15.122-tegra-36.2.0-20231130105725) ...
Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
Processing triggers for nvidia-l4t-initrd (36.2.0-20231130105725) ...
nv-update-initrd: Updating /boot/initrd from /etc/nv-update-initrd/modules for kernel version 5.15.122-tegra..
Add /lib/modules/5.15.122-tegra/extra/drivers/net/ethernet/nvidia/nvethernet/nvethernet.ko
Add /lib/modules/5.15.122-tegra/extra/drivers/nvpps/nvpps.ko
Add /lib/modules/5.15.122-tegra/extra/drivers/firmware/tegra/ivc_ext.ko
Add /lib/modules/5.15.122-tegra/extra/drivers/staging/platform/tegra/gte/tegra194_gte.ko
Add /lib/modules/5.15.122-tegra/modules*
Add /lib/modules/5.15.122-tegra/kernel/drivers/nvme/host/nvme.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/nvme/host/nvme-core.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/nvme/host/nvme-fabrics.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/pci/controller/dwc/pcie-tegra194.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/phy/tegra/phy-tegra194-p2u.ko
Add /bin/sh
Add /lib/modules/5.15.122-tegra/kernel/drivers/usb/gadget/udc/tegra-xudc.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/usb/typec/ucsi/typec_ucsi.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/usb/typec/ucsi/ucsi_ccg.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/usb/typec/typec.ko
Cleaning up the temporary directory for updating the initrd..
/home/kilter/projects/l4t_basic/Linux_for_Tegra
Removing QEMU binary from rootfs
Removing stashed Debian packages from rootfs
L4T BSP package installation completed!
Disabling NetworkManager-wait-online.service
Disable the ondemand service by changing the runlevels to 'K'
Success!

Here is the output of apply_binaries.sh without the --factory flag. As you can see it fails on a bunch of packages, none of which I would assume are required for running a basic rootfs?

$ sudo ./apply_binaries.sh
Using rootfs directory of: /home/kilter/projects/l4t_basic/Linux_for_Tegra/rootfs
Installing extlinux.conf into /boot/extlinux in target rootfs
/home/kilter/projects/l4t_basic/Linux_for_Tegra/nv_tegra/nv-apply-debs.sh
Root file system directory is /home/kilter/projects/l4t_basic/Linux_for_Tegra/rootfs
Copying public debian packages to rootfs
Skipping installation of nvidia-l4t-dgpu-apt-source_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-dgpu-config_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-dgpu-tools_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-dgpu-x11_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-l4t-factory-service_36.2.0-20231130105725_arm64.deb ....
Skipping installation of nvidia-igx-bootloader_36.2.0-20231130105725_arm64.deb ....
Start L4T BSP package installation
QEMU binary is not available, looking for QEMU from host system
Found /usr/bin/qemu-aarch64-static
Installing QEMU binary in rootfs
/home/kilter/projects/l4t_basic/Linux_for_Tegra/rootfs /home/kilter/projects/l4t_basic/Linux_for_Tegra
Installing BSP Debian packages in /home/kilter/projects/l4t_basic/Linux_for_Tegra/rootfs
Selecting previously unselected package nvidia-l4t-core.
(Reading database ... 18936 files and directories currently installed.)
Preparing to unpack .../nvidia-l4t-core_36.2.0-20231130105725_arm64.deb ...
Pre-installing... skip compatibility checking.
Unpacking nvidia-l4t-core (36.2.0-20231130105725) ...
Setting up nvidia-l4t-core (36.2.0-20231130105725) ...
Selecting previously unselected package jetson-gpio-common.
(Reading database ... 18997 files and directories currently installed.)
Preparing to unpack .../jetson-gpio-common_2.1.3ubuntu1_arm64.deb ...
Unpacking jetson-gpio-common (2.1.3ubuntu1) ...
Selecting previously unselected package python3-jetson-gpio.
Preparing to unpack .../python3-jetson-gpio_2.1.3ubuntu1_arm64.deb ...
Unpacking python3-jetson-gpio (2.1.3ubuntu1) ...
Selecting previously unselected package python-jetson-gpio.
Preparing to unpack .../python-jetson-gpio_2.1.3ubuntu1_arm64.deb ...
Unpacking python-jetson-gpio (2.1.3ubuntu1) ...
Selecting previously unselected package nvidia-l4t-3d-core.
Preparing to unpack .../nvidia-l4t-3d-core_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-3d-core (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-apt-source.
Preparing to unpack .../nvidia-l4t-apt-source_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-apt-source (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-camera.
Preparing to unpack .../nvidia-l4t-camera_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-camera (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-configs.
Preparing to unpack .../nvidia-l4t-configs_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-configs (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-cuda.
Preparing to unpack .../nvidia-l4t-cuda_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-cuda (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-firmware.
Preparing to unpack .../nvidia-l4t-firmware_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-firmware (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-gbm.
Preparing to unpack .../nvidia-l4t-gbm_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-gbm (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-graphics-demos.
Preparing to unpack .../nvidia-l4t-graphics-demos_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-graphics-demos (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-init.
Preparing to unpack .../nvidia-l4t-init_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-init (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-initrd.
Preparing to unpack .../nvidia-l4t-initrd_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-initrd (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-jetson-io.
Preparing to unpack .../nvidia-l4t-jetson-io_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-jetson-io (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-jetsonpower-gui-tools.
Preparing to unpack .../nvidia-l4t-jetsonpower-gui-tools_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-jetsonpower-gui-tools (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-multimedia.
Preparing to unpack .../nvidia-l4t-multimedia_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-multimedia (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-multimedia-utils.
Preparing to unpack .../nvidia-l4t-multimedia-utils_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-multimedia-utils (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-nvfancontrol.
Preparing to unpack .../nvidia-l4t-nvfancontrol_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-nvfancontrol (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-nvml.
Preparing to unpack .../nvidia-l4t-nvml_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-nvml (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-nvpmodel.
Preparing to unpack .../nvidia-l4t-nvpmodel_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-nvpmodel (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-nvpmodel-gui-tools.
Preparing to unpack .../nvidia-l4t-nvpmodel-gui-tools_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-nvpmodel-gui-tools (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-nvsci.
Preparing to unpack .../nvidia-l4t-nvsci_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-nvsci (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-oem-config.
Preparing to unpack .../nvidia-l4t-oem-config_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-oem-config (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-openwfd.
Preparing to unpack .../nvidia-l4t-openwfd_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-openwfd (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-optee.
Preparing to unpack .../nvidia-l4t-optee_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-optee (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-pva.
Preparing to unpack .../nvidia-l4t-pva_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-pva (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-tools.
Preparing to unpack .../nvidia-l4t-tools_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-tools (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-vulkan-sc.
Preparing to unpack .../nvidia-l4t-vulkan-sc_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-vulkan-sc (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-vulkan-sc-dev.
Preparing to unpack .../nvidia-l4t-vulkan-sc-dev_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-vulkan-sc-dev (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-vulkan-sc-samples.
Preparing to unpack .../nvidia-l4t-vulkan-sc-samples_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-vulkan-sc-samples (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-vulkan-sc-sdk.
Preparing to unpack .../nvidia-l4t-vulkan-sc-sdk_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-vulkan-sc-sdk (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-wayland.
Preparing to unpack .../nvidia-l4t-wayland_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-wayland (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-weston.
Preparing to unpack .../nvidia-l4t-weston_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-weston (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-x11.
Preparing to unpack .../nvidia-l4t-x11_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-x11 (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-xusb-firmware.
Preparing to unpack .../nvidia-l4t-xusb-firmware_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-xusb-firmware (36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-display-kernel.
Preparing to unpack .../nvidia-l4t-display-kernel_5.15.122-tegra-36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-display-kernel (5.15.122-tegra-36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-kernel.
Preparing to unpack .../nvidia-l4t-kernel_5.15.122-tegra-36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-kernel (5.15.122-tegra-36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-kernel-dtbs.
Preparing to unpack .../nvidia-l4t-kernel-dtbs_5.15.122-tegra-36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-kernel-dtbs (5.15.122-tegra-36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-kernel-headers.
Preparing to unpack .../nvidia-l4t-kernel-headers_5.15.122-tegra-36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-kernel-headers (5.15.122-tegra-36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-kernel-oot-headers.
Preparing to unpack .../nvidia-l4t-kernel-oot-headers_5.15.122-tegra-36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-kernel-oot-headers (5.15.122-tegra-36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-kernel-oot-modules.
Preparing to unpack .../nvidia-l4t-kernel-oot-modules_5.15.122-tegra-36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-kernel-oot-modules (5.15.122-tegra-36.2.0-20231130105725) ...
Selecting previously unselected package nvidia-l4t-bootloader.
Preparing to unpack .../nvidia-l4t-bootloader_36.2.0-20231130105725_arm64.deb ...
Unpacking nvidia-l4t-bootloader (36.2.0-20231130105725) ...
Setting up jetson-gpio-common (2.1.3ubuntu1) ...
Setting up python3-jetson-gpio (2.1.3ubuntu1) ...
Setting up python-jetson-gpio (2.1.3ubuntu1) ...
Setting up nvidia-l4t-apt-source (36.2.0-20231130105725) ...
Pre-installing... skip changing source list.
dpkg: dependency problems prevent configuration of nvidia-l4t-camera:
 nvidia-l4t-camera depends on libcairo2; however:
  Package libcairo2 is not installed.
 nvidia-l4t-camera depends on libegl1-mesa; however:
  Package libegl1-mesa is not installed.
 nvidia-l4t-camera depends on libgtk-3-0; however:
  Package libgtk-3-0 is not installed.

dpkg: error processing package nvidia-l4t-camera (--install):
 dependency problems - leaving unconfigured
Setting up nvidia-l4t-configs (36.2.0-20231130105725) ...
Setting up nvidia-l4t-cuda (36.2.0-20231130105725) ...
Setting up nvidia-l4t-firmware (36.2.0-20231130105725) ...
dpkg: dependency problems prevent configuration of nvidia-l4t-graphics-demos:
 nvidia-l4t-graphics-demos depends on libwayland-egl1; however:
  Package libwayland-egl1 is not installed.
 nvidia-l4t-graphics-demos depends on libxkbcommon0; however:
  Package libxkbcommon0 is not installed.

dpkg: error processing package nvidia-l4t-graphics-demos (--install):
 dependency problems - leaving unconfigured
Setting up nvidia-l4t-init (36.2.0-20231130105725) ...
/var/lib/dpkg/info/nvidia-l4t-init.postinst: line 54: cannot create temp file for here-document: No such file or directory
dpkg: dependency problems prevent configuration of nvidia-l4t-jetsonpower-gui-tools:
 nvidia-l4t-jetsonpower-gui-tools depends on python3-tk; however:
  Package python3-tk is not installed.
 nvidia-l4t-jetsonpower-gui-tools depends on python3-matplotlib; however:
  Package python3-matplotlib is not installed.

dpkg: error processing package nvidia-l4t-jetsonpower-gui-tools (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-l4t-multimedia:
 nvidia-l4t-multimedia depends on libasound2; however:
  Package libasound2 is not installed.
 nvidia-l4t-multimedia depends on libcairo2; however:
  Package libcairo2 is not installed.
 nvidia-l4t-multimedia depends on libdatrie1; however:
  Package libdatrie1 is not installed.
 nvidia-l4t-multimedia depends on libgstreamer1.0-0; however:
  Package libgstreamer1.0-0 is not installed.
 nvidia-l4t-multimedia depends on libgstreamer-plugins-bad1.0-0; however:
  Package libgstreamer-plugins-bad1.0-0 is not installed.
 nvidia-l4t-multimedia depends on libgstreamer-plugins-base1.0-0; however:
  Package libgstreamer-plugins-base1.0-0 is not installed.
 nvidia-l4t-multimedia depends on libharfbuzz0b; however:
  Package libharfbuzz0b is not installed.
 nvidia-l4t-multimedia depends on libpango-1.0-0; however:
  Package libpango-1.0-0 is not installed.
 nvidia-l4t-multimedia depends on libpangocairo-1.0-0; however:
  Package libpangocairo-1.0-0 is not installed.
 nvidia-l4t-multimedia depends on libpangoft2-1.0-0; however:
  Package libpangoft2-1.0-0 is not installed.

dpkg: error processing package nvidia-l4t-multimedia (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-l4t-multimedia-utils:
 nvidia-l4t-multimedia-utils depends on libcairo2; however:
  Package libcairo2 is not installed.
 nvidia-l4t-multimedia-utils depends on libdatrie1; however:
  Package libdatrie1 is not installed.
 nvidia-l4t-multimedia-utils depends on libharfbuzz0b; however:
  Package libharfbuzz0b is not installed.
 nvidia-l4t-multimedia-utils depends on libpangoft2-1.0-0; however:
  Package libpangoft2-1.0-0 is not installed.

dpkg: error processing package nvidia-l4t-multimedia-utils (--install):
 dependency problems - leaving unconfigured
Setting up nvidia-l4t-nvfancontrol (36.2.0-20231130105725) ...
Setting up nvidia-l4t-nvml (36.2.0-20231130105725) ...
Setting up nvidia-l4t-nvpmodel (36.2.0-20231130105725) ...
dpkg: dependency problems prevent configuration of nvidia-l4t-nvpmodel-gui-tools:
 nvidia-l4t-nvpmodel-gui-tools depends on gir1.2-appindicator3-0.1; however:
  Package gir1.2-appindicator3-0.1 is not installed.

dpkg: error processing package nvidia-l4t-nvpmodel-gui-tools (--install):
 dependency problems - leaving unconfigured
Setting up nvidia-l4t-nvsci (36.2.0-20231130105725) ...
Setting up nvidia-l4t-oem-config (36.2.0-20231130105725) ...
Setting up nvidia-l4t-openwfd (36.2.0-20231130105725) ...
Setting up nvidia-l4t-optee (36.2.0-20231130105725) ...
Setting up nvidia-l4t-pva (36.2.0-20231130105725) ...
Setting up nvidia-l4t-tools (36.2.0-20231130105725) ...
Setting up nvidia-l4t-vulkan-sc (36.2.0-20231130105725) ...
Setting up nvidia-l4t-vulkan-sc-dev (36.2.0-20231130105725) ...
Setting up nvidia-l4t-vulkan-sc-sdk (36.2.0-20231130105725) ...
Setting up nvidia-l4t-wayland (36.2.0-20231130105725) ...
dpkg: dependency problems prevent configuration of nvidia-l4t-weston:
 nvidia-l4t-weston depends on libcairo2; however:
  Package libcairo2 is not installed.
 nvidia-l4t-weston depends on libjpeg-turbo8; however:
  Package libjpeg-turbo8 is not installed.
 nvidia-l4t-weston depends on libwayland-cursor0; however:
  Package libwayland-cursor0 is not installed.
 nvidia-l4t-weston depends on libwayland-egl1; however:
  Package libwayland-egl1 is not installed.
 nvidia-l4t-weston depends on libxkbcommon0; however:
  Package libxkbcommon0 is not installed.

dpkg: error processing package nvidia-l4t-weston (--install):
 dependency problems - leaving unconfigured
Setting up nvidia-l4t-x11 (36.2.0-20231130105725) ...
Setting up nvidia-l4t-xusb-firmware (36.2.0-20231130105725) ...
Setting up nvidia-l4t-kernel (5.15.122-tegra-36.2.0-20231130105725) ...
Using the existing boot entry 'primary'
Pre-installing kernel package, skip flashing
Setting up nvidia-l4t-kernel-dtbs (5.15.122-tegra-36.2.0-20231130105725) ...
Pre-installing kernel-dtbs package, skip flashing
Setting up nvidia-l4t-kernel-headers (5.15.122-tegra-36.2.0-20231130105725) ...
Setting up nvidia-l4t-kernel-oot-headers (5.15.122-tegra-36.2.0-20231130105725) ...
Setting up nvidia-l4t-kernel-oot-modules (5.15.122-tegra-36.2.0-20231130105725) ...
Setting up nvidia-l4t-bootloader (36.2.0-20231130105725) ...
Pre-installing bootloader package, skip flashing
Setting up nvidia-l4t-3d-core (36.2.0-20231130105725) ...
Setting up nvidia-l4t-gbm (36.2.0-20231130105725) ...
Setting up nvidia-l4t-initrd (36.2.0-20231130105725) ...
nv-update-initrd: deferring update (trigger activated)
Pre-installing initrd package, skip flashing
Setting up nvidia-l4t-jetson-io (36.2.0-20231130105725) ...
Setting up nvidia-l4t-vulkan-sc-samples (36.2.0-20231130105725) ...
Setting up nvidia-l4t-display-kernel (5.15.122-tegra-36.2.0-20231130105725) ...
Processing triggers for nvidia-l4t-kernel (5.15.122-tegra-36.2.0-20231130105725) ...
Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
Processing triggers for nvidia-l4t-initrd (36.2.0-20231130105725) ...
nv-update-initrd: Updating /boot/initrd from /etc/nv-update-initrd/modules for kernel version 5.15.122-tegra..
Add /lib/modules/5.15.122-tegra/extra/drivers/net/ethernet/nvidia/nvethernet/nvethernet.ko
Add /lib/modules/5.15.122-tegra/extra/drivers/nvpps/nvpps.ko
Add /lib/modules/5.15.122-tegra/extra/drivers/firmware/tegra/ivc_ext.ko
Add /lib/modules/5.15.122-tegra/extra/drivers/staging/platform/tegra/gte/tegra194_gte.ko
Add /lib/modules/5.15.122-tegra/modules*
Add /lib/modules/5.15.122-tegra/kernel/drivers/nvme/host/nvme.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/nvme/host/nvme-core.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/nvme/host/nvme-fabrics.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/pci/controller/dwc/pcie-tegra194.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/phy/tegra/phy-tegra194-p2u.ko
Add /bin/sh
Add /lib/modules/5.15.122-tegra/kernel/drivers/usb/gadget/udc/tegra-xudc.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/usb/typec/ucsi/typec_ucsi.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/usb/typec/ucsi/ucsi_ccg.ko
Add /lib/modules/5.15.122-tegra/kernel/drivers/usb/typec/typec.ko
Cleaning up the temporary directory for updating the initrd..
Errors were encountered while processing:
 nvidia-l4t-camera
 nvidia-l4t-graphics-demos
 nvidia-l4t-jetsonpower-gui-tools
 nvidia-l4t-multimedia
 nvidia-l4t-multimedia-utils
 nvidia-l4t-nvpmodel-gui-tools
 nvidia-l4t-weston

Looking at the difference in packages installed, the only difference (except from the gui packages) between factory and default was the nvidia-l4t-factory-service package. And looking at its description; “The service for installing GPU driver.”, it’s safe to say that this is the reason for jetson_clocks thinking that there was a GPU. Both nvpmodel and jetson_clocks works now when not installing this package (but with the same patch as explained in the original post).

So you were right that the factory setting was not the best solution out of the box, although it wasn’t because of the dGPU packages. With the patch and not installing the nvidia-l4t-factory-service, but still running apply_binaries.sh --factory I can get a very lean rootfs with the basic flavor, without any gui-tools or demos such as nvidia-l4t-graphics-demos, nvidia-l4t-jetsonpower-gui-tools, python-matploblib etc…

Were you able to actually flash the device in the end?

Other users seem to be reporting the device never boots:

Hi all and thanks for the effort.
I am trying to flash the J401 this way but in my case i always get stuck at “Waiting for target to boot-up…”
Seems like the board doesn’t properly boot .
Thanks

Both yes and no…
We have both the J401 carrier board as well as an industrial J4012 version. On the industrial version things seems to work normally, and I can actually flash the device. However on the non-industrial one it fails exactly the same way as explained in the seesdstudio post, both using the scripts as well as with the SDK manager method.

I noticed i am also using the J4012, but still same problem.
Thanks

So I took delivery of the industrial version yesterday albeit the 8GB, so J4011, so perhaps I will be ok?

@hvbotten would you mind sharing your flash command?

I’m getting the “Waiting for target to boot-up…” and then a timeout with a J4011 which is the J401 carrier board + 8GB Orin NX.

My command is:

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

Also attached my log from the above operation.
log.txt (236.3 KB)

Hi, I tried applying this patch and now it seems to work. Or at least it has managed to boot after the “Waiting for target to boot-up…” step. They also recommended to use USB 2.0 flashing cables, though my cable reports to be 2.10 if that’s interesting to anyone

@oviano I use the same command for flashing.

1 Like

Thanks for that, I’m very grateful.

I’ve now managed to flash and boot up to the installation wizard.

you managed to flash the J4012 non industrial model ?

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