FreeCalypso > hg > freecalypso-citrine
comparison cfgmagic/feature.mokoffs @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
1 # feature mokoffs is applicable only when building gsm-fw for the Openmoko | |
2 # GTA0x GSM modem. This feature directs our fw to use the original FFS | |
3 # which contains the factory IMEI + RF calibration data and which the | |
4 # original mokoN firmware treats as writable. | |
5 # | |
6 # There are 3 different ways in which we can use MokoFFS: | |
7 # | |
8 # feature mokoffs rw -- treat MokoFFS as R/W like the original fw does | |
9 # feature mokoffs ro -- use MokoFFS in flash, but disable flash write ops | |
10 # feature mokoffs copy -- copy MokoFFS into RAM on boot, then R/W in RAM only | |
11 | |
12 check_target_feature "$1" | |
13 | |
14 CONFIG_MOKOFFS=1 | |
15 export_to_c CONFIG_MOKOFFS | |
16 | |
17 if [ $# != 2 ] | |
18 then | |
19 echo "feature mokoffs: extra argument required" 1>&2 | |
20 exit 1 | |
21 fi | |
22 | |
23 case "$2" in | |
24 rw) | |
25 FFS_IN_RAM=0 | |
26 CONFIG_FLASH_WRITE=1 | |
27 export_to_c CONFIG_FLASH_WRITE | |
28 ;; | |
29 ro) | |
30 FFS_IN_RAM=0 | |
31 CONFIG_FLASH_WRITE=0 | |
32 export_to_c CONFIG_FLASH_WRITE | |
33 ;; | |
34 copy) | |
35 FFS_IN_RAM=1 | |
36 RAMFFS_BLKSIZE_LOG2=16 | |
37 RAMFFS_NBLOCKS=7 | |
38 CONFIG_MOKOFFS_COPY=1 | |
39 export_to_c CONFIG_MOKOFFS_COPY | |
40 ;; | |
41 *) | |
42 echo "feature mokoffs: argument must be rw, ro or copy" 1>&2 | |
43 exit 1 | |
44 ;; | |
45 esac |