[Buildroot] [git commit] board/orangepi/orangepi-zero: using PARTUUID to identify root filesystem
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Thu Jan 13 21:09:54 UTC 2022
commit: https://git.buildroot.net/buildroot/commit/?id=6e68ec6de08f0ae9488a4df62ea15eb7e2bdf7b8
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
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=<uuid> mechanism, where the
uuid is found by U-Boot.
Signed-off-by: Sergey Kuzminov <kuzminov.sergey81 at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
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
More information about the buildroot
mailing list