| Line 5: | Line 5: | ||
==Getting the sources== |
==Getting the sources== |
||
You can find the desired JetPack version from [https://developer.nvidia.com/embedded/jetson-linux-archive Jetson Linux Archives]. |
|||
1. Go to JetPack |
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: |
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- |
* Tegra_Linux_Sample-Root-Filesystem_RX.X.X_aarch64.tbz2 |
||
3. Create a directory for installing JetPack. Referred to as <INSTALL_DIR>. For example: |
3. Create a directory for installing JetPack. Referred to as <INSTALL_DIR>. For example: |
||
| Line 22: | Line 22: | ||
<syntaxhighlight lang="bash"> |
<syntaxhighlight lang="bash"> |
||
cp $HOME/Downloads/ |
cp $HOME/Downloads/Jetson_Linux_RX.X.X_aarch64.tbz2 . |
||
cp $HOME/Downloads/Tegra_Linux_Sample-Root- |
cp $HOME/Downloads/Tegra_Linux_Sample-Root-Filesystem_RX.X.X_aarch64.tbz2 . |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
5. Extract "L4T Driver Package" tarball: |
5. Extract "L4T Driver Package" tarball: |
||
<syntaxhighlight lang="bash"> |
<syntaxhighlight lang="bash"> |
||
sudo tar -vjxf |
sudo tar -vjxf Jetson_Linux_RX.X.X_aarch64.tbz2 |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
| Line 36: | Line 36: | ||
<syntaxhighlight lang="bash"> |
<syntaxhighlight lang="bash"> |
||
sudo tar -C Linux_for_Tegra/rootfs/ -vxjf Tegra_Linux_Sample-Root- |
sudo tar -C Linux_for_Tegra/rootfs/ -vxjf Tegra_Linux_Sample-Root-Filesystem_RX.X.X_aarch64.tbz2 |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
| Line 45: | Line 45: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
The release tag can be extracted from the release notes of the JetPack version. |
The release tag can be extracted from the release notes of the JetPack version. |
||
<syntaxhighlight lang="bash"> |
|||
./source_sync.sh -k -t jetson_36.4.4 |
|||
</syntaxhighlight> |
|||
8.Return to "Linux_for_Tegra" directory and apply binaries. |
8.Return to "Linux_for_Tegra" directory and apply binaries. |
||
Revision as of 15:52, 18 November 2025
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
