FreeCalypso > hg > fc-am-toolkit
annotate sh/c155-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 | 9d7d2fdc733b |
children |
rev | line source |
---|---|
18
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 #!/bin/sh |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
19
2299f1ebbfd2
c139-gen-fc-* shell scripts: add explanatory comments
Mychaela Falconia <falcon@freecalypso.org>
parents:
18
diff
changeset
|
3 # This shell script generates an fc-ffs.bin image specifically for FreeCalypso |
21
9d7d2fdc733b
new shell scripts c155-gen-fc-{ffs-img,script}
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
4 # on C155. The difference from C139 version is the bigger FFS geometry on this |
9d7d2fdc733b
new shell scripts c155-gen-fc-{ffs-img,script}
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
5 # phone model with 8 MiB flash. |
19
2299f1ebbfd2
c139-gen-fc-* shell scripts: add explanatory comments
Mychaela Falconia <falcon@freecalypso.org>
parents:
18
diff
changeset
|
6 |
18
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 if [ $# != 2 ] |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 then |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 echo "usage: $0 rfbin-dir imei-file" 1>&2 |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 exit 1 |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 fi |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 set -e |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
21
9d7d2fdc733b
new shell scripts c155-gen-fc-{ffs-img,script}
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
15 # FIXME: using c139-gen-fc-ffs-tree script to populate the FFS content for |
9d7d2fdc733b
new shell scripts c155-gen-fc-{ffs-img,script}
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
16 # FC on C155 is OK for now, but we may need a different script in the future. |
9d7d2fdc733b
new shell scripts c155-gen-fc-{ffs-img,script}
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
17 |
18
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 c139-gen-fc-ffs-tree "$1" "$2" fc-ffs |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 echo 'Generated file system tree in fc-ffs' |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 |
21
9d7d2fdc733b
new shell scripts c155-gen-fc-{ffs-img,script}
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
22 tiffs-mkfs -f /fc-ffs 64x13 fc-ffs fc-ffs.bin |
18
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 echo 'Generated FFS image for FC firmware in fc-ffs.bin' |