Skip to content

Conversation

@albayenes
Copy link

Description

This PR resolves a build failure during the do_image_wic task. The error is caused by a signature mismatch in the bootimg-partition source plugin.

The Issue

When using recent versions of the Yocto Project (Poky), the Wic engine's partition.py calls the plugin's do_prepare_partition method with an additional sector_size keyword argument. Because the meta-xilinx-core local copy of this plugin does not include this parameter in its method definition, the build fails with:

TypeError: BootimgPartitionPlugin.do_prepare_partition() got an unexpected keyword argument 'sector_size'

The Fix

Updated the do_prepare_partition method signature in scripts/lib/wic/plugins/source/bootimg-partition.py to accept the sector_size argument. This ensures compatibility with the upstream Wic engine API.

Testing Performed

Environment: Yocto Project (Poky) with meta-xilinx.

Build Target: petalinux-image-minimal (or your specific machine, e.g., xczu2eg).

Result: do_image_wic completes successfully, and the resulting .wic image is generated without errors.

Wic core now passes sector_size as a keyword argument. This update
ensures the meta-xilinx-core local plugin matches the expected
API signature and prevents a TypeError during image generation.
@albayenes albayenes changed the base branch from master to rel-v2025.2 December 27, 2025 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant