From d3585dfbb274bd5e0dab113ff1c4b0e977431006 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stelmach?= Date: Fri, 4 Aug 2023 14:59:25 +0200 Subject: [PATCH] tizen: bootscript: add virtio support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Recognize virtio0 as a valid boot device (target) and set other necessary variables accordingly. Change-Id: Ia6afb47713074da7382c62f6d65da7bd27a80f7e Signed-off-by: Łukasz Stelmach --- tizen/bootscript/tizen-boot-vf2.scr | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tizen/bootscript/tizen-boot-vf2.scr b/tizen/bootscript/tizen-boot-vf2.scr index db1d861959..11a5a79df0 100644 --- a/tizen/bootscript/tizen-boot-vf2.scr +++ b/tizen/bootscript/tizen-boot-vf2.scr @@ -1,5 +1,8 @@ -# U-boot script for tizen VF2 +# U-boot script for tizen VF2 and QEMU +if test "${target}" = "virtio0"; then; + setenv devtype virtio +fi if test "${target}" = "mmc0" -o "${target}" = "mmc1"; then; setenv devtype mmc fi @@ -90,6 +93,9 @@ else if test "${devtype}" = "usb"; then; setenv rootdev sda${rootpart} fi + if test "${devtype}" = "virtio"; then; + setenv rootdev vda${rootpart} + fi setenv bootmode normal fi -- 2.34.1