Cross compile failed

Source code: R32.7.2(JetPack4.6.2)
GCC: gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz

#TEGRA_KERNEL_OUT=/path/to/jetpack4.6.2/out
#export CROSS_COMPILE=/path/to/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
#export LOCALVERSION=-tegra
#cd kernel/kernel-4.9
#make ARCH=arm64 O=$TEGRA_KERNEL_OUT tegra_defconfig
#make ARCH=arm64 O=$TEGRA_KERNEL_OUT -j8

I think you are building at the wrong path.
Try again without " cd kernel/kernel-4.9"

Did you download the kernel source from download center?

yes, it was working on my laptop, now I just want to recompile the code on another machine, it shows me this error. Actually they are the same codes.

makefile - PREEMPT_RT Kernel Jetson TX-NX - Stack Overflow

I have the same issue as here

It could be the path didn’t config well. (shouldn’t …//hardware)

make[2]: ***  No rules for making the target arch/arm64/boot/dts/..//hardware/n

on my laptop under the target folder arch/arm64/boot/dts_/ there are the dts files it needs


and the compile is successful.

on another machine under the target folder arch/arm64/boot/dts_/ is empty. I think it has something to do with the repeated messages before “target ‘arch/arm64/boot/dts/ddot’, given more than once in the same rule.”

thanks for your reply. it´s not the case. it works so before.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

make[1]: Leaving directory ‘/path/tojetpack4.6.2/out_pp_2ctxs’

make: *** [Makefile:171: sub-make] Error 2

May be try extract the source to another folder to try without supervisor mode.

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