view loadtools/scripts/compal.config @ 407:19e5a3e2f9c0

fcup-settime: moved time() retrieval a little closer to the output A fundamental problem with all simple time transfer tools is that there is always some delay between the time retrieval on the source system and that transmitted time being set on the destination, and the resulting time on the destination system is off by that delay amount. This delay cannot be fully eliminated when working in a simple environment like ours, but we should make our best effort to minimize it. In the present case, moving the atinterf_init() call before the time() retrieval should make a teensy-tiny improvement.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Aug 2018 21:52:17 +0000
parents e7502631a0f9
children 49ee210fc4fb
line wrap: on
line source

# This configuration is intended to be applicable to all of C11x, C123,
# C139 and C140.  The "plain" version of compalstage selected below
# should work for all C11x/123; it will also work on C139/140 phones
# that had the simpler boot code flashed into them, as will be used for
# FreeCalypso.  When running loadtools with this config on C139/140
# phones that still have the "official" fw in them, one will need to
# specify -h compal -c 1003 to use the inefficient ~15 KiB version of
# compalstage.

compal-stage plain

# Whether we are breaking in through compalstage (as above) or through
# tfc139, the re-enabled Calypso boot ROM is used to load our loadagent
# into IRAM.  The boot ROM will autodetect the Calypso input clock as
# 26 MHz (physical reality) when entered through compalstage, or as
# 13 MHz when entered through tfc139 - the latter results from the
# original fw setting bit 7 in the FFFF:FD02 register (VTCXO_DIV2),
# which the boot ROM does not clear.
#
# However, the following configuration will result in the ARM core
# being clocked at 52 MHz in both cases.

pll-config 4/1
rhea-cntl 0x00

# The remaining settings are carried out via loadagent commands
init-script compal.init

# Flash: use CFI autodetection, 4 MiB max
# mapped at 0, see compal.init for the explanation
flash cfi-4M 0

boot-reflash-hack 0x820000 0x10000

# Perform a Iota poweroff when we are done
exit-mode iota-off