Commit e2158a5fd81f74182203319dab17da09bbc07e96
Committed by
Tom Rini
1 parent
e95c98182b
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
configs: stm32h743-evaluation: Add DISTRO_DEFAULT support
Add DISTRO_DEFAULT support to be able to boot on mmc by default on boot. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Showing 2 changed files with 17 additions and 11 deletions Side-by-side Diff
configs/stm32h743-eval_defconfig
... | ... | @@ -5,35 +5,29 @@ |
5 | 5 | CONFIG_STM32H7=y |
6 | 6 | CONFIG_TARGET_STM32H743_EVAL=y |
7 | 7 | CONFIG_DEFAULT_DEVICE_TREE="stm32h743i-eval" |
8 | -CONFIG_ENV_VARS_UBOOT_CONFIG=y | |
8 | +CONFIG_DISTRO_DEFAULTS=y | |
9 | 9 | CONFIG_BOOTDELAY=3 |
10 | +# CONFIG_USE_BOOTCOMMAND is not set | |
10 | 11 | CONFIG_DEFAULT_FDT_FILE="stm32h743i-eval" |
11 | 12 | # CONFIG_DISPLAY_CPUINFO is not set |
12 | 13 | CONFIG_BOARD_EARLY_INIT_F=y |
13 | -CONFIG_HUSH_PARSER=y | |
14 | 14 | CONFIG_SYS_PROMPT="U-Boot > " |
15 | 15 | CONFIG_AUTOBOOT_KEYED=y |
16 | 16 | CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n" |
17 | 17 | CONFIG_AUTOBOOT_STOP_STR=" " |
18 | -CONFIG_CMD_BOOTZ=y | |
19 | 18 | CONFIG_CMD_GPT=y |
20 | 19 | CONFIG_CMD_MMC=y |
21 | 20 | # CONFIG_CMD_SETEXPR is not set |
22 | 21 | CONFIG_CMD_CACHE=y |
23 | 22 | CONFIG_CMD_TIMER=y |
24 | -CONFIG_CMD_EXT2=y | |
25 | -CONFIG_CMD_EXT4=y | |
26 | 23 | CONFIG_CMD_EXT4_WRITE=y |
27 | -CONFIG_CMD_FAT=y | |
28 | -CONFIG_CMD_FS_GENERIC=y | |
24 | +# CONFIG_ISO_PARTITION is not set | |
29 | 25 | CONFIG_OF_CONTROL=y |
30 | 26 | CONFIG_OF_EMBED=y |
31 | -# CONFIG_NET is not set | |
32 | 27 | CONFIG_DM_MMC=y |
33 | 28 | CONFIG_STM32_SDMMC2=y |
34 | 29 | # CONFIG_PINCTRL_FULL is not set |
35 | 30 | # CONFIG_SPL_SERIAL_PRESENT is not set |
36 | -CONFIG_REGEX=y | |
37 | 31 | CONFIG_OF_LIBFDT_OVERLAY=y |
38 | 32 | # CONFIG_EFI_LOADER is not set |
include/configs/stm32h743-eval.h
... | ... | @@ -31,8 +31,20 @@ |
31 | 31 | #define CONFIG_SYS_MAXARGS 16 |
32 | 32 | #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024) |
33 | 33 | |
34 | -#define CONFIG_BOOTARGS \ | |
35 | - "console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel" | |
34 | +#define BOOT_TARGET_DEVICES(func) \ | |
35 | + func(MMC, mmc, 0) | |
36 | + | |
37 | +#include <config_distro_bootcmd.h> | |
38 | +#define CONFIG_EXTRA_ENV_SETTINGS \ | |
39 | + "kernel_addr_r=0xD0008000\0" \ | |
40 | + "fdtfile=stm32h743i-eval.dtb\0" \ | |
41 | + "fdt_addr_r=0xD0700000\0" \ | |
42 | + "scriptaddr=0xD0800000\0" \ | |
43 | + "pxefile_addr_r=0xD0800000\0" \ | |
44 | + "fdt_high=0xffffffffffffffff\0" \ | |
45 | + "initrd_high=0xffffffffffffffff\0" \ | |
46 | + "ramdisk_addr_r=0xD0900000\0" \ | |
47 | + BOOTENV | |
36 | 48 | |
37 | 49 | /* |
38 | 50 | * Command line configuration. |