TL;DR - COPY the generic-dts/dtbs FAILS
Thre are no dtbs in the folder to copy over.
$ cp nvidia-oot/device-tree/platform/generic-dts/dtbs/*
/Linux_for_Tegra/kernel/dtb/
STEPS taken to build kernel from source. No modifcations to kernel, on devkit.
I have been carefully following the Kernel customization
DevGuideKernelbuild
In the Jetpack 6.2 R36.3 GA L4T 36.4.3
I have successfully pulled down and manually installed all the code.
Going through all the steps:
I hvae git
I have bc and all the other programs needed
I have the toolchain installed
I downloaded the sources from nvidias jetpack page
I extracted the tbz2 files from public_sources.tbz2
My install path is /disk1/cpurwin/nvidia-jetson/
$ cd /Linux_for_Tegra/source
$ tar xf kernel_src.tbz2
$ tar xf kernel_oot_modules_src.tbz2
$ tar xf nvidia_kernel_display_driver_source.tbz2
I am not doing a real-time kernel
Followed the Building the Jetson Linux Kernel steps
my export(s):
export | grep KER
declare -x KERNEL_HEADERS=“/disk1/cpurwin/nvidia-jetson/Linux_for_Tegra/source/kernel/kernel-jammy-src”
export | grep CROSS
declare -x CROSS_COMPILE=“/disk1/l4t-gcc/aarch64–glibc–stable-2022.08-1//bin/aarch64-buildroot-linux-gnu-”
export | grep MOD_
declare -x INSTALL_MOD_PATH=“/disk1/cpurwin/nvidia-jetson/Linux_for_Tegra/rootfs/”
I have success with :
make -C kernel
sudo -E make install -C kernel
cp kernel/kernel-jammy-src/arch/arm64/boot/Image
/Linux_for_Tegra/kernel/Image (successfully copied)
Building oot modules*
start in ../source No issue
make modules
==========================
Display driver compiled successfully.
.========================
sudo -E make modules_install
Looks like it may have finished correctly, not entirely clear
I do get:
make[1]: Entering directory ‘/disk1/cpurwin/nvidia-jetson/Linux_for_Tegra/source/kernel/kernel-jammy-src’
INSTALL /disk1/cpurwin/nvidia-jetson/Linux_for_Tegra/rootfs//lib/modules/5.15.148-tegra/updates/nvhwpm.ko
SIGN /disk1/cpurwin/nvidia-jetson/Linux_for_Tegra/rootfs//lib/modules/5.15.148-tegra/updates/nvhwpm.ko
DEPMOD /disk1/cpurwin/nvidia-jetson/Linux_for_Tegra/rootfs//lib/modules/5.15.148-tegra
Warning: modules_install: missing ‘System.map’ file. Skipping depmod.
update initramfs completes fine
make dtbs completes fine
fi
if [ -d /disk1/cpurwin/nvidia-jetson/Linux_for_Tegra/source/kernel-devicetree/generic-dts/hardware/ ] ; then \*
rm -rf /disk1/cpurwin/nvidia-jetson/Linux_for_Tegra/source/kernel-devicetree/generic-dts/hardware/ ; \*
*fi*
*make[1]: Leaving directory '/disk1/cpurwin/nvidia-jetson/Linux_for_Tegra/source'*
*================================================================================*
*DTBs compiled successfully.*
*================================================================================*
COPY the generic-dts/dtbs FAILS
Thre are no dtbs in the folder to copy over.
folder contents
cpurwin@yxi00045259:/disk1/cpurwin/nvidia-jetson/Linux_for_Tegra/source/nvidia-oot/device-tree/platform/generic-dts$ ls
Makefile
Where are all the dtbs that /i would expect to copy over???
I can still flash since the
I saw this note:
If KERNEL_HEADERS points to a source directory rather than an exported headers directory, you will need to run make ARCH=arm64 defconfig scripts or equivalent in order to build dtc.
I went down into
Linux_for_Tegra/source/kernel/kernel-jammy-src$ make ARCH=arm64 defconfig scripts
and ran the make command.
After that re-ran the make dtbs. No change in the generics-dts/dtbs folder.
I know the build “works” since with original dtbs from nvidia, I can take all the build image files, and flash the orin agx and it will boot.
However need to know what I am missing in getting the oot dtbs to generate.
Thank you.