Recompile the kernel without any changes to source files causes errors
Hi. I am attempting to test PCIe using two Jetson AGX Xaviers. One will act as root port, and the other will act as end point.
I am currently using Jetpack 5.1, which uses R35.2.1 BSP. The following NVIDIA documentation for testing PCIe with the R35.2.1 BSP mentions that I have to recompile the kernel by adding “CONFIG_STRICT_DEVMEM=n” to the tegra_defconfig
and recompile the kernel.
https://docs.nvidia.com/jetson/archives/r35.2.1/DeveloperGuide/text/SD/Communications/PcieEndpointMode.html
Therefore, I downloaded the kernel sources for R35.2.1, and followed the instructions in this guide:
https://docs.nvidia.com/jetson/archives/r35.2.1/DeveloperGuide/text/SD/Kernel/KernelCustomization.html
As mentioned in the guide, I downloaded the kernel sources, and extracted them. Then I set up the toolchain by downloading " Bootlin Toolchain gcc 9.3 ", and exported the environment variables “CROSS_COMPILE_AARCH64_PATH” and “CROSS_COMPILE_AARCH64”. ( I am using a Ubuntu 18.04 host machine )
Then without making any changes, I ran the command “./nvbuild.sh -o $PWD/kernel_out” to build the default kernel to verify the process before making any changes.
However, when I run the “./nvbuild.sh -o $PWD/kernel_out” command, I get some errors after some time, and the kernel fails to build. The log when I run the kernel build command is attached.
kernel_build_log (104.3 KB)
Can anyone help me out as to what I am doing wrong?
I did not make any changes. Simply downloaded and extracted the kernel sources, set up the toolchain, and built the kernel with its default settings.