tizen: bootscript: add virtio support
authorŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 4 Aug 2023 12:59:25 +0000 (14:59 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 17 Oct 2023 11:02:45 +0000 (20:02 +0900)
Recognize virtio0 as a valid boot device (target) and
set other necessary variables accordingly.

Change-Id: Ia6afb47713074da7382c62f6d65da7bd27a80f7e
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
tizen/bootscript/tizen-boot-vf2.scr

index db1d861..11a5a79 100644 (file)
@@ -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