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
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.
Extracted the generated sample_fs.tbz2 from Linux_for_Tegra/tools/samplefs in Linux_for_Tegra/rootfs
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
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