From 091f7cb4b842c3296f3c1c590adf1067588ef30a Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Sat, 17 Aug 2024 20:25:42 +0300 Subject: [PATCH] Bochs: serial to file --- .gitignore | 1 + Makefile | 1 + bochsrc.txt | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e9c4c3e..97fbd68 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ mnt/ build/ bx_enh_dbg.ini +serial.out diff --git a/Makefile b/Makefile index 0826a2a..0ecd477 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ image: start32.bin mount grub-cfg roska.img mnt/roska/ qemu-run: image roska.img qemu-system-i386 roska.img -serial stdio bochs-run: image roska.img + touch serial.out bochs -qf bochsrc.txt mount: roska.img mnt/ @if ! mountpoint -q "mnt/"; then \ diff --git a/bochsrc.txt b/bochsrc.txt index f13fbe5..32dc163 100644 --- a/bochsrc.txt +++ b/bochsrc.txt @@ -10,4 +10,5 @@ ata0-master: type=disk, mode=flat, path=roska.img, cylinders=32, heads=16, spt=6 boot: disk # Use `bximage` to get disk geometry -# TODO: Figure out how to get sensible TTY serial +# Serial is piped to serial.out for your `tail`ing sweetness +com1: enabled=1, mode=file, dev=serial.out