From 290679d3e3a2ea885a5b5cf147dab217e61dd209 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 27 Sep 2024 16:07:49 +0200 Subject: [PATCH] Reduce timeout to 3 minutes --- fpga/fpgactl | 1 - fpga/run-node.sh | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/fpga/fpgactl b/fpga/fpgactl index b54bbd6..ef40daf 100755 --- a/fpga/fpgactl +++ b/fpga/fpgactl @@ -97,7 +97,6 @@ function do_cpu_release() # {{{ dma-ctl "${qdmadev}" reg write bar 2 0x0 0x3 elif [ "$model" == "ox" ]; then dma-ctl "${qdmadev}" reg write bar 2 0x0 0x1 - sleep 1 fi } # }}} function copy_by_dma() # {{{ diff --git a/fpga/run-node.sh b/fpga/run-node.sh index 670f5a9..98da578 100755 --- a/fpga/run-node.sh +++ b/fpga/run-node.sh @@ -19,14 +19,9 @@ set -x # Then perform the boot ./fpgactl -w bitstream.bit -b opensbi.bin -k kernel.bin -i initrd.bin -r rootfs.img -#./fpgactl -w bitstream.bit -b opensbi.bin -k kernel.bin -i initrd.bin - -# Restart it again only loading the bootrom and OpenSBI (notice OpenSBI -# relocates itself so it will likely be gone by now) -sleep 1 && ./fpgactl -b opensbi.bin & timeout=$((30 * 60)) # Always stop after 30 min -timeout_silent=$((10 * 60)) # Stop if 10 min without output +timeout_silent=$((3 * 60)) # Stop if 3 min without output # Set dead switch sleep $timeout && killall picocom &