annotate gsm-fw/cfgmagic/feature.mokoffs @ 1002:e6ccc8788b96

gsm-fw/riviera/rvt: TCH and KEEPALIVE channel definitions added
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Thu, 17 Mar 2016 05:39:51 +0000
parents 042c178ebac5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
207
c70c077243dd gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 # feature mokoffs is applicable only when building gsm-fw for the Openmoko
c70c077243dd gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2 # GTA0x GSM modem. This feature directs our fw to use the original FFS
c70c077243dd gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 # which contains the factory IMEI + RF calibration data and which the
c70c077243dd gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4 # original mokoN firmware treats as writable.
c70c077243dd gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
5 #
861
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
6 # There are 3 different ways in which we can use MokoFFS:
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
7 #
207
c70c077243dd gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8 # feature mokoffs rw -- treat MokoFFS as R/W like the original fw does
861
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
9 # feature mokoffs ro -- use MokoFFS in flash, but disable flash write ops
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
10 # feature mokoffs copy -- copy MokoFFS into RAM on boot, then R/W in RAM only
207
c70c077243dd gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11
942
042c178ebac5 gsm-fw/cfgmagic: logic for target-dependent features streamlined a little
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents: 861
diff changeset
12 check_target_feature "$1"
207
c70c077243dd gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13
c70c077243dd gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14 CONFIG_MOKOFFS=1
c70c077243dd gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 export_to_c CONFIG_MOKOFFS
c70c077243dd gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16
861
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
17 if [ $# != 2 ]
207
c70c077243dd gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18 then
861
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
19 echo "feature mokoffs: extra argument required" 1>&2
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
20 exit 1
207
c70c077243dd gsm-fw: beginning of config magic for FFS
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21 fi
861
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
22
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
23 case "$2" in
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
24 rw)
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
25 FFS_IN_RAM=0
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
26 CONFIG_FLASH_WRITE=1
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
27 export_to_c CONFIG_FLASH_WRITE
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
28 ;;
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
29 ro)
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
30 FFS_IN_RAM=0
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
31 CONFIG_FLASH_WRITE=0
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
32 export_to_c CONFIG_FLASH_WRITE
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
33 ;;
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
34 copy)
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
35 FFS_IN_RAM=1
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
36 RAMFFS_BLKSIZE_LOG2=16
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
37 RAMFFS_NBLOCKS=7
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
38 CONFIG_MOKOFFS_COPY=1
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
39 export_to_c CONFIG_MOKOFFS_COPY
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
40 ;;
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
41 *)
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
42 echo "feature mokoffs: argument must be rw, ro or copy" 1>&2
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
43 exit 1
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
44 ;;
6ffebb8cec78 implemented feature mokoffs copy; made it part of the gtamodem-gsm config
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 207
diff changeset
45 esac