Jump to content

Build Instructions

From RidgeRun Developer Wiki

Follow us on: YouTube Twitter LinkedIn Email Share this page

Share This Page



Build Instructions

In order to check the hardware functional components, the CIP Kernel image, modules and device tree have to be installed on the AGX Xavier and Xavier NX Jetson boards. Check the instructions on how to build the binaries in the following section.

To install the binaries, check Installation Instructions to perform the necessary changes on the Xavier platforms.

Info
The instructions provided in this wiki page assume the AGX Xavier and Xavier NX boards has been flashed with JetPack version 5.1.6 previously. To perform this, check the Flash Image with GUI Installer and Flashing the Board from Cmdline instructions

Clone the repository

1. Clone the NVIDIA sources repo:

REPO_URL=<url of  xavier_r35.6.4_sources>
BSP_NAME= xavier_r35.6.4_sources
git clone $REPO_URL $BSP_NAME
cd $BSP_NAME

2. Get the CIP Kernel by executing the fetch_kernel.sh script, which will clone the kernel into the appropriate directory or update it if already cloned.

cd $BSP_NAME
./fetch_kernel.sh

After this, CIP kernel will be located under kernel/kernel-5.10

Build the code

The sources repository (from now on BSP) contains a helper script to make the development process easier.

1. Configure the environment: this has to be done once per shell session.

cd $BSP_NAME
source ./build-env.sh

This command will open a new shell, configure the environment in the new shell and show an usage help message. It will also check for an available toolchain or get it for you in case it is missing.

Once the environment is configured, the terminal will show a PS1 like this:

[XAVIER] efernandez@efernandez-Alienware-m15-R7:~


Info
You can always type exit anytime to exit from the build environment


Info
After this, all the commands will be available in the shell and can be run from any directory


2. Configure: This usually has to be done once.

build config


3. Build all the binaries: this usually has to be done once.

build all


4. Install kernel modules

build install


Info

Once the full kernel has been built, you can always build pieces of it during regular development by using the sub-commands

build dtbs     # Build devicetree
build kernel   # build kernel image
build modules  # build kernel modules


After the build, the following artifacts will be present:

  • Kernel image: located under output/arch/arm/boot/Image
  • Kernel modules: After kernel modules installation, they will be located under output/modules

To update the kernel Image, modules and device tree, follow the instructions in the Installation Instructions section.




Cookies help us deliver our services. By using our services, you agree to our use of cookies.