diff options
Diffstat (limited to 'translate_subx_baremetal')
-rwxr-xr-x | translate_subx_baremetal | 6 |
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 |