Modify kernel configuration JP6.1

Hi,
We have JP6.1 and we build the kernel according to the dev guide instructions under kernel customization chapter.
I tried to menuconfig the kernel and save the .config in kernel source path.
After building the kernel I noticed the changes are discarded.

I saw the following lines in $L4T/source/kernel/Makefile

$(MAKE)
ARCH=arm64
-C $(kernel_source_dir) $(O_OPT)
LOCALVERSION=$(version)
$(KERNEL_DEF_CONFIG)

So I figured out that the makefile generates a new .config on each build.

To bypass that, just before executing

make -C kernel

We copy our on defconfig into $L4T_KERNEL_PATH/arch/arm64/configs and build (overwrite the orig one).
This cause problems with building nvidia-oot and flashing the target as well (uefi menu hangs not allowing continue with flashing)

How can I configure the kernel and keep the changes when building it without breaking other stuff?

Thanks

Add the config in below file.

../kernel/3rdparty/canonical/linux-jammy/kernel-source/arch/arm/configs/tegra_defconfig

I didn’t find this path.

What do you mean by add the config?

replacing the config in both places? use other defconfig?

Thanks

Should be below file.

…/Linux_for_Tegra\source\kernel_src.tbz2\kernel_src.tar\kernel\kernel-jammy-src\arch\arm64\configs\defconfig

Hi @ShaneCCC ,
That worked but I noticed that if I overwrite this file with the content of tegra_defconfig I can’t boot or flash (stuck at bootloader menu):
flash.log (42.7 KB)

Is this a know issue?

Thanks

Modify the defconfig to add what you need.

Okay thank you very much @ShaneCCC

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