comparison sh/c155-gen-fc-ffs-img @ 21:9d7d2fdc733b

new shell scripts c155-gen-fc-{ffs-img,script}
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 11 Jun 2023 00:28:10 +0000
parents sh/c139-gen-fc-ffs-img@2299f1ebbfd2
children
comparison
equal deleted inserted replaced
20:aa2fd60a44fb 21:9d7d2fdc733b
1 #!/bin/sh
2
3 # This shell script generates an fc-ffs.bin image specifically for FreeCalypso
4 # on C155. The difference from C139 version is the bigger FFS geometry on this
5 # phone model with 8 MiB flash.
6
7 if [ $# != 2 ]
8 then
9 echo "usage: $0 rfbin-dir imei-file" 1>&2
10 exit 1
11 fi
12
13 set -e
14
15 # FIXME: using c139-gen-fc-ffs-tree script to populate the FFS content for
16 # FC on C155 is OK for now, but we may need a different script in the future.
17
18 c139-gen-fc-ffs-tree "$1" "$2" fc-ffs
19
20 echo 'Generated file system tree in fc-ffs'
21
22 tiffs-mkfs -f /fc-ffs 64x13 fc-ffs fc-ffs.bin
23
24 echo 'Generated FFS image for FC firmware in fc-ffs.bin'