annotate scripts/make-rv-swe-hdr.sh @ 303:f76436d19a7a default tip

!GPRS config: fix long-standing AT+COPS chance hanging bug There has been a long-standing bug in FreeCalypso going back years: sometimes in the AT command bring-up sequence of an ACI-only MS, the AT+COPS command would produce only a power scan followed by cessation of protocol stack activity (only L1 ADC traces), instead of the expected network search sequence. This behaviour was seen in different FC firmware versions going back to Citrine, and seemed to follow some law of chance, not reliably repeatable. This bug has been tracked down and found to be specific to !GPRS configuration, stemming from our TCS2/TCS3 hybrid and reconstruction of !GPRS support that was bitrotten in TCS3.2/LoCosto version. ACI module psa_mms.c, needed only for !GPRS, was missing in the TCS3 version and had to be pulled from TCS2 - but as it turns out, there is a new field in the MMR_REG_REQ primitive that needs to be set correctly, and that psa_mms.c module is the place where this initialization needed to be added.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 08 Jun 2023 08:23:37 +0000
parents 8dfdf88d632f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 #!/bin/sh
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 echo '#ifndef __RV_SWE_H__'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 echo '#define __RV_SWE_H__'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 echo
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 if [ "$ATP_STATE" = 1 ]
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 then
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 echo '#define RVM_ATP_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 fi
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 echo '#define RVM_AUDIO_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 echo '#define RVM_ETM_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 echo '#define RVM_DAR_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 echo '#define RVM_SPI_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 echo '#define RVM_LLS_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 echo '#define RVM_KPD_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 if [ "$FCHG_STATE" = 1 ]
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 then
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 echo '#define RVM_FCHG_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 fi
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 if [ "$LCC_STATE" = 1 ]
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 then
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 echo '#define RVM_LCC_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 fi
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 if [ "$PWR_STATE" = 1 ]
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 then
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 echo '#define RVM_PWR_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 fi
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 if [ "$R2D_STATE" = 1 ]
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 then
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 echo '#define RVM_R2D_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 fi
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 if [ "$MKS_STATE" = 1 ]
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 then
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41 echo '#define RVM_MKS_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
42 fi
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
43
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
44 echo '#define RVM_RTC_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
45 echo '#define RVM_FFS_SWE'
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
46
297
8dfdf88d632f BUZM SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 294
diff changeset
47 if [ "$BUZM_STATE" = 1 ]
8dfdf88d632f BUZM SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 294
diff changeset
48 then
8dfdf88d632f BUZM SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 294
diff changeset
49 echo '#define RVM_BUZM_SWE'
8dfdf88d632f BUZM SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 294
diff changeset
50 fi
8dfdf88d632f BUZM SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 294
diff changeset
51
294
e17bdedfbf2b VIBR SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 235
diff changeset
52 if [ "$VIBR_STATE" = 1 ]
e17bdedfbf2b VIBR SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 235
diff changeset
53 then
e17bdedfbf2b VIBR SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 235
diff changeset
54 echo '#define RVM_VIBR_SWE'
e17bdedfbf2b VIBR SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 235
diff changeset
55 fi
e17bdedfbf2b VIBR SWE initial implementation
Mychaela Falconia <falcon@freecalypso.org>
parents: 235
diff changeset
56
235
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 11
diff changeset
57 if [ "$FCBM_STATE" = 1 ]
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 11
diff changeset
58 then
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 11
diff changeset
59 echo '#define RVM_FCBM_SWE'
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 11
diff changeset
60 fi
ee04ca45053d config system: add FCBM
Mychaela Falconia <falcon@freecalypso.org>
parents: 11
diff changeset
61
11
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
62 echo
12ed2291fb67 scripts/make-rv-swe-hdr.sh: import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
63 echo '#endif /* __RV_SWE_H__ */'