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
f89f70e3c5
Makefile: fix build for skylab
2015-03-04 18:28:07 +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
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
Alexander Couzens
21a475020e
carambola/skylab: use hw watchdog
2015-03-03 01:41:27 +01:00
Alexander Couzens
5931f93ba4
ar7240: add watchdog support for carambola/skylab
2015-03-03 01:41:27 +01:00
Alexander Couzens
6944c3a4c1
Makefile: new targets skylab and carambola2
...
all target is still building carambola2
2015-03-03 01:41:23 +01:00
Alexander Couzens
8fda131810
add support for skylab
2015-03-03 01:40:56 +01:00
Alexander Couzens
a5621e728b
add toolchain paths - using buildroot works
2015-03-01 01:51:56 +01:00
Giedrius
ee73981958
Update README.md
...
Expanded building instructions and added link to bootloader upgrade info.
2014-11-13 13:19:09 +02:00
Mantas Pucka
393bc3d166
Update README.md with build instructions ( #1 )
2014-11-13 10:01:04 +02:00
Mantas Pucka
1842065fdf
Bump version to v2.2-dev
2014-11-04 13:57:13 +02:00
Mantas Pucka
b416eecf71
Add v2.1 binary
2014-11-04 13:56:11 +02:00
Mantas Pucka
ee517e1a70
Update version to v2.1 release
2014-11-04 13:52:43 +02:00
Mantas Pucka
1f46311394
Move custom GPIO init, after relocation.
2014-10-31 16:37:33 +02:00