From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7306058951758446592 X-Received: by 2002:a4a:765a:0:b0:58d:7a2c:799d with SMTP id w26-20020a4a765a000000b0058d7a2c799dmr3115692ooe.1.1701074408822; Mon, 27 Nov 2023 00:40:08 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6820:1c8b:b0:58a:b02:fee with SMTP id ct11-20020a0568201c8b00b0058a0b020feels1329434oob.1.-pod-prod-06-us; Mon, 27 Nov 2023 00:40:08 -0800 (PST) X-Received: by 2002:a05:6830:1282:b0:6bf:192d:31dc with SMTP id z2-20020a056830128200b006bf192d31dcmr399715otp.2.1701074408337; Mon, 27 Nov 2023 00:40:08 -0800 (PST) Received: by 2002:a05:6808:211a:b0:3b2:e349:d5c2 with SMTP id 5614622812f47-3b83d618753msb6e; Sun, 26 Nov 2023 12:09:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2wFcUyzo3IhjE8haH4L5z3ZDEy6ly1jLkYzEWEIPIcHe23sZLYthDx32MDjGnXY85PCLhJPz0Ww== X-Received: by 2002:a17:90a:ce8d:b0:27d:1ce0:7cf with SMTP id g13-20020a17090ace8d00b0027d1ce007cfmr2019910pju.0.1701029360358; Sun, 26 Nov 2023 12:09:20 -0800 (PST) X-Google-Thread-Subscription: Yes X-Google-Web-Client: true Date: Sun, 26 Nov 2023 12:09:19 -0800 (PST) From: Badrikesh To: isar-users Message-Id: <9ed33d28-4442-480d-aa3c-0d68d216905en@googlegroups.com> Subject: [PATCH] nanopi-neo.wks.in: use partition uuid instead of providing mmcblk2 disk MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_98777_25316128.1701029359605" X-TUID: vV7NQxla7jQa ------=_Part_98777_25316128.1701029359605 Content-Type: multipart/alternative; boundary="----=_Part_98778_1080532546.1701029359605" ------=_Part_98778_1080532546.1701029359605 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 --- 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 ------=_Part_98778_1080532546.1701029359605 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Observing boot failure on nanopi, if booted from external sd-card
From= FriendlyElec documentation, mmcblk2 is used as internal emmc,
while m= mcblk0 is used for external sd-card.
Some nanopi's doesn't support emm= c, instead uses ext sd for booting
With this change it will allow boot= ing from external sd-card. Also,
the image can be copied to emmc to bo= ot from emmc as well

Signed-off-by: Badrikesh Prusty <badrike= sh.prusty@siemens.com>
---
=C2=A0meta-isar/scripts/lib/wic/can= ned-wks/nanopi-neo.wks.in | 2 +-
=C2=A01 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-wk= s/nanopi-neo.wks.in
@@ -5,6 +5,6 @@

=C2=A0part u-boot --sou= rce rawcopy --sourceparams "file=3D/usr/lib/u-boot/nanopi_neo/u-boot-sunxi-= with-spl.bin" --no-table --align 8

-part / --source rootfs-u-boo= t --ondisk mmcblk2 --fstype ext4 --mkfs-extraopts "-T default" --sourcepara= ms "builtin_dt=3Dyes" --label platform --align 1024 --active
+part / -= -source rootfs-u-boot --use-uuid --fstype ext4 --mkfs-extraopts "-T default= " --sourceparams "builtin_dt=3Dyes" --label platform --align 1024 --active<= br />
=C2=A0bootloader --append "rw rootwait"
--
2.39.2 ------=_Part_98778_1080532546.1701029359605-- ------=_Part_98777_25316128.1701029359605--