From 5cac67647d28b20b4687095defb28117222a4303 Mon Sep 17 00:00:00 2001 From: Roberto Guanciale Date: Thu, 5 Dec 2024 12:12:50 +0100 Subject: [PATCH] Missing Make target to maek the file --- projects/tutorial.09.fs/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/projects/tutorial.09.fs/Makefile b/projects/tutorial.09.fs/Makefile index 268b0b4..3d86df7 100644 --- a/projects/tutorial.09.fs/Makefile +++ b/projects/tutorial.09.fs/Makefile @@ -36,6 +36,18 @@ gdb: kernel ${APPS} gdb-openocd: kernel ${APPS} @ELFS="${ELFS}" ${ROOT}/scripts/gdb-openocd.sh +disk-image: + qemu-img create fs.img 10M + mformat -i fs.img :: + echo "hello" > tmp.txt + mcopy -i fs.img tmp.txt ::/test.txt + rm tmp.txt + +disk-read: + mdir -i fs.img + mcopy -i fs.img ::/NEWFILE.TXT extracted.txt + cat < extracted.txt + rm extracted.txt size: ${ELFS} ${SIZE} ${ELFS}