Commit Graph

25 Commits

Author SHA1 Message Date
Alexander Couzens 93aed6751b cmd_recovery: fix run_command("set ...") `set <var>` -> `setenv <var>` 2015-03-12 01:47:51 +01:00
Alexander Couzens 72e548d4c5 add setmac/showmac commands to setmac or showmac
setmac <eth0> <eth1> <wlan0> [nobackup]
setmac first do a backup of the calibration sector. It copys the
sector to the sector before itself. This behavious can be overwritten by
adding `nobackup`.

showmac - show mac addreses.
2015-03-12 01:42:22 +01:00
Alexander Couzens 401b4f165b cmd_mii/progmac: add ifdef CMD_PROGMAC to disable progmac 2015-03-11 18:05:07 +01:00
Alexander Couzens e38d63e12d bootcycle: add argument value to cmd `inccycle`
value define how much the counter should increased
2015-03-11 16:37:33 +01:00
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 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