mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
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>
This commit is contained in:
parent
a715415bb5
commit
13e012f7b5
1 changed files with 8 additions and 1 deletions
|
@ -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=" \
|
||||
|
|
Loading…
Reference in a new issue