Commit Graph

38 Commits

Author SHA1 Message Date
Alexander Couzens 07469c59e3 detect flash chips by jedec ids instead of using hardcoded values 2015-06-02 11:38:54 +02:00
Alexander Couzens 37e46a66f3 fix indention
2 space indention was used. Using tabs
2015-05-20 14:24:19 +02:00
Alexander Couzens 36f05d569d cmd_recovery: remove old unused argument force 2015-05-19 11:00:29 +02:00
Alexander Couzens e962169649 cmd_recovery: replace flashing with booting an initramfs image 2015-05-19 10:59:29 +02:00
Alexander Couzens 7ea899a6d8 Revert "cmd_recovery: seperate multicommand lines by "&&"."
This reverts commit a418c264b2.
run_command() doesn't understand &&.
2015-04-06 19:40:52 +02:00
Alexander Couzens b5cd30559c cmd_setmac/showserial: use value not the pointer as output 2015-04-06 18:52:39 +02:00
Alexander Couzens a418c264b2 cmd_recovery: seperate multicommand lines by "&&". 2015-04-06 18:39:05 +02:00
Alexander Couzens fa2f0a886c cmd_setmac/setserial: fix incompatible pointer warning + unused variable 2015-04-06 18:30:52 +02:00
Alexander Couzens ac606588bb cmd_setmac/setserial: use simple_stroul instead of skip_atoi 2015-04-06 18:28:06 +02:00
Alexander Couzens 14586c76a0 cmd_setmac: remove unused include <stdlib.h> 2015-04-06 18:25:20 +02:00
Alexander Couzens a32bdf95de setserial: fix error message and rename var serialnumber -> serial_number 2015-04-06 18:23:11 +02:00
Alexander Couzens 2a21e331db use skip_atoi instead of atoi
atoi requires a stdlib. skip_atoi is much simpler
2015-04-06 18:19:14 +02:00
Alexander Couzens 0e514396fa add command setserial and showserial 2015-04-06 17:14:40 +02:00
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