* [PATCH] nanopi-neo.wks.in: use partition uuid instead of providing mmcblk2 disk
@ 2023-11-26 20:09 Badrikesh
2023-11-27 9:22 ` MOESSBAUER, Felix
2023-11-27 10:24 ` [PATCH] nanopi-neo.wks.in: use partition uuid instead of providing mmcblk2 disk Uladzimir Bely
0 siblings, 2 replies; 6+ messages in thread
From: Badrikesh @ 2023-11-26 20:09 UTC (permalink / raw)
To: isar-users
[-- Attachment #1.1: Type: text/plain, Size: 1346 bytes --]
Observing boot failure on nanopi, if booted from external sd-card
>From FriendlyElec documentation, mmcblk2 is used as internal emmc,
while mmcblk0 is used for external sd-card.
Some nanopi's doesn't support emmc, instead uses ext sd for booting
With this change it will allow booting from external sd-card. Also,
the image can be copied to emmc to boot from emmc as well
Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
---
meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
index af5b6f08..9489bd12 100644
--- a/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
+++ b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
@@ -5,6 +5,6 @@
part u-boot --source rawcopy --sourceparams
"file=/usr/lib/u-boot/nanopi_neo/u-boot-sunxi-with-spl.bin" --no-table
--align 8
-part / --source rootfs-u-boot --ondisk mmcblk2 --fstype ext4
--mkfs-extraopts "-T default" --sourceparams "builtin_dt=yes" --label
platform --align 1024 --active
+part / --source rootfs-u-boot --use-uuid --fstype ext4 --mkfs-extraopts
"-T default" --sourceparams "builtin_dt=yes" --label platform --align 1024
--active
bootloader --append "rw rootwait"
--
2.39.2
[-- Attachment #1.2: Type: text/html, Size: 1473 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] nanopi-neo.wks.in: use partition uuid instead of providing mmcblk2 disk
2023-11-26 20:09 [PATCH] nanopi-neo.wks.in: use partition uuid instead of providing mmcblk2 disk Badrikesh
@ 2023-11-27 9:22 ` MOESSBAUER, Felix
2023-11-27 15:12 ` [PATCH] nanopi-neo: Use partition uuid instead of particular disk Badrikesh Prusty
2023-11-27 10:24 ` [PATCH] nanopi-neo.wks.in: use partition uuid instead of providing mmcblk2 disk Uladzimir Bely
1 sibling, 1 reply; 6+ messages in thread
From: MOESSBAUER, Felix @ 2023-11-27 9:22 UTC (permalink / raw)
To: Prusty, Badrikesh, isar-users
On Sun, 2023-11-26 at 12:09 -0800, 'Badrikesh' via isar-users wrote:
> Observing boot failure on nanopi, if booted from external sd-card
> From FriendlyElec documentation, mmcblk2 is used as internal emmc,
> while mmcblk0 is used for external sd-card.
> Some nanopi's doesn't support emmc, instead uses ext sd for booting
> With this change it will allow booting from external sd-card. Also,
> the image can be copied to emmc to boot from emmc as well
Hi Badrikesh,
thanks for this fix. I also wanted to send it, but you were faster.
Once merged, the following issue can be closed:
https://github.com/ilbers/isar/issues/100
Acked-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Happy Coding!
Felix
>
> Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
> ---
> meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> index af5b6f08..9489bd12 100644
> --- a/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> +++ b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> @@ -5,6 +5,6 @@
>
> part u-boot --source rawcopy --sourceparams "file=/usr/lib/u-
> boot/nanopi_neo/u-boot-sunxi-with-spl.bin" --no-table --align 8
>
> -part / --source rootfs-u-boot --ondisk mmcblk2 --fstype ext4 --mkfs-
> extraopts "-T default" --sourceparams "builtin_dt=yes" --label
> platform --align 1024 --active
> +part / --source rootfs-u-boot --use-uuid --fstype ext4 --mkfs-
> extraopts "-T default" --sourceparams "builtin_dt=yes" --label
> platform --align 1024 --active
>
> bootloader --append "rw rootwait"
> --
> 2.39.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] nanopi-neo.wks.in: use partition uuid instead of providing mmcblk2 disk
2023-11-26 20:09 [PATCH] nanopi-neo.wks.in: use partition uuid instead of providing mmcblk2 disk Badrikesh
2023-11-27 9:22 ` MOESSBAUER, Felix
@ 2023-11-27 10:24 ` Uladzimir Bely
1 sibling, 0 replies; 6+ messages in thread
From: Uladzimir Bely @ 2023-11-27 10:24 UTC (permalink / raw)
To: Badrikesh, isar-users
On Sun, 2023-11-26 at 12:09 -0800, 'Badrikesh' via isar-users wrote:
> Observing boot failure on nanopi, if booted from external sd-card
> From FriendlyElec documentation, mmcblk2 is used as internal emmc,
> while mmcblk0 is used for external sd-card.
> Some nanopi's doesn't support emmc, instead uses ext sd for booting
> With this change it will allow booting from external sd-card. Also,
> the image can be copied to emmc to boot from emmc as well
>
> Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
> ---
> meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> index af5b6f08..9489bd12 100644
> --- a/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> +++ b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> @@ -5,6 +5,6 @@
>
> part u-boot --source rawcopy --sourceparams "file=/usr/lib/u-
> boot/nanopi_neo/u-boot-sunxi-with-spl.bin" --no-table --align 8
>
> -part / --source rootfs-u-boot --ondisk mmcblk2 --fstype ext4 --mkfs-
> extraopts "-T default" --sourceparams "builtin_dt=yes" --label
> platform --align 1024 --active
> +part / --source rootfs-u-boot --use-uuid --fstype ext4 --mkfs-
> extraopts "-T default" --sourceparams "builtin_dt=yes" --label
> platform --align 1024 --active
>
Hello
This patch looks broken since long lines are splitted in two lines. The
same situation is observed in the patchwork. Probably, it is related to
windows-style line endings in the email.
See also the patch at
https://patchwork.isar-build.org/project/isar/patch/9ed33d28-4442-480d-aa3c-0d68d216905en@googlegroups.com/
Could you resend v2 with the fix? Of course, we could fix it when
merging, but it would better to have a proper version in the maillist.
> bootloader --append "rw rootwait"
> --
> 2.39.2
> --
> You received this message because you are subscribed to the Google
> Groups "isar-users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to isar-users+unsubscribe@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/isar-users/9ed33d28-4442-480d-aa3c-0d68d216905en%40googlegroups.com
> .
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] nanopi-neo: Use partition uuid instead of particular disk
2023-11-27 9:22 ` MOESSBAUER, Felix
@ 2023-11-27 15:12 ` Badrikesh Prusty
2023-11-27 17:12 ` Badrikesh Prusty
2023-11-30 14:35 ` Uladzimir Bely
0 siblings, 2 replies; 6+ messages in thread
From: Badrikesh Prusty @ 2023-11-27 15:12 UTC (permalink / raw)
To: isar-users; +Cc: Badrikesh Prusty
From: Badrikesh Prusty <badrikesh.prusty@siemens.com>
Observing boot failure on nanopi-neo, if booted from external sd-card
due to dev/mmcblk2p1 not found.
>From FriendlyElec documentation, mmcblk2 is used as internal emmc,
while mmcblk0 is used for external sd-card.
Some nanopi-neo's doesn't support emmc, instead uses external sd-card
as a boot device.
With this change it will allow booting from external sd-card and the
image can be copied to emmc to boot from emmc as well.
Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
---
meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
index af5b6f08..9489bd12 100644
--- a/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
+++ b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
@@ -5,6 +5,6 @@
part u-boot --source rawcopy --sourceparams "file=/usr/lib/u-boot/nanopi_neo/u-boot-sunxi-with-spl.bin" --no-table --align 8
-part / --source rootfs-u-boot --ondisk mmcblk2 --fstype ext4 --mkfs-extraopts "-T default" --sourceparams "builtin_dt=yes" --label platform --align 1024 --active
+part / --source rootfs-u-boot --use-uuid --fstype ext4 --mkfs-extraopts "-T default" --sourceparams "builtin_dt=yes" --label platform --align 1024 --active
bootloader --append "rw rootwait"
--
2.39.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] nanopi-neo: Use partition uuid instead of particular disk
2023-11-27 15:12 ` [PATCH] nanopi-neo: Use partition uuid instead of particular disk Badrikesh Prusty
@ 2023-11-27 17:12 ` Badrikesh Prusty
2023-11-30 14:35 ` Uladzimir Bely
1 sibling, 0 replies; 6+ messages in thread
From: Badrikesh Prusty @ 2023-11-27 17:12 UTC (permalink / raw)
To: isar-users
[-- Attachment #1.1: Type: text/plain, Size: 1872 bytes --]
Hi all,
The cause of windows style code was likely caused due to copy pasting the
patch in windows system browser itself via new conversation. Now, I updated
the commit and sent via git send-mail from linux host.
Thanks
On Monday, November 27, 2023 at 9:31:48 PM UTC+5:30 Badrikesh Prusty wrote:
> From: Badrikesh Prusty <badrikes...@siemens.com>
>
> Observing boot failure on nanopi-neo, if booted from external sd-card
> due to dev/mmcblk2p1 not found.
>
> From FriendlyElec documentation, mmcblk2 is used as internal emmc,
> while mmcblk0 is used for external sd-card.
>
> Some nanopi-neo's doesn't support emmc, instead uses external sd-card
> as a boot device.
>
> With this change it will allow booting from external sd-card and the
> image can be copied to emmc to boot from emmc as well.
>
> Signed-off-by: Badrikesh Prusty <badrikes...@siemens.com>
> ---
> meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> index af5b6f08..9489bd12 100644
> --- a/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> +++ b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> @@ -5,6 +5,6 @@
>
> part u-boot --source rawcopy --sourceparams
> "file=/usr/lib/u-boot/nanopi_neo/u-boot-sunxi-with-spl.bin" --no-table
> --align 8
>
> -part / --source rootfs-u-boot --ondisk mmcblk2 --fstype ext4
> --mkfs-extraopts "-T default" --sourceparams "builtin_dt=yes" --label
> platform --align 1024 --active
> +part / --source rootfs-u-boot --use-uuid --fstype ext4 --mkfs-extraopts
> "-T default" --sourceparams "builtin_dt=yes" --label platform --align 1024
> --active
>
> bootloader --append "rw rootwait"
> --
> 2.39.2
>
>
[-- Attachment #1.2: Type: text/html, Size: 3535 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] nanopi-neo: Use partition uuid instead of particular disk
2023-11-27 15:12 ` [PATCH] nanopi-neo: Use partition uuid instead of particular disk Badrikesh Prusty
2023-11-27 17:12 ` Badrikesh Prusty
@ 2023-11-30 14:35 ` Uladzimir Bely
1 sibling, 0 replies; 6+ messages in thread
From: Uladzimir Bely @ 2023-11-30 14:35 UTC (permalink / raw)
To: Badrikesh Prusty, isar-users
On Mon, 2023-11-27 at 20:42 +0530, Badrikesh Prusty wrote:
> From: Badrikesh Prusty <badrikesh.prusty@siemens.com>
>
> Observing boot failure on nanopi-neo, if booted from external sd-card
> due to dev/mmcblk2p1 not found.
>
> From FriendlyElec documentation, mmcblk2 is used as internal emmc,
> while mmcblk0 is used for external sd-card.
>
> Some nanopi-neo's doesn't support emmc, instead uses external sd-card
> as a boot device.
>
> With this change it will allow booting from external sd-card and the
> image can be copied to emmc to boot from emmc as well.
>
> Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
> ---
> meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> index af5b6f08..9489bd12 100644
> --- a/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> +++ b/meta-isar/scripts/lib/wic/canned-wks/nanopi-neo.wks.in
> @@ -5,6 +5,6 @@
>
> part u-boot --source rawcopy --sourceparams "file=/usr/lib/u-
> boot/nanopi_neo/u-boot-sunxi-with-spl.bin" --no-table --align 8
>
> -part / --source rootfs-u-boot --ondisk mmcblk2 --fstype ext4 --mkfs-
> extraopts "-T default" --sourceparams "builtin_dt=yes" --label
> platform --align 1024 --active
> +part / --source rootfs-u-boot --use-uuid --fstype ext4 --mkfs-
> extraopts "-T default" --sourceparams "builtin_dt=yes" --label
> platform --align 1024 --active
>
> bootloader --append "rw rootwait"
> --
> 2.39.2
>
Applied to next, thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-11-30 14:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-26 20:09 [PATCH] nanopi-neo.wks.in: use partition uuid instead of providing mmcblk2 disk Badrikesh
2023-11-27 9:22 ` MOESSBAUER, Felix
2023-11-27 15:12 ` [PATCH] nanopi-neo: Use partition uuid instead of particular disk Badrikesh Prusty
2023-11-27 17:12 ` Badrikesh Prusty
2023-11-30 14:35 ` Uladzimir Bely
2023-11-27 10:24 ` [PATCH] nanopi-neo.wks.in: use partition uuid instead of providing mmcblk2 disk Uladzimir Bely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox