From 796f3b70f264a13a48f8b0247a997f074e5995c3 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 29 Dec 2020 18:56:21 -0800 Subject: 7461 --- translate_subx_baremetal | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'translate_subx_baremetal') diff --git a/translate_subx_baremetal b/translate_subx_baremetal index 4ba5f81c..855aee2a 100755 --- a/translate_subx_baremetal +++ b/translate_subx_baremetal @@ -24,3 +24,9 @@ cat a.dquotes |apps/pack > a.pack cat a.pack |apps/survey_baremetal > a.survey cat a.survey |apps/hex > a.bin + +# Create disk.img containing baremetal/boot.hex and a.bin +dd if=/dev/zero of=disk.img count=20160 # 512-byte sectors, so 10MB +apps/hex < baremetal/boot.hex > boot.bin +cat boot.bin a.bin > disk.bin +dd if=disk.bin of=disk.img conv=notrunc -- cgit 1.4.1-2-gfad0