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