FreeCalypso > hg > fc-am-toolkit
annotate sh/c139-gen-fc-ffs-img @ 18:c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 10 Jun 2023 08:16:10 +0000 |
parents | |
children | 2299f1ebbfd2 |
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 |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 if [ $# != 2 ] |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 then |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 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
|
6 exit 1 |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 fi |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 set -e |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 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
|
12 |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 echo 'Generated file system tree in fc-ffs' |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 tiffs-mkfs -f /fc-ffs 64x7 fc-ffs fc-ffs.bin |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
c8ad6188b9ed
add c139-gen-fc-* shell script hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 echo 'Generated FFS image for FC firmware in fc-ffs.bin' |