AnsweredAssumed Answered

imx6ul bitbake fsl-image-mfgtool-initramfs fail

Question asked by chunqiao he on Oct 27, 2016
Latest reply on Nov 23, 2016 by Yuri Muhin

Hi all, i use the yocto project to build fsl-image-mfgtool-initramfs ,but there are some issues happen, please see the log as below. how to modify? 

 thanks!

chunqiao@oneiotworld:~/fsl-release-bsp$ MACHINE=imx6ulevk source fsl-setup-release.sh -b imx6ulevk

Build directory is imx6ulevk

Welcome to Freescale Community BSP

The Yocto Project has extensive documentation about OE including a
reference manual which can be found at:
http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
http://www.openembedded.org/

You can now run 'bitbake <target>'

Common targets are:
core-image-minimal
meta-toolchain
meta-toolchain-sdk
adt-installer
meta-ide-support

Your configuration files at imx6ulevk have not been touched.
chunqiao@oneiotworld:~/fsl-release-bsp/imx6ulevk$
chunqiao@oneiotworld:~/fsl-release-bsp/imx6ulevk$ bitbake fsl-image-mfgtool-initramfs
Traceback (most recent call last):
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/bin/bitbake", line 31, in <module>
import bb
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/__init__.py", line 77, in <module>
from bb import fetch2 as fetch
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 39, in <module>
from bb import data
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/data.py", line 48, in <module>
from bb import data_smart
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 35, in <module>
import bb, bb.codeparser
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/codeparser.py", line 1, in <module>
import ast
ImportError: No module named ast
/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/event.py:111: RuntimeWarning: Parent module 'bb' not found while handling absolute import
from bb.msg import BBLogFormatter
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/event.py", line 111, in print_ui_queue
from bb.msg import BBLogFormatter
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/__init__.py", line 77, in <module>
from bb import fetch2 as fetch
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 39, in <module>
from bb import data
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/data.py", line 48, in <module>
from bb import data_smart
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 35, in <module>
import bb, bb.codeparser
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/codeparser.py", line 1, in <module>
import ast
ImportError: No module named ast
Error in sys.exitfunc:
Traceback (most recent call last):
File "/opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/event.py", line 111, in print_ui_queue
from bb.msg import BBLogFormatter
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/__init__.py", line 77, in <module>
from bb import fetch2 as fetch
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 39, in <module>
from bb import data
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/data.py", line 48, in <module>
from bb import data_smart
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 35, in <module>
import bb, bb.codeparser
File "/home/chunqiao/fsl-release-bsp/sources/poky/bitbake/lib/bb/codeparser.py", line 1, in <module>
import ast
ImportError: No module named ast
chunqiao@oneiotworld:~/fsl-release-bsp/imx6ulevk$

Outcomes