Hi Sir,
I saw two kernel source in my Xavier PDK,
…
drive-oss-src/kernel
drive-t186ref-foundation_src/kernel/drive-oss-t186-flashing_kernel-src/drive-oss-src/kernel
…
And there are also two approaches to build kernel in PDK documents,
In NVIDIA_DRIVE_5.0_OSS_DPX_PDK
…
cd /drive-oss-src
mkdir out-t186ref-linux
make -C kernel O=${PWD}/out-t186ref-linux clean
…
In DRIVE_Software_Docs, building the Flashing Kernel
…
mkdir -p out-t194-linux/out
make -C kernel O=${PWD}/out-t194-linux/out clean
…
I built kernel via drive-oss-t186-flashing_kernel-src.tar.bz2 in folder /drive-t186ref-foundation_src/kernel according to section “DRIVE_Software_Docs, building the Flashing Kernel”, then copy neccesatry files to /drive-t186ref-foundation/tools/host/flashtools/flash/t18x/rcmkernel,
Extract the flashing kernel sources using the following commands on the host:
cd /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
Set up the environment macros:
export ARCH=arm64
export CROSS_COMPILE=/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-
export CROSS32CC=/toolchains/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gcc
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
Add the following command:
make -C kernel O=${PWD}/out-t194-linux/out tegra_gnu_linux_defconfig
Build the kernel:
make -C kernel O=${PWD}/out-t194-linux/out -j4
Copy the uncompressed kernel image with the following command:
cp ${PWD}/out-t194-linux/out/arch/arm64/boot/Image /drive-t186ref-foundation/tools/host/flashtools/flash/t18x/rcmkernel
Copy the flashing kernel DTB file with the following command:
cp ${PWD}/out-t194-linux/out/arch/arm64/boot/dts/tegra194-e3550-0001-b01-A-flashing-base.dtb /drive-t186ref-foundation/tools/host/flashtools/flash/t18x/rcmkernel
cp ${PWD}/out-194-linux/out/arch/arm64/boot/dts/tegra194-e3550-0001-b01-B-flashing-base.dtb /drive-t186ref-foundation/tools/host/flashtools/flash/t18x/rcmkernel