JP5.02 / L4T 35.1 kernel build fails to boot


I have downloaded the kernel source and toolchain, and built the kernel
as per the below, but the kernel fails to boot. What I mean is there is
no output at all after the boot prompt:
** WARNING: Test Key is used. **

L4TLauncher: Attempting GRUB Boot
L4TLauncher: Attempting Direct Boot
L4T boot options
0: primary kernel
1: kernel built by pepperoni
Press 0-1 to boot selection within 3.0 seconds.
Press any other key to boot default (Option: 0)

(option 1 is my built kernel, option 0 the original prebuilt kernel from
the SDK). Option 0 boots fine, Option 1 doesn’t.

This is using the latest Jetpack 5.0.2 / L4T 35.1 on AGX Orin.

I’ve downloaded and built the kernel as follows:

get toolchains

cd $HOME
mkdir -p $HOME/l4t-gcc
cd $HOME/l4t-gcc

tar -xf bootlin-toolchain-gcc-93

get kernel

mkdir -p ${HOME}/orin
cd ${HOME}/orin
tar xf public_sources.tbz2
cd Linux_for_Tegra/source/public
tar xf kernel_src.tbz2

build kernel

mkdir -p kernel-out modules-out
./ -o kernel-out
make modules_install ARCH=arm64 O=kernel-out CROSS_COMPILE=$CROSS_COMPILE INSTALL_MOD_PATH=modules-out

install kernel + modules and fix ownership

scp kernel-out/arch/arm64/boot/Image root@orin:/boot/Image.pepperoni
rsync -a modules-out/lib/modules/ root@orin:/lib/modules/
scp kernel-out/arch/arm64/boot/dts/nvidia/kernel_tegra234-p3701-0000-p3737-0000.dtb root@orin:/boot/fdt.pepperoni

ssh root@pepperoni chown -R root:root /boot/Image.pepperoni /lib/modules/ /boot/fdt.pepperoni

update extlinux

copy existing entry 0, and update new entry 1 to point kernel/fdt just


Can you please let me know what I’m doing wrong?

Hi jj16,

Are you using the devkit or custom board?

Could you try to replace Linux_for_Tegra/kernel/Image and Linux_for_Tegra/kernel/dtb/tegra234-p3701-0000-p3737-0000.dtb with the kernel Image and dtb file you built respectively?

After that, You could flash your board with flash script to update kernel.

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