Add utilities to create and attach disks

This commit is contained in:
Baptiste Wicht 2013-11-02 16:32:30 +01:00
parent 94828f060b
commit dc402d4fc7
3 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.bin
*.flp
*.o
hdd.img

View File

@ -20,7 +20,7 @@ thor.flp: bootloader.bin micro_kernel.bin kernel.bin filler.bin
dd status=noxfer conv=notrunc if=thor.bin of=thor.flp
qemu: thor.flp
qemu-kvm -cpu host -fda thor.flp
qemu-kvm -cpu host -fda thor.flp -hda hdd.img
bochs: thor.flp
echo "c" > commands
@ -35,6 +35,9 @@ debug: thor.flp
force_look:
true
create_hdd:
dd if=/dev/zero of=hdd.img bs=512 count=20160
clean:
cd bootloader; $(MAKE) clean
cd kernel; $(MAKE) clean

View File

@ -1,4 +1,5 @@
display_library: sdl
magic_break: enabled=1
floppya: 1_44=thor.flp, status=inserted
ata0-master: type=disk, path="hdd.img", mode=flat, cylinders=20, heads=16, spt=63
boot:floppy