Commit Graph

11 Commits

Author SHA1 Message Date
Alexander Couzens 847feac483 recovery: introduce new define RECOVERY_FILENAME_STRING for tftp in cmd_recovery
It's used to define a different recovery image for ap1 and ap2
2015-03-09 19:33:35 +01:00
Alexander Couzens d0ae6edf65 recovery: add comment to erase u-boot enviroment 2015-03-09 19:32:36 +01:00
Alexander Couzens bedd2f78d2 recovery: remove old dead gpio checking code 2015-03-09 15:36:33 +01:00
Alexander Couzens 7c5985594c recovery: fix image copy + resetcycle counter 2015-03-09 15:35:11 +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 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 613625ad89 cmd_recovery: remove gpio and leds 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