To Build the Real-Time Kernel

https://docs.nvidia.com/jetson/archives/r35.3.1/DeveloperGuide/text/SD/Kernel/KernelCustomization.html#preparing-to-build-external-kernel-modules

I am trying to build the real time kernel and

I cant seem to understand the second step
2. Build the kernel modules:

$ cd $ sudo make ARCH=arm64 O=$TEGRA_KERNEL_OUT modules_install INSTALL_MOD_PATH=/Linux_for_Tegra/rootfs/

Make sure there is a new folder with -rt63- in its name under Linux_for_Tegra/usr/lib/modules/ .

Further i tried to use the following command

sudo make ARCH=arm64 O=$TEGRA_KERNEL_OUT modules_install INSTALL_MOD_PATH=/home/dnc/Downloads/ver35.3/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/rootfs/

Here is the log of that command
make[1]: Entering directory ‘/home/dnc/jetson-kernel’

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run ‘make oldconfig && make prepare’ on kernel src to fix it.

/home/dnc/Downloads/ver35.3/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/rootfs/usr/src/linux-headers-5.10.104-tegra-ubuntu20.04_aarch64/kernel-5.10/Makefile:675: include/config/auto.conf: No such file or directory
make[1]: *** [/home/dnc/Downloads/ver35.3/Jetson_Linux_R35.3.1_aarch64/Linux_for_Tegra/rootfs/usr/src/linux-headers-5.10.104-tegra-ubuntu20.04_aarch64/kernel-5.10/Makefile:750: include/config/auto.conf] Error 1
make[1]: Leaving directory ‘/home/dnc/jetson-kernel’
make: *** [Makefile:213: __sub-make] Error 2

Additionally i have the kconfig and kbuild file


Also the kconfig file is present not through the tegra file as indicated in the picture

Can you help me out ?

Hi,
We would suggest use Jetpack 5.1.3 or 6.0GA. You may check the latest steps in developer guide:

Kernel — NVIDIA Jetson Linux Developer Guide 1 documentation
Kernel Customization — NVIDIA Jetson Linux Developer Guide 1 documentation

I am in the process of implementing the ver 35.3.1
There are some issues with the latest version .
Let me know if this command could be explained

$ cd $ sudo make ARCH=arm64 O=$TEGRA_KERNEL_OUT modules_install INSTALL_MOD_PATH=/Linux_for_Tegra/rootfs/

Also there is the path called drivers/video/tegra/Kconfig
which is missing although i have installed the files

here is the log file

~/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10$ find /home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/ -name Kconfig | grep tegra
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/arch/arm/mach-tegra/Kconfig
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/arch/arm/mach-integrator/Kconfig
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/drivers/memory/tegra/Kconfig
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/drivers/gpu/drm/tegra/Kconfig
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/drivers/staging/media/tegra-vde/Kconfig
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/drivers/staging/media/tegra-video/Kconfig
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/drivers/soc/tegra/Kconfig
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/drivers/phy/tegra/Kconfig
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/drivers/clk/tegra/Kconfig
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/drivers/firmware/tegra/Kconfig
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/drivers/pinctrl/tegra/Kconfig
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/drivers/thermal/tegra/Kconfig
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/drivers/reset/tegra/Kconfig
/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/sound/soc/tegra/Kconfig

And also help me resolve the above issues and the problems that i had stated earlier ?

Did you set the CROSS_COMPILE environment variable?

Yes Here it is . I had executed teh earlier steps mentioned as well . As stated earlier i am trying to build the rt kernel itself


ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run ‘make oldconfig && make prepare’ on kernel src to fix it.

/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/Makefile:675: include/config/auto.conf: No such file or directory
make[1]: *** [/home/dnc/Downloads/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/sources/kernel/kernel-5.10/Makefile:750: include/config/auto.conf] Error 1
make[1]: Leaving directory ‘/home/dnc/Desktop/pub/public_sources/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-5.10/out’
make: *** [Makefile:213: __sub-make] Error 2

This is the error that comes when i try executing the command

sudo make ARCH=arm64 O=$TEGRA_KERNEL_OUT modules_install INSTALL_MOD_PATH=/Linux_for_Tegra/rootfs/

Hi,
Please ensure version of the packages is identical. Somehow R35.3.1 and R35.1.0 are shown in the comments. You may try clean download of R35.5.0(Jetpack 5.1.3).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.