From 44c0352f0d4124d7c367352e4de746a51b9db42b Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Mon, 25 May 2020 15:35:45 -0400 Subject: got file loading working properly --- makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index afac808..bc4bdd7 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,4 @@ -disk: kernel boot +disk: kernel boot fs- mkdir -p obj out /sbin/mkfs.fat -C -f 1 -F 16 -n "PORTLAND OS" -R 17 -s 1 -S 512 obj/shadow.img 8192 echo -n -e '\xeb\x3c' > obj/jmp.bin @@ -6,13 +6,17 @@ disk: kernel boot dd if=out/boot.bin of=obj/shadow.img obs=1 seek=62 conv=notrunc dd if=out/kernel.bin of=obj/shadow.img seek=1 conv=notrunc mv obj/shadow.img out/disk.img + mcopy -i out/disk.img -s out/fs/bleh.txt ::/ vdi-file: disk VBoxManage convertfromraw out/disk.img out/disk.vdi --uuid a61929ed-3bf2-45ff-b98a-44f87c616dba -debug: vdi-file +debug: disk gdb -x qemu-debug.gdb +fs-: + cp -r fs out/fs + kgccargs = -m32 -ffreestanding -fno-asynchronous-unwind-tables kernel: mkdir -p obj/kernel out -- cgit v1.2.3