FreeCalypso > hg > freecalypso-tools
view loadtools/scripts/c155.init @ 1011:6d9b10633f10
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 | 35d3f4c26b96 |
children |
line wrap: on
line source
# Set WS=4 for both nCS0 and nCS1, matching what the official C155/156 fw sets w16 fffffb00 00A4 w16 fffffb02 00A4 # We need to switch the CS4/ADD22 pin from its default function of CS4 # to the needed ADD22, to access the 8 MiB of flash. Compal's C155/156 # in-flash boot code does this setting, but let's do it ourselves too. w16 fffef006 0008 # We don't mess with the FFFF:FB10 register on C155/156, i.e., we # leave the "enable boot ROM" setting established by compalstage. # Unlike C139, C155 and C156 phones do have working flash mapping # at 0x03000000, so we use that.