diff --git a/.gitignore b/.gitignore index 7cf5001..045c54d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.bin *.img +img.d/ \ No newline at end of file diff --git a/Makefile b/Makefile index 07db89e..1b481dc 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,10 @@ disk.img: boot.bin kernel.bin - cat boot.bin kernel.bin > disk.img + dd if=/dev/zero of=disk.img count=43 bs=100k + dd if=boot.bin of=disk.img conv=notrunc + mount disk.img img.d + cp kernel.bin img.d + umount img.d + chmod 777 disk.img boot.bin: boot.asm nasm boot.asm -o $@