../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]: *** [../arch/arm64/boot/dts/Makefile:133: arch/arm64/boot/dts/_ddot_] Error 1
make[1]: *** [arch/arm64/Makefile:154: dtbs] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/root/jetson_nano/kernel/kernel-4.9/jetson_nano_kernel'
make: *** [Makefile:171: sub-make] Error 2
I’m new to Jetson Nano, can someone help me solve this issue?
Were you cross compiling on a host PC, or were you compiling natively on the Jetson? If native, then you must not use the ARCH=arm64. If from a host PC, then you would use the ARCH, but you would also have to set up cross tools.
Regardless of environment, how did you configure? One normally must do a lot of configuration before building. Once configured, one does not normally just “make”; you should specify a target, such as “Image” for the kernel (building absolutely everything will fail; if building everything actually worked, then you’d be compiling for a long long time).
Thank you! I was cross-compiling on a host PC. After running make ARCH=arm64 O=$TEGRA_KERNEL_OUT -j16 Image, there was no error, but I got the message:
../arch/arm64/boot/dts/Makefile:132: target 'arch/arm64/boot/_ddot_' given more than once in the same rule
OBJCOPY arch/arm64/boot/Image
make[1]: Leaving directory '/root/jetson_nano/Linux_for_Tegra/rootfs/usr/src/kernel/kernel-4.9/jetson_nano_kernel'
Then, I ran sudo cp $TEGRA_KERNEL_OUT/arch/arm64/boot/Image ~/jetson_nano/boot/, but now I don’t know what to do next. I can’t find any tutorial regarding this issue