Skip to content

Commit 3914cac

Browse files
committed
Configure bochs to run using image
1 parent ff1fdfa commit 3914cac

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

.bochsrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
megs: 32
2+
romimage: file=/usr/share/bochs/BIOS-bochs-latest
3+
vgaromimage: file=/usr/share/bochs/VGABIOS-lgpl-latest
4+
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
5+
ata0-slave: type=cdrom, path="dist/jdsos.iso", status=inserted
6+
boot: cdrom
7+
log: log/bochs.log
8+
mouse: enabled=0
9+
clock: sync=realtime
10+
cpu: ips=70000000
11+
display_library: sdl

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,8 @@ dist/jdsos.iso: dist/ image/boot/jdsos.bin
5151

5252
dist: dist/jdsos.iso
5353

54+
bochs: dist/jdsos.iso
55+
bochs -f .bochsrc
56+
5457
clean:
5558
rm -f build/* dist/* image/boot/*.bin

bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22

33
apt-get update
4-
apt-get install -y build-essential gdb nasm bochs bochs-x bochs-sdl
4+
apt-get install -y build-essential gdb nasm xorriso qemu-system bochs bochs-x bochs-sdl

log/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)