mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
colibri-imx6ull: use preboot for fdtfile evaluation
Enable and set preboot var with fdtfile evaluation. preboot will be checked and run immediately before starting the CONFIG_BOOTDELAY countdown and/or running the auto-boot command resp. entering interactive mode. This provides possibility to use different boot cmds in interactive mode without manual setting fdtfile value, as it it's already evaluated before entering interactive mode. Fixes: board: 31b1e17f44("toradex: add Colibri iMX6ULL support") Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
This commit is contained in:
parent
b4c9cd6875
commit
2f310b7f48
2 changed files with 5 additions and 5 deletions
|
@ -14,6 +14,8 @@ CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/toradex/colibri-imx6ull/imximage.cfg,
|
||||||
CONFIG_BOOTDELAY=1
|
CONFIG_BOOTDELAY=1
|
||||||
# CONFIG_USE_BOOTCOMMAND is not set
|
# CONFIG_USE_BOOTCOMMAND is not set
|
||||||
# CONFIG_CONSOLE_MUX is not set
|
# CONFIG_CONSOLE_MUX is not set
|
||||||
|
CONFIG_USE_PREBOOT=y
|
||||||
|
CONFIG_PREBOOT="setenv fdtfile imx6ull-colibri${variant}-${fdt_board}.dtb"
|
||||||
CONFIG_SYS_CONSOLE_IS_IN_ENV=y
|
CONFIG_SYS_CONSOLE_IS_IN_ENV=y
|
||||||
CONFIG_VERSION_VARIABLE=y
|
CONFIG_VERSION_VARIABLE=y
|
||||||
# CONFIG_DISPLAY_BOARDINFO is not set
|
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||||
|
|
|
@ -35,8 +35,6 @@
|
||||||
#define CONFIG_NETMASK 255.255.255.0
|
#define CONFIG_NETMASK 255.255.255.0
|
||||||
#define CONFIG_SERVERIP 192.168.10.1
|
#define CONFIG_SERVERIP 192.168.10.1
|
||||||
|
|
||||||
#define FDT_FILE "imx6ull-colibri${variant}-${fdt_board}.dtb"
|
|
||||||
|
|
||||||
#define MEM_LAYOUT_ENV_SETTINGS \
|
#define MEM_LAYOUT_ENV_SETTINGS \
|
||||||
"bootm_size=0x10000000\0" \
|
"bootm_size=0x10000000\0" \
|
||||||
"fdt_addr_r=0x82100000\0" \
|
"fdt_addr_r=0x82100000\0" \
|
||||||
|
@ -57,7 +55,7 @@
|
||||||
"setenv bootargs ${defargs} ${nfsargs} " \
|
"setenv bootargs ${defargs} ${nfsargs} " \
|
||||||
"${setupargs} ${vidargs}; echo Booting from NFS...;" \
|
"${setupargs} ${vidargs}; echo Booting from NFS...;" \
|
||||||
"dhcp ${kernel_addr_r} && " \
|
"dhcp ${kernel_addr_r} && " \
|
||||||
"tftp ${fdt_addr_r} " FDT_FILE " && " \
|
"tftp ${fdt_addr_r} ${fdtfile} && " \
|
||||||
"run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \
|
"run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \
|
||||||
|
|
||||||
#define UBI_BOOTCMD \
|
#define UBI_BOOTCMD \
|
||||||
|
@ -71,8 +69,8 @@
|
||||||
"ubi read ${fdt_addr_r} dtb && " \
|
"ubi read ${fdt_addr_r} dtb && " \
|
||||||
"run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \
|
"run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \
|
||||||
|
|
||||||
#define CONFIG_BOOTCOMMAND "run ubiboot; " \
|
/* Run Distro Boot script if ubiboot fails */
|
||||||
"setenv fdtfile " FDT_FILE " && run distro_bootcmd;"
|
#define CONFIG_BOOTCOMMAND "run ubiboot || run distro_bootcmd;"
|
||||||
|
|
||||||
#define BOOT_TARGET_DEVICES(func) \
|
#define BOOT_TARGET_DEVICES(func) \
|
||||||
func(MMC, mmc, 0) \
|
func(MMC, mmc, 0) \
|
||||||
|
|
Loading…
Reference in a new issue