Run i386_pc target with bochs emulator
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
bochs.log
|
||||||
14
platform/i386_pc/bochsrc.txt
Normal file
14
platform/i386_pc/bochsrc.txt
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
megs: 128
|
||||||
|
cpu: model=pentium
|
||||||
|
romimage: file=/usr/share/bochs/BIOS-bochs-latest
|
||||||
|
vgaromimage: file=/usr/share/bochs/VGABIOS-lgpl-latest.bin
|
||||||
|
clock: sync=realtime
|
||||||
|
display_library: x
|
||||||
|
ata0: enabled=1
|
||||||
|
ata0-master: type=cdrom, path=out/i386_pc/mop3.iso, status=inserted
|
||||||
|
boot: cdrom
|
||||||
|
error: action=report
|
||||||
|
panic: action=report
|
||||||
|
info: action=report
|
||||||
|
debug: action=ignore
|
||||||
|
log: bochs.log
|
||||||
@@ -20,4 +20,8 @@ endif
|
|||||||
i386_pc_qemu: $(srctree)/out/i386_pc/mop3.iso
|
i386_pc_qemu: $(srctree)/out/i386_pc/mop3.iso
|
||||||
qemu-system-i386 $(QEMU_OPTS)
|
qemu-system-i386 $(QEMU_OPTS)
|
||||||
|
|
||||||
.PHONY: i386_pc_qemu
|
i386_pc_bochs: $(srctree)/out/i386_pc/mop3.iso
|
||||||
|
rm -f $(srctree)/bochs.log
|
||||||
|
bochs -f $(srctree)/platform/i386_pc/bochsrc.txt -q
|
||||||
|
|
||||||
|
.PHONY: i386_pc_qemu i386_pc_bochs
|
||||||
|
|||||||
Reference in New Issue
Block a user