Link Search Menu Expand Document

Build the AIB-L4T

We have created a fork of the original NVIDIA L4T repo to build our own kernel + device tree.

This page will tell how to build the repo.

Clone aib-l4t repo

$ git clone git@github.com:ai-blox/aib-l4t.git
$ cd aib-l4t
$ git submodule init
$ git submodule update

Checkout right version

You can find the different version in the README.md file:

$ git submodule foreach 'git checkout aib-l4t-r32.7.1'

Build the kernel

$ cd kernel/kernel-4.9
$ export TEGRA_KERNEL_OUT=~/nvidia/ai-blox_sdk/aib-l4t-r32.7.1
$ mkdir -p $TEGRA_KERNEL_OUT
$ make ARCH=arm64 O=$TEGRA_KERNEL_OUT tegra_defconfig

# add the EDT FocalTech FT5x06 I2C Touchscreen support driver through menuconfg
# TOUCHSCREEN_EDT_FT5X06
$ make ARCH=arm64 O=$TEGRA_KERNEL_OUT menuconfig

# build everything
$ make ARCH=arm64 O=$TEGRA_KERNEL_OUT -j6

Install the kernel + device trees

$ export TEGRA_SDK_PATH=~/nvidia/nvidia_sdk/JetPack_4.6.1_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra
$ export TEGRA_SDK_KERNEL_PATH=$TEGRA_SDK_PATH/kernel
$ export TEGRA_SDK_ROOTFS_PATH=$TEGRA_SDK_PATH/rootfs
 
$ cp $TEGRA_KERNEL_OUT/arch/arm64/boot/Image $TEGRA_SDK_KERNEL_PATH
$ sudo cp $TEGRA_KERNEL_OUT/arch/arm64/boot/dts/tegra194-p3668-all-mx1030-2.dtb $TEGRA_SDK_ROOTFS_PATH/boot
$ sudo make ARCH=arm64 O=$TEGRA_KERNEL_OUT INSTALL_MOD_PATH=$TEGRA_SDK_ROOTFS_PATH modules_install