[PATCH v3 1/6] riscv: do not set default fdt for VisionFive 2
Leo Liang
ycliang at andestech.com
Mon Apr 8 12:10:06 CEST 2024
On Tue, Apr 02, 2024 at 10:49:07AM +0200, Heinrich Schuchardt wrote:
> Currently in set_fdtfile() we set the value of environment variable fdtfile
> unconditionally. The implies that a value in the environment will be
> ignored.
>
> With the patch environment variable fdtfile will only be set if it does not
> yet exist. This requires that CONFIG_DEFAULT_FDT_FILE is not set.
>
> Now the user can either set and save fdtfile interactively or in the U-Boot
> configuration to overrule the device-tree name chosen based on the
> hardware in set_fdtfile().
>
> Reported-by: E Shattow <lucent at gmail.com>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> v3:
> Rephrase last added sentence in doc/board/starfive/visionfive2.rst
> v2:
> new patch
> ---
> .../visionfive2/starfive_visionfive2.c | 4 ++++
> configs/starfive_visionfive2_defconfig | 1 -
> doc/board/starfive/visionfive2.rst | 18 ++++++++++++++++++
> 3 files changed, 22 insertions(+), 1 deletion(-)
Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>
More information about the U-Boot
mailing list