From ProventusNova DeveloperWiki

Jetson Linux BSP and Kernel Source setup

Keywords: NVIDIA Jetson, JetPack

Description

This wiki pages shows how to get sources for any JetPack version for NVIDIA platform. Download board support package (BSP), sample root file system and kernel sources for kernel customization.

Getting the sources

You can find the desired JetPack version from Jetson Linux Archives.

1. Go to JetPack's version release page and download “L4T Driver Package (BSP)” and “Sample Root filesystem”.

2. You should see this two files with the following names, where XXX specifies the version for L4T:

  • Jetson_Linux_RX.X.X_aarch64.tbz2
  • Tegra_Linux_Sample-Root-Filesystem_RX.X.X_aarch64.tbz2

3. Create a directory for installing JetPack. Referred to as <INSTALL_DIR>. For example:

 
INSTALL_DIR = build
mkdir $INSTALL_DIR
cd $INSTALL_DIR

4. Copy both files to <INSTALL_DIR>

 
cp $HOME/Downloads/Jetson_Linux_RX.X.X_aarch64.tbz2 .
cp $HOME/Downloads/Tegra_Linux_Sample-Root-Filesystem_RX.X.X_aarch64.tbz2 .

5. Extract "L4T Driver Package" tarball:

 
sudo tar -vjxf Jetson_Linux_RX.X.X_aarch64.tbz2

You should see a new directory called Linux_for_tegra in <INSTALL_DIR> directory.

6. Extract "Sample Root Filesystem" into Linux_for_tegra/rootfs

 
sudo tar -C Linux_for_Tegra/rootfs/ -vxjf Tegra_Linux_Sample-Root-Filesystem_RX.X.X_aarch64.tbz2

7. Go into "Linux_for_Tegra/source" directory and extract the kernel sources.

 
cd Linux_for_Tegra/source
./source_sync.sh -k -t <release_tag>

The release tag can be extracted from the release notes of the JetPack version.

8.Return to "Linux_for_Tegra" directory and apply binaries.

 
cd ../
sudo ./apply_binaries.sh

Now you are all set up to customize and build your own kernel.

Recomendation

Create a default user to access the board.

  • Inside Linux_for_Tegra directory, create default user with:
 
sudo ./tools/l4t_create_default_user.sh -u <username> -p <password> -n <hostname>

for example:

 
sudo ./tools/l4t_create_default_user.sh -u nvidia -p nvidia -n nvidia

Flashing the board