AnsweredAssumed Answered

iMX8 bitbake error - layer.conf not found

Question asked by Rahul Khurana on Feb 22, 2020
Latest reply on Apr 14, 2020 by NXP NXP


I am trying to follow the i.MX yocto project user guide to build image for i.mx8 mini evk . However when I run bitbake command I get the following error :


rahul@rahul-VirtualBox:~/imx-yocto-bsp/test_build$ bitbake fsl-image-machine-test
ERROR: Unable to start bitbake server
ERROR: Server log for this session (/home/rahul/imx-yocto-bsp/test_build/bitbake-cookerdaemon.log):
--- Starting bitbake server pid 4528 at 2020-02-21 23:01:40.185868 ---


Below are contents of bitbake-cookerdaemon.log :


File "/home/rahul/imx-yocto-bsp/sources/poky/bitbake/lib/bb/", line 179, in wrapped
return func(fn, *args)
File "/home/rahul/imx-yocto-bsp/sources/poky/bitbake/lib/bb/", line 204, in parse_config_file
return bb.parse.handle(fn, data, include)
File "/home/rahul/imx-yocto-bsp/sources/poky/bitbake/lib/bb/parse/", line 117, in handle
return h['handle'](fn, data, include)
File "/home/rahul/imx-yocto-bsp/sources/poky/bitbake/lib/bb/parse/parse_py/", line 134, in handle
abs_fn = resolve_file(fn, data)
File "/home/rahul/imx-yocto-bsp/sources/poky/bitbake/lib/bb/parse/", line 141, in resolve_file
raise IOError(errno.ENOENT, "file %s not found" % fn)
FileNotFoundError: [Errno 2] file /home/rahul/imx-yocto-bsp/sources/meta-freescale/conf/layer.conf not found

ERROR: Unable to parse /home/rahul/imx-yocto-bsp/sources/meta-freescale/conf/layer.conf: [Errno 2] file /home/rahul/imx-yocto-bsp/sources/meta-freescale/conf/layer.conf not found


When I checked the path , the layer.conf was not there . However I could layer.conf under meta-freescale-distro/conf directory .


Can you please suggest a workaround for this ?