Browse Source

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 <git@bitsofnetworks.org>
Baptiste Jonglez 2 years ago
parent
commit
32375e8836

+ 2 - 1
configs/starfive_jh7100_starlight_smode_defconfig

@@ -32,7 +32,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-beaglev-starlight.dtb"

+ 2 - 1
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"