[PATCH v4 1/3] board: starfive: visionfive2: Add Orange Pi RV selection by product_id

Heinrich Schuchardt xypron.glpk at gmx.de
Mon Mar 9 12:58:39 CET 2026


On 3/5/26 17:43, E Shattow wrote:
> Add XOPIRV identifier for Orange Pi RV to dts selection callback in SPL,
> and to fdtfile environment variable default value selection in payload.

Did Shenzhen Xunlong Software Co., Ltd ever respond to the suggested 
EEPROM change?

> 
> Signed-off-by: E Shattow <e at freeshell.de>
> Reviewed-by: Hal Feng <hal.feng at starfivetech.com>
> ---
>   board/starfive/visionfive2/spl.c                  | 3 +++
>   board/starfive/visionfive2/starfive_visionfive2.c | 2 ++
>   2 files changed, 5 insertions(+)
> 
> diff --git a/board/starfive/visionfive2/spl.c b/board/starfive/visionfive2/spl.c
> index 2d9431d2976..684605278c0 100644
> --- a/board/starfive/visionfive2/spl.c
> +++ b/board/starfive/visionfive2/spl.c
> @@ -131,6 +131,9 @@ int board_fit_config_name_match(const char *name)
>   		    !strncmp(get_product_id_from_eeprom(), "MARC", 4) &&
>   		    !get_mmc_size_from_eeprom()) {
>   		return 0;
> +	} else if (!strcmp(name, "starfive/jh7110-orangepi-rv") &&

This matches the name of the device-tree in upstream Linux.

Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

> +		    !strncmp(get_product_id_from_eeprom(), "XOPIRV", 6)) {
> +		return 0;
>   	} else if (!strcmp(name, "starfive/jh7110-pine64-star64") &&
>   		    !strncmp(get_product_id_from_eeprom(), "STAR64", 6)) {
>   		return 0;
> diff --git a/board/starfive/visionfive2/starfive_visionfive2.c b/board/starfive/visionfive2/starfive_visionfive2.c
> index 6c39fd4af35..d59622f6b64 100644
> --- a/board/starfive/visionfive2/starfive_visionfive2.c
> +++ b/board/starfive/visionfive2/starfive_visionfive2.c
> @@ -63,6 +63,8 @@ static void set_fdtfile(void)
>   		} else {
>   			fdtfile = "starfive/jh7110-milkv-marscm-lite.dtb";
>   		}
> +	} else if (!strncmp(get_product_id_from_eeprom(), "XOPIRV", 6)) {
> +		fdtfile = "starfive/jh7110-orangepi-rv.dtb";
>   	} else if (!strncmp(get_product_id_from_eeprom(), "STAR64", 6)) {
>   		fdtfile = "starfive/jh7110-pine64-star64.dtb";
>   	} else if (!strncmp(get_product_id_from_eeprom(), "VF7110A", 7)) {



More information about the U-Boot mailing list