about summary refs log tree commit diff stats
path: root/translate_subx_baremetal
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-12-29 18:56:21 -0800
committerKartik Agaram <vc@akkartik.com>2020-12-29 18:56:21 -0800
commit796f3b70f264a13a48f8b0247a997f074e5995c3 (patch)
tree840ec9eabaf0af5f0dcdd8af8cf9e96eecf82d5f /translate_subx_baremetal
parentc1b1d1f4e67b0badfef3473121220d34a5b4b418 (diff)
downloadmu-796f3b70f264a13a48f8b0247a997f074e5995c3.tar.gz
7461
Diffstat (limited to 'translate_subx_baremetal')
-rwxr-xr-xtranslate_subx_baremetal6
1 files changed, 6 insertions, 0 deletions
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