Hello, I am currently following the Developers Guide for setting up and install the e-con systems, e-CAM50_CUNX camera and I am running into some issue’s when I try to build the kernel on my local machine. The Developers guide has to be requested from their website, so I can’t post a link to it but I can walk through what steps I am currently doing.
Currently on my local machine, which is running Ubuntu 18.04 , I have downloaded and unpacked all the necessary packages to build the L4T 32.4.3 kernel. I extract all the files then navigate to the kernel directory:
/Linux_for_Tegra/source/public/kernel/kernel-4.9 and then run the following code:
make ARCH=arm64 O=$TEGRA_KERNEL_OUT tegra_ecam_defconfig make ARCH=arm64 O=$TEGRA_KERNEL_OUT Image -j4
The first command runs fine, with no errors but when I run the second line after about 10 minutes I get the following error:
/home/nkoch/top_dir/kernel_sources/Linux_for_Tegra/source/public/kernel/kernel-4.9/../../hardware/nvidia/platform/t210/porg/kernel-dts/Makefile.rej:1: *** missing separator. Stop. arch/arm64/Makefile:139: recipe for target 'Image' failed make: *** [Image] Error 2 make: Leaving directory '/home/nkoch/top_dir/kernel_out' Makefile:171: recipe for target 'sub-make' failed make: *** [sub-make] Error 2
I suspect it has something to do with the version of gcc I am using to make these files, but I am not sure how to resolve this, because I am using the recommended gcc toolchain version 7.3.1 found here.
I then set my
CROSS_COMPILE variable to be
/home/nkoch/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- and add that gcc version to my
It’s my understanding that these steps should ensure that I am using the correct gcc toolchain when making these files, but it still seems that there is some kind of versioning error. Anyone who has build a kernel and run into an issue like this, any help would be appreaciated!