From da438fa9f5e4297f37833daa4f1d76ddd6d10a42 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 14 Mar 2021 21:27:39 -0700 Subject: treat boot.hex as a SubX file --- translate_subx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'translate_subx') 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 -- cgit 1.4.1-2-gfad0