mbox series

[v5,0/8] WIC update

Message ID 20201005165307.14668-1-Vijaikumar_Kanagarajan@mentor.com
Headers show
Series WIC update | expand

Message

Vijai Kumar K Oct. 5, 2020, 7:52 a.m. UTC
Changes since v4:
- Rebase against latest next

Changes since v3:

- Rebase against the latest next. Drop P4 & P5 from previous series.
- P7 fixes the kernel update in legacy bios boot image
- Minor documentation changes.

Changes since v2:

- Dropped P9 from previous series and updated oe-core to the latest revision
which includes that patch.
- Some minor commit message & API changelog changes.

Changes since RFC(v1):

- P9 commit is upstreamed and replaced with the version from OE-core.
- P10: Lot of downstream projects tend to use /boot mountpoints for bootloader/EFI
partitions. Added RECIPE-API-CHANGELOG entry to warn user about potential issues
that might arise when doing so with latest wic.

Vijai Kumar K (8):
  wic: Update to the latest wic from openembedded core
  wic/plugins: Fix wic plugins to work with the latest wic
  wic-img: Satisfy the quirks of latest wic
  wic_fakeroot: Handle standalone pseudo invocations
  meta-isar/conf: Add provision to debug WIC
  debian-common: Add tar as a dependency for wic
  Fix legacy bios boot partition
  meta-isar/canned-wks: Remove unwanted /boot mountpoint

 RECIPE-API-CHANGELOG.md                       |  26 +
 meta-isar/conf/local.conf.sample              |   3 +
 .../lib/wic/canned-wks/common-isar.wks.inc    |   2 +-
 .../scripts/lib/wic/canned-wks/hikey.wks      |   2 +-
 .../lib/wic/canned-wks/sdimage-efi.wks        |   2 +-
 meta/classes/wic-img.bbclass                  |  20 +-
 meta/conf/distro/debian-common.conf           |   3 +-
 .../wic/plugins/source/bootimg-efi-isar.py    |   2 +-
 .../wic/plugins/source/bootimg-pcbios-isar.py |  40 +-
 .../lib/wic/plugins/source/rootfs-u-boot.py   |   2 +-
 scripts/lib/scriptpath.py                     |  32 ++
 scripts/lib/wic/__init__.py                   |  14 +-
 scripts/lib/wic/canned-wks/common.wks.inc     |   2 +-
 .../directdisk-bootloader-config.cfg          |   8 +-
 .../lib/wic/canned-wks/efi-bootdisk.wks.in    |   3 +
 scripts/lib/wic/canned-wks/mkhybridiso.wks    |   2 +-
 scripts/lib/wic/canned-wks/qemuriscv.wks      |   3 +
 .../lib/wic/canned-wks/qemux86-directdisk.wks |   2 +-
 .../lib/wic/canned-wks/sdimage-bootpart.wks   |   4 +-
 .../lib/wic/canned-wks/systemd-bootdisk.wks   |   4 +-
 scripts/lib/wic/engine.py                     | 421 +++++++++++++++-
 scripts/lib/wic/filemap.py                    | 170 ++++---
 scripts/lib/wic/help.py                       | 401 ++++++++++++++--
 scripts/lib/wic/ksparser.py                   | 121 +++--
 scripts/lib/wic/{utils => }/misc.py           | 100 ++--
 scripts/lib/wic/partition.py                  | 234 ++++-----
 scripts/lib/wic/pluginbase.py                 |  36 +-
 scripts/lib/wic/plugins/imager/direct.py      | 175 ++++---
 .../wic/plugins/source/bootimg-biosplusefi.py | 213 +++++++++
 scripts/lib/wic/plugins/source/bootimg-efi.py | 171 +++++--
 .../wic/plugins/source/bootimg-partition.py   | 153 ++++--
 .../lib/wic/plugins/source/bootimg-pcbios.py  |  91 ++--
 scripts/lib/wic/plugins/source/fsimage.py     |  56 ---
 .../wic/plugins/source/isoimage-isohybrid.py  | 185 +++----
 scripts/lib/wic/plugins/source/rawcopy.py     |  44 +-
 scripts/lib/wic/plugins/source/rootfs.py      | 159 ++++--
 scripts/lib/wic/utils/__init__.py             |   0
 scripts/lib/wic/utils/runner.py               | 114 -----
 scripts/wic                                   | 452 +++++++++++++-----
 scripts/wic_fakeroot                          |   5 +
 40 files changed, 2434 insertions(+), 1043 deletions(-)
 create mode 100644 scripts/lib/scriptpath.py
 create mode 100644 scripts/lib/wic/canned-wks/efi-bootdisk.wks.in
 create mode 100644 scripts/lib/wic/canned-wks/qemuriscv.wks
 rename scripts/lib/wic/{utils => }/misc.py (70%)
 create mode 100644 scripts/lib/wic/plugins/source/bootimg-biosplusefi.py
 delete mode 100644 scripts/lib/wic/plugins/source/fsimage.py
 delete mode 100644 scripts/lib/wic/utils/__init__.py
 delete mode 100644 scripts/lib/wic/utils/runner.py

Comments

vijai kumar Oct. 5, 2020, 7:59 a.m. UTC | #1
CI build in progress.
http://ci.isar-build.org:8080/job/isar_vkk_devel/85/

Git tree: https://github.com/vj-kumar/isar/tree/wic/staging4

Thanks,
Vijai Kumar K
On Monday, October 5, 2020 at 10:23:33 PM UTC+5:30 
vijaikumar_...@mentor.com wrote:

> Changes since v4:
> - Rebase against latest next
>
> Changes since v3:
>
> - Rebase against the latest next. Drop P4 & P5 from previous series.
> - P7 fixes the kernel update in legacy bios boot image
> - Minor documentation changes.
>
> Changes since v2:
>
> - Dropped P9 from previous series and updated oe-core to the latest 
> revision
> which includes that patch.
> - Some minor commit message & API changelog changes.
>
> Changes since RFC(v1):
>
> - P9 commit is upstreamed and replaced with the version from OE-core.
> - P10: Lot of downstream projects tend to use /boot mountpoints for 
> bootloader/EFI
> partitions. Added RECIPE-API-CHANGELOG entry to warn user about potential 
> issues
> that might arise when doing so with latest wic.
>
> Vijai Kumar K (8):
> wic: Update to the latest wic from openembedded core
> wic/plugins: Fix wic plugins to work with the latest wic
> wic-img: Satisfy the quirks of latest wic
> wic_fakeroot: Handle standalone pseudo invocations
> meta-isar/conf: Add provision to debug WIC
> debian-common: Add tar as a dependency for wic
> Fix legacy bios boot partition
> meta-isar/canned-wks: Remove unwanted /boot mountpoint
>
> RECIPE-API-CHANGELOG.md | 26 +
> meta-isar/conf/local.conf.sample | 3 +
> .../lib/wic/canned-wks/common-isar.wks.inc | 2 +-
> .../scripts/lib/wic/canned-wks/hikey.wks | 2 +-
> .../lib/wic/canned-wks/sdimage-efi.wks | 2 +-
> meta/classes/wic-img.bbclass | 20 +-
> meta/conf/distro/debian-common.conf | 3 +-
> .../wic/plugins/source/bootimg-efi-isar.py | 2 +-
> .../wic/plugins/source/bootimg-pcbios-isar.py | 40 +-
> .../lib/wic/plugins/source/rootfs-u-boot.py | 2 +-
> scripts/lib/scriptpath.py | 32 ++
> scripts/lib/wic/__init__.py | 14 +-
> scripts/lib/wic/canned-wks/common.wks.inc | 2 +-
> .../directdisk-bootloader-config.cfg | 8 +-
> .../lib/wic/canned-wks/efi-bootdisk.wks.in | 3 +
> scripts/lib/wic/canned-wks/mkhybridiso.wks | 2 +-
> scripts/lib/wic/canned-wks/qemuriscv.wks | 3 +
> .../lib/wic/canned-wks/qemux86-directdisk.wks | 2 +-
> .../lib/wic/canned-wks/sdimage-bootpart.wks | 4 +-
> .../lib/wic/canned-wks/systemd-bootdisk.wks | 4 +-
> scripts/lib/wic/engine.py | 421 +++++++++++++++-
> scripts/lib/wic/filemap.py | 170 ++++---
> scripts/lib/wic/help.py | 401 ++++++++++++++--
> scripts/lib/wic/ksparser.py | 121 +++--
> scripts/lib/wic/{utils => }/misc.py | 100 ++--
> scripts/lib/wic/partition.py | 234 ++++-----
> scripts/lib/wic/pluginbase.py | 36 +-
> scripts/lib/wic/plugins/imager/direct.py | 175 ++++---
> .../wic/plugins/source/bootimg-biosplusefi.py | 213 +++++++++
> scripts/lib/wic/plugins/source/bootimg-efi.py | 171 +++++--
> .../wic/plugins/source/bootimg-partition.py | 153 ++++--
> .../lib/wic/plugins/source/bootimg-pcbios.py | 91 ++--
> scripts/lib/wic/plugins/source/fsimage.py | 56 ---
> .../wic/plugins/source/isoimage-isohybrid.py | 185 +++----
> scripts/lib/wic/plugins/source/rawcopy.py | 44 +-
> scripts/lib/wic/plugins/source/rootfs.py | 159 ++++--
> scripts/lib/wic/utils/__init__.py | 0
> scripts/lib/wic/utils/runner.py | 114 -----
> scripts/wic | 452 +++++++++++++-----
> scripts/wic_fakeroot | 5 +
> 40 files changed, 2434 insertions(+), 1043 deletions(-)
> create mode 100644 scripts/lib/scriptpath.py
> create mode 100644 scripts/lib/wic/canned-wks/efi-bootdisk.wks.in
> create mode 100644 scripts/lib/wic/canned-wks/qemuriscv.wks
> rename scripts/lib/wic/{utils => }/misc.py (70%)
> create mode 100644 scripts/lib/wic/plugins/source/bootimg-biosplusefi.py
> delete mode 100644 scripts/lib/wic/plugins/source/fsimage.py
> delete mode 100644 scripts/lib/wic/utils/__init__.py
> delete mode 100644 scripts/lib/wic/utils/runner.py
>
> -- 
> 2.17.1
>
>
vijai kumar Oct. 5, 2020, 7:55 p.m. UTC | #2
On Monday, October 5, 2020 at 10:29:09 PM UTC+5:30 vijaikumar....@gmail.com 
wrote:

> CI build in progress.
> http://ci.isar-build.org:8080/job/isar_vkk_devel/85/
>

CI build succeeded.

Thanks,
Vijai Kumar K
 

>
> Git tree: https://github.com/vj-kumar/isar/tree/wic/staging4
>
> Thanks,
> Vijai Kumar K
> On Monday, October 5, 2020 at 10:23:33 PM UTC+5:30 
> vijaikumar_...@mentor.com wrote:
>
>> Changes since v4: 
>> - Rebase against latest next 
>>
>> Changes since v3: 
>>
>> - Rebase against the latest next. Drop P4 & P5 from previous series. 
>> - P7 fixes the kernel update in legacy bios boot image 
>> - Minor documentation changes. 
>>
>> Changes since v2: 
>>
>> - Dropped P9 from previous series and updated oe-core to the latest 
>> revision 
>> which includes that patch. 
>> - Some minor commit message & API changelog changes. 
>>
>> Changes since RFC(v1): 
>>
>> - P9 commit is upstreamed and replaced with the version from OE-core. 
>> - P10: Lot of downstream projects tend to use /boot mountpoints for 
>> bootloader/EFI 
>> partitions. Added RECIPE-API-CHANGELOG entry to warn user about potential 
>> issues 
>> that might arise when doing so with latest wic. 
>>
>> Vijai Kumar K (8): 
>> wic: Update to the latest wic from openembedded core 
>> wic/plugins: Fix wic plugins to work with the latest wic 
>> wic-img: Satisfy the quirks of latest wic 
>> wic_fakeroot: Handle standalone pseudo invocations 
>> meta-isar/conf: Add provision to debug WIC 
>> debian-common: Add tar as a dependency for wic 
>> Fix legacy bios boot partition 
>> meta-isar/canned-wks: Remove unwanted /boot mountpoint 
>>
>> RECIPE-API-CHANGELOG.md | 26 + 
>> meta-isar/conf/local.conf.sample | 3 + 
>> .../lib/wic/canned-wks/common-isar.wks.inc | 2 +- 
>> .../scripts/lib/wic/canned-wks/hikey.wks | 2 +- 
>> .../lib/wic/canned-wks/sdimage-efi.wks | 2 +- 
>> meta/classes/wic-img.bbclass | 20 +- 
>> meta/conf/distro/debian-common.conf | 3 +- 
>> .../wic/plugins/source/bootimg-efi-isar.py | 2 +- 
>> .../wic/plugins/source/bootimg-pcbios-isar.py | 40 +- 
>> .../lib/wic/plugins/source/rootfs-u-boot.py | 2 +- 
>> scripts/lib/scriptpath.py | 32 ++ 
>> scripts/lib/wic/__init__.py | 14 +- 
>> scripts/lib/wic/canned-wks/common.wks.inc | 2 +- 
>> .../directdisk-bootloader-config.cfg | 8 +- 
>> .../lib/wic/canned-wks/efi-bootdisk.wks.in | 3 + 
>> scripts/lib/wic/canned-wks/mkhybridiso.wks | 2 +- 
>> scripts/lib/wic/canned-wks/qemuriscv.wks | 3 + 
>> .../lib/wic/canned-wks/qemux86-directdisk.wks | 2 +- 
>> .../lib/wic/canned-wks/sdimage-bootpart.wks | 4 +- 
>> .../lib/wic/canned-wks/systemd-bootdisk.wks | 4 +- 
>> scripts/lib/wic/engine.py | 421 +++++++++++++++- 
>> scripts/lib/wic/filemap.py | 170 ++++--- 
>> scripts/lib/wic/help.py | 401 ++++++++++++++-- 
>> scripts/lib/wic/ksparser.py | 121 +++-- 
>> scripts/lib/wic/{utils => }/misc.py | 100 ++-- 
>> scripts/lib/wic/partition.py | 234 ++++----- 
>> scripts/lib/wic/pluginbase.py | 36 +- 
>> scripts/lib/wic/plugins/imager/direct.py | 175 ++++--- 
>> .../wic/plugins/source/bootimg-biosplusefi.py | 213 +++++++++ 
>> scripts/lib/wic/plugins/source/bootimg-efi.py | 171 +++++-- 
>> .../wic/plugins/source/bootimg-partition.py | 153 ++++-- 
>> .../lib/wic/plugins/source/bootimg-pcbios.py | 91 ++-- 
>> scripts/lib/wic/plugins/source/fsimage.py | 56 --- 
>> .../wic/plugins/source/isoimage-isohybrid.py | 185 +++---- 
>> scripts/lib/wic/plugins/source/rawcopy.py | 44 +- 
>> scripts/lib/wic/plugins/source/rootfs.py | 159 ++++-- 
>> scripts/lib/wic/utils/__init__.py | 0 
>> scripts/lib/wic/utils/runner.py | 114 ----- 
>> scripts/wic | 452 +++++++++++++----- 
>> scripts/wic_fakeroot | 5 + 
>> 40 files changed, 2434 insertions(+), 1043 deletions(-) 
>> create mode 100644 scripts/lib/scriptpath.py 
>> create mode 100644 scripts/lib/wic/canned-wks/efi-bootdisk.wks.in 
>> create mode 100644 scripts/lib/wic/canned-wks/qemuriscv.wks 
>> rename scripts/lib/wic/{utils => }/misc.py (70%) 
>> create mode 100644 scripts/lib/wic/plugins/source/bootimg-biosplusefi.py 
>> delete mode 100644 scripts/lib/wic/plugins/source/fsimage.py 
>> delete mode 100644 scripts/lib/wic/utils/__init__.py 
>> delete mode 100644 scripts/lib/wic/utils/runner.py 
>>
>> -- 
>> 2.17.1 
>>
>>
Baurzhan Ismagulov Oct. 6, 2020, 12:13 a.m. UTC | #3
On Mon, Oct 05, 2020 at 09:55:40PM -0700, vijaikumar....@gmail.com wrote:
> > http://ci.isar-build.org:8080/job/isar_vkk_devel/85/
> 
> CI build succeeded.

Thanks Vijai Kumar. I don't have objections to this one. I assume Henning's
comments have been addressed in 07/08. We'll test on hikey and let you know.

With kind regards,
Baurzhan.


> > Git tree: https://github.com/vj-kumar/isar/tree/wic/staging4
> >
> > Thanks,
> > Vijai Kumar K
> > On Monday, October 5, 2020 at 10:23:33 PM UTC+5:30 
> > vijaikumar_...@mentor.com wrote:
> >
> >> Changes since v4: 
> >> - Rebase against latest next 
> >>
> >> Changes since v3: 
> >>
> >> - Rebase against the latest next. Drop P4 & P5 from previous series. 
> >> - P7 fixes the kernel update in legacy bios boot image 
> >> - Minor documentation changes. 
> >>
> >> Changes since v2: 
> >>
> >> - Dropped P9 from previous series and updated oe-core to the latest 
> >> revision 
> >> which includes that patch. 
> >> - Some minor commit message & API changelog changes. 
> >>
> >> Changes since RFC(v1): 
> >>
> >> - P9 commit is upstreamed and replaced with the version from OE-core. 
> >> - P10: Lot of downstream projects tend to use /boot mountpoints for 
> >> bootloader/EFI 
> >> partitions. Added RECIPE-API-CHANGELOG entry to warn user about potential 
> >> issues 
> >> that might arise when doing so with latest wic. 
> >>
> >> Vijai Kumar K (8): 
> >> wic: Update to the latest wic from openembedded core 
> >> wic/plugins: Fix wic plugins to work with the latest wic 
> >> wic-img: Satisfy the quirks of latest wic 
> >> wic_fakeroot: Handle standalone pseudo invocations 
> >> meta-isar/conf: Add provision to debug WIC 
> >> debian-common: Add tar as a dependency for wic 
> >> Fix legacy bios boot partition 
> >> meta-isar/canned-wks: Remove unwanted /boot mountpoint 
> >>
> >> RECIPE-API-CHANGELOG.md | 26 + 
> >> meta-isar/conf/local.conf.sample | 3 + 
> >> .../lib/wic/canned-wks/common-isar.wks.inc | 2 +- 
> >> .../scripts/lib/wic/canned-wks/hikey.wks | 2 +- 
> >> .../lib/wic/canned-wks/sdimage-efi.wks | 2 +- 
> >> meta/classes/wic-img.bbclass | 20 +- 
> >> meta/conf/distro/debian-common.conf | 3 +- 
> >> .../wic/plugins/source/bootimg-efi-isar.py | 2 +- 
> >> .../wic/plugins/source/bootimg-pcbios-isar.py | 40 +- 
> >> .../lib/wic/plugins/source/rootfs-u-boot.py | 2 +- 
> >> scripts/lib/scriptpath.py | 32 ++ 
> >> scripts/lib/wic/__init__.py | 14 +- 
> >> scripts/lib/wic/canned-wks/common.wks.inc | 2 +- 
> >> .../directdisk-bootloader-config.cfg | 8 +- 
> >> .../lib/wic/canned-wks/efi-bootdisk.wks.in | 3 + 
> >> scripts/lib/wic/canned-wks/mkhybridiso.wks | 2 +- 
> >> scripts/lib/wic/canned-wks/qemuriscv.wks | 3 + 
> >> .../lib/wic/canned-wks/qemux86-directdisk.wks | 2 +- 
> >> .../lib/wic/canned-wks/sdimage-bootpart.wks | 4 +- 
> >> .../lib/wic/canned-wks/systemd-bootdisk.wks | 4 +- 
> >> scripts/lib/wic/engine.py | 421 +++++++++++++++- 
> >> scripts/lib/wic/filemap.py | 170 ++++--- 
> >> scripts/lib/wic/help.py | 401 ++++++++++++++-- 
> >> scripts/lib/wic/ksparser.py | 121 +++-- 
> >> scripts/lib/wic/{utils => }/misc.py | 100 ++-- 
> >> scripts/lib/wic/partition.py | 234 ++++----- 
> >> scripts/lib/wic/pluginbase.py | 36 +- 
> >> scripts/lib/wic/plugins/imager/direct.py | 175 ++++--- 
> >> .../wic/plugins/source/bootimg-biosplusefi.py | 213 +++++++++ 
> >> scripts/lib/wic/plugins/source/bootimg-efi.py | 171 +++++-- 
> >> .../wic/plugins/source/bootimg-partition.py | 153 ++++-- 
> >> .../lib/wic/plugins/source/bootimg-pcbios.py | 91 ++-- 
> >> scripts/lib/wic/plugins/source/fsimage.py | 56 --- 
> >> .../wic/plugins/source/isoimage-isohybrid.py | 185 +++---- 
> >> scripts/lib/wic/plugins/source/rawcopy.py | 44 +- 
> >> scripts/lib/wic/plugins/source/rootfs.py | 159 ++++-- 
> >> scripts/lib/wic/utils/__init__.py | 0 
> >> scripts/lib/wic/utils/runner.py | 114 ----- 
> >> scripts/wic | 452 +++++++++++++----- 
> >> scripts/wic_fakeroot | 5 + 
> >> 40 files changed, 2434 insertions(+), 1043 deletions(-) 
> >> create mode 100644 scripts/lib/scriptpath.py 
> >> create mode 100644 scripts/lib/wic/canned-wks/efi-bootdisk.wks.in 
> >> create mode 100644 scripts/lib/wic/canned-wks/qemuriscv.wks 
> >> rename scripts/lib/wic/{utils => }/misc.py (70%) 
> >> create mode 100644 scripts/lib/wic/plugins/source/bootimg-biosplusefi.py 
> >> delete mode 100644 scripts/lib/wic/plugins/source/fsimage.py 
> >> delete mode 100644 scripts/lib/wic/utils/__init__.py 
> >> delete mode 100644 scripts/lib/wic/utils/runner.py
vijai kumar Oct. 7, 2020, 1:49 a.m. UTC | #4
On Tuesday, October 6, 2020 at 2:43:04 PM UTC+5:30 i...@radix50.net wrote:

> On Mon, Oct 05, 2020 at 09:55:40PM -0700, vijaikumar....@gmail.com wrote: 
> > > http://ci.isar-build.org:8080/job/isar_vkk_devel/85/ 
> > 
> > CI build succeeded. 
>
> Thanks Vijai Kumar. I don't have objections to this one. I assume 
> Henning's 
> comments have been addressed in 07/08. We'll test on hikey and let you 
> know. 
>

Yes. It is addressed. Sure let me know how it goes on Hikey.

Thanks,
Vijai Kumar K
 

>
> With kind regards, 
> Baurzhan. 
>
>
> > > Git tree: https://github.com/vj-kumar/isar/tree/wic/staging4 
> > > 
> > > Thanks, 
> > > Vijai Kumar K 
> > > On Monday, October 5, 2020 at 10:23:33 PM UTC+5:30 
> > > vijaikumar_...@mentor.com wrote: 
> > > 
> > >> Changes since v4: 
> > >> - Rebase against latest next 
> > >> 
> > >> Changes since v3: 
> > >> 
> > >> - Rebase against the latest next. Drop P4 & P5 from previous series. 
> > >> - P7 fixes the kernel update in legacy bios boot image 
> > >> - Minor documentation changes. 
> > >> 
> > >> Changes since v2: 
> > >> 
> > >> - Dropped P9 from previous series and updated oe-core to the latest 
> > >> revision 
> > >> which includes that patch. 
> > >> - Some minor commit message & API changelog changes. 
> > >> 
> > >> Changes since RFC(v1): 
> > >> 
> > >> - P9 commit is upstreamed and replaced with the version from OE-core. 
> > >> - P10: Lot of downstream projects tend to use /boot mountpoints for 
> > >> bootloader/EFI 
> > >> partitions. Added RECIPE-API-CHANGELOG entry to warn user about 
> potential 
> > >> issues 
> > >> that might arise when doing so with latest wic. 
> > >> 
> > >> Vijai Kumar K (8): 
> > >> wic: Update to the latest wic from openembedded core 
> > >> wic/plugins: Fix wic plugins to work with the latest wic 
> > >> wic-img: Satisfy the quirks of latest wic 
> > >> wic_fakeroot: Handle standalone pseudo invocations 
> > >> meta-isar/conf: Add provision to debug WIC 
> > >> debian-common: Add tar as a dependency for wic 
> > >> Fix legacy bios boot partition 
> > >> meta-isar/canned-wks: Remove unwanted /boot mountpoint 
> > >> 
> > >> RECIPE-API-CHANGELOG.md | 26 + 
> > >> meta-isar/conf/local.conf.sample | 3 + 
> > >> .../lib/wic/canned-wks/common-isar.wks.inc | 2 +- 
> > >> .../scripts/lib/wic/canned-wks/hikey.wks | 2 +- 
> > >> .../lib/wic/canned-wks/sdimage-efi.wks | 2 +- 
> > >> meta/classes/wic-img.bbclass | 20 +- 
> > >> meta/conf/distro/debian-common.conf | 3 +- 
> > >> .../wic/plugins/source/bootimg-efi-isar.py | 2 +- 
> > >> .../wic/plugins/source/bootimg-pcbios-isar.py | 40 +- 
> > >> .../lib/wic/plugins/source/rootfs-u-boot.py | 2 +- 
> > >> scripts/lib/scriptpath.py | 32 ++ 
> > >> scripts/lib/wic/__init__.py | 14 +- 
> > >> scripts/lib/wic/canned-wks/common.wks.inc | 2 +- 
> > >> .../directdisk-bootloader-config.cfg | 8 +- 
> > >> .../lib/wic/canned-wks/efi-bootdisk.wks.in | 3 + 
> > >> scripts/lib/wic/canned-wks/mkhybridiso.wks | 2 +- 
> > >> scripts/lib/wic/canned-wks/qemuriscv.wks | 3 + 
> > >> .../lib/wic/canned-wks/qemux86-directdisk.wks | 2 +- 
> > >> .../lib/wic/canned-wks/sdimage-bootpart.wks | 4 +- 
> > >> .../lib/wic/canned-wks/systemd-bootdisk.wks | 4 +- 
> > >> scripts/lib/wic/engine.py | 421 +++++++++++++++- 
> > >> scripts/lib/wic/filemap.py | 170 ++++--- 
> > >> scripts/lib/wic/help.py | 401 ++++++++++++++-- 
> > >> scripts/lib/wic/ksparser.py | 121 +++-- 
> > >> scripts/lib/wic/{utils => }/misc.py | 100 ++-- 
> > >> scripts/lib/wic/partition.py | 234 ++++----- 
> > >> scripts/lib/wic/pluginbase.py | 36 +- 
> > >> scripts/lib/wic/plugins/imager/direct.py | 175 ++++--- 
> > >> .../wic/plugins/source/bootimg-biosplusefi.py | 213 +++++++++ 
> > >> scripts/lib/wic/plugins/source/bootimg-efi.py | 171 +++++-- 
> > >> .../wic/plugins/source/bootimg-partition.py | 153 ++++-- 
> > >> .../lib/wic/plugins/source/bootimg-pcbios.py | 91 ++-- 
> > >> scripts/lib/wic/plugins/source/fsimage.py | 56 --- 
> > >> .../wic/plugins/source/isoimage-isohybrid.py | 185 +++---- 
> > >> scripts/lib/wic/plugins/source/rawcopy.py | 44 +- 
> > >> scripts/lib/wic/plugins/source/rootfs.py | 159 ++++-- 
> > >> scripts/lib/wic/utils/__init__.py | 0 
> > >> scripts/lib/wic/utils/runner.py | 114 ----- 
> > >> scripts/wic | 452 +++++++++++++----- 
> > >> scripts/wic_fakeroot | 5 + 
> > >> 40 files changed, 2434 insertions(+), 1043 deletions(-) 
> > >> create mode 100644 scripts/lib/scriptpath.py 
> > >> create mode 100644 scripts/lib/wic/canned-wks/efi-bootdisk.wks.in 
> > >> create mode 100644 scripts/lib/wic/canned-wks/qemuriscv.wks 
> > >> rename scripts/lib/wic/{utils => }/misc.py (70%) 
> > >> create mode 100644 
> scripts/lib/wic/plugins/source/bootimg-biosplusefi.py 
> > >> delete mode 100644 scripts/lib/wic/plugins/source/fsimage.py 
> > >> delete mode 100644 scripts/lib/wic/utils/__init__.py 
> > >> delete mode 100644 scripts/lib/wic/utils/runner.py 
>
Jan Kiszka Oct. 13, 2020, 9:22 a.m. UTC | #5
On 07.10.20 12:49, vijaikumar....@gmail.com wrote:
> 
> 
> On Tuesday, October 6, 2020 at 2:43:04 PM UTC+5:30 i...@radix50.net wrote:
> 
>     On Mon, Oct 05, 2020 at 09:55:40PM -0700, vijaikumar....@gmail.com
>     wrote:
>     > > http://ci.isar-build.org:8080/job/isar_vkk_devel/85/
>     >
>     > CI build succeeded.
> 
>     Thanks Vijai Kumar. I don't have objections to this one. I assume
>     Henning's
>     comments have been addressed in 07/08. We'll test on hikey and let
>     you know.
> 
> 
> Yes. It is addressed. Sure let me know how it goes on Hikey.
> 

My integration experiment revealed some issue, but I do not understand 
yet, where: If you build [1], which is the combination of your series 
with [2], I get

| DEBUG: Executing shell function do_wic_image
| INFO: Creating image(s)...
| 
| ERROR: _exec_cmd: tune2fs -L fsbl1 /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 returned '1' instead of 0
| output: /usr/sbin/tune2fs: Bad magic number in super-block while trying to open /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1
| tune2fs 1.44.5 (15-Dec-2018)
| 
| stat: missing operand
| Try 'stat --help' for more information.
| chown: invalid user: '/meta'
| ls: cannot access '/work/build/tmp/deploy/buildchroot-target/debian-buster-armhf/tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/*.direct': No such file or directory
| mv: missing destination file operand after '/work/build/tmp/deploy/images/stm32mp15x/isar-image-base-debian-buster-stm32mp15x.wic.img'
| Try 'mv --help' for more information.
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/work/build/tmp/work/debian-buster-armhf/isar-image-base-stm32mp15x-wic-img/1.0-r0/temp/run.do_wic_image.17923' failed with exit code 1:
| INFO: Creating image(s)...
| 
| ERROR: _exec_cmd: tune2fs -L fsbl1 /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 returned '1' instead of 0
| output: /usr/sbin/tune2fs: Bad magic number in super-block while trying to open /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1
| tune2fs 1.44.5 (15-Dec-2018)
| 
| stat: missing operand
| Try 'stat --help' for more information.
| chown: invalid user: '/meta'
| ls: cannot access '/work/build/tmp/deploy/buildchroot-target/debian-buster-armhf/tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/*.direct': No such file or directory
| mv: missing destination file operand after '/work/build/tmp/deploy/images/stm32mp15x/isar-image-base-debian-buster-stm32mp15x.wic.img'
| Try 'mv --help' for more information.
| WARNING: exit code 1 from a shell command.
| 
ERROR: Task (mc:stm32mp15x-buster:/repo/meta-isar/recipes-core/images/isar-image-base.bb:do_wic_image) failed with exit code '1'

Any ideas where to dig?

Jan

[1] https://github.com/siemens/isar/commits/jan/wic-testing
[2] https://groups.google.com/forum/#!topic/isar-users/ijj6mdBfb2w
Jan Kiszka Oct. 13, 2020, 9:30 a.m. UTC | #6
On 13.10.20 20:22, Jan Kiszka wrote:
> On 07.10.20 12:49, vijaikumar....@gmail.com wrote:
>>
>>
>> On Tuesday, October 6, 2020 at 2:43:04 PM UTC+5:30 i...@radix50.net wrote:
>>
>>     On Mon, Oct 05, 2020 at 09:55:40PM -0700, vijaikumar....@gmail.com
>>     wrote:
>>     > > http://ci.isar-build.org:8080/job/isar_vkk_devel/85/
>>     >
>>     > CI build succeeded.
>>
>>     Thanks Vijai Kumar. I don't have objections to this one. I assume
>>     Henning's
>>     comments have been addressed in 07/08. We'll test on hikey and let
>>     you know.
>>
>>
>> Yes. It is addressed. Sure let me know how it goes on Hikey.
>>
> 
> My integration experiment revealed some issue, but I do not understand 
> yet, where: If you build [1], which is the combination of your series 
> with [2], I get
> 
> | DEBUG: Executing shell function do_wic_image
> | INFO: Creating image(s)...
> | 
> | ERROR: _exec_cmd: tune2fs -L fsbl1 /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 returned '1' instead of 0
> | output: /usr/sbin/tune2fs: Bad magic number in super-block while trying to open /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1
> | tune2fs 1.44.5 (15-Dec-2018)
> | 
> | stat: missing operand
> | Try 'stat --help' for more information.
> | chown: invalid user: '/meta'
> | ls: cannot access '/work/build/tmp/deploy/buildchroot-target/debian-buster-armhf/tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/*.direct': No such file or directory
> | mv: missing destination file operand after '/work/build/tmp/deploy/images/stm32mp15x/isar-image-base-debian-buster-stm32mp15x.wic.img'
> | Try 'mv --help' for more information.
> | WARNING: exit code 1 from a shell command.
> | ERROR: Execution of '/work/build/tmp/work/debian-buster-armhf/isar-image-base-stm32mp15x-wic-img/1.0-r0/temp/run.do_wic_image.17923' failed with exit code 1:
> | INFO: Creating image(s)...
> | 
> | ERROR: _exec_cmd: tune2fs -L fsbl1 /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 returned '1' instead of 0
> | output: /usr/sbin/tune2fs: Bad magic number in super-block while trying to open /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1
> | tune2fs 1.44.5 (15-Dec-2018)
> | 
> | stat: missing operand
> | Try 'stat --help' for more information.
> | chown: invalid user: '/meta'
> | ls: cannot access '/work/build/tmp/deploy/buildchroot-target/debian-buster-armhf/tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/*.direct': No such file or directory
> | mv: missing destination file operand after '/work/build/tmp/deploy/images/stm32mp15x/isar-image-base-debian-buster-stm32mp15x.wic.img'
> | Try 'mv --help' for more information.
> | WARNING: exit code 1 from a shell command.
> | 
> ERROR: Task (mc:stm32mp15x-buster:/repo/meta-isar/recipes-core/images/isar-image-base.bb:do_wic_image) failed with exit code '1'
> 
> Any ideas where to dig?

It must be related to the raw partitions we are defining for the
bootloader artifacts. But I just copied from

https://github.com/STMicroelectronics/meta-st-stm32mp/blob/dunfell/wic/sdcard-stm32mp157c-dk2-optee-1GB.wks.in

It looked indeed strange to me that those raw partitions where declared
with "--fstype=ext4", but removing that does not solve the issue.

Is your wic revision in line with or even ahead of dunfell?

Jan

> 
> Jan
> 
> [1] https://github.com/siemens/isar/commits/jan/wic-testing
> [2] https://groups.google.com/forum/#!topic/isar-users/ijj6mdBfb2w
>
vijai kumar Oct. 13, 2020, 8:54 p.m. UTC | #7
On Tuesday, October 13, 2020 at 11:52:21 PM UTC+5:30 Jan Kiszka wrote:

> On 07.10.20 12:49, vijaikumar....@gmail.com wrote: 
> > 
> > 
> > On Tuesday, October 6, 2020 at 2:43:04 PM UTC+5:30 i...@radix50.net 
> wrote: 
> > 
> > On Mon, Oct 05, 2020 at 09:55:40PM -0700, vijaikumar....@gmail.com 
> > wrote: 
> > > > http://ci.isar-build.org:8080/job/isar_vkk_devel/85/ 
> > > 
> > > CI build succeeded. 
> > 
> > Thanks Vijai Kumar. I don't have objections to this one. I assume 
> > Henning's 
> > comments have been addressed in 07/08. We'll test on hikey and let 
> > you know. 
> > 
> > 
> > Yes. It is addressed. Sure let me know how it goes on Hikey. 
> > 
>
> My integration experiment revealed some issue, but I do not understand 
> yet, where: If you build [1], which is the combination of your series 
> with [2], I get 
>
> | DEBUG: Executing shell function do_wic_image 
> | INFO: Creating image(s)... 
> | 
> | ERROR: _exec_cmd: tune2fs -L fsbl1 
> /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 
> returned '1' instead of 0 
> | output: /usr/sbin/tune2fs: Bad magic number in super-block while trying 
> to open 
> /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 
>
> | tune2fs 1.44.5 (15-Dec-2018) 
> | 
> | stat: missing operand 
> | Try 'stat --help' for more information. 
> | chown: invalid user: '/meta' 
> | ls: cannot access 
> '/work/build/tmp/deploy/buildchroot-target/debian-buster-armhf/tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/*.direct': 
> No such file or directory 
> | mv: missing destination file operand after 
> '/work/build/tmp/deploy/images/stm32mp15x/isar-image-base-debian-buster-stm32mp15x.wic.img' 
>
> | Try 'mv --help' for more information. 
> | WARNING: exit code 1 from a shell command. 
> | ERROR: Execution of 
> '/work/build/tmp/work/debian-buster-armhf/isar-image-base-stm32mp15x-wic-img/1.0-r0/temp/run.do_wic_image.17923' 
> failed with exit code 1: 
> | INFO: Creating image(s)... 
> | 
> | ERROR: _exec_cmd: tune2fs -L fsbl1 
> /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 
> returned '1' instead of 0 
> | output: /usr/sbin/tune2fs: Bad magic number in super-block while trying 
> to open 
> /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 
>
> | tune2fs 1.44.5 (15-Dec-2018) 
> | 
> | stat: missing operand 
> | Try 'stat --help' for more information. 
> | chown: invalid user: '/meta' 
> | ls: cannot access 
> '/work/build/tmp/deploy/buildchroot-target/debian-buster-armhf/tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/*.direct': 
> No such file or directory 
> | mv: missing destination file operand after 
> '/work/build/tmp/deploy/images/stm32mp15x/isar-image-base-debian-buster-stm32mp15x.wic.img' 
>
> | Try 'mv --help' for more information. 
> | WARNING: exit code 1 from a shell command. 
> | 
> ERROR: Task 
> (mc:stm32mp15x-buster:/repo/meta-isar/recipes-core/images/isar-image-base.bb:do_wic_image) 
> failed with exit code '1' 
>
> Any ideas where to dig? 
>

I am fetching [1] and trying to reproduce. Will keep you posted on the 
progress.

[1] https://github.com/siemens/isar/commits/jan/wic-testing  
 
Thanks,
Vijai Kumar K
 

>
> Jan 
>
> [1] https://github.com/siemens/isar/commits/jan/wic-testing 
> [2] https://groups.google.com/forum/#!topic/isar-users/ijj6mdBfb2w 
>
> -- 
> Siemens AG, T RDA IOT 
> Corporate Competence Center Embedded Linux 
>
vijai kumar Oct. 13, 2020, 8:56 p.m. UTC | #8
On Wednesday, October 14, 2020 at 12:00:30 AM UTC+5:30 Jan Kiszka wrote:

> On 13.10.20 20:22, Jan Kiszka wrote: 
> > On 07.10.20 12:49, vijaikumar....@gmail.com wrote: 
> >> 
> >> 
> >> On Tuesday, October 6, 2020 at 2:43:04 PM UTC+5:30 i...@radix50.net 
> wrote: 
> >> 
> >> On Mon, Oct 05, 2020 at 09:55:40PM -0700, vijaikumar....@gmail.com 
> >> wrote: 
> >> > > http://ci.isar-build.org:8080/job/isar_vkk_devel/85/ 
> >> > 
> >> > CI build succeeded. 
> >> 
> >> Thanks Vijai Kumar. I don't have objections to this one. I assume 
> >> Henning's 
> >> comments have been addressed in 07/08. We'll test on hikey and let 
> >> you know. 
> >> 
> >> 
> >> Yes. It is addressed. Sure let me know how it goes on Hikey. 
> >> 
> > 
> > My integration experiment revealed some issue, but I do not understand 
> > yet, where: If you build [1], which is the combination of your series 
> > with [2], I get 
> > 
> > | DEBUG: Executing shell function do_wic_image 
> > | INFO: Creating image(s)... 
> > | 
> > | ERROR: _exec_cmd: tune2fs -L fsbl1 
> /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 
> returned '1' instead of 0 
> > | output: /usr/sbin/tune2fs: Bad magic number in super-block while 
> trying to open 
> /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 
>
> > | tune2fs 1.44.5 (15-Dec-2018) 
> > | 
> > | stat: missing operand 
> > | Try 'stat --help' for more information. 
> > | chown: invalid user: '/meta' 
> > | ls: cannot access 
> '/work/build/tmp/deploy/buildchroot-target/debian-buster-armhf/tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/*.direct': 
> No such file or directory 
> > | mv: missing destination file operand after 
> '/work/build/tmp/deploy/images/stm32mp15x/isar-image-base-debian-buster-stm32mp15x.wic.img' 
>
> > | Try 'mv --help' for more information. 
> > | WARNING: exit code 1 from a shell command. 
> > | ERROR: Execution of 
> '/work/build/tmp/work/debian-buster-armhf/isar-image-base-stm32mp15x-wic-img/1.0-r0/temp/run.do_wic_image.17923' 
> failed with exit code 1: 
> > | INFO: Creating image(s)... 
> > | 
> > | ERROR: _exec_cmd: tune2fs -L fsbl1 
> /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 
> returned '1' instead of 0 
> > | output: /usr/sbin/tune2fs: Bad magic number in super-block while 
> trying to open 
> /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 
>
> > | tune2fs 1.44.5 (15-Dec-2018) 
> > | 
> > | stat: missing operand 
> > | Try 'stat --help' for more information. 
> > | chown: invalid user: '/meta' 
> > | ls: cannot access 
> '/work/build/tmp/deploy/buildchroot-target/debian-buster-armhf/tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/*.direct': 
> No such file or directory 
> > | mv: missing destination file operand after 
> '/work/build/tmp/deploy/images/stm32mp15x/isar-image-base-debian-buster-stm32mp15x.wic.img' 
>
> > | Try 'mv --help' for more information. 
> > | WARNING: exit code 1 from a shell command. 
> > | 
> > ERROR: Task 
> (mc:stm32mp15x-buster:/repo/meta-isar/recipes-core/images/isar-image-base.bb:do_wic_image) 
> failed with exit code '1' 
> > 
> > Any ideas where to dig? 
>
> It must be related to the raw partitions we are defining for the 
> bootloader artifacts. But I just copied from 
>
>
> https://github.com/STMicroelectronics/meta-st-stm32mp/blob/dunfell/wic/sdcard-stm32mp157c-dk2-optee-1GB.wks.in 
>
> It looked indeed strange to me that those raw partitions where declared 
> with "--fstype=ext4", but removing that does not solve the issue. 
>
> Is your wic revision in line with or even ahead of dunfell? 
>

The wic version is  141a3c9ce93bc3d526303021ecf0460c6e9fea8a. Latest master 
at that time. Ahead of dunfell.

 https://github.com/openembedded/openembedded-core/commit/141a3c9ce93bc3d526303021ecf0460c6e9fea8a

Thanks,
Vijai Kumar K


> Jan 
>
> > 
> > Jan 
> > 
> > [1] https://github.com/siemens/isar/commits/jan/wic-testing 
> > [2] https://groups.google.com/forum/#!topic/isar-users/ijj6mdBfb2w 
> > 
>
> -- 
> Siemens AG, T RDA IOT 
> Corporate Competence Center Embedded Linux 
>
vijai kumar Oct. 14, 2020, 4:23 a.m. UTC | #9
On Wednesday, October 14, 2020 at 12:00:30 AM UTC+5:30 Jan Kiszka wrote:

> On 13.10.20 20:22, Jan Kiszka wrote: 
> > On 07.10.20 12:49, vijaikumar....@gmail.com wrote: 
> >> 
> >> 
> >> On Tuesday, October 6, 2020 at 2:43:04 PM UTC+5:30 i...@radix50.net 
> wrote: 
> >> 
> >> On Mon, Oct 05, 2020 at 09:55:40PM -0700, vijaikumar....@gmail.com 
> >> wrote: 
> >> > > http://ci.isar-build.org:8080/job/isar_vkk_devel/85/ 
> >> > 
> >> > CI build succeeded. 
> >> 
> >> Thanks Vijai Kumar. I don't have objections to this one. I assume 
> >> Henning's 
> >> comments have been addressed in 07/08. We'll test on hikey and let 
> >> you know. 
> >> 
> >> 
> >> Yes. It is addressed. Sure let me know how it goes on Hikey. 
> >> 
> > 
> > My integration experiment revealed some issue, but I do not understand 
> > yet, where: If you build [1], which is the combination of your series 
> > with [2], I get 
> > 
> > | DEBUG: Executing shell function do_wic_image 
> > | INFO: Creating image(s)... 
> > | 
> > | ERROR: _exec_cmd: tune2fs -L fsbl1 
> /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 
> returned '1' instead of 0 
> > | output: /usr/sbin/tune2fs: Bad magic number in super-block while 
> trying to open 
> /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 
>
> > | tune2fs 1.44.5 (15-Dec-2018) 
> > | 
> > | stat: missing operand 
> > | Try 'stat --help' for more information. 
> > | chown: invalid user: '/meta' 
> > | ls: cannot access 
> '/work/build/tmp/deploy/buildchroot-target/debian-buster-armhf/tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/*.direct': 
> No such file or directory 
> > | mv: missing destination file operand after 
> '/work/build/tmp/deploy/images/stm32mp15x/isar-image-base-debian-buster-stm32mp15x.wic.img' 
>
> > | Try 'mv --help' for more information. 
> > | WARNING: exit code 1 from a shell command. 
> > | ERROR: Execution of 
> '/work/build/tmp/work/debian-buster-armhf/isar-image-base-stm32mp15x-wic-img/1.0-r0/temp/run.do_wic_image.17923' 
> failed with exit code 1: 
> > | INFO: Creating image(s)... 
> > | 
> > | ERROR: _exec_cmd: tune2fs -L fsbl1 
> /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 
> returned '1' instead of 0 
> > | output: /usr/sbin/tune2fs: Bad magic number in super-block while 
> trying to open 
> /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 
>
> > | tune2fs 1.44.5 (15-Dec-2018) 
> > | 
> > | stat: missing operand 
> > | Try 'stat --help' for more information. 
> > | chown: invalid user: '/meta' 
> > | ls: cannot access 
> '/work/build/tmp/deploy/buildchroot-target/debian-buster-armhf/tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/*.direct': 
> No such file or directory 
> > | mv: missing destination file operand after 
> '/work/build/tmp/deploy/images/stm32mp15x/isar-image-base-debian-buster-stm32mp15x.wic.img' 
>
> > | Try 'mv --help' for more information. 
> > | WARNING: exit code 1 from a shell command. 
> > | 
> > ERROR: Task 
> (mc:stm32mp15x-buster:/repo/meta-isar/recipes-core/images/isar-image-base.bb:do_wic_image) 
> failed with exit code '1' 
> > 
> > Any ideas where to dig? 
>
> It must be related to the raw partitions we are defining for the 
> bootloader artifacts. But I just copied from 
>
>
> https://github.com/STMicroelectronics/meta-st-stm32mp/blob/dunfell/wic/sdcard-stm32mp157c-dk2-optee-1GB.wks.in 
>
> It looked indeed strange to me that those raw partitions where declared 
> with "--fstype=ext4", but removing that does not solve the issue. 
>

Hi Jan,

I had a quick run through, looks assigning a label to the image is the 
issue. if you drop the --label and --fstype build is fine.

On further investigation the file  
 /tmp/tmp.z4IScQtkyS/isar-image-base-debian-buster-stm32mp15x.wic/tmp.wic.9q0k2f75/tf-a-stm32mp157c-ev1.stm32.1 
is really
just the data file and hence tune2fs rightly complains and returns a 
non-zero exit code.

I am currently building using meta-st-stm32mp, to see if this actually 
works there. If so how.

Thanks,
Vijai Kumar K


> Is your wic revision in line with or even ahead of dunfell? 
>
> Jan 
>
> > 
> > Jan 
> > 
> > [1] https://github.com/siemens/isar/commits/jan/wic-testing 
> > [2] https://groups.google.com/forum/#!topic/isar-users/ijj6mdBfb2w 
> > 
>
> -- 
> Siemens AG, T RDA IOT 
> Corporate Competence Center Embedded Linux 
>