1
1
Fork 0

BOCHS debugging stuff

This commit is contained in:
Lauren Toivanen 2024-08-17 19:16:53 +03:00
parent c2e69b6f7f
commit 0d9fcf5ae4
Signed by: jt
GPG key ID: 9151B109B73ECAD5
3 changed files with 18 additions and 5 deletions

View file

@ -8,11 +8,10 @@ image: start32.bin mount grub-cfg roska.img mnt/roska/
cp start32.bin mnt/roska/
sync
qemu-multiboot: start32.bin
qemu-system-i386 -kernel start32.bin -serial stdio
qemu-image: image roska.img
qemu-run: image roska.img
qemu-system-i386 roska.img -serial stdio
bochs-run: image roska.img
bochs -qf bochsrc.txt
mount: roska.img mnt/
@if ! mountpoint -q "mnt/"; then \
sudo mount -o loop,offset=1048576,umask=177,dmask=022,uid=$(shell id -u),gid=$(shell id -g) roska.img mnt/; \
@ -29,7 +28,7 @@ build/:
@mkdir build
roska.img: mnt/
dd if=/dev/zero of=roska.img bs=16M count=1
dd if=/dev/zero of=roska.img bs=1k count=16128
echo 'type=83' | sudo sfdisk roska.img
sudo losetup /dev/loop0 roska.img
sudo losetup /dev/loop1 roska.img -o1048576