Build Instructions
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.
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:~
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
After the build, the following artifacts will be present:
Kernel image:located underoutput/arch/arm/boot/ImageKernel modules:After kernel modules installation, they will be located underoutput/modules
To update the kernel Image, modules and device tree, follow the instructions in the Installation Instructions section.