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)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 17 Oct 2023 04:19:30 +0000 (13:19 +0900)
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 0cbe8a8a83edc80240366e8cddd69ae6874a0b19..2ad4ae00dfab91eafb7e0e82340b508401aa0274 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
 
 if test -e $bootdev $mmcbootdev:$mmcinformpart $rebootparamfile; then;
index 1ee425d241846262f087d1af66caaca82bcff233..71f9962a60bc1ac6e501faed7a2f15b2ad0aa80c 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
 
 if test -e $bootdev $mmcbootdev:$mmcinformpart $rebootparamfile; then;