mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 05:13:01 +02:00
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.
This commit is contained in:
committed by
Joachim Wiberg
parent
73f991081c
commit
246b06b8d5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user