This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: am3358

Part Number: AM3358


你好:

请问你们yocto版本coresdk-07.03.00.005-config.txt 的python版本要求是多少?我最近拉取TI的yocto下来,在打包的时候一直出错?请问这个怎么解决?

ERROR: linux-ti-staging-5.4.106+gitAUTOINC+212b412c40-r22a.arago5 do_package: 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>

  • 请贴出详细的编译过程,我会帮您升级处理。

  • 您好:

    步骤如下:首先按照1.2. Building the SDK — Processor SDK Linux for AM335X Documentation 这个文档

    然后

    $ . conf/setenv 

    $ export TOOLCHAIN_PATH_ARMV7=/media/wujl/kitdev/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf

    $ MACHINE=am335x-evm bitbake u-boot-ti-staging

  • 这个是单独编译uboot,然后编译完成后,会进行do_package的操作 ,然后就会出现下面的错误

    Initialising tasks: 100% |########################################################################################| Time: 0:00:00
    Sstate summary: Wanted 4 Found 0 Missed 4 Current 59 (0% match, 93% complete)
    NOTE: Executing Tasks
    ERROR: u-boot-ti-staging-1_2020.01+gitAUTOINC+2781231a33-r36 do_package: 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_package(d)
    0003:
    File: '/media/wujl/test/tisdk/sources/oe-core/meta/classes/package.bbclass', lineno: 2315, function: do_package
    2311:
    2312: cpath = oe.cachedpath.CachedPath()
    2313:
    2314: for f in (d.getVar('PACKAGESPLITFUNCS') or '').split():
    *** 2315: bb.build.exec_func(f, d)
    2316:
    2317: ###########################################################################
    2318: # Process PKGDEST
    2319: ###########################################################################
    File: '/media/wujl/test/tisdk/sources/bitbake/lib/bb/build.py', lineno: 251, function: exec_func
    0247: with bb.utils.fileslocked(lockfiles):
    0248: if ispython:
    0249: exec_func_python(func, d, runfile, cwd=adir)
    0250: else:
    *** 0251: exec_func_shell(func, d, runfile, cwd=adir)
    0252:
    0253: try:
    0254: curcwd = os.getcwd()
    0255: except:
    File: '/media/wujl/test/tisdk/sources/bitbake/lib/bb/build.py', lineno: 452, function: exec_func_shell
    0448: with open(fifopath, 'r+b', buffering=0) as fifo:
    0449: try:
    0450: bb.debug(2, "Executing shell function %s" % func)
    0451: with open(os.devnull, 'r+') as stdin, logfile:
    *** 0452: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
    0453: finally:
    0454: os.unlink(fifopath)
    0455:
    0456: bb.debug(2, "Shell function %s finished" % func)
    File: '/media/wujl/test/tisdk/sources/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 '/media/wujl/test/tisdk/build/arago-tmp-external-arm-glibc/work/am335x_evm-linux-gnueabi/u-boot-ti-staging/1_2020.01+gitAUTOINC+2781231a33-r36/temp/run.populate_srcipk_package.10021' failed with exit code 1:
    cp: cannot stat '/media/wujl/test/tisdk/build/arago-tmp-external-arm-glibc/work/am335x_evm-linux-gnueabi/u-boot-ti-staging/1_2020.01+gitAUTOINC+2781231a33-r36/srcipk-staging/board-support/u-boot-2020.01+gitAUTOINC+2781231a33-g/.': No such file or directory
    WARNING: /media/wujl/test/tisdk/build/arago-tmp-external-arm-glibc/work/am335x_evm-linux-gnueabi/u-boot-ti-staging/1_2020.01+gitAUTOINC+2781231a33-r36/temp/run.populate_srcipk_package.10021:1 exit 1 from 'cp -Prf --preserve=mode,timestamps --no-preserve=ownership /media/wujl/test/tisdk/build/arago-tmp-external-arm-glibc/work/am335x_evm-linux-gnueabi/u-boot-ti-staging/1_2020.01+gitAUTOINC+2781231a33-r36/srcipk-staging/board-support/u-boot-2020.01+gitAUTOINC+2781231a33-g/. /media/wujl/test/tisdk/build/arago-tmp-external-arm-glibc/work/am335x_evm-linux-gnueabi/u-boot-ti-staging/1_2020.01+gitAUTOINC+2781231a33-r36/packages-split/u-boot-ti-staging-src/board-support/u-boot-2020.01+gitAUTOINC+2781231a33-g'


    ERROR: Logfile of failure stored in: /media/wujl/test/tisdk/build/arago-tmp-external-arm-glibc/work/am335x_evm-linux-gnueabi/u-boot-ti-staging/1_2020.01+gitAUTOINC+2781231a33-r36/temp/log.do_package.10021
    ERROR: Task (/media/wujl/test/tisdk/sources/meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_2020.01.bb:do_package) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 485 tasks of which 484 didn't need to be rerun and 1 failed.
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 2 seconds

    Summary: 1 task failed:
    /media/wujl/test/tisdk/sources/meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_2020.01.bb:do_package
    Summary: There was 1 WARNING message shown.
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.

  • 这个错误是在ubuntu18.04出现的

  • 好的,将您的问题升级到了英文论坛,请关注并及时跟进。

    e2e.ti.com/.../am3358-am3358

  • 英文论坛已有回复,请及时跟进。

  • 非常感谢,根据回复,在conf/local.conf增加下面两行就okay了,

    CREATE_SRCIPK_pn-linux-ti-staging = "0"
    CREATE_SRCIPK_pn-u-boot-ti-staging = "0"