Reduce timeout to 3 minutes
This commit is contained in:
parent
51efdf1a27
commit
290679d3e3
@ -97,7 +97,6 @@ function do_cpu_release() # {{{
|
|||||||
dma-ctl "${qdmadev}" reg write bar 2 0x0 0x3
|
dma-ctl "${qdmadev}" reg write bar 2 0x0 0x3
|
||||||
elif [ "$model" == "ox" ]; then
|
elif [ "$model" == "ox" ]; then
|
||||||
dma-ctl "${qdmadev}" reg write bar 2 0x0 0x1
|
dma-ctl "${qdmadev}" reg write bar 2 0x0 0x1
|
||||||
sleep 1
|
|
||||||
fi
|
fi
|
||||||
} # }}}
|
} # }}}
|
||||||
function copy_by_dma() # {{{
|
function copy_by_dma() # {{{
|
||||||
|
@ -19,14 +19,9 @@ set -x
|
|||||||
|
|
||||||
# Then perform the boot
|
# 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 -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=$((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
|
# Set dead switch
|
||||||
sleep $timeout && killall picocom &
|
sleep $timeout && killall picocom &
|
||||||
|
Loading…
Reference in New Issue
Block a user