All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] board/orangepi/orangepi-zero:using UUID to root
@ 2021-12-17 23:32 Sergey Kuzminov
  2022-01-13 21:10 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Sergey Kuzminov @ 2021-12-17 23:32 UTC (permalink / raw)
  To: buildroot; +Cc: Sergey Kuzminov

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(-)

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
-- 
2.32.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH] board/orangepi/orangepi-zero:using UUID to root
  2021-12-17 23:32 [Buildroot] [PATCH] board/orangepi/orangepi-zero:using UUID to root Sergey Kuzminov
@ 2022-01-13 21:10 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2022-01-13 21:10 UTC (permalink / raw)
  To: Sergey Kuzminov; +Cc: buildroot

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
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-13 21:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-17 23:32 [Buildroot] [PATCH] board/orangepi/orangepi-zero:using UUID to root Sergey Kuzminov
2022-01-13 21:10 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.