Ok I solved.

The problem is the filesystem of destination folder.

The /deploy is a shared vboxsf shared folder.

If build the sdcard in local folder all works


M

Il 06/11/19 09:48, Mauro Ziliani ha scritto:
Hi all.

I'm trying to port udooneo to Pyro.

By now I build core-image-minimal

I try  to make a udoo-sdcard with the command


wic create -e core-image-minimal udoo-sdard -o /deploy/udoo-scard


udoo-sdcard.wks is placed in meta-udoo/scripts/lib/wic/canned-wks

---- udoo-sdcard.wks ---

bootloader
part SPL --source rawcopy --sourceparams="file=SPL" --ondisk mmcblk --no-table --align 1 part u-boot --source rawcopy --sourceparams="file=u-boot.img" --ondisk mmcblk --no-table --align 69 part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096

---- udoo-sdcard.wks ---


When tryo to build an sdcard with wic I get this errors

---- errors ----

INFO: Creating image(s)...

Traceback (most recent call last):
  File "/home/mauro/pyro/sources/poky/scripts/lib/wic/filemap.py", line 389, in _invoke_fiemap
    fcntl.ioctl(self._f_image, _FIEMAP_IOCTL, self._buf, 1)
OSError: [Errno 95] Operation not supported

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mauro/pyro/sources/poky/scripts/lib/wic/filemap.py", line 529, in filemap
    return FilemapFiemap(image, log)
  File "/home/mauro/pyro/sources/poky/scripts/lib/wic/filemap.py", line 363, in __init__
    self.block_is_mapped(0)
  File "/home/mauro/pyro/sources/poky/scripts/lib/wic/filemap.py", line 410, in block_is_mapped
    struct_fiemap = self._invoke_fiemap(block, 1)
  File "/home/mauro/pyro/sources/poky/scripts/lib/wic/filemap.py", line 397, in _invoke_fiemap
    raise ErrorNotSupp(errstr)
wic.filemap.ErrorNotSupp: FilemapFiemap: the FIEMAP ioctl is not supported by the file-system

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mauro/pyro/sources/poky/scripts/wic", line 326, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/mauro/pyro/sources/poky/scripts/wic", line 321, in main
    return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)   File "/home/mauro/pyro/sources/poky/scripts/lib/wic/help.py", line 97, in invoke_subcommand
    subcommands.get(args[0], subcommand_error)[0](args[1:], usage)
  File "/home/mauro/pyro/sources/poky/scripts/wic", line 259, in wic_create_subcommand
    native_sysroot, options)
  File "/home/mauro/pyro/sources/poky/scripts/lib/wic/engine.py", line 195, in wic_create
    plugin.do_create()
  File "/home/mauro/pyro/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 96, in do_create
    self.assemble()
  File "/home/mauro/pyro/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 187, in assemble
    self._image.assemble()
  File "/home/mauro/pyro/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 553, in assemble
    sparse_copy(source, self.path, part.start * self.sector_size)
  File "/home/mauro/pyro/sources/poky/scripts/lib/wic/filemap.py", line 537, in sparse_copy
    fmap = api(src_fname)
  File "/home/mauro/pyro/sources/poky/scripts/lib/wic/filemap.py", line 531, in filemap
    return FilemapSeek(image, log)
  File "/home/mauro/pyro/sources/poky/scripts/lib/wic/filemap.py", line 210, in __init__
    self._probe_seek_hole()
  File "/home/mauro/pyro/sources/poky/scripts/lib/wic/filemap.py", line 245, in _probe_seek_hole
    raise ErrorNotSupp("the file-system does not support "
wic.filemap.ErrorNotSupp: the file-system does not support "SEEK_HOLE" and "SEEK_DATA" but only provides a stub implementation



It seems that wic doesn't have some function to handle a part defined in wks.

Any suggestions?


Best regards,

  Mauro

--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to