I compiled a kernel for the Jetson TX2 with the latest sources to date (JetPack 4.2.1 - L4T 32.2) and applying the PREEMPT-RT patches included in the sources. The compilation and flashing process went OK, without any errors. I am able to boot and work with the board:
uname -a
Linux tx2 4.9.140-rt93 #1 SMP PREEMPT RT Thu Aug 22 07:52:08 CEST 2019 aarch64 aarch64 aarch64 GNU/Linux
However, when I try to turn off the board it hangs (the hdmi monitor turns off, but the board remains on), and when I turn on the monitor again the board shows this messages:
Without applying the PREEMPT-RT patches the board behaves correctly. I have both flashed L4T 32.2 using SDK Manager (JetPack 4.2.1) and flashed a version I compiled from sources without applynig the RT patches. In both cases the TX2 works as expected. The problem appears when I apply the patches.
Device hung due to schedutil governor which gives problem with RT Kernel.
By default performance governor is set in kernel. Please skip overriding to the schedutil governor during end of boot.
File: rfs/etc/systemd/nv.sh
@@ -130,6 +130,8 @@ if [ -e /sys/block/mmcblk1/queue/read_ahead_kb ]; then
echo 2048 > /sys/block/mmcblk1/queue/read_ahead_kb
fi