I am unable to cross compile L4T kernel following the instructions from NVIDIA Linux Tegra User Development Guide R32.2 (Welcome — Jetson Linux<br/>Developer Guide 34.1 documentation) section Kernel Customization. I can reach step without errors but I am getting a number of errors running the following command.
sudo make ARCH=$ARCH O=$TEGRA_KERNEL_OUT -j2
Here is the error output:
HOSTLD scripts/dtc/dtc
CC scripts/mod/empty.o
gcc: error: unrecognized command line option ‘-mlittle-endian’; did you mean ‘-fconvert=little-endian’?
/home/sctu/nvidia/nvidia_sdk/JetPack_4.2.1_Linux_GA_P3310/Linux_for_Tegra/sources/kernel/kernel-4.9/scripts/Makefile.build:297: recipe for target 'scripts/mod/empty.o' failed
make[3]: *** [scripts/mod/empty.o] Error 1
/home/sctu/nvidia/nvidia_sdk/JetPack_4.2.1_Linux_GA_P3310/Linux_for_Tegra/sources/kernel/kernel-4.9/scripts/Makefile.build:548: recipe for target 'scripts/mod' failed
make[2]: *** [scripts/mod] Error 2
/home/sctu/nvidia/nvidia_sdk/JetPack_4.2.1_Linux_GA_P3310/Linux_for_Tegra/sources/kernel/kernel-4.9/Makefile:576: recipe for target 'scripts' failed
make[1]: *** [scripts] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/sctu/nvidia/nvidia_sdk/JetPack_4.2.1_Linux_GA_P3310/Linux_for_Tegra/kernel/the_source3'
Makefile:170: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
Host System:
PC: ASUS i86_64 Processor
OS: UBuntu 18.04
Jetpack: 4.2.1
L4T: 4.9
Make: built for x86_64-PC-Linux-GNU
Toolchain: Linaro 7.3.1 2018.05
Target System
Jetson TX2 with arm64 processor
My hypothesis for this error has something to do with endianess of the host v target processor. Any thoughts before I head down this rabbit hole.
Thanks in advance.
- Chris