Skip to content

Fix the error due to empty wic out file#3

Open
Hyunok-Kim wants to merge 1 commit intoXilinx:xlnx_rel_v2024.2from
Hyunok-Kim:patch-1
Open

Fix the error due to empty wic out file#3
Hyunok-Kim wants to merge 1 commit intoXilinx:xlnx_rel_v2024.2from
Hyunok-Kim:patch-1

Conversation

@Hyunok-Kim
Copy link

@Hyunok-Kim Hyunok-Kim commented Nov 16, 2024

$ petalinux-package wic ...
[ERROR] list index out of range
After successful wic create, it generates
petalinux-image-minimal-202411160236-mmcblk0.direct.p1
petalinux-image-minimal-202411160236-mmcblk0.direct.p2
petalinux-image-minimal-202411160236-mmcblk0.direct.xz
under wic-tmp
But os.path.join(WicTmpBuildDir, 'rootfs-.direct') is used for searcing wic images. It results in the empty list of WicOutFile. WicOutFile[0] causes the above error.
To fix it, 'rootfs-' is removed from the search pattern.

$ petalinux-package wic ...
[ERROR] list index out of range
After successful wic create, it generates 
petalinux-image-minimal-202411160236-mmcblk0.direct.p1
petalinux-image-minimal-202411160236-mmcblk0.direct.p2
petalinux-image-minimal-202411160236-mmcblk0.direct.xz
 under wic-tmp
But os.path.join(WicTmpBuildDir, 'rootfs-*.direct*') is used for searcing wic images. It results in the empty list of WicOutFile.
WicOutFile[0] causes the above error.
'roots-' is removed from the search pattern.
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