Board description
Custom board based on Phyboard Pollux by Phytec.
URL: Phyboard Pollux
Issue
The actual integration of Mender on Yocto (kirkstone) seems to work fine, until it comes to the pretty much last step: do_image_sdimg
.
There, the wic creation fails with the following error:
| INFO: Creating image(s)...
|
| Traceback (most recent call last):
| File "/work/layers/poky/scripts/lib/wic/filemap.py", line 457, in get_mapped_ranges
| first_prev, last_prev = next(iterator)
| StopIteration
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/work/layers/poky/scripts/wic", line 547, in <module>
| sys.exit(main(sys.argv[1:]))
| File "/work/layers/poky/scripts/wic", line 542, in main
| return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
| File "/work/layers/poky/scripts/lib/wic/help.py", line 83, in invoke_subcommand
| subcmd[0](args, usage)
| File "/work/layers/poky/scripts/wic", line 222, in wic_create_subcommand
| engine.wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
| File "/work/layers/poky/scripts/lib/wic/engine.py", line 190, in wic_create
| plugin.do_create()
| File "/work/layers/poky/scripts/lib/wic/plugins/imager/direct.py", line 98, in do_create
| self.create()
| File "/work/layers/poky/scripts/lib/wic/plugins/imager/direct.py", line 185, in create
| self._image.prepare(self)
| File "/work/layers/poky/scripts/lib/wic/plugins/imager/direct.py", line 363, in prepare
| part.prepare(imager, imager.workdir, imager.oe_builddir,
| File "/work/layers/poky/scripts/lib/wic/partition.py", line 185, in prepare
| plugin.do_prepare_partition(self, srcparams_dict, creator,
| File "/work/layers/poky/scripts/lib/wic/plugins/source/rawcopy.py", line 95, in do_prepare_partition
| sparse_copy(src, dst)
| File "/work/layers/poky/scripts/lib/wic/filemap.py", line 539, in sparse_copy
| for first, last in fmap.get_mapped_ranges(0, fmap.blocks_cnt):
| RuntimeError: generator raised StopIteration
| WARNING: exit code 1 from a shell command.
| + bb_sh_exit_handler
| + ret=1
| + [ 1 != 0 ]
| + echo WARNING: exit code 1 from a shell command.
| + exit 1
ERROR: Task (/build/../work/layers/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_sdimg) failed with exit code '1'
The files to be flashed as named in the generated wks file exist.
Do you have any hint what’s wrong here?