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.
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.
Hi, I just made a clean build on r35.2.1, and did not encounter the same error as you did.
Can you delete the whole folder and start the process again?
We can take a deeper look into it if the error is still the same.
Hi, can you try either build on a different PC (maybe a fresh and clean Ubuntu system) or use R35.3.1?
It seems we are not able to re-produce this issue as of now.
@DaveYYY . Sorry for the late reply. I was away on holiday for a couple of days. Using another Ubuntu system worked. I am now able to build the kernel using default settings, and also after adding CONFIG_STRICT_DEVMEM=n” to the tegra_defconfig file. Thanks for the support!