Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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.

[FAQ] Yocto: Building the Linux SDK results in do_package failures for Linux Kernel and U-Boot

When using Yocto to build the Linux SDKs v08.02 (and previous ones) for devices such as AM64x and AM335x (and others) as per SDK documentation instructions the do_package step fails for both Linux Kernel and U-Boot with an error message similar to the below:

ERROR: linux-ti-staging-5.10.65+gitAUTOINC+822e9445b7-r0b.arago5 do_package: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:do_package(d)
0003:
File: '/home/adannenb/tisdk-am62-00.09.00.01/oe-layersetup/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: '/home/adannenb/tisdk-am62-00.09.00.01/oe-layersetup/sources/bitbake/lib/bb/build.py', lineno: 254, function: exec_func
0250: with bb.utils.fileslocked(lockfiles):
0251: if ispython:
0252: exec_func_python(func, d, runfile, cwd=adir)
0253: else:
*** 0254: exec_func_shell(func, d, runfile, cwd=adir)
0255:
0256: try:
0257: curcwd = os.getcwd()
0258: except:
File: '/home/adannenb/tisdk-am62-00.09.00.01/oe-layersetup/sources/bitbake/lib/bb/build.py', lineno: 455, function: exec_func_shell
0451: with open(fifopath, 'r+b', buffering=0) as fifo:
0452: try:
0453: bb.debug(2, "Executing shell function %s" % func)
0454: with open(os.devnull, 'r+') as stdin, logfile:
*** 0455: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
0456: finally:
0457: os.unlink(fifopath)
0458:
0459: bb.debug(2, "Shell function %s finished" % func)
File: '/home/adannenb/tisdk-am62-00.09.00.01/oe-layersetup/sources/bitbake/lib/bb/process.py', lineno: 184, function: run
0180:
0181: if pipe.returncode != 0:
0182: if log:
0183: # Don't duplicate the output in the exception if logging it
*** 0184: raise ExecutionError(cmd, pipe.returncode, None, None)
0185: raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
0186: return stdout, stderr
Exception: bb.process.ExecutionError: Execution of '/home/adannenb/tisdk-am62-00.09.00.01/oe-layersetup/build/arago-tmp-external-arm-glibc/work/am62xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+822e9445b7-r0b.arago5/temp/run.populate_srcipk_package.27080' failed with exit code 1

ERROR: Logfile of failure stored in: /home/adannenb/tisdk-am62-00.09.00.01/oe-layersetup/build/arago-tmp-external-arm-glibc/work/am62xx_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+822e9445b7-r0b.arago5/temp/log.do_package.27080
ERROR: Task (/home/adannenb/tisdk-am62-00.09.00.01/oe-layersetup/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_5.10.bb:do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 8373 tasks of which 8356 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 2 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 2 seconds

Summary: 1 task failed:

What is going on and how can I get my build to complete successfully?