Archived
feat(bochs): add bochsrc configuration and make run-bochs target
This commit is contained in:
@@ -111,6 +111,11 @@ run-gui: hdd
|
||||
@echo " QEMU GUI $(HDD_IMAGE) (Кликните в окно или Ctrl+Alt+G для захвата клавиатуры)"
|
||||
$(QEMU) -machine pc -m 256M -smp 2 -netdev user,id=net0 -device e1000,netdev=net0 -device ahci,id=ahci0 -drive file=$(HDD_IMAGE),format=raw -serial mon:stdio -k en-us
|
||||
|
||||
## Запуск в Bochs эмуляторе
|
||||
run-bochs: hdd
|
||||
@echo " BOCHS $(HDD_IMAGE)"
|
||||
bochs -q -f bochsrc.txt
|
||||
|
||||
clean:
|
||||
cargo clean
|
||||
rm -rf $(ISO_DIR) $(ISO_IMAGE) $(HDD_IMAGE)
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
# ──────────────────────────────────────────────────────────────
|
||||
# bochsrc.txt — Bochs x86_64 Emulator Configuration for opencoreRS
|
||||
# ──────────────────────────────────────────────────────────────
|
||||
|
||||
romimage: file=/usr/share/bochs/BIOS-bochs-latest
|
||||
vgaromimage: file=/usr/share/bochs/VGABIOS-lgpl-latest.bin
|
||||
|
||||
megs: 256
|
||||
|
||||
cpu: count=2, ips=10000000, reset_on_triple_fault=0
|
||||
cpuid: x86_64=1, apic=xapic
|
||||
|
||||
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
|
||||
ata0-master: type=disk, path="opencoreRS.hdd", mode=flat
|
||||
|
||||
boot: disk
|
||||
|
||||
mouse: enabled=0
|
||||
keyboard: type=mf, serial_delay=250, paste_delay=100000
|
||||
clock: sync=realtime, time0=local
|
||||
|
||||
log: bochs.log
|
||||
panic: action=ask
|
||||
error: action=report
|
||||
info: action=report
|
||||
debug: action=ignore
|
||||
|
||||
display_library: x
|
||||
Reference in New Issue
Block a user