From 99125e1ec24c3d6235d46149a011a1905fc8db7d Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 17 Aug 2018 13:17:57 +0100 Subject: [PATCH] sam: build bootable image At least it runs the boot code, not yet useful beyond that step --- Kernel/platform-sam/Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Kernel/platform-sam/Makefile b/Kernel/platform-sam/Makefile index 74509884..e09d60f3 100644 --- a/Kernel/platform-sam/Makefile +++ b/Kernel/platform-sam/Makefile @@ -41,12 +41,22 @@ clean: rm -f $(OBJS) $(JUNK) core *~ image: boot setup + # Make a blank floppy + dd if=/dev/zero of=fuzix.raw bs=512 count=1600 + # Boot block at track 4 sector 1 + dd if=boot.bin of=fuzix.raw bs=512 seek=40 count=1 conv=notrunc + # Kernel from track 4 sector 2 + dd if=../fuzix.bin of=fuzix.raw bs=512 seek=41 conv=notrunc + # Font and setup from 64K further on + dd if=setup.bin of=fuzix.raw bs=512 seek=169 conv=notrunc + # Now shuffle it into a .mgt file + ../tools/raw2mgt fuzix.raw fuzix.mgt boot: sdasz80 -o boot.s sdldz80 -i boot.rel - # 512 bytes at 4K - makebin -s 16896 -p boot.ihx > boot.bin + # 512 bytes at 0 + makebin -s 512 -p boot.ihx > boot.bin setup: sdasz80 -o setup.s -- 2.34.1