IMX8M populate sdk error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8M populate sdk error

3,818 Views
zhaopingyang_sg
Contributor III
  • system info:
  • Linux Version:Ubuntu 19.04
  • BSP version :repo init -u https://source.codeaurora.org/external/imx/imx-manifest  -b imx-linux-zeus -m imx-5.4.24-2.1.0.xml 
  • Build command:DISTRO=fsl-imx-xwayland  MACHINE=imx8mmevk source imx-setup-release.sh -b  <dir>
  • populate command:DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk bitbake core-image-minimal -c populate_sdk 

I want to populate,but it's report an error as follows:

ERROR: core-image-minimal-1.0-r0 do_populate_sdk: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:do_populate_sdk(d)
0003:
File: '/home/imx8/imx-yocto-bsp/sources/poky/meta/classes/populate_sdk_base.bbclass', lineno: 169, function: do_populate_sdk
0165:
0166: populate_sdk(d)
0167:
0168:fakeroot python do_populate_sdk() {
*** 0169: populate_sdk_common(d)
0170:}
0171:SSTATETASKS += "do_populate_sdk"
0172:SSTATE_SKIP_CREATION_task-populate-sdk = '1'
0173:do_populate_sdk[cleandirs] = "${SDKDEPLOYDIR}"
File: '/home/imx8/imx-yocto-bsp/sources/poky/meta/classes/populate_sdk_base.bbclass', lineno: 166, function: populate_sdk_common
0162: manifest_type=Manifest.MANIFEST_TYPE_SDK_HOST)
0163: create_manifest(d, manifest_dir=d.getVar('SDK_DIR'),
0164: manifest_type=Manifest.MANIFEST_TYPE_SDK_TARGET)
0165:
*** 0166: populate_sdk(d)
0167:
0168:fakeroot python do_populate_sdk() {
0169: populate_sdk_common(d)
0170:}
File: '/home/imx8/imx-yocto-bsp/sources/poky/meta/lib/oe/sdk.py', lineno: 417, function: populate_sdk
0413: RpmSdk(d, manifest_dir).populate()
0414: elif img_type == "ipk":
0415: OpkgSdk(d, manifest_dir).populate()
0416: elif img_type == "deb":
*** 0417: DpkgSdk(d, manifest_dir).populate()
0418:
0419: os.environ.clear()
0420: os.environ.update(env_bkp)
0421:
File: '/home/imx8/imx-yocto-bsp/sources/poky/meta/lib/oe/sdk.py', lineno: 60, function: populate
0056: self.sysconfdir, "ld.so.cache")
0057: self.mkdirhier(os.path.dirname(link_name))
0058: os.symlink("/etc/ld.so.cache", link_name)
0059:
*** 0060: execute_pre_post_process(self.d, self.d.getVar('SDK_POSTPROCESS_COMMAND'))
0061:
0062: def movefile(self, sourcefile, destdir):
0063: try:
0064: # FIXME: this check of movefile's return code to None should be
File: '/home/imx8/imx-yocto-bsp/sources/poky/meta/lib/oe/utils.py', lineno: 260, function: execute_pre_post_process
0256: for cmd in cmds.strip().split(';'):
0257: cmd = cmd.strip()
0258: if cmd != '':
0259: bb.note("Executing %s ..." % cmd)
*** 0260: bb.build.exec_func(cmd, d)
0261:
0262:# For each item in items, call the function 'target' with item as the first
0263:# argument, extraargs as the other arguments and handle any exceptions in the
0264:# parent thread
File: '/home/imx8/imx-yocto-bsp/sources/poky/bitbake/lib/bb/build.py', lineno: 250, function: exec_func
0246: with bb.utils.fileslocked(lockfiles):
0247: if ispython:
0248: exec_func_python(func, d, runfile, cwd=adir)
0249: else:
*** 0250: exec_func_shell(func, d, runfile, cwd=adir)
0251:
0252: try:
0253: curcwd = os.getcwd()
0254: except:
File: '/home/imx8/imx-yocto-bsp/sources/poky/bitbake/lib/bb/build.py', lineno: 451, function: exec_func_shell
0447: with open(fifopath, 'r+b', buffering=0) as fifo:
0448: try:
0449: bb.debug(2, "Executing shell function %s" % func)
0450: with open(os.devnull, 'r+') as stdin, logfile:
*** 0451: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
0452: finally:
0453: os.unlink(fifopath)
0454:
0455: bb.debug(2, "Shell function %s finished" % func)
File: '/home/imx8/imx-yocto-bsp/sources/poky/bitbake/lib/bb/process.py', lineno: 182, function: run
0178: if not stderr is None:
0179: stderr = stderr.decode("utf-8")
0180:
0181: if pipe.returncode != 0:
*** 0182: raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
0183: return stdout, stderr
Exception: bb.process.ExecutionError: Execution of '/home/imx8/imx-yocto-bsp/voip/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/temp/run.archive_sdk.34326' failed with exit code 137:
Killed
WARNING: exit code 137 from a shell command.


ERROR: Logfile of failure stored in: /home/imx8/imx-yocto-bsp/voip/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/temp/log.do_populate_sdk.34326
ERROR: Task (/home/imx8/imx-yocto-bsp/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk) failed with exit code '1'

0 Kudos
2 Replies

3,763 Views
justinlydick
NXP Employee
NXP Employee

Hi Zhaoping,

Exception: bb.process.ExecutionError: Execution of '/home/imx8/imx-yocto-bsp/voip/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/temp/run.archive_sdk.34326' failed with exit code 137:
Killed
WARNING: exit code 137 from a shell command.

This exit code 137 means the archive_sdk shell command received a SIGKILL.  The most likely reason is that the system ran out of memory.  You might be able to confirm this by checking dmesg output and looking for a reference to the kernel out of memory oom-killer.  I have seen this on Ubuntu 18.04 using 4GB of RAM.

I would suggest using a machine with more RAM, or run the current system with as few processes running in the background as possible (no GUI, etc).

3,763 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Zhaoping,

I tested it on ubuntu 18.04 LTS and 20.04 LTS platform. It seems that some neccessary software packages should be installed. Try packages below, please!

-----------------------------------

# sudo apt-get update

# sudo apt-get upgrade

# sudo apt-get install flex bison gperf build-essential zlib1g-dev

# sudo apt-get install lib32ncurses5-dev x11proto-core-dev

# sudo apt-get install libx11-dev lib32z1-dev libgl1-mesa-dev

# sudo apt-get install tofrodos python-markdown libxml2-utils xsltproc

# sudo apt-get install uuid-dev:i386 liblzo2-dev:i386 gcc-multilib g++-multilib

# sudo apt-get install subversion openssh-server openssh-client uuid uuid-dev zlib1g-dev

# sudo apt-get install liblz-dev lzop liblzo2-2 liblzo2-dev git-core curl

# sudo apt-get install python3 python3-pip python3-pexpect python3-git python3-jinja2 pylint3

# sudo apt-get install u-boot-tools mtd-utils android-tools-fsutils

[commnent]

         For ubuntu 20.04 LTS, don’t need android-tools-fsutils. So remove it, please!

# sudo apt-get install openjdk-8-jdk device-tree-compiler aptitude

# sudo apt-get install libcurl4-openssl-dev nss-updatedb

# sudo apt-get install chrpath texinfo gawk cpio diffstat

# sudo apt-get install libncursesw5-dev libssl-dev libegl1-mesa

# sudo apt-get install net-tools python libsdl1.2-dev xterm socat

# sudo apt-get install icedtea-netx-common icedtea-netx

---------------------------------------

Then try to compile it following steps in i.MX_Yocto_User's_Guide.pdf.

Have  a nice day!

B.R,

Weidong

0 Kudos