Message ID | 20211217233227.16411-1-kuzminov.sergey81@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | board/orangepi/orangepi-zero:using UUID to root | expand |
On Sat, 18 Dec 2021 02:32:27 +0300 Sergey Kuzminov <kuzminov.sergey81@gmail.com> wrote: > The mmc block device number can vary. Passing a mmc block device to specify the location of the rootfs is not a reliable approach. > > Signed-off-by: Sergey Kuzminov <kuzminov.sergey81@gmail.com> > --- > board/orangepi/orangepi-zero/boot.cmd | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Applied to master, thanks. Thomas
diff --git a/board/orangepi/orangepi-zero/boot.cmd b/board/orangepi/orangepi-zero/boot.cmd index 44f0885ff4..d094a64fe5 100644 --- a/board/orangepi/orangepi-zero/boot.cmd +++ b/board/orangepi/orangepi-zero/boot.cmd @@ -1,6 +1,7 @@ setenv fdt_high ffffffff -setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait +part uuid mmc 0:2 uuid +setenv bootargs console=ttyS0,115200 root=PARTUUID=${uuid} rootwait fatload mmc 0 $kernel_addr_r zImage fatload mmc 0 $fdt_addr_r sun8i-h2-plus-orangepi-zero.dtb
The mmc block device number can vary. Passing a mmc block device to specify the location of the rootfs is not a reliable approach. Signed-off-by: Sergey Kuzminov <kuzminov.sergey81@gmail.com> --- board/orangepi/orangepi-zero/boot.cmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)