From e7648669694806b366824c0dc0c8b80c8d167d35 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Wed, 3 Sep 2014 23:21:33 +0200 Subject: debugging floppy driver :( --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3fdad89..9afd77a 100644 --- a/Makefile +++ b/Makefile @@ -13,14 +13,14 @@ ############ some constants ############ -USB_STICK=/dev/sdf +USB_STICK=/dev/sdf #take care! -#ap bin : MP_IMG_START=26112 #code for the other processors intialllly at 0x6600 -#font data starts here: FONT_DATA_START=26624 #fool font initially at 0x6800 +DATA_START=32768 #0x8000 here we put some "files" later a fs. + #here our kernel will be loaded by the bootloader. KERNEL_START=0x10000 @@ -93,12 +93,16 @@ binfont.bin: data/binfont.src # master boot record, kernel binary and fool-font -FoolOS.img: $(MBR) kernel.bin $(MP_BIN) binfont.img $(FILLUP) +FoolOS.img: $(MBR) kernel.bin $(MP_BIN) binfont.img $(FILLUP) data.img cp $(FILLUP) $@ dd if=$(MBR) of=$@ bs=1 seek=0 conv=notrunc dd if=kernel.bin of=$@ bs=1 seek=512 conv=notrunc dd if=$(MP_BIN) of=$@ bs=1 seek=$(MP_IMG_START) conv=notrunc dd if=binfont.img of=$@ bs=1 seek=$(FONT_DATA_START) conv=notrunc + dd if=data.img of=$@ bs=1 seek=$(DATA_START) conv=notrunc + +data.img: data/testdata + cp $^ $@ binfont.img: binfont.bin -- cgit v1.2.3