From 5833d1262ec7271afb725d0478511dccc37d0674 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stelmach?= Date: Wed, 9 Aug 2023 23:01:37 +0200 Subject: [PATCH] tizen: bootscript: Select FDT file for VF2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Select FDT file for VisionFive2 board depending on the revision of the board. Change-Id: I05bf589572000937451bb94510f3f67755e425e9 Signed-off-by: Łukasz Stelmach --- tizen/bootscript/tizen-boot-vf2.scr | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tizen/bootscript/tizen-boot-vf2.scr b/tizen/bootscript/tizen-boot-vf2.scr index f5c30745fe..d3f6d337b1 100644 --- a/tizen/bootscript/tizen-boot-vf2.scr +++ b/tizen/bootscript/tizen-boot-vf2.scr @@ -111,6 +111,15 @@ fi echo "console: ${console}" # DT image by model +if setexpr pcb_revision sub "^VF7110(.).*" "\\1" "${serial#}"; then + if test "${pcb_revision}" = "A" -o "${pcb_revision}" = "a"; then + setenv fdtfile "jh7110-starfive-visionfive-2-v1.2a.dtb" + fi + if test "${pcb_revision}" = "B" -o "${pcb_revision}" = "b"; then + setenv fdtfile "jh7110-starfive-visionfive-2-v1.3b.dtb" + fi +fi + setenv boot_prefixes \"/\" # To use cmdline for using serial console. /* Normal mode */ -- 2.34.1