diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-03-14 21:27:39 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-03-14 21:36:31 -0700 |
commit | da438fa9f5e4297f37833daa4f1d76ddd6d10a42 (patch) | |
tree | b37a25b3f6058c447ffa1006f5797842b2f94593 /translate_subx | |
parent | 43e8194435e3e32c46b6edcd220356e8734f01ce (diff) | |
download | mu-da438fa9f5e4297f37833daa4f1d76ddd6d10a42.tar.gz |
treat boot.hex as a SubX file
Diffstat (limited to 'translate_subx')
-rwxr-xr-x | translate_subx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/translate_subx b/translate_subx index cdf7b085..43323f6a 100755 --- a/translate_subx +++ b/translate_subx @@ -30,14 +30,12 @@ cat a.pack |linux/survey_baremetal > a.survey cat a.survey |linux/hex > a.bin -# Create disk.img containing baremetal/boot.hex and a.bin +# Create disk.img containing a.bin dd if=/dev/zero of=disk.img count=20160 # 512-byte sectors, so 10MB -linux/hex < boot.hex > boot.bin -cat boot.bin a.bin > disk.bin -dd if=disk.bin of=disk.img conv=notrunc +dd if=a.bin of=disk.img conv=notrunc -if [ `stat --printf="%s" disk.bin` -ge 193536 ] # 6 tracks * 63 sectors per track * 512 bytes per sector (keep this sync'd with boot.hex) +if [ `stat --printf="%s" a.bin` -ge 193536 ] # 6 tracks * 63 sectors per track * 512 bytes per sector (keep this sync'd with boot.hex) then - echo "disk.bin won't all be loaded on boot" + echo "a.bin won't all be loaded on boot" exit 1 fi |