do_image_wic error with custom machine


Goubaux, Nicolas
 

Hello,

I would like to implement two custom machines based on genericx86_64 but I have issue with the do_image_wic

Couldn't get bitbake variable from /home/vagrant/poky/build/tmp/work/machine1-poky-linux/project1-image-sms/1.0-r0/rootfs/var/dolby.env.
File /home/vagrant/poky/build/tmp/work/machine1-poky-linux/project1-image-sms/1.0-r0/rootfs/var/dolby.env doesn't exist.

Can help me to fix it ?

---------- meta-product1/machine/machine1.conf ----------
#@TYPE: Machine
#@NAME: Product1 Board
#@DESCRIPTION: Machine configuration for the Product1

DEFAULTTUNE ?= "core2-64"
TUNE_PKGARCH_tune-core2-64 = "core2-64"

#PACKAGE_ARCH = "x86_64"
#PACKAGE_ARCHS_append = " genericx86_64"

require conf/machine/include/tune-core2.inc
require conf/machine/include/genericx86-common.inc

KMACHINE_machine1 = "x86_64"
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
PREFERRED_VERSION_linux-yocto = "5.10%"

SERIAL_CONSOLES_CHECK = "ttyS0"
#For runqemu
QB_SYSTEM_NAME = "qemu-system-x86_64"

WKS_FILE ?= "${MACHINE}.wks"

IMAGE_INSTALL_append = " packagegroup-sms-apps packagegroup-sms-tools packagegroup-sms-lib packagegroup-sms-dev"

hostname:pn-base-files = "product1-sms"

---------- Log ----------

+ BUILDDIR=/home/vagrant/poky/build PSEUDO_UNLOAD=1 wic create /home/vagrant/poky/build/../../layers/meta-project1-sms/scripts/lib/wic/canned-wks/project1-sms-x86_64.wks --vars /home/vagrant/poky/build/tmp/sysroots/project1-sms-x86_64/imgdata/ -e project1-image-sms -o /home/vagrant/poky/build/tmp/work/machine1-poky-linux/project1-image-sms/1.0-r0/build-wic/ -w /home/vagrant/poky/build/tmp/work/machine1-poky-linux/project1-image-sms/1.0-r0/tmp-wic

INFO: Creating image(s)...


Couldn't get bitbake variable from /home/vagrant/poky/build/tmp/work/machine1-poky-linux/project1-image-sms/1.0-r0/rootfs/var/dolby.env.
File /home/vagrant/poky/build/tmp/work/machine1-poky-linux/project1-image-sms/1.0-r0/rootfs/var/dolby.env doesn't exist.

Traceback (most recent call last):
File "/home/vagrant/poky/scripts/wic", line 542, in <module>
sys.exit(main(sys.argv[1:]))
File "/home/vagrant/poky/scripts/wic", line 537, in main
return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
File "/home/vagrant/poky/scripts/lib/wic/help.py", line 83, in invoke_subcommand

subcmd[0](args, usage)

File "/home/vagrant/poky/scripts/wic", line 219, in wic_create_subcommand

engine.wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,

File "/home/vagrant/poky/scripts/lib/wic/engine.py", line 190, in wic_create

plugin.do_create()

File "/home/vagrant/poky/scripts/lib/wic/plugins/imager/direct.py", line 97, in do_create

self.create()

File "/home/vagrant/poky/scripts/lib/wic/plugins/imager/direct.py", line 181, in create

self._image.prepare(self)

File "/home/vagrant/poky/scripts/lib/wic/plugins/imager/direct.py", line 356, in prepare

part.prepare(imager, imager.workdir, imager.oe_builddir,

File "/home/vagrant/poky/scripts/lib/wic/partition.py", line 182, in prepare

plugin.do_prepare_partition(self, srcparams_dict, creator,

File "/home/vagrant/poky/scripts/lib/wic/plugins/source/rootfs.py", line 96, in do_prepare_partition

part.rootfs_dir = cls.__get_rootfs_dir(rootfs_dir)

File "/home/vagrant/poky/scripts/lib/wic/plugins/source/rootfs.py", line 57, in __get_rootfs_dir

if not os.path.isdir(image_rootfs_dir):

File "/home/vagrant/poky/build/tmp/work/machine1-poky-linux/project1-image-sms/1.0-r0/recipe-sysroot-native/usr/lib/python3.9/genericpath.py", line 42, in isdir

st = os.stat(s)

TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

+ bb_sh_exit_handler
+ ret=1
+ [ 1 != 0 ]
+ echo WARNING: exit code 1 from a shell command.
WARNING: exit code 1 from a shell command.
+ exit 1

ERROR: project1-image-sms-1.0-r0 do_image_wic: ExecutionError('/home/vagrant/poky/build/tmp/work/machine1-poky-linux/project1-image-sms/1.0-r0/temp/run.do_image_wic.4026945', 1, None, None)
ERROR: Logfile of failure stored in: /home/vagrant/poky/build/tmp/work/machine1-poky-linux/project1-image-sms/1.0-r0/temp/log.do_image_wic.4026945
ERROR: Task (/home/vagrant/poky/build/../../layers/meta-project1-sms/recipes-core/images/project1-image-sms.bb:do_image_wic) failed with exit code '1'


Nicolas G.

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.