comparison gsm-fw/cfgmagic/feature.aftermarket-ffs @ 943:f22b34873ea5

gsm-fw: feature pirhack-ffs changed to feature aftermarket-ffs, now supports Compal as well
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sun, 01 Nov 2015 03:39:51 +0000
parents gsm-fw/cfgmagic/feature.pirhack-ffs@042c178ebac5
children
comparison
equal deleted inserted replaced
942:042c178ebac5 943:f22b34873ea5
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