From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7306058951758446592 Date: Mon, 27 Nov 2023 09:12:53 -0800 (PST) From: Badrikesh Prusty To: isar-users Message-Id: <0fd51581-0ac4-47a9-aa4a-69136f84ab1fn@googlegroups.com> In-Reply-To: <20231127151259.7554-1-badrikesh_prusty@mentor.com> References: <20231127151259.7554-1-badrikesh_prusty@mentor.com> Subject: Re: [PATCH] nanopi-neo: Use partition uuid instead of particular disk MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_122884_10438810.1701105173316" X-TUID: NwZDZVQZRl97 ------=_Part_122884_10438810.1701105173316 Content-Type: multipart/alternative; boundary="----=_Part_122885_1679502571.1701105173316" ------=_Part_122885_1679502571.1701105173316 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, The cause of windows style code was likely caused due to copy pasting the= =20 patch in windows system browser itself via new conversation. Now, I updated= =20 the commit and sent via git send-mail from linux host. Thanks On Monday, November 27, 2023 at 9:31:48=E2=80=AFPM UTC+5:30 Badrikesh Prust= y wrote: > From: Badrikesh Prusty > > 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 > --- > 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=20 > 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=20 > "file=3D/usr/lib/u-boot/nanopi_neo/u-boot-sunxi-with-spl.bin" --no-table= =20 > --align 8 > > -part / --source rootfs-u-boot --ondisk mmcblk2 --fstype ext4=20 > --mkfs-extraopts "-T default" --sourceparams "builtin_dt=3Dyes" --label= =20 > platform --align 1024 --active > +part / --source rootfs-u-boot --use-uuid --fstype ext4 --mkfs-extraopts= =20 > "-T default" --sourceparams "builtin_dt=3Dyes" --label platform --align 1= 024=20 > --active > > bootloader --append "rw rootwait" > --=20 > 2.39.2 > > ------=_Part_122885_1679502571.1701105173316 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi all,
The cause of windows style code was likely caused du= e to copy pasting the patch in windows system browser itself via new conver= sation. Now, I updated the commit and sent via git send-mail from linux hos= t.

Thanks

On Monday, November 27, 2023 a= t 9:31:48=E2=80=AFPM 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 s= d-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-n= eo.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/nan= opi-neo.wks.in
+++ b/meta-isar/scripts/lib/wic/canned-wks/nan= opi-neo.wks.in
@@ -5,6 +5,6 @@
=20
part u-boot --source rawcopy --sourceparams "file=3D/usr/lib/u-bo= ot/nanopi_neo/u-boot-sunxi-with-spl.bin" --no-table --align 8
=20
-part / --source rootfs-u-boot --ondisk mmcblk2 --fstype ext4 --mkfs-ex= traopts "-T default" --sourceparams "builtin_dt=3Dyes" = --label platform --align 1024 --active
+part / --source rootfs-u-boot --use-uuid --fstype ext4 --mkfs-extraopt= s "-T default" --sourceparams "builtin_dt=3Dyes" --labe= l platform --align 1024 --active
=20
bootloader --append "rw rootwait"
--=20
2.39.2

------=_Part_122885_1679502571.1701105173316-- ------=_Part_122884_10438810.1701105173316--