tizen: rpi: add temporary workaround for usb boot
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 28 Jan 2021 10:08:57 +0000 (11:08 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 16 Nov 2021 12:00:22 +0000 (13:00 +0100)
rootfs on USB device requires a bit more time to initialize and it is
probed asynchronously. This might happen after the initramfs is mounted
and init started, so add 2 seconds delay in case of USB boot to let
initramfs to detect the rootfs.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: If4c1f12bd556ee3811b035c403ce832cf16c940b

tizen/bootscript/tizen-boot-rpi3.scr
tizen/bootscript/tizen-boot-rpi4.scr

index fc59caf..49b0d6b 100644 (file)
@@ -5,6 +5,7 @@ if test "${target}" = "mmc0"; then;
 fi
 if test "${target}" = "usb0"; then;
        setenv bootdev usb
+       setenv opts "${opts} rootdelay=2"
 fi
 
 echo "Tizen: checking partition layout on boot device"
index 6a8b8af..759a284 100644 (file)
@@ -5,6 +5,7 @@ if test "${target}" = "mmc0"; then;
 fi
 if test "${target}" = "usb0"; then;
        setenv bootdev usb
+       setenv opts "${opts} rootdelay=2"
 fi
 
 echo "Tizen: checking partition layout on boot device"