From 55b3af4989e7908472d1dbfb3fe1bdd6e43262e1 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 24 Oct 2014 13:59:06 +0200 Subject: moved kernel and ramimage to 0x100000 successfully chs is broken however and only the first chunk seems to get loaded properly :( --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 31e0151..c130e17 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ USB_STICK=/dev/sdf #take care! #here our kernel will be loaded by the bootloader. -KERNEL_START=0x18000 +KERNEL_START=0x100000 #use our cross compiler CC=i686-elf-gcc @@ -102,8 +102,8 @@ FoolOS.img: $(MBR) $(STAGE2) kernel.bin $(FILLUP) FoolData.img cp $(FILLUP) $@ dd if=$(MBR) of=$@ bs=512 seek=0 conv=notrunc dd if=$(STAGE2) of=$@ bs=512 seek=1 conv=notrunc - dd if=kernel.bin of=$@ bs=512 seek=10 conv=notrunc #will end up at 0x18000 in ram (this is what the booloader starts loading secotr: 10) - dd if=FoolData.img of=$@ bs=512 seek=842 conv=notrunc + dd if=kernel.bin of=$@ bs=512 seek=10 conv=notrunc #will end up at 0x100000 in ram (this is what the booloader starts loading secotr: 10) + dd if=FoolData.img of=$@ bs=512 seek=842 conv=notrunc #data starts at 0x168000 binfont.img: binfont.bin cat $^ > $@ -- cgit v1.2.3