diff options
author | Eugeniy Paltsev | 2018-06-27 15:20:48 +0300 |
---|---|---|
committer | Alexey Brodkin | 2018-07-31 07:49:47 +0300 |
commit | 817cd83435eca9161dd8ad49537b65b84caaaf2d (patch) | |
tree | 2a03de3fde81280d39847399b87e1d780a1eae52 /include/configs | |
parent | cdfe6913c113ced9a0aa0a7dc48d037046c980e3 (diff) |
ARC: AXS10x: add tool and make target to generate bsp
AXS10x boards have preloader that reads SPI flash pages and searches
special image header to fetch and load binary.
Add tool, make target (bsp-generate) to generate
update script and u-boot binary image with header for preloader.
Also add script to default environment to apply updates.
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/axs10x.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/axs10x.h b/include/configs/axs10x.h index f044158265d..f78e1573b6c 100644 --- a/include/configs/axs10x.h +++ b/include/configs/axs10x.h @@ -65,6 +65,13 @@ * Environment settings */ #define CONFIG_ENV_SIZE SZ_16K +#define CONFIG_EXTRA_ENV_SETTINGS \ + "upgrade=if mmc rescan && " \ + "fatload mmc 0:1 ${loadaddr} u-boot-update.img && " \ + "iminfo ${loadaddr} && source ${loadaddr}; then; else echo " \ + "\"Fail to upgrade.\n" \ + "Do you have u-boot-update.img and u-boot.head on first (FAT) SD card partition?\"" \ + "; fi\0" /* * Environment configuration |