From 619e33ed56c175cc9d9ce87e3bea6a453b292794 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 17 May 2018 13:45:24 +0200 Subject: [PATCH] Switch off Denver cores before starting Jailhouse Jailhouse either crashes or hangs without this. --- build/rootfs-overlay/etc/init.d/S20jailhouse.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/rootfs-overlay/etc/init.d/S20jailhouse.sh b/build/rootfs-overlay/etc/init.d/S20jailhouse.sh index d3f988c..a4ddc36 100644 --- a/build/rootfs-overlay/etc/init.d/S20jailhouse.sh +++ b/build/rootfs-overlay/etc/init.d/S20jailhouse.sh @@ -7,7 +7,10 @@ case "$1" in start) printf "Starting Jailhouse: " modprobe jailhouse - taskset 1 jailhouse enable /jailhouse/configs/jetson-tx2.cell + # Switch off Denver cores + echo 0 > /sys/devices/system/cpu/cpu1/online + echo 0 > /sys/devices/system/cpu/cpu2/online + jailhouse enable /jailhouse/configs/jetson-tx2.cell [ $? = 0 ] && echo "OK" || echo "FAIL" ;; stop) -- 2.39.2