From f1d11d84a2eadbec7b55c93f8f192beaa0e84b45 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Wed, 27 Mar 2019 22:10:03 +0000 Subject: [PATCH] Create fdimage using mtools --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ac41d13..13d32e4 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,9 @@ vbr.bin: boot/vbr.asm nasm -s -o $@ -I lib $< fdimage.img: vbr.bin kernel.com - cat vbr.bin kernel.com > $@ + dd if=/dev/zero bs=512 count=720 of=$@ + mformat -i $@ -f 360 -B vbr.bin -v "BOOT2B" :: + mcopy -i fdimage.img kernel.com ::boot.bin clean: - rm -f *.com + rm -f *.com *.bin *.img