rust-kernel
Rustbelt: a hobby x86_64 kernel written in Rust
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | #!/usr/bin/env bash
# Boot the normal (non-headless) kernel with no window, "type" some keys into
# it through the QEMU monitor's `sendkey` command, then dump the VGA screen to
# a PNG. Doubles as an automated keyboard-interrupt test: the typed text is
# echoed on the serial port too, so we can grep for it.
#
# Usage: ./scripts/screenshot.sh [out.png] [text-to-type]
# Force bootimage to repack the disk image (see scripts/runner.sh for why).
IMG=target/x86_64-rust_kernel/debug/bootimage-rust_kernel.bin
OUT=""
TEXT=""
SOCK=
SERIAL_LOG=
&
QPID=
# Talk to the QEMU monitor over its UNIX socket (python avoids needing socat).
||
;
if ; then
else
fi
|