Bochs: serial to file
This commit is contained in:
parent
f9e2dc33e9
commit
091f7cb4b8
3 changed files with 4 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@
|
||||||
mnt/
|
mnt/
|
||||||
build/
|
build/
|
||||||
bx_enh_dbg.ini
|
bx_enh_dbg.ini
|
||||||
|
serial.out
|
||||||
|
|
1
Makefile
1
Makefile
|
@ -11,6 +11,7 @@ image: start32.bin mount grub-cfg roska.img mnt/roska/
|
||||||
qemu-run: image roska.img
|
qemu-run: image roska.img
|
||||||
qemu-system-i386 roska.img -serial stdio
|
qemu-system-i386 roska.img -serial stdio
|
||||||
bochs-run: image roska.img
|
bochs-run: image roska.img
|
||||||
|
touch serial.out
|
||||||
bochs -qf bochsrc.txt
|
bochs -qf bochsrc.txt
|
||||||
mount: roska.img mnt/
|
mount: roska.img mnt/
|
||||||
@if ! mountpoint -q "mnt/"; then \
|
@if ! mountpoint -q "mnt/"; then \
|
||||||
|
|
|
@ -10,4 +10,5 @@ ata0-master: type=disk, mode=flat, path=roska.img, cylinders=32, heads=16, spt=6
|
||||||
boot: disk
|
boot: disk
|
||||||
|
|
||||||
# Use `bximage` to get disk geometry
|
# 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
|
||||||
|
|
Loading…
Reference in a new issue