Prepare CI pipeline to boot NixOS
Increase the timeout to 30 minutes and load the rootfs
This commit is contained in:
parent
cd1c340a34
commit
ec70f54609
@ -18,13 +18,16 @@ killall picocom || true
|
|||||||
set -x
|
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
|
||||||
|
|
||||||
# Restart it again only loading the bootrom and OpenSBI (notice OpenSBI
|
# Restart it again only loading the bootrom and OpenSBI (notice OpenSBI
|
||||||
# relocates itself so it will likely be gone by now)
|
# relocates itself so it will likely be gone by now)
|
||||||
sleep 1 && ./fpgactl -b opensbi.bin &
|
sleep 1 && ./fpgactl -b opensbi.bin &
|
||||||
|
|
||||||
# Set dead switch
|
timeout=$((30 * 60)) # Always stop after 30 min
|
||||||
sleep 300 && killall picocom &
|
timeout_silent=$((10 * 60)) # Stop if 10 min without output
|
||||||
|
|
||||||
picocom -q -x 300000 -b 115200 $FPGACTL_UART
|
# Set dead switch
|
||||||
|
sleep $timeout && killall picocom &
|
||||||
|
|
||||||
|
picocom -q -x $(($timeout_silent*1000)) -b 115200 $FPGACTL_UART
|
||||||
|
Loading…
Reference in New Issue
Block a user