Hi,
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
wget https://developer.nvidia.com/embedded/jetson-linux/bootlin-toolchain-gcc-93
tar -xf bootlin-toolchain-gcc-93
get kernel
mkdir -p ${HOME}/orin
cd ${HOME}/orin
wget https://developer.nvidia.com/embedded/l4t/r34_release_v1.1/sources/public_sources.tbz2
tar xf public_sources.tbz2
cd Linux_for_Tegra/source/public
tar xf kernel_src.tbz2
build kernel
mkdir -p kernel-out modules-out
./nvbuild.sh -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
installed
reboot
Can you please let me know what I’m doing wrong?