mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-17 00:26:44 -04:00
Add utilities to create and attach disks
This commit is contained in:
parent
94828f060b
commit
dc402d4fc7
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
*.bin
|
*.bin
|
||||||
*.flp
|
*.flp
|
||||||
*.o
|
*.o
|
||||||
|
hdd.img
|
5
Makefile
5
Makefile
@ -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
|
dd status=noxfer conv=notrunc if=thor.bin of=thor.flp
|
||||||
|
|
||||||
qemu: 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
|
bochs: thor.flp
|
||||||
echo "c" > commands
|
echo "c" > commands
|
||||||
@ -35,6 +35,9 @@ debug: thor.flp
|
|||||||
force_look:
|
force_look:
|
||||||
true
|
true
|
||||||
|
|
||||||
|
create_hdd:
|
||||||
|
dd if=/dev/zero of=hdd.img bs=512 count=20160
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
cd bootloader; $(MAKE) clean
|
cd bootloader; $(MAKE) clean
|
||||||
cd kernel; $(MAKE) clean
|
cd kernel; $(MAKE) clean
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
display_library: sdl
|
display_library: sdl
|
||||||
magic_break: enabled=1
|
magic_break: enabled=1
|
||||||
floppya: 1_44=thor.flp, status=inserted
|
floppya: 1_44=thor.flp, status=inserted
|
||||||
|
ata0-master: type=disk, path="hdd.img", mode=flat, cylinders=20, heads=16, spt=63
|
||||||
boot:floppy
|
boot:floppy
|
Loading…
x
Reference in New Issue
Block a user