From 246b06b8d5015d02033773626ef2aea91038ab79 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Thu, 24 Aug 2023 13:12:43 +0200 Subject: [PATCH] uboot: When booting from a block device, wait for it to show up The kernel's mounting of the rootfs may race against the underlying device being probed - especially for media like MMC cards and USB sticks. Therefore, tell the kernel to wait for the root device to show up. --- board/common/uboot/scripts/ixprepblk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/common/uboot/scripts/ixprepblk.sh b/board/common/uboot/scripts/ixprepblk.sh index 8964f2fb..4fe8c3a3 100644 --- a/board/common/uboot/scripts/ixprepblk.sh +++ b/board/common/uboot/scripts/ixprepblk.sh @@ -10,7 +10,7 @@ if load ${devtype} ${devnum}:${auxpart} ${ramdisk_addr_r} /${slot}.itbh; then if part start ${devtype} ${devnum} ${slot} devoffs; then if ${devtype} read ${sqaddr} ${devoffs} ${sqblkcnt}; then - setenv bootargs_root "root=PARTLABEL=${slot}" + setenv bootargs_root "root=PARTLABEL=${slot} rootwait" setenv prepared ok fi fi