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_emulated | |
parent | 43e8194435e3e32c46b6edcd220356e8734f01ce (diff) | |
download | mu-da438fa9f5e4297f37833daa4f1d76ddd6d10a42.tar.gz |
treat boot.hex as a SubX file
Diffstat (limited to 'translate_subx_emulated')
-rwxr-xr-x | translate_subx_emulated | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/translate_subx_emulated b/translate_subx_emulated index 4edd5c33..787be559 100755 --- a/translate_subx_emulated +++ b/translate_subx_emulated @@ -25,14 +25,12 @@ cat a.pack |linux/bootstrap/bootstrap run linux/survey_baremetal > a.su cat a.survey |linux/bootstrap/bootstrap run linux/hex > a.bin -# Create disk.img containing 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/bootstrap/bootstrap run 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 |