Unable to setup Minimal Flavor Root File System - Jetson Orin

Hi

I am unable to setup Minimal Flavor Root File System for my Jetson Orin.
I am able to build it using

$ sudo ./nv_build_samplefs.sh --abi aarch64 --distro ubuntu --flavor minimal --version focal

and generate sample_fs.tbz2.

After it is extracted in Linux_for_Tegra/rootfs, apply_binaries.sh fails to execute. I get the following error.

||||||||||||||||||||||| ERROR |||||||||||||||||||||||
-----------------------------------------------------
1. The root filesystem, provided with this package,
   has to be extracted to this directory:
   /home/rajanya/Documents/BSP/Linux_for_Tegra/rootfs
-----------------------------------------------------
2. The root filesystem, provided with this package,
   has to be extracted with 'sudo' to this directory:
   /home/rajanya/Documents/BSP/Linux_for_Tegra/rootfs
-----------------------------------------------------
Consult the Development Guide for instructions on
extracting and flashing your device.
|||||||||||||||||||||||||||||||||||||||||||||||||||||

Could you please provide proper steps for setting up Minimal Flavor Root File System.
Thank you

This partition over this disk space needs to be ext4.

/home/rajanya/Documents/BSP/Linux_for_Tegra/rootfs

The partition is of ext4 format.

Could you check the error line in apply_binaries.sh and see if you really have file missing?

I found out where the error occurs

if [ ! `find "$LDK_ROOTFS_DIR/etc/passwd" ${FIND_ROOT_OPTS}` ]; then
	echo "||||||||||||||||||||||| ERROR |||||||||||||||||||||||"
	echo "-----------------------------------------------------"
	echo "1. The root filesystem, provided with this package,"
	echo "   has to be extracted to this directory:"
	echo "   ${LDK_ROOTFS_DIR}"
	echo "-----------------------------------------------------"
	echo "2. The root filesystem, provided with this package,"
	echo "   has to be extracted with 'sudo' to this directory:"
	echo "   ${LDK_ROOTFS_DIR}"
	echo "-----------------------------------------------------"
	echo "Consult the Development Guide for instructions on"
	echo "extracting and flashing your device."
	echo "|||||||||||||||||||||||||||||||||||||||||||||||||||||"
	exit 1
fi

I checked if there is passwd file in etc directory and it is there. I can’t figure out which file is missing.

Please echo this path from the script and see what got shown.

So i started the process from the beginning.

  1. Synced sources with source_sync.sh

  2. Built a kernel with rt-patches link

  3. Built the minimal flavor root file system link

  4. Extracted the generated sample_fs.tbz2 from Linux_for_Tegra/tools/samplefs in Linux_for_Tegra/rootfs

  5. Executed apply_binaries.sh

This is following error I got

rajanya@NTRORB10917U:~/Documents/JetsonOrin/Linux_for_Tegra$ sudo tar -xjf tools/samplefs/sample_fs.tbz2 --directory=rootfs/
tar: lib: Cannot create symlink to ‘usr/lib’: File exists
tar: Exiting with failure status due to previous errors
rajanya@NTRORB10917U:~/Documents/JetsonOrin/Linux_for_Tegra$ sudo ./apply_binaries.sh 
Using rootfs directory of: /home/rajanya/Documents/JetsonOrin/Linux_for_Tegra/rootfs
Installing extlinux.conf into /boot/extlinux in target rootfs
/home/rajanya/Documents/JetsonOrin/Linux_for_Tegra/nv_tegra/nv-apply-debs.sh
Root file system directory is /home/rajanya/Documents/JetsonOrin/Linux_for_Tegra/rootfs
Copying public debian packages to rootfs
Skipping installation of nvidia-l4t-dgpu-apt-source_35.4.1-20230801124926_arm64.deb ....
Skipping installation of nvidia-l4t-dgpu-config_35.4.1-20230801124926_arm64.deb ....
Skipping installation of nvidia-l4t-factory-service_35.4.1-20230801124926_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/rajanya/Documents/JetsonOrin/Linux_for_Tegra/rootfs /home/rajanya/Documents/JetsonOrin/Linux_for_Tegra
Installing BSP Debian packages in /home/rajanya/Documents/JetsonOrin/Linux_for_Tegra/rootfs
/lib/ld-linux-aarch64.so.1: No such file or directory

Is there anything that i am missing?

Hi,

If you don’t use the minimal flavor Rootfs, but directly use the NVIDIA default rootfs provided on the website, will you hit this error?

This is just to clarify the problem is located in the built-out rootfs or on other location of your host pc.

I tried with NVIDIA default rootfs from the website and i got the following error.

rajanya@NTRORB10917U:~/Documents/JetsonOrin/Linux_for_Tegra$ sudo ./apply_binaries.sh 
Using rootfs directory of: /home/rajanya/Documents/JetsonOrin/Linux_for_Tegra/rootfs
Installing extlinux.conf into /boot/extlinux in target rootfs
/home/rajanya/Documents/JetsonOrin/Linux_for_Tegra/nv_tegra/nv-apply-debs.sh
Root file system directory is /home/rajanya/Documents/JetsonOrin/Linux_for_Tegra/rootfs
Copying public debian packages to rootfs
Skipping installation of nvidia-l4t-dgpu-apt-source_35.4.1-20230801124926_arm64.deb ....
Skipping installation of nvidia-l4t-dgpu-config_35.4.1-20230801124926_arm64.deb ....
Skipping installation of nvidia-l4t-factory-service_35.4.1-20230801124926_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
mknod: /home/rajanya/Documents/JetsonOrin/Linux_for_Tegra/rootfs/dev/random: File exists

Sorry for the late response, have you managed to get issue resolved or still need the support? Thanks

I have managed to resolve this issue and don’t need further support. Thank you

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