This commit is contained in:
Kartik K. Agaram 2021-08-29 20:54:05 -07:00
parent 0633e401f9
commit 4b90a26d71
2 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@ set -e
# Map of the Mu code disk
export DISK=20160 # 20*16*63 512-byte sectors = almost 10MB
dd if=/dev/zero of=code.img count=$DISK
dd if=/dev/zero of=code.img count=$DISK status=none
# code: sectors 0-8999
# font: sectors 9000-10079 (1080 sectors = space enough for 16k glyphs (1080 * 512 / 33 bytes per glyph))
export FONT=9000 # keep this sync'd with boot.subx
@ -35,7 +35,7 @@ cat a.pack |linux/labels_baremeta
cat a.survey |linux/hex > a.bin
dd if=a.bin of=code.img conv=notrunc
dd if=a.bin of=code.img conv=notrunc status=none
if [ `stat --printf="%s" a.bin` -ge 492544 ] # 15 tracks * 63 sectors per track * 512 bytes per sector (keep this sync'd with boot.subx)
then
@ -69,7 +69,7 @@ then
exit 1
fi
dd if=labels of=code.img seek=$DEBUG conv=notrunc # keep this sync'd with abort.subx
dd if=labels of=code.img seek=$DEBUG conv=notrunc status=none # keep this sync'd with abort.subx
## Font data at another well-defined location
cat font.subx |sed 's,/[^ ]*,,' |linux/hex > a.font
@ -80,4 +80,4 @@ then
exit 1
fi
dd if=a.font of=code.img seek=$FONT conv=notrunc
dd if=a.font of=code.img seek=$FONT conv=notrunc status=none

View File

@ -9,7 +9,7 @@ set -v
# Map of the Mu code disk
export DISK=20160 # 20*16*63 512-byte sectors = almost 10MB
dd if=/dev/zero of=code.img count=$DISK
dd if=/dev/zero of=code.img count=$DISK status=none
# code: sectors 0-8999
# font: sectors 9000-10079 (1080 sectors = space enough for 16k glyphs (1080 * 512 / 33 bytes per glyph))
export FONT=9000 # keep this sync'd with boot.subx
@ -39,7 +39,7 @@ cat a.pack |linux/bootstrap/boots
cat a.survey |linux/bootstrap/bootstrap run linux/hex > a.bin
dd if=a.bin of=code.img conv=notrunc
dd if=a.bin of=code.img conv=notrunc status=none
if [ `stat --printf="%s" a.bin` -ge 492544 ] # 15 tracks * 63 sectors per track * 512 bytes per sector (keep this sync'd with boot.subx)
then
@ -73,7 +73,7 @@ then
exit 1
fi
dd if=labels of=code.img seek=$DEBUG conv=notrunc # keep this sync'd with abort.subx
dd if=labels of=code.img seek=$DEBUG conv=notrunc status=none # keep this sync'd with abort.subx
## Font data at another well-defined location
cat font.subx |sed 's,/[^ ]*,,' |linux/hex > a.font
@ -84,4 +84,4 @@ then
exit 1
fi
dd if=a.font of=code.img seek=$FONT conv=notrunc
dd if=a.font of=code.img seek=$FONT conv=notrunc status=none