FreeCalypso > hg > freecalypso-citrine
comparison cfgmagic/feature.aftermarket-ffs @ 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 # This feature is specific to Compal and Pirelli targets. When we put our own | |
2 # FreeCalypso firmware on these phones, we are using them in a way that is very | |
3 # different from how they were intended to be used by their respective | |
4 # manufacturers. Hence the term "aftermarket". Although the original firmwares | |
5 # of these phones are TI-based and feature TI-based flash file systems, neither | |
6 # Pirelli's FFS nor that of any Compal variant is suitable for direct reuse by | |
7 # FreeCalypso GSM fw. | |
8 # | |
9 # Therefore, if we are putting our own fw on one of these aftermarket devices | |
10 # and we need to use a real non-volatile FFS in flash, rather than fake FFS | |
11 # in RAM, we need to define our own aftermarket FFS, and we can put it in any | |
12 # part of the flash that suits our needs, without much regard for Compal's or | |
13 # Foxconn's originally intended flash layout - what we are doing with their | |
14 # hardware goes totally against their intentions anyway. | |
15 # | |
16 # Because our aftermarket FFS configuration inherently involves our own choice | |
17 # of flash location for this FFS, the present feature aftermarket-ffs takes two | |
18 # required arguments: the starting flash sector number and the total number of | |
19 # flash sectors to be used for the aftermarket FFS. It is the user's | |
20 # responsibility to ensure that these numbers are sensible. | |
21 | |
22 check_target_feature "$1" | |
23 | |
24 if [ $# != 3 ] | |
25 then | |
26 echo "feature aftermarket-ffs: two arguments required" 1>&2 | |
27 exit 1 | |
28 fi | |
29 | |
30 FFS_IN_RAM=0 | |
31 CONFIG_AFTERMARKET_FFS=1 | |
32 CONFIG_AFTERMARKET_FFS_START=$2 | |
33 CONFIG_AFTERMARKET_FFS_NBLOCKS=$3 | |
34 CONFIG_FLASH_WRITE=1 | |
35 export_to_c CONFIG_AFTERMARKET_FFS | |
36 export_to_c CONFIG_AFTERMARKET_FFS_START | |
37 export_to_c CONFIG_AFTERMARKET_FFS_NBLOCKS | |
38 export_to_c CONFIG_FLASH_WRITE |