diff options
author | Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> | 2018-06-04 14:52:32 +0300 |
---|---|---|
committer | Alexey Brodkin <abrodkin@synopsys.com> | 2018-06-15 15:54:43 +0300 |
commit | 9ddcfef6d425f373a20dc218d93c8039afd8a625 (patch) | |
tree | 1b1dc86a4387c140d758e24c19cbff7cf2c11604 /include/configs/hsdk.h | |
parent | 606fddd76c7a045c09d544357806b0b4de4845c7 (diff) | |
download | u-boot-9ddcfef6d425f373a20dc218d93c8039afd8a625.tar.gz u-boot-9ddcfef6d425f373a20dc218d93c8039afd8a625.tar.bz2 u-boot-9ddcfef6d425f373a20dc218d93c8039afd8a625.zip |
ARC: HSDK: Add tool and make target to generate bsp
HSDK board has preloader that reads SPI flash pages and searches
for a 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/hsdk.h')
-rw-r--r-- | include/configs/hsdk.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configs/hsdk.h b/include/configs/hsdk.h index 3684f4d6d6..5da053002e 100644 --- a/include/configs/hsdk.h +++ b/include/configs/hsdk.h @@ -62,6 +62,12 @@ #define CONFIG_ENV_SIZE SZ_16K #define CONFIG_EXTRA_ENV_SETTINGS \ + "upgrade=if mmc rescan && " \ + "fatload mmc 0:1 ${loadaddr} u-boot-update.scr && " \ + "iminfo ${loadaddr} && source ${loadaddr}; then; else echo " \ + "\"Fail to upgrade.\n" \ + "Do you have u-boot-update.scr and u-boot.head on first (FAT) SD card partition?\"" \ + "; fi\0" \ "core_dccm_0=0x10\0" \ "core_dccm_1=0x6\0" \ "core_dccm_2=0x10\0" \ |