We are using Jetson TX2 NX with L4T 32.6.1 (JetPack 4.x). Since there is no officially maintained minimal/custom rootfs from NVIDIA, we currently start from the standard sample rootfs and reduce image size by removing unused packages and services.
We are evaluating whether rebuilding a custom rootfs from the Sample Root Filesystem Sources is recommended ?
Could you please advise:
Whether NVIDIA recommends rebuilding a custom rootfs from scratch for TX2 NX on L4T 32.6.1
Any known limitations or risks with this approach
Best practices for minimizing rootfs size on JetPack 4.x
it’s okay by removing unused packages and services to reduce image size.
may I know what’s the expectation of minimal rootfs?
please refer to flash_l4t_t186.xml for partition layouts, and also p3636.conf.common for flashing configuration file.
although TX2 NX has 16GB eMMC, there’re some necessary binaries for boot part. as you can see, it’s defined ROOTFSSIZE=14GiB for root file system.
Our target is not to change the ROOTFSSIZE defined by NVIDIA (14 GiB), but to reduce the actual used space inside the rootfs in order to reduce build time, reduce image maintenance complexity, and avoid carrying unnecessary desktop/UI packages (LibreOffice, games, etc.).
Currently, we start from the standard NVIDIA sample rootfs and remove unused packages and services. This approach has already reduced the used space from ~9.6 GB to ~3.5 GB while keeping the system fully functional.
Package cleaned during build time : libcudnn8
libcudnn8-dev
libgl1-mesa-dri
xfonts-base
fonts-dejavu-core
xfonts-utils
nvidia-l4t-weston
x11-common
nvidia-container-toolkit
libnvidia-container-tools
libnvidia-container0
libllvm10
bluez*
Our best-effort goal is to further reduce the used rootfs size closer to ~2 GB where feasible, understanding that JetPack 4.x / L4T 32.6.1 includes mandatory proprietary components that define a practical lower limit.
Could you please advise if there are any NVIDIA-recommended best practices, tools, or guidelines to further minimize the used rootfs size
unfortunately, there’s no recommended steps to minimize rootfs size.
please have customization to remove unused packages and services to shrink root file system size.