Create a Pure JetPack 5.1.2 Environment

Sometimes, a minor version upgrade in SDKManager can lead to confusion. As a result, we prefer to establish a clean L4T environment on the host computer independently of the SDKManager.

According to NVIDIA's public information, JetPack 5.1.2 is based on Jetson Linux 35.4.1. You can find all the necessary file links to create a BSP, kernel sources, and a sample rootfs (root file system) at https://developer.nvidia.com/embedded/jetson-linux-r3541arrow-up-right

After following the steps outlined below, you will have the L4T folder ready for device tree and kernel compilation.


# Remember to update the following environment variables
JP=/home/$USER/Desktop/JP512

### Ref: https://developer.nvidia.com/embedded/jetson-linux-r3541
DriverPackageBSP=https://developer.nvidia.com/downloads/embedded/l4t/r35_release_v4.1/release/jetson_linux_r35.4.1_aarch64.tbz2/
DriverPackageBSPSources=https://developer.nvidia.com/downloads/embedded/l4t/r35_release_v4.1/sources/public_sources.tbz2/
SampleRootFileSystem=https://developer.nvidia.com/downloads/embedded/l4t/r35_release_v4.1/release/tegra_linux_sample-root-filesystem_r35.4.1_aarch64.tbz2/

sudo apt-get install binutils

mkdir -p $JP
cd $JP

wget -O driver.tar.gz $DriverPackageBSP
wget -O driverSource.tar.gz $DriverPackageBSPSources
wget -O rootfs.tar.gz $SampleRootFileSystem

### Decompress
cd $JP
tar xvf driver.tar.gz

mkdir -p $JP/Linux_for_Tegra/rootfs/
cd $JP/Linux_for_Tegra/rootfs/
sudo tar xvpf ../../rootfs.tar.gz

cd $JP
tar xvjf driverSource.tar.gz

cd $JP/Linux_for_Tegra/source/public
mkdir -p $JP/Linux_for_Tegra/sources
tar xvf kernel_src.tbz2 -C $JP/Linux_for_Tegra/sources

# Preparing the flashing environment 
cd $JP/Linux_for_Tegra
sudo ./apply_binaries.sh
sudo ./tools/l4t_flash_prerequisites.sh

# Create Defualt User Name
sudo ./tools/l4t_create_default_user.sh -u nvidia -p nvidia -a

Last updated