From 6e68ec6de08f0ae9488a4df62ea15eb7e2bdf7b8 Mon Sep 17 00:00:00 2001 From: Sergey Kuzminov Date: Sat, 18 Dec 2021 02:32:27 +0300 Subject: [PATCH] board/orangepi/orangepi-zero: using PARTUUID to identify root filesystem The mmc block device number can vary, so passing a mmc block device to specify the location of the rootfs is not a reliable approach. Instead, use the root=PARTUUID= mechanism, where the uuid is found by U-Boot. Signed-off-by: Sergey Kuzminov Signed-off-by: Thomas Petazzoni --- board/orangepi/orangepi-zero/boot.cmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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