From 32375e883659514501ed5b53d525ee2222d3b342 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Sat, 28 May 2022 17:17:37 +0200 Subject: starfive: enable BOOTCOMMAND so that DISTRO_DEFAULTS becomes useful Currently, the starfive configuration implements the distro spec: https://u-boot.readthedocs.io/en/latest/develop/distro.html However, BOOTCOMMAND is not enabled in the actual board config. This results in "bootcmd" not being defined, so u-boot does nothing by default. The Fedora image provided by StarFive is still able to boot, but only because u-boot has a preboot command that loads boot/uEnv.txt from the third partition of the SD card. To make use of the distro spec and allow generic booting of any OS image, this patch enables BOOTCOMMAND. Signed-off-by: Baptiste Jonglez --- configs/starfive_jh7100_visionfive_smode_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configs/starfive_jh7100_visionfive_smode_defconfig') diff --git a/configs/starfive_jh7100_visionfive_smode_defconfig b/configs/starfive_jh7100_visionfive_smode_defconfig index 7a82eba3a5..a3663b830d 100644 --- a/configs/starfive_jh7100_visionfive_smode_defconfig +++ b/configs/starfive_jh7100_visionfive_smode_defconfig @@ -30,7 +30,8 @@ CONFIG_AUTOBOOT_KEYED=y CONFIG_AUTOBOOT_DELAY_STR="f" CONFIG_AUTOBOOT_STOP_STR="v" CONFIG_AUTOBOOT_KEYED_CTRLC=y -# CONFIG_USE_BOOTCOMMAND is not set +CONFIG_USE_BOOTCOMMAND=y +CONFIG_BOOTCOMMAND="run distro_bootcmd" CONFIG_USE_PREBOOT=y CONFIG_PREBOOT="run mmcbootenv" CONFIG_DEFAULT_FDT_FILE="starfive/jh7100-visionfive.dtb" -- cgit v1.2.3