development environment(PC):Ubuntu 18.04
Version in use: Jetson Linux 35.3.1
core board:orin Nano4GB
board:Jetson Orin Nano Developer Kit
Follow this tutorial steps:Kernel Customization — Jetson Linux Developer Guide documentation (nvidia.com)
How to modify jetson35.3.1 kernel?
Here’s what I did:
1.I modified the kernel to use “make ARCH=arm64 menuconfig”
2.zynq@zynq-virtual-machine:~/nvidia/35.3/Linux_for_Tegra/source/public$ ./nvbuild.sh -o ~/nvidia/35.3/Linux_for_Tegra/source/kernel_out/
computational results:
zynq@zynq-virtual-machine:~/nvidia/35.3/Linux_for_Tegra/source/public$ ./nvbuild.sh -o ~/nvidia/35.3/Linux_for_Tegra/source/kernel_out/
Building kernel-5.10 sources
make: 进入目录“/home/zynq/nvidia/35.3/Linux_for_Tegra/source/public/kernel/kernel-5.10”
make[1]: 进入目录“/home/zynq/nvidia/35.3/Linux_for_Tegra/source/kernel_out”
***
*** The source tree is not clean, please run 'make ARCH=arm64 mrproper'
*** in /home/zynq/nvidia/35.3/Linux_for_Tegra/source/public/kernel/kernel-5.10
***
make[1]: *** [/home/zynq/nvidia/35.3/Linux_for_Tegra/source/public/kernel/kernel-5.10/Makefile:577:outputmakefile] 错误 1
make[1]: 离开目录“/home/zynq/nvidia/35.3/Linux_for_Tegra/source/kernel_out”
make: *** [Makefile:213:__sub-make] 错误 2
make: 离开目录“/home/zynq/nvidia/35.3/Linux_for_Tegra/source/public/kernel/kernel-5.10”
Then follow the prompts:make ARCH=arm64 mrproper
The kernel reverts to the default state.
Please help me, I have tried many times.
Many thanks
Hi,
Looks like you don’t correctly configure tool chain. Please ensure you follow the steps one by one:
Kernel Customization — NVIDIA Jetson Linux Developer Guide 1 documentation
We’ve got to thank you for your timely help.
I followed the steps above.
Only the kernel needs to be compiled. However, modifying the kernel through the kernel graphical interface throws an error at compilation.
We’ve got to thank you for your timely help.
I followed the steps above.
Only the kernel needs to be compiled. However, modifying the kernel through the kernel graphical interface throws an error at compilation.
I checked the tutorial documentation carefully, only for the external kernel compilation process, there is no mention of kernel modification steps, I tried a variety of approaches
1, “make ARCH=arm64 menuconfig” and then "./nvbuild.sh -o ~/nvidia/35.3/Linux_for_Tegra/source/kernel_out/ ".
2, make ARCH=arm64 defconfig
make ARCH=arm64 menuconfig
make ARCH=arm64 savedefconfig
cp defconfig The arch/arm64 / configs/defconfig.
./nvbuild.sh -o ~/nvidia/35.3/Linux_for_Tegra/source/kernel_out/
The error message is the same
make: 进入目录“/home/zynq/nvidia/35.3/Linux_for_Tegra/source/public/kernel/kernel-5.10”
make[1]: 进入目录“/home/zynq/nvidia/35.3/Linux_for_Tegra/source/kernel_out”
***
*** The source tree is not clean, please run 'make ARCH=arm64 mrproper'
*** in /home/zynq/nvidia/35.3/Linux_for_Tegra/source/public/kernel/kernel-5.10
***
make[1]: *** [/home/zynq/nvidia/35.3/Linux_for_Tegra/source/public/kernel/kernel-5.10/Makefile:577:outputmakefile] 错误 1
make[1]: 离开目录“/home/zynq/nvidia/35.3/Linux_for_Tegra/source/kernel_out”
make: *** [Makefile:213:__sub-make] 错误 2
make: 离开目录“/home/zynq/nvidia/35.3/Linux_for_Tegra/source/public/kernel/kernel-5.10”
Can you tell me how to change it?