From e973dc217c799a3842eb103cdd7a81e356f2d399 Mon Sep 17 00:00:00 2001 From: RarDog Date: Wed, 2 Sep 2026 16:14:50 +0300 Subject: [PATCH] feat(bochs): add bochsrc configuration and make run-bochs target --- Makefile | 5 +++++ bochsrc.txt | 28 ++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 bochsrc.txt diff --git a/Makefile b/Makefile index fcdb92b..b71164c 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/bochsrc.txt b/bochsrc.txt new file mode 100644 index 0000000..6808d20 --- /dev/null +++ b/bochsrc.txt @@ -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