annotate loadtools/scripts/leonardo.config @ 1011:6d9b10633f10 default tip

etmsync Pirelli IMEI retrieval: fix poor use of printf() Bug reported by Vadim Yanitskiy <fixeria@osmocom.org>: the construct where a static-allocated string was passed to printf() without any format arguments causes newer compilers to report a security problem. Given that formatted output is not needed here, just fixed string output, change printf() to fputs(), and direct the error message to stderr while at it.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 23 May 2024 17:29:57 +0000
parents 0093bf43c813
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
555
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 # Most Leonardo boards will probably have Calypso C035 chips on them,
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 # but we know that some very early Leonardo boards had been built with
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 # Calypso C05B, thus we need to stay within the lower clock frequency
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 # limits of the latter.
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 # The following parameters go into the <p command sent to the boot ROM
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 pll-config 3/1 # 26 MHz in, PLL&DSP @ 78 MHz, ARM @ 39 MHz
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 rhea-cntl 0x00 # good for all Calypso platforms
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 # The remaining settings are carried out via loadagent commands
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 init-script cs2-4ws-8mb.init
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 # There had been many Leonardo board variants with different flash chips,
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 # including a version with a second flash chip select on nCS2 - thus nCS2
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 # is considered to be reserved for flash in the Leonardo family.
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 flash dual-8M 0x03000000 0x01800000
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 # Perform a Iota poweroff when we are done
0093bf43c813 loadtools/scripts: added leonardo and tango configs
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 exit-mode iota-off