NVIDIA Tegra
NVIDIA DRIVE OS 5.1 Linux

Developer Guide
5.1.0.2 Release


 
Building the Flashing Kernel
This topic provides instructions on building the flashing kernel sources.
To build the flashing kernel
1. Extract the flashing kernel sources using the following commands on the host:
cd <top>/drive-t186ref-foundation_src/kernel
tar xvf drive-oss-t186-flashing_kernel-src.tar.bz2
cd drive-oss-t186-flashing_kernel-src/drive-oss-src
2. Set up the environment macros:
export ARCH=arm64
export CROSS_COMPILE=<top>/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-
export CROSS32CC=<top>/toolchains/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gcc
3. Create an output directory, and then configure the kernel for the board:
mkdir -p out-t194-linux/out
make -C kernel O=${PWD}/out-t194-linux/out clean
4. Add the following command:
make -C kernel O=${PWD}/out-t194-linux/out tegra_gnu_linux_defconfig
5. Build the kernel:
make -C kernel O=${PWD}/out-t194-linux/out -j4
 
Note:
If the above command fails, enter the make command without the j<number> option.
6. Copy the uncompressed kernel image with the following command:
cp ${PWD}/out-t194-linux/out/arch/arm64/boot/Image <top>/drive-t186ref-foundation/tools/host/flashtools/flash/t18x/rcmkernel
7. Copy the flashing kernel DTB file with the following command:
cp ${PWD}/out-t194-linux/out/arch/arm64/boot/dts/tegra194-<board>-<sku>-<rev>-A-flashing-base.dtb <top>/drive-t186ref-foundation/tools/host/flashtools/flash/t18x/rcmkernel
 
cp ${PWD}/out-t194-linux/out/arch/arm64/boot/dts/tegra194-<board>-<sku>-<rev>-B-flashing-base.dtb <top>/drive-t186ref-foundation/tools/host/flashtools/flash/t18x/rcmkernel
For definitions of the <board>-<sku_id>-<rev>, see the Release Notes.