FreeCalypso > hg > tcs211-c139
comparison g23m/copyout.sh @ 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 | 7df028236331 |
children | c56a4b0bcf38 |
comparison
equal
deleted
inserted
replaced
24:ae647d795c80 | 25:258067c2041a |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # This shell script copies and renames the final output files from TI's | 2 # This shell script copies and renames the final output files from TI's |
3 # nasty build system. The latter gives these files insanely long names, | 3 # nasty build system. The latter gives these files insanely long names, |
4 # hence we need to rename them before we can work with them comfortably. | 4 # hence we need to rename them before we can work with them comfortably. |
5 # | |
6 # We also produce a binary image for flashing with fc-loadtool. | |
7 # In this C139 version we use dd to strip off the TCS211 version of | |
8 # the bootloader (uses non-understood protocol) and produce a binary | |
9 # image that can be flashed starting at 0x10000, using our | |
10 # compal-flash-boot-for-fc.bin as the bootloader. | |
5 | 11 |
6 if [ "$1" = mfw -o "$1" = 2092 ] | 12 if [ "$1" = mfw -o "$1" = 2092 ] |
7 then | 13 then |
8 mmi_type=mfw | 14 mmi_type=mfw |
9 mmi_abbr=mf | 15 mmi_abbr=mf |
21 for ft in m0 map out | 27 for ft in m0 map out |
22 do | 28 do |
23 cp -p __out__/$long_name/bin/$long_name.$ft $out/$out.$ft | 29 cp -p __out__/$long_name/bin/$long_name.$ft $out/$out.$ft |
24 done | 30 done |
25 cp -p __out__/$long_name/bin/str2ind.tab $out | 31 cp -p __out__/$long_name/bin/str2ind.tab $out |
32 mokosrec2bin $out/$out.m0 $out/$out.fullbin FF | |
33 dd if=$out/$out.fullbin of=$out/$out.progbin bs=65536 skip=1 |