#!/bin/bash # Boot h7-glr headless on the hosttrans kernel with the null GL decoder. Env passthrough: H7_BENCH, EGUI_FRAMES. Arg1 = seconds cap (default 30). BASE=/build/brintos/linux-in-the-browser; K=$(ls -t $BASE/distros/common/linux-6.12/build/vmlinux-*.wasm | head -1) cd $BASE/hardwarejs timeout -k 5 ${1:-30} npx -y tsx src/cli/run-machine.mjs --fs $HOME/h7-glr-rootfs -k $K -i /bin/h7-glr --gl-remote null --gl-remote-size 1600x960 --virtio-input ${CMDLINE:+--cmdline "$CMDLINE"} > $HOME/h7-glr-boot.log 2>&1 echo "boot rc=$?" grep -aE "h7-glr:|H7-|input:|handed|refus|panic|RuntimeError|out of bounds|at .*wasm-function|gl-remote\] stats" $HOME/h7-glr-boot.log | cut -c1-240