Skip to content

Commit

Permalink
makefile: add lingemu and Bochs booting from makefile (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
lovemeforareason authored Nov 14, 2022
1 parent 8defd23 commit 846c879
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ ovmf:
.PHONY: run-uefi
run-uefi: ovmf
qemu-system-x86_64 -enable-kvm -cpu host $(QEMUFLAGS) -smp 4 -bios ovmf/OVMF.fd

run-bochs: vinix.iso
bochs -f bochsrc
run-lingemu: vinix.iso
lingemu runvirt -m 8192 --diskcontroller type=ahci,name=ahcibus1 --disk vinix.iso,disktype=cdrom,controller=ahcibus1
.PHONY: run
run: vinix.iso
qemu-system-x86_64 $(QEMUFLAGS) -no-shutdown -no-reboot -d int -smp 1
Expand Down
6 changes: 6 additions & 0 deletions bochsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ata0-slave: type=cdrom, path=vinix.iso, status=inserted
boot: cdrom
com1: enabled=1
memory: guest=1024, host=1024
clock: sync=none, time0=utc
cpuid: level=6, fsgsbase=true

0 comments on commit 846c879

Please sign in to comment.