FreeCalypso > hg > fc-am-toolkit
view sh/c11x-gen-fc-ffs-img @ 25:afd760eb1f8d
doc/C1xx-updates: new article
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 11 Jun 2023 20:57:23 +0000 |
parents | aa2fd60a44fb |
children |
line wrap: on
line source
#!/bin/sh # This shell script generates an fc-ffs.bin image specifically for FreeCalypso # on C11x, either the 2 MiB flash variant or the 4 MiB flash variant of this # phone hw subfamily. A required command line argument selects between 2m and # 4m FFS geometries. if [ $# != 3 ] then echo "usage: $0 rfbin-dir imei-file 2m|4m" 1>&2 exit 1 fi case "$3" in 2m) ffs_geom=64x3 ;; 4m) ffs_geom=64x7 ;; *) echo "Error: invalid flash config argument" 1>&2 exit 1 esac set -e # FIXME: using c139-gen-fc-ffs-tree script to populate the FFS content for # FC on C11x is OK for now, but we may need a different script in the future. c139-gen-fc-ffs-tree "$1" "$2" fc-ffs echo 'Generated file system tree in fc-ffs' tiffs-mkfs -f /fc-ffs $ffs_geom fc-ffs fc-ffs.bin echo 'Generated FFS image for FC firmware in fc-ffs.bin'