Trouble building PREEMPT_RT for Jetson Orin Nano Jetpack 6.1 R36.4.0

Hi @DaneLLL

If you recall from my post on Dec 19 where I tried your suggestion from that other post and I got an error. I’ve checked my toolchain path and I’m sure that it is correct. You suggested that I may not be on a ubuntu-22.04 or 20.04 system but I am. I get the same error.

  GEN     arch/arm64/include/generated/asm/cpucaps.h
make[1]: Entering directory '/home/crose72/jp61/R36.4.0_3/src/Linux_for_Tegra/source/kernel/kernel-jammy-src'
warning: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
warning: LSE atomics not supported by binutils
make[1]: Leaving directory '/home/crose72/jp61/R36.4.0_3/src/Linux_for_Tegra/source/kernel/kernel-jammy-src'
  CC      scripts/mod/empty.o
gcc: error: unrecognized command-line option ‘-mlittle-endian’
make[2]: *** [scripts/Makefile.build:295: scripts/mod/empty.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  CC      scripts/mod/devicetable-offsets.s
gcc: error: unrecognized command-line option ‘-mlittle-endian’
make[2]: *** [scripts/Makefile.build:122: scripts/mod/devicetable-offsets.s] Error 1
  HOSTCC  scripts/mod/mk_elfconfig
make[1]: *** [Makefile:1265: prepare0] Error 2
make: *** [Makefile:31: kernel] Error 2
make: Leaving directory '/home/crose72/jp61/R36.4.0_3/src/Linux_for_Tegra/source/kernel'

I don’t think that creating a src folder outside of the main Linux_for_Tegra works. No one confirmed that the solution you suggested here works: No data from Joystick Logitech-f710 - #10 by DaneLLL

I have just tried it again and it doesn’t work.