comparison gsm-fw/cfgmagic/feature.pirhack-ffs @ 226:4d706a4134b0

FFS in gsm-fw: generate the legacy block info table at run time
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 13 Jan 2014 10:15:59 +0000
parents c70c077243dd
children 6e7410f7975c
comparison
equal deleted inserted replaced
225:c04aa85559ed 226:4d706a4134b0
10 # FFS than to deal with the original. This feature pirhack-ffs configures our 10 # FFS than to deal with the original. This feature pirhack-ffs configures our
11 # GSM fw to put its FFS in the last 7 256 KiB sectors of the 2nd flash chip 11 # GSM fw to put its FFS in the last 7 256 KiB sectors of the 2nd flash chip
12 # select: these sectors form an independent read/write bank, and are not used 12 # select: these sectors form an independent read/write bank, and are not used
13 # for FFS by Pirelli's fw, eliminating the possibility of accidental FFS 13 # for FFS by Pirelli's fw, eliminating the possibility of accidental FFS
14 # cross-contamination between the two very different firmwares on the same hw. 14 # cross-contamination between the two very different firmwares on the same hw.
15 #
16 # If you want to use some other sectors for FC FFS on the Pirelli, invoke
17 # feature pirhack-ffs first, then change CONFIG_PIRHACK_FFS_START and
18 # CONFIG_PIRHACK_FFS_NBLOCKS to taste.
15 19
16 if [ $TARGET != pirelli ] 20 if [ $TARGET != pirelli ]
17 then 21 then
18 echo \ 22 echo \
19 "Error: feature pirhack-ffs is applicable only to target pirelli" 1>&2 23 "Error: feature pirhack-ffs is applicable only to target pirelli" 1>&2
20 exit 1 24 exit 1
21 fi 25 fi
22 26
23 FFS_IN_RAM=0 27 FFS_IN_RAM=0
24 CONFIG_PIRHACK_FFS=1 28 CONFIG_PIRHACK_FFS=1
29 CONFIG_PIRHACK_FFS_START=24
30 CONFIG_PIRHACK_FFS_NBLOCKS=7
25 CONFIG_FLASH_WRITE=1 31 CONFIG_FLASH_WRITE=1
26 export_to_c CONFIG_PIRHACK_FFS 32 export_to_c CONFIG_PIRHACK_FFS
33 export_to_c CONFIG_PIRHACK_FFS_START
34 export_to_c CONFIG_PIRHACK_FFS_NBLOCKS
27 export_to_c CONFIG_FLASH_WRITE 35 export_to_c CONFIG_FLASH_WRITE