changeset 25:258067c2041a

copyout.sh: produce C139 flashable binary image
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sun, 01 Nov 2015 07:44:03 +0000
parents ae647d795c80
children c42227c9bc62
files g23m/copyout.sh
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/g23m/copyout.sh	Sun Nov 01 07:37:26 2015 +0000
+++ b/g23m/copyout.sh	Sun Nov 01 07:44:03 2015 +0000
@@ -2,6 +2,12 @@
 # This shell script copies and renames the final output files from TI's
 # nasty build system.  The latter gives these files insanely long names,
 # hence we need to rename them before we can work with them comfortably.
+#
+# We also produce a binary image for flashing with fc-loadtool.
+# In this C139 version we use dd to strip off the TCS211 version of
+# the bootloader (uses non-understood protocol) and produce a binary
+# image that can be flashed starting at 0x10000, using our
+# compal-flash-boot-for-fc.bin as the bootloader.
 
 if [ "$1" = mfw -o "$1" = 2092 ]
 then
@@ -23,3 +29,5 @@
 	cp -p __out__/$long_name/bin/$long_name.$ft $out/$out.$ft
 done
 cp -p __out__/$long_name/bin/str2ind.tab $out
+mokosrec2bin $out/$out.m0 $out/$out.fullbin FF
+dd if=$out/$out.fullbin of=$out/$out.progbin bs=65536 skip=1