Jetson Nano's kernel build error

hi,the build steps as follow:
1./home$ sudo wget
2./home$ sudo tar -xvf gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz
3./home$ sudo wget
4./home$ sudo tar -xjf public_sources.tbz2
5./home$ cd Linux_for_Tegra/source/public/
6./home/Linux_for_Tegra/source/public$ sudo tar -xjf kernel_src.tbz2
7./home/Linux_for_Tegra/source/public$ sudo apt install build-essential bc
8./home/Linux_for_Tegra/source/public$ TEGRA_KERNEL_OUT=/home/kernel_out
9./home/Linux_for_Tegra/source/public$ export CROSS_COMPILE=/home/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
10./home/Linux_for_Tegra/source/public$ export LOCALVERSION=-tegra
11./home/Linux_for_Tegra/source/public$ cd kernel/kernel-4.9/
12. /home/Linux_for_Tegra/source/public/kernel/kernel-4.9$ sudo mkdir -p $TEGRA_KERNEL_OUT
13./home/Linux_for_Tegra/source/public/kernel/kernel-4.9$ sudo make ARCH=arm64 O=$TEGRA_KERNEL_OUT tegra_defconfig
14.sudo make ARCH=arm64 O=$TEGRA_KERNEL_OUT

When I excute the steps 14,I get some error logs

make[1]: Entering directory '/home/kernel_out'
arch/arm64/Makefile:49: LSE atomics not supported by binutils
  CHK     include/config/kernel.release
  Using /home/Linux_for_Tegra/source/public/kernel/kernel-4.9 as source for kernel
  GEN     ./Makefile
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      kernel/bounds.s
gcc: error: unrecognized command line option ‘-mlittle-endian’; did you mean ‘-fconvert=little-endian’?
/home/Linux_for_Tegra/source/public/kernel/kernel-4.9/./Kbuild:20: recipe for target 'kernel/bounds.s' failed
make[2]: *** [kernel/bounds.s] Error 1
/home/Linux_for_Tegra/source/public/kernel/kernel-4.9/Makefile:1167: recipe for target 'prepare0' failed
make[1]: *** [prepare0] Error 2
make[1]: Leaving directory '/home/kernel_out'
Makefile:171: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

And I have refered to the LSE atomics not supported by binutils
But it is still not work . How to solve this build error?

Duplicated with LSE atomics not supported by binutils

If you post in:

…be sure to mention your host PC (e.g., Ubuntu 18.04/20.04 desktop PC) environment.

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