4. **Applied Overlay (PCN Patch)**:
$ sudo tar xpf ../overlay_32.7.5_PCN211181.tbz2
5. **Customized Kernel Config:
$ cd sources/kernel/kernel-4.9/
$ make ARCH=arm64 O=build menuconfig
Built Kernel Using Provided Script:
$ ./nvbuild.sh -o $PWD/kernel_out
Issue Faced During Build:
When I attempt to build the kernel, I receive the following error:
make[2]: *** No rule to make target ‘arch/arm64/boot/dts/../hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0000-p3449-0000-a00.dts’, needed by ‘arch/arm64/boot/dts/ddot/hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0000-p3449-0000-a00.dtb’. Stop.
make[2]: *** Waiting for unfinished jobs…
DTC arch/arm64/boot/dts/ddot
cc1: fatal error: arch/arm64/boot/dts/..: No such file or directory
compilation terminated.
make[2]: *** [../arch/arm64/boot/dts/Makefile:133: arch/arm64/boot/dts/ddot] Error 1
make[1]: *** [arch/arm64/Makefile:154: dtbs] Error 2
make: *** [Makefile:171: sub-make] Error 2
how to solve this issue
Hi,
1- Iextracted the BSP sources right after downloading the Jetson Linux Driver Package (Jetson-210_Linux_R32.7.5_aarch64.tbz2) and the Sample Root Filesystem (Tegra_Linux_Sample-Root-Filesystem_R32.7.5_aarch64.tbz2).
I used tar to extract them, then applied the root filesystem using sudo ./apply_binaries.sh.
2- No, I used the default BSP and did not modify the kernel or device tree. but I change the menuconfig (enable ppp)
3- No, I only shared the last portion of the log where the error occurred. I can share the complete build log if needed.
Can you share the exact link to download the custom kernel build dependencies, and can you also provide the exact steps for a custom kernel build for Jetson Nano?
I don’t know which Jetpack version you are using there.
For rel-32.7.6, you could download source code from this website. And that " See the online Jetson Linux Developer Guide for detailed documentation." link has the document for steps to build custom kernel.
inthings@inthings-Z790-UD:~/jetson_4/Linux_for_Tegra/source$ ls -a Linux_for_Tegra/source/public/
ls: cannot access ‘Linux_for_Tegra/source/public/’: No such file or directory
inthings@inthings-Z790-UD:~/jetson_4/Linux_for_Tegra/source$ ls
nv_src_build.sh
inthings@inthings-Z790-UD:~/jetson_4/Linux_for_Tegra/source$
but i did
Downloaded the BSP public sources tarball:**
public_sources.tbz2
Extracted the public sources:
tar -xjf public_sources.tbz2
Extracted the kernel source from inside:
cd Linux_for_Tegra/source/public
tar -xjf kernel_src.tbz2
Verified kernel source is in:
Linux_for_Tegra/source/public/kernel/kernel-4.9
5. **Linked the missing `hardware` directory from BSP to resolve DTB path issue:**
cd Linux_for_Tegra/source/public/kernel/kernel-4.9
ln -s ../../../hardware hardware
6. **Then attempted to build DTBs:**
make ARCH=arm64 O=$TEGRA_KERNEL_OUT dtbs -j$(nproc)