diff mbox series

board/orangepi/orangepi-zero:using UUID to root

Message ID 20211217233227.16411-1-kuzminov.sergey81@gmail.com
State Accepted
Headers show
Series board/orangepi/orangepi-zero:using UUID to root | expand

Commit Message

Sergey Kuzminov Dec. 17, 2021, 11:32 p.m. UTC
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(-)

Comments

Thomas Petazzoni Jan. 13, 2022, 9:10 p.m. UTC | #1
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 mbox series

Patch

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