Alexander Couzens
8a9d269a8e
configs: remove duplicate define BOOTDELAY from ar7240.h
...
It's not ar7240 specific and creates warning, because it's already defined in common.h.
2015-03-16 16:31:42 +01:00
Alexander Couzens
521b18c48a
configs: enable command saves - send a region over srecord
2015-03-16 16:16:11 +01:00
Alexander Couzens
4acb292f4e
configs: run recovery when bootm fails
2015-03-16 16:05:47 +01: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
41a2d23979
Makefile: add ap1 + jb02 targets
2015-03-11 17:59:14 +01:00
Alexander Couzens
3d9467d828
configs: add configuration for ap1 and jb02
2015-03-11 17:58:41 +01:00
Alexander Couzens
4378289084
configs: carambola2 use carambola2 recovery image
2015-03-11 17:58:41 +01:00
Alexander Couzens
f401292cf7
Makefile: rename skylab targets to ap2
2015-03-11 17:58:37 +01:00
Alexander Couzens
01a658ce51
configs: rename skylab -> ap2
2015-03-11 17:40:17 +01:00
Alexander Couzens
96158b1b2e
configs: move CFG_BOOTM_LEN into common.h
2015-03-11 17:38:37 +01:00
Alexander Couzens
fd424cf047
configs: move CFG_BOOTM_LEN up to flash configuration
2015-03-11 17:37:45 +01:00
Alexander Couzens
9735e7c4b9
configs: move ETHADDR into common.h
2015-03-11 17:36:26 +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
b59bb608cd
configs/skylab: fix BOARDCAL location
...
BOARDCAL is used by progmac and ethernet code to load the mac address
from flash.
2015-03-10 14:54:12 +01:00
Alexander Couzens
aaa2d179da
configs: remove unused define WLANCAL
2015-03-10 14:52:56 +01:00
Alexander Couzens
90ec4c87c8
ag7240: fix valid mac address detection
...
replace mac[0] != 00 with mac[0] != ff otherwise the mac is wrong
2015-03-10 14:46:48 +01:00
Alexander Couzens
292f453210
congfigs/bootcmd: run recovery if bootm fails
2015-03-10 11:48:16 +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
7966dca8a2
config/common: set bootdelay to 3 seconds
...
Fixes #1075
2015-03-09 15:21:29 +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
f63f863c85
ar7240: reset watchdog when erasing
...
otherwise the watchdog will freeze the board because the spi flash isn't reachable so fast
2015-03-04 21:55:48 +01:00
Alexander Couzens
96e8e39feb
configs: use bootcycle to detect a recovery case and run_recovery if needed
2015-03-04 21:12:51 +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
935d074b4e
configs: set STOP str to ap-stop and increase bootdelay to 8 secs
2015-03-04 20:58:02 +01:00
Alexander Couzens
bcb1638b70
remove carambola_factory
...
we have our own recovery mechanism
2015-03-04 20:03:51 +01:00
Alexander Couzens
a1c127f9a1
micro: move more config stuff into common.h
2015-03-04 20:00:39 +01:00
Alexander Couzens
ed5b09c07a
micro: move more config stuff into common.h
2015-03-04 19:59:01 +01:00
Alexander Couzens
2f28c555cf
micro: move more config stuff into common.h
2015-03-04 19:55:51 +01:00
Alexander Couzens
b8232ca19c
micro: move more config stuff into common.h
2015-03-04 19:53:55 +01:00
Alexander Couzens
b1860e6426
micro: move more config stuff into common.h
2015-03-04 19:53:19 +01:00
Alexander Couzens
9ab171012d
FIXUP: remove EHCI stuff
2015-03-04 19:45:39 +01:00
Alexander Couzens
894d58c911
configs: remove unused define FLASH_SIZE
2015-03-04 19:32:48 +01:00
Alexander Couzens
d169957dff
configs: move generic ar7240 ddr + pll configuration into ar7240_freq.h
2015-03-04 19:23:44 +01:00
Alexander Couzens
cb87eab8a2
configs: move board specific config vars from Makefile to configs/<board>.h
2015-03-04 18:55:02 +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
42a87d5d5e
start.S: remove double full reset marker
...
The Hornet 1.1 seems to have a stability bug when doing full reset. Atheros added
a double full reset mechanism as workaround. It's using a magic to know if they already reset twice.
For uncompressed u-boot's they forgotten to remove they magic after booting normal.
The result is a single reset when doing a "warm" reset.
2015-03-03 13:06:03 +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