Hi.
I use L4T Versoin 32.3.1.
and I followed the guide document but error occurred.
I followed below sequence.
1.
$ tar -xjf <board>-public_sources.tbz2
2.
$ cd public_sources/
$ tar –xjf kernel_src.tbz2
3.
$ TEGRA_KERNEL_OUT=<outdir>
$ export CROSS_COMPILE=<cross_prefix>
$ export LOCALVERSION=-tegra
4.
$ cd <kernel_source>
$ mkdir -p $TEGRA_KERNEL_OUT
$ make ARCH=arm64 O=$TEGRA_KERNEL_OUT tegra_defconfig
5.
$ make ARCH=arm64 O=$TEGRA_KERNEL_OUT -j<n>
then error occurred.
Error log is below :
ubuntu@ubuntu-OptiPlex-XE3:~/buildKernel/Linux_for_Tegra/kernel/kernel-4.9$ sudo make ARCH=arm64 O=$HOME/buildKernel/output -j$nproc
[sudo] password for ubuntu:
make[1]: Entering directory '/home/ubuntu/buildKernel/output'
arch/arm64/Makefile:49: LSE atomics not supported by binutils
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
Using /home/ubuntu/buildKernel/Linux_for_Tegra/kernel/kernel-4.9 as source for kernel
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
CC scripts/mod/devicetable-offsets.s
gcc: error: unrecognized command line option ‘-mlittle-endian’; did you mean ‘-fconvert=little-endian’?
/home/ubuntu/buildKernel/Linux_for_Tegra/kernel/kernel-4.9/scripts/Makefile.build:335: recipe for target 'scripts/mod/empty.o' failed
make[3]: *** [scripts/mod/empty.o] Error 1
make[3]: *** Waiting for unfinished jobs....
gcc: error: unrecognized command line option ‘-mlittle-endian’; did you mean ‘-fconvert=little-endian’?
/home/ubuntu/buildKernel/Linux_for_Tegra/kernel/kernel-4.9/scripts/Makefile.build:155: recipe for target 'scripts/mod/devicetable-offsets.s' failed
make[3]: *** [scripts/mod/devicetable-offsets.s] Error 1
/home/ubuntu/buildKernel/Linux_for_Tegra/kernel/kernel-4.9/scripts/Makefile.build:649: recipe for target 'scripts/mod' failed
make[2]: *** [scripts/mod] Error 2
/home/ubuntu/buildKernel/Linux_for_Tegra/kernel/kernel-4.9/Makefile:579: recipe for target 'scripts' failed
make[1]: *** [scripts] Error 2
make[1]: Leaving directory '/home/ubuntu/buildKernel/output'
Makefile:171: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
setting tool chain env variables are below:
ubuntu@ubuntu-OptiPlex-XE3:~/buildKernel/Linux_for_Tegra/kernel/kernel-4.9$ echo $CROSS_COMPILE
/home/ubuntu/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
ubuntu@ubuntu-OptiPlex-XE3:~/buildKernel/Linux_for_Tegra/kernel/kernel-4.9$ echo $LOCALVERSION
-tegra
ubuntu@ubuntu-OptiPlex-XE3:~/Downloads/Setup_Script$ ${CROSS_COMPILE}gcc --version
aarch64-linux-gnu-gcc (Linaro GCC 7.3-2018.05) 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701]
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Please let me know what is wrong.
Thanks.