From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 18 Dec 2025 09:30:49 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-qt1-f184.google.com (mail-qt1-f184.google.com [209.85.160.184]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 5BI8Uhq1009299 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 18 Dec 2025 09:30:43 +0100 Received: by mail-qt1-f184.google.com with SMTP id d75a77b69052e-4f35dcb9d4fsf12411961cf.3 for ; Thu, 18 Dec 2025 00:30:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1766046637; x=1766651437; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-sender:mime-version :subject:references:in-reply-to:message-id:to:from:date:sender:from :to:cc:subject:date:message-id:reply-to; bh=AFAeD0d4g18yn4N/Hc8oqusawWufHj7HfLqe0wVOq+8=; b=U/7C64PriOTnk6+Y4e6tytu/k1tDC7piKuyTxE3bGn5McLGc8c3VagjnvIahnts5Rf D0XYylEYdjNi6lE7PBjpw0RQ6by6euG6KxXBV2qRdp0t29wJDkPSWrm4Ah3O1Sy9Wj3d WzsJbFxFQsL/0qdXMC8eq/pwPcknuATrgonMjX49KWqu49viQ6ZlJK7S2ezF3/QlRXSo P9z/SiMjIIs801wVufaLyG30AMJBBtZMe08uX87mnxYBlE3qYiXLYVIghNsGiB01DOc9 FR2k08GqEW/ysddcFQel8cuXnKgc6dUvn9OFdN/XNNUHtv8StwNU7lBkZkw0G6Z6ukcL 7chQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766046637; x=1766651437; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-sender:mime-version :subject:references:in-reply-to:message-id:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=AFAeD0d4g18yn4N/Hc8oqusawWufHj7HfLqe0wVOq+8=; b=C6SvITsFLRH3645j/a69q4R1aZ9FNwD3wuajIq5B5A3Sd0dC06FdpFXQGOg2LNg1/0 fevFypU/ka9XIVZh9TSCQYuUfTf2LuxLPneuFdQstZ3AFB/bbraPYsjFKDyWD6vTus9Y R22O6iKILZWpJdo1sR4UqwyJrY58LPW37a8dMKaW5kFOy1f1KFlz8p854e9yyPrOR78N jcrLF+TqhmaMabcT6UkLnSaPHynS/Lskd5ni6FKxhPGOCXlAsee1qlzomiwQbLC9PK07 Tp+JvmFOt3EHY5WY+RDRHu823NkPIpDoVstrF+/+iT/yfQMqldPDddo7X/V15vYAGJuo qttQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766046637; x=1766651437; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-sender:mime-version :subject:references:in-reply-to:message-id:to:from:date:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=AFAeD0d4g18yn4N/Hc8oqusawWufHj7HfLqe0wVOq+8=; b=lduIuoB1D6/4Cn/4P4v7Uqzt39UJByw4H+9jmkSy5pqU/uu60tmUxmalkZULHxl5oK gK84AqkX5bFZhgZq0m8drBy2v1KbX8uyuEiamNL0cwIjoEv6OhNysmvDjJnUjCL9tvhi 5tIPy9a+wwCs60tIoCRV79ydNivEJrWkTitzHh9fLHVPvqUZKxhmOgOWvbnxW7sYLMhc WaYPUUQDdNWRSkJ2C/XjxreTb6ECHT9QSqXB16kNb1dDcVq+boghnSYmn7ZCHFM4q8mb gFsc48lxCLtRGszljeCvirMyjosdrCe6JXuGohutB2+VxAzeQ3Zoe7Mmu2BYaNiK98dA 7QYA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=1; AJvYcCW9rVce8+U9hvq06LojJLuUBbwIQHZom29sziFR/jMmWOO7AsxoDL0qTX2Rkzy1lg5YKE4o@ilbers.de X-Gm-Message-State: AOJu0YzoVCAxgUh916g/49M8k2kesXKSS83K5kgfxewu2G68o8eQYBIL iI9jc20FzGnksI7dYDytD3K1lp5OzPaziQY/8mldk57rz1QeGzeNvxMB X-Google-Smtp-Source: AGHT+IHRiub7fT81P1iqdiuspb+u9qV1BQcKV1JMltsfsi7qGn5jhTNX1/W/tJ7pP060I182h7xJOA== X-Received: by 2002:a05:622a:480c:b0:4ed:64c1:16ec with SMTP id d75a77b69052e-4f1d04d08bbmr276789401cf.23.1766046637414; Thu, 18 Dec 2025 00:30:37 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="AWVwgWbWq27WLQTG/ohHSk6GYarnDv/AgdK/f/7/NMQzOT58GA==" Received: by 2002:a05:6214:f6d:b0:87b:d44b:314a with SMTP id 6a1803df08f44-8887cdddd1fls117776926d6.2.-pod-prod-01-us; Thu, 18 Dec 2025 00:30:36 -0800 (PST) X-Received: by 2002:a05:620a:2699:b0:8b2:ea3f:2f91 with SMTP id af79cd13be357-8bb3b3701e8mr2847977685a.81.1766046636799; Thu, 18 Dec 2025 00:30:36 -0800 (PST) Received: by 2002:a05:620a:221:b0:892:e292:65ef with SMTP id af79cd13be357-8beee09ff5ems85a; Thu, 18 Dec 2025 00:29:54 -0800 (PST) X-Received: by 2002:a05:620a:28c6:b0:8ba:115e:f791 with SMTP id af79cd13be357-8bb3b359446mr2921863885a.63.1766046593458; Thu, 18 Dec 2025 00:29:53 -0800 (PST) Date: Thu, 18 Dec 2025 00:29:53 -0800 (PST) From: RICHA BHARTI To: isar-users Message-Id: <465454d2-d0e6-45a1-a5f9-891af0c84067n@googlegroups.com> In-Reply-To: <20251218082208.1031200-1-Richa.Bharti@siemens.com> References: <03fe0f50-b239-4d2f-8825-4de8cd6e249d@ilbers.de> <20251218082208.1031200-1-Richa.Bharti@siemens.com> Subject: Re: [PATCH v2] wic: support passing extraargs for EFI partition creation MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_135240_1452336706.1766046593280" X-Original-Sender: RICBHA.BGP@gmail.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: sYxXT7apFEjE ------=_Part_135240_1452336706.1766046593280 Content-Type: multipart/alternative; boundary="----=_Part_135241_1038684303.1766046593280" ------=_Part_135241_1038684303.1766046593280 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable *Without Extraargs:* ``` $ cat wic/generic-ufs-partitions.wks.in part /boot --source bootimg-efi-isar --sourceparams "loader=3Dsystemd-boot"= =20 --label efi --part-type EF00 --align 1024 --use-uuid --size 512M part --use-uuid --source rootfs --fstype=3D${BSP_ROOTFS_TYPE} --label syste= m=20 --active --align 1024 --exclude-path boot --fixed-size=20 ${UFS_PART_SYSTEM_SIZE} bootloader --ptable gpt --timeout 0 --append "${BSP_KERNEL_CMDLINE} $ file development-image-industrial-os-qcs615-adp-air.wic.p1 development-image-industrial-os-qcs615-adp-air.wic.p1: DOS/MBR boot sector,= =20 code offset 0x58+2, OEM-ID "mkfs.fat", sectors/cluster 8, Media descriptor= =20 0xf8, sectors/track 63, heads 32, sectors 1048572 (volumes > 32 MB), FAT=20 (32 bit), sectors/FAT 1024, serial number 0xe9d3c0d4, label: "efi " ``` *LOG:* ``` DEBUG: ['mkdosfs', '-n', 'efi', '-i', '0x1C1D0579', '-S', '512', '-C',=20 '/tmp/development-image-industrial-os-qcs615-adp-air.wic/tmp.wic.vlfgf_0b/b= oot.img',=20 '524288'] DEBUG: exec_native_cmd: export=20 PATH=3D//sbin://usr/sbin://usr/bin://usr/bin/None://bin:None:$PATH;mkdosfs = -n=20 efi -i 0x1C1D0579 -S 512 -C=20 /tmp/development-image-industrial-os-qcs615-adp-air.wic/tmp.wic.vlfgf_0b/bo= ot.img=20 524288 DEBUG: _exec_cmd: export=20 PATH=3D//sbin://usr/sbin://usr/bin://usr/bin/None://bin:None:$PATH;mkdosfs = -n=20 efi -i 0x1C1D0579 -S 512 -C=20 /tmp/development-image-industrial-os-qcs615-adp-air.wic/tmp.wic.vlfgf_0b/bo= ot.img=20 524288 DEBUG: ['export',=20 'PATH=3D//sbin://usr/sbin://usr/bin://usr/bin/None://bin:None:$PATH;mkdosfs= ',=20 '-n', 'efi', '-i', '0x1C1D0579', '-S', '512', '-C',=20 '/tmp/development-image-industrial-os-qcs615-adp-air.wic/tmp.wic.vlfgf_0b/b= oot.img',=20 '524288'] ``` *With Extraargs:* ``` $ wic/generic-ufs-partitions.wks.in part /boot --source bootimg-efi-isar --sourceparams "loader=3Dsystemd-boot,= *extraargs=3D-F=20 32 -S 4096 -r 2048*" --label efi --part-type EF00 --align 1024 --use-uuid= =20 --size 512M part --use-uuid --source rootfs --fstype=3D${BSP_ROOTFS_TYPE} --label syste= m=20 --active --align 1024 --exclude-path boot --fixed-size=20 ${UFS_PART_SYSTEM_SIZE} bootloader --ptable gpt --timeout 0 --append "${BSP_KERNEL_CMDLINE}" $ file development-image-industrial-os-qcs615-adp-air.wic.p1 development-image-industrial-os-qcs615-adp-air.wic.p1: DOS/MBR boot sector,= =20 code offset 0x58+2, OEM-ID "mkfs.fat", Bytes/sector 4096, Media descriptor= =20 0xf8, sectors/track 32, heads 8, sectors 131072 (volumes > 32 MB), FAT (32= =20 bit), sectors/FAT 128, serial number 0xbf8798d0, label: "efi " ``` *LOG: * ``` DEBUG: Added 469589 extra blocks to /boot to get to 524288 total blocks DEBUG: ['mkdosfs', '-n', 'efi', '-i', '0xBF8798D0', '-F', '32', '-S',=20 '4096', '-r', '2048', '-C',=20 '/tmp/development-image-industrial-os-qcs615-adp-air.wic/tmp.wic.qd9it81v/b= oot.img',=20 '524288'] DEBUG: exec_native_cmd: export=20 PATH=3D//sbin://usr/sbin://usr/bin://usr/bin/None://bin:None:$PATH;mkdosfs = -n=20 efi -i 0xBF8798D0 -F 32 -S 4096 -r 2048 -C=20 /tmp/development-image-industrial-os-qcs615-adp-air.wic/tmp.wic.qd9it81v/bo= ot.img=20 524288 DEBUG: _exec_cmd: export=20 PATH=3D//sbin://usr/sbin://usr/bin://usr/bin/None://bin:None:$PATH;mkdosfs = -n=20 efi -i 0xBF8798D0 -F 32 -S 4096 -r 2048 -C=20 /tmp/development-image-industrial-os-qcs615-adp-air.wic/tmp.wic.qd9it81v/bo= ot.img=20 524288 DEBUG: ['export',=20 'PATH=3D//sbin://usr/sbin://usr/bin://usr/bin/None://bin:None:$PATH;mkdosfs= ',=20 '-n', 'efi', '-i', '0xBF8798D0', '-F', '32', '-S', '4096', '-r', '2048',=20 '-C',=20 '/tmp/development-image-industrial-os-qcs615-adp-air.wic/tmp.wic.qd9it81v/b= oot.img',=20 '524288'] ``` On Thursday, December 18, 2025 at 1:52:32=E2=80=AFPM UTC+5:30 Richa Bharti = wrote: > Some EFI firmwares require FAT filesystems to use specific geometry or > sector parameters. > > Add support for an `extraargs` source parameter to allow passing > additional mkdosfs options when creating the EFI System Partition (ESP). > If no extra arguments are provided, mkdosfs defaults to "-S 512", > preserving existing behaviour. > > Signed-off-by: Richa Bharti > --- > meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py=20 > b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py > index 446398d0..6862a288 100644 > --- a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py > +++ b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py > @@ -506,8 +506,10 @@ class BootimgEFIPlugin(SourcePlugin): > > label =3D part.label if part.label else "ESP" > > - dosfs_cmd =3D "mkdosfs -n %s -i %s -C %s %d" % \ > - (label, part.fsuuid, bootimg, blocks) > + extraargs =3D source_params.get('extraargs', "-S 512") > + > + dosfs_cmd =3D "mkdosfs -n %s -i %s %s -C %s %d" % \ > + (label, part.fsuuid, extraargs, bootimg, blocks) > exec_native_cmd(dosfs_cmd, native_sysroot) > > mcopy_cmd =3D "mcopy -i %s -s %s/* ::/" % (bootimg, hdddir) > --=20 > 2.39.5 > > --=20 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 e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= 465454d2-d0e6-45a1-a5f9-891af0c84067n%40googlegroups.com. ------=_Part_135241_1038684303.1766046593280 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Without Extraargs:
```
$ cat wic/g= eneric-ufs-partitions.wks.in
part /boot --source bootimg-efi-isar --so= urceparams "loader=3Dsystemd-boot" --label efi --part-type EF00 --align 102= 4 --use-uuid --size 512M
part --use-uuid --source rootfs --fstype=3D${= BSP_ROOTFS_TYPE} --label system --active --align 1024 --exclude-path boot -= -fixed-size ${UFS_PART_SYSTEM_SIZE}
bootloader --ptable gpt --timeout = 0 --append "${BSP_KERNEL_CMDLINE}

$ file development-image-indus= trial-os-qcs615-adp-air.wic.p1
development-image-industrial-os-qcs615-= adp-air.wic.p1: DOS/MBR boot sector, code offset 0x58+2, OEM-ID "mkfs.fat",= sectors/cluster 8, Media descriptor 0xf8, sectors/track 63, heads 32, sect= ors 1048572 (volumes > 32 MB), FAT (32 bit), sectors/FAT 1024, serial nu= mber 0xe9d3c0d4, label: "efi =C2=A0 =C2=A0 =C2=A0 =C2=A0"
```
LOG:
```
DEBUG: ['mkdosfs', '-n= ', 'efi', '-i', '0x1C1D0579', '-S', '512', '-C', '/tmp/development-image-in= dustrial-os-qcs615-adp-air.wic/tmp.wic.vlfgf_0b/boot.img', '524288']
D= EBUG: exec_native_cmd: export PATH=3D//sbin://usr/sbin://usr/bin://usr/bin/= None://bin:None:$PATH;mkdosfs -n efi -i 0x1C1D0579 -S 512 -C /tmp/developme= nt-image-industrial-os-qcs615-adp-air.wic/tmp.wic.vlfgf_0b/boot.img 524288<= br />DEBUG: _exec_cmd: export PATH=3D//sbin://usr/sbin://usr/bin://usr/bin/= None://bin:None:$PATH;mkdosfs -n efi -i 0x1C1D0579 -S 512 -C /tmp/developme= nt-image-industrial-os-qcs615-adp-air.wic/tmp.wic.vlfgf_0b/boot.img 524288<= br />DEBUG: ['export', 'PATH=3D//sbin://usr/sbin://usr/bin://usr/bin/None:/= /bin:None:$PATH;mkdosfs', '-n', 'efi', '-i', '0x1C1D0579', '-S', '512', '-C= ', '/tmp/development-image-industrial-os-qcs615-adp-air.wic/tmp.wic.vlfgf_0= b/boot.img', '524288']
```

With Extraar= gs:

```
$ wic/generic-ufs-partitions.wks.in
part /boot --source bootimg-efi-isar --sourceparams "loader=3Dsystemd-boot= ,extraargs=3D-F 32 -S 4096 -r 2048" --label efi --part-type EF00 --a= lign 1024 --use-uuid --size 512M
part --use-uuid --source rootfs --fst= ype=3D${BSP_ROOTFS_TYPE} --label system --active --align 1024 --exclude-pat= h boot --fixed-size ${UFS_PART_SYSTEM_SIZE}
bootloader --ptable gpt --= timeout 0 --append "${BSP_KERNEL_CMDLINE}"

$ file development-im= age-industrial-os-qcs615-adp-air.wic.p1
development-image-industrial-o= s-qcs615-adp-air.wic.p1: DOS/MBR boot sector, code offset 0x58+2, OEM-ID "m= kfs.fat", Bytes/sector 4096, Media descriptor 0xf8, sectors/track 32, heads= 8, sectors 131072 (volumes > 32 MB), FAT (32 bit), sectors/FAT 128, ser= ial number 0xbf8798d0, label: "efi =C2=A0 =C2=A0 =C2=A0"
```

LOG:
```
DEBUG: Added 469589 extra blocks to /boot to g= et to 524288 total blocks
DEBUG: ['mkdosfs', '-n', 'efi', '-i', '0xBF8= 798D0', '-F', '32', '-S', '4096', '-r', '2048', '-C', '/tmp/development-ima= ge-industrial-os-qcs615-adp-air.wic/tmp.wic.qd9it81v/boot.img', '524288']DEBUG: exec_native_cmd: export PATH=3D//sbin://usr/sbin://usr/bin://usr= /bin/None://bin:None:$PATH;mkdosfs -n efi -i 0xBF8798D0 -F 32 -S 4096 -r 20= 48 -C /tmp/development-image-industrial-os-qcs615-adp-air.wic/tmp.wic.qd9it= 81v/boot.img 524288
DEBUG: _exec_cmd: export PATH=3D//sbin://usr/sbin:= //usr/bin://usr/bin/None://bin:None:$PATH;mkdosfs -n efi -i 0xBF8798D0 -F 3= 2 -S 4096 -r 2048 -C /tmp/development-image-industrial-os-qcs615-adp-air.wi= c/tmp.wic.qd9it81v/boot.img 524288
DEBUG: ['export', 'PATH=3D//sbin://= usr/sbin://usr/bin://usr/bin/None://bin:None:$PATH;mkdosfs', '-n', 'efi', '= -i', '0xBF8798D0', '-F', '32', '-S', '4096', '-r', '2048', '-C', '/tmp/deve= lopment-image-industrial-os-qcs615-adp-air.wic/tmp.wic.qd9it81v/boot.img', = '524288']
```

On Thursday, December 18, 2025 at 1:52:32=E2=80=AFPM U= TC+5:30 Richa Bharti wrote:
Some EFI firmwares require FAT filesystems to use specific g= eometry or
sector parameters.

Add support for an `extraargs` source parameter to allow passing
additional mkdosfs options when creating the EFI System Partition (ESP)= .
If no extra arguments are provided, mkdosfs defaults to "-S 512&qu= ot;,
preserving existing behaviour.

Signed-off-by: Richa Bharti <Richa....@siemens.com>
---
meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py b/= meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
index 446398d0..6862a288 100644
--- a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
+++ b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
@@ -506,8 +506,10 @@ class BootimgEFIPlugin(SourcePlugin):
=20
label =3D part.label if part.label else "ESP"
=20
- dosfs_cmd =3D "mkdosfs -n %s -i %s -C %s %d" % \
- (label, part.fsuuid, bootimg, blocks)
+ extraargs =3D source_params.get('extraargs', "-S = 512")
+
+ dosfs_cmd =3D "mkdosfs -n %s -i %s %s -C %s %d" % \
+ (label, part.fsuuid, extraargs, bootimg, blocks)
exec_native_cmd(dosfs_cmd, native_sysroot)
=20
mcopy_cmd =3D "mcopy -i %s -s %s/* ::/" % (bootimg, = hdddir)
--=20
2.39.5

--
You received this message because you are subscribed to the Google Groups &= quot;isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-use= rs+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-use= rs/465454d2-d0e6-45a1-a5f9-891af0c84067n%40googlegroups.com.
------=_Part_135241_1038684303.1766046593280-- ------=_Part_135240_1452336706.1766046593280--