Facing the below errors while building the kernel for Javier NX module

Errors:
arch/arm64/boot/dts/Makefile:132: target ‘arch/arm64/boot/dts/ddot’ given more than once in the same rule

arch/arm64/boot/dts/Makefile:132: target ‘arch/arm64/boot/dts/ddot’ given more than once in the same rule

make[1]: *** No rule to make target ‘arch/arm64/boot/dts/…//hardware/nvidia/platform/t19x/mccoy/kernel-dts/tegra194-p2888-0004-e3900-0000.dts’, needed by ‘arch/arm64/boot/dts/ddot//hardware/nvidia/platform/t19x/mccoy/kernel-dts/tegra194-p2888-0004-e3900-0000.dtb’. Stop.

make[1]: *** 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[1]: *** [arch/arm64/boot/dts/Makefile:133: arch/arm64/boot/dts/ddot] Error 1

make: *** [arch/arm64/Makefile:154: dtbs] Error 2

Hi,
Please share which Jetpack version you are using so that we can suggest next.

Hi,

Sorry for jumping in,

There were the exact same errors reported here: Can't compile the Jetson Nano kernel

There is a solution in the post: Failed to make L4T kernel dts - #9 by mzapart

Regards,
Roberto Gutierrez,
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/

I am using NVIDIA Xavier NX… Jetson version 32.5

This is not my issue. Please check my errors

Hi,
It is possible to upgrade to Jetpack 4.6.3(r32.7.3) and give it a try?

could you go through this post:

I wanted use AON GPIO so you guys suggested this version 32.5

Hello, ayyappan.rathinam
For SPE firmware, I checked the BSP package, and there’s no SPE upgrade from 32.5 to 32.7.
So you can go forward with 32.7.3 BSP, and test with 32.5 SPE source.

br
Chenjian

OK. Will try right away. But Please help compiling the SPE firmware first [Facing compilation error while building SPE Firmware of release 32.5 - #17 by jachen].

I am using virtualbox and ubuntu 22.04. Is that a problem?

Hi,
We would suggest use host PC in Ubuntu 18.04. Virtual machine or later Ubuntu version may not work properly.

I am able to compile SPE firmware. Lets me the version 32.7.3.

I think ubuntu 22.04 should be ok.

Hi Chen Jian,

I tried the version 32.7 and facing the below errors. Do you know anything about the below errors?

I verified this link L4T 32.7.1 Device Tree Compilation Fails and path is correct in my source makefile

rch/arm64/boot/dts/Makefile:132: target ‘arch/arm64/boot/dts/ddot’ given more than once in the same rule
arch/arm64/boot/dts/Makefile:132: target ‘arch/arm64/boot/dts/ddot’ given more than once in the same rule
arch/arm64/boot/dts/Makefile:132: target ‘arch/arm64/boot/dts/ddot’ given more than once in the same rule
arch/arm64/boot/dts/Makefile:132: target ‘arch/arm64/boot/dts/ddot’ given more than once in the same rule
arch/arm64/boot/dts/Makefile:132: target ‘arch/arm64/boot/dts/ddot’ given more than once in the same rule
arch/arm64/boot/dts/Makefile:132: target ‘arch/arm64/boot/dts/ddot’ given more than once in the same rule
arch/arm64/boot/dts/Makefile:132: target ‘arch/arm64/boot/dts/ddot’ given more than once in the same rule
arch/arm64/boot/dts/Makefile:132: target ‘arch/arm64/boot/dts/ddot’ given more than once in the same rule
arch/arm64/boot/dts/Makefile:132: target ‘arch/arm64/boot/dts/ddot’ given more than once in the same rule
arch/arm64/boot/dts/Makefile:132: target ‘arch/arm64/boot/dts/ddot’ given more than once in the same rule
make[1]: *** No rule to make target ‘arch/arm64/boot/dts/…//hardware/nvidia/platform/t19x/mccoy/kernel-dts/tegra194-p2888-0004-e3900-0000.dts’, needed by ‘arch/arm64/boot/dts/ddot//hardware/nvidia/platform/t19x/mccoy/kernel-dts/tegra194-p2888-0004-e3900-0000.dtb’. Stop.
make[1]: *** 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[1]: *** [arch/arm64/boot/dts/Makefile:133: arch/arm64/boot/dts/ddot] Error 1
make: *** [arch/arm64/Makefile:154: dtbs] Error 2

Hi Chen/Dane LL

This link Failed to make L4T kernel dts - #7 by ShaneCCC helped me to resolve the above issue.

But facing this issue now: Any clue??

IHEX2FW firmware/emi26/firmware.fw
IHEX2FW firmware/emi62/loader.fw
IHEX2FW firmware/emi62/spdif.fw
IHEX2FW firmware/emi62/midi.fw
IHEX2FW firmware/emi26/bitstream.fw
IHEX2FW firmware/emi62/bitstream.fw
Error: Missing kernel image /home/ayyappan/nvidia/kernel_source/Linux_for_Tegra/source/public/kernel_out/arch/arm64/boot/Image
ayyappan@ubuntu-22:~/nvidia/kernel_source/Linux_for_Tegra/source/public$ 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000…000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000…000000000000000000000000000000000000000000000000000000000: command not found
ayyappan@ubuntu-22:~/nvidia/kernel_source/Linux_for_Tegra/source/public$

Hi,
Please make sure you link to this toolchain for building source code:
https://developer.nvidia.com/embedded/linux-tegra-r3261

GCC 7.3.1 for 64 bit BSP and Kernel

Seems like you probably link to gcc of Ubuntu 22.04

OK. will check this. BTW,

How to clean the kernel and compile fresh one.

This command “sudo ./nvbuild.sh -o $PWD/kernel_out” i am using for compile

Hi DaneLL

I did not see the previous errors. But I see the below error. Could you check?

IHEX firmware/3com/typhoon.bin
IHEX firmware/kaweth/trigger_code.bin
IHEX firmware/kaweth/new_code_fix.bin
IHEX firmware/kaweth/trigger_code_fix.bin
IHEX firmware/cpia2/stv0672_vp4.bin
HOSTCC firmware/ihex2fw
IHEX2FW firmware/emi26/loader.fw
IHEX2FW firmware/emi62/loader.fw
IHEX2FW firmware/emi26/firmware.fw
IHEX2FW firmware/emi62/spdif.fw
IHEX2FW firmware/emi62/midi.fw
IHEX2FW firmware/emi26/bitstream.fw
IHEX2FW firmware/emi62/bitstream.fw
Error: Missing kernel image /home/ayyappan/nvidia/kernel_source/Linux_for_Tegra/source/public/kernel_out/arch/arm64/boot/Image

Hi,
Please try the manual steps in
https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3261/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/kernel_custom.html#wwpID0E0WD0HA
See if it works by executing the commands step by step.

Hi,

Sorry if there were any misunderstandings, but I just saw that the post helped you so I’m jumping here again.

For the other errors, here is another post that might help:

Change nvbuild.sh on line 86:
from

O_OPT=(-O “${KERNEL_OUT_DIR}”)

to

O_OPT=(O=“${KERNEL_OUT_DIR}”)

Regards

I tried this and it did not help for me.

Regarding the above error, that file is generated from a “make Image” command (adjusted for path and tools, e.g., the “O=/some/where/temporary” would change the $TOP for output of content during a build). I don’t know about the particular firmware build command you used, but if it requires the Image file, then perhaps it is as simple as building the Image target (configured correctly) and then firmware might build.