Encountered issues when cross-compiling the RT kernel for Jetson Nano

"I encountered an issue while following the tutorial Applying a Preempt-RT Patch to JetPack 4.5 on Jetson Nano, when running the command make ARCH=arm64 O=$TEGRA_KERNEL_OUT -j4:

../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).

1 Like

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

Hello @785830655

Could you please try the solution at Failed to make L4T kernel dts - #9 by mzapart?

Which is by editing the scripts/Kbuild.include file from

the-space :=
the-space +=

To:

E =
the-space = $E $E

Please, let us know if this works for you!

Regards!
Eduardo Salazar
Embedded SW Engineer at RidgeRun

Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com

Thank you!That works!That takes me all night to sovel the question

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