diff options
author | Lukasz Majewski <lukma@denx.de> | 2018-05-11 16:50:59 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2018-06-18 15:42:38 +0200 |
commit | 13e012f7b5f31d700185d5c10c6090aec4628164 (patch) | |
tree | 501cdb17ceeee7f26176143538f83688b3b0b051 /include/configs/display5.h | |
parent | a715415bb5948c84cc44c601b193188990f7238b (diff) |
display5: factory: Add support for BOOT_FROM = FACTORY switch
When BOOT_FROM = FACTORY, then the LEG's factory setup is performed.
This code relies on boot_nfs u-boot command, so it shall be adjusted
appropriately (e.g. provide proper fitImage file).
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'include/configs/display5.h')
-rw-r--r-- | include/configs/display5.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/configs/display5.h b/include/configs/display5.h index cff689420e..c6a46c8707 100644 --- a/include/configs/display5.h +++ b/include/configs/display5.h @@ -100,7 +100,11 @@ #define CONFIG_BAUDRATE 115200 #ifndef CONFIG_BOOTCOMMAND -#define CONFIG_BOOTCOMMAND "run boot_mmc" +#define CONFIG_BOOTCOMMAND "if test ${BOOT_FROM} = FACTORY; then " \ + "run factory_nfs;" \ + "else " \ + "run boot_mmc;" \ + "fi" #endif #define PARTS_DEFAULT \ @@ -273,6 +277,9 @@ "up=run tftp_sf_SPL; run tftp_sf_uboot\0" \ "download_kernel=" \ "tftpboot ${loadaddr} ${kernel_file};\0" \ + "factory_nfs=" \ + "echo BOOT: FACTORY (LEG);" \ + "run boot_nfs\0" \ "boot_kernel_recovery=" KERNEL_RECOVERY_PROCEDURE "\0" \ "boot_swu_recovery=" SWUPDATE_RECOVERY_PROCEDURE "\0" \ "recovery=" \ |