Alexander Couzens
7c5985594c
recovery: fix image copy + resetcycle counter
2015-03-09 15:35:11 +01:00
Alexander Couzens
5fc9ba0246
bootcycle: add resetcycle cmd - reset the bootcycle counter to 0
2015-03-09 15:21:11 +01:00
Alexander Couzens
6ea75b8c9c
cmd_bootcycle: initcycle will now set a valid crc
2015-03-04 22:03:45 +01:00
Alexander Couzens
c102e8ce14
run_recovery: fix help string
...
help string in newer u-boots already include the command name.
This is a very old u-boot so we need to include it again
2015-03-04 21:03:43 +01:00
Alexander Couzens
bcb1638b70
remove carambola_factory
...
we have our own recovery mechanism
2015-03-04 20:03:51 +01:00
Alexander Couzens
19e56e0de4
remove USB support for skylab/carambola
2015-03-04 18:28:30 +01:00
Alexander Couzens
82cfdb43cd
cmd_bootcycle: move additonal arguments into long help
2015-03-03 15:45:52 +01:00
Alexander Couzens
623e48a061
recovery: improve command registration
...
- Reduce max arguments to 2 (cmd + 1 argument)
- Disable auto-repeat - doing recovery multiple time by enter doesn't
makes sense
2015-03-03 15:03:57 +01:00
Alexander Couzens
5cd0f3ede7
recovery: fix incompatible function pointer warning
...
Command arguments doesn't have yet _const_ char *arg
2015-03-03 15:03:53 +01:00
Alexander Couzens
3e2a5a1b67
boot_cycle_counter: add argument `threshold` to checkcycle
...
Allow to overwrite the default threshold via commandline argument.
e.g. `checkcycle 6` will fail when 6 reboots happened
2015-03-03 14:38:18 +01:00
Alexander Couzens
781503ce81
add bootcycle counter
...
Introduce 2 new commands.
`inccycle` to increase the bootcycle by one
`checkcycle` to check if bootcycle is reached. Returncode must be evaluated.
2015-03-03 14:38:18 +01:00
Alexander Couzens
613625ad89
cmd_recovery: remove gpio and leds
2015-03-03 01:41:27 +01:00
Alexander Couzens
c000ad0f7a
fixup compiling
2015-03-03 01:41:27 +01:00
Alexander Couzens
7e556fd4b1
cmd_recovery: modify address and command to match skylab/carambola boards
2015-03-03 01:41:27 +01:00
Holger Hans Peter Freyther
08ebe9fb54
recovery: Make it possible to force the recovery
...
For factory flashing it is the easiest if we can force the
recovery process. Parse the "force" from a potential second
argument and then skip the timeout.
2015-03-03 01:41:27 +01:00
Holger Hans Peter Freyther
3fd2eddce5
sysmobts-v2: Introduce a recovery command to reflash the system image
...
When pressing the reset button on boot the system will enter the
recovery mode, this is done by setting a preboot command. Inside the
preboot command we will sleep and then check if the button is still
pressed, then tftp will be used to download the image and flash it. If
something fails after the DHCP state the network console will be
enabled.
2015-03-03 01:41:27 +01:00
Mantas Pucka
2d5f7782ce
Add option to configure char sequence for stopping boot process
...
Sequence is stored in 'bootstopkey' environment variable, default
sequence is <ESC> key (\x1B).
Non-printable chars in env variable should be escaped
using (\x1F) notation. Max len of sequence 40 chars for env
variable, 20 chars for raw (unescaped) string.
2014-10-23 09:38:12 +03:00
Mantas Pucka
2875718480
Initial code import
2014-10-21 15:40:42 +03:00