FreeCalypso > hg > fc-am-toolkit
view sh/c11x-gen-fc-ffs-img @ 30:2d60f9a3032b default tip
LICENSE: public domain, copied from freecalypso-tools
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 24 Jun 2023 04:24:38 +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'