cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
267 Views
Registered: ‎10-29-2019

Petalinux2019.2 kernel configuration problem in my PC

I have been trying to do petalinux project in one of our projects. We are able to create the project but the configuration doesnt go good. Tried uninstalling and installing petalinux many a time. Every time some problem comes once during configuration, once in build error, once Taskhash mismatch

Following are the errors that occured. Can anyone help me out in this regard please.

 

ERROR: linux-xlnx-4.19-xilinx-v2019.2+git999-r0 do_menuconfig: 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_menuconfig(d)
0003:
File: '/opt/Peta_12052020/components/yocto/source/arm/layers/core/meta/classes/cml1.bbclass', lineno: 30, function: do_menuconfig
0026: except OSError:
0027: mtime = 0
0028:
0029: oe_terminal("${SHELL} -c \"make %s; if [ \$? -ne 0 ]; then echo 'Command failed.'; printf 'Press any key to continue... '; read r; fi\"" % d.getVar('KCONFIG_CONFIG_COMMAND'),
*** 0030: d.getVar('PN') + ' Configuration', d)
0031:
0032: # FIXME this check can be removed when the minimum bitbake version has been bumped
0033: if hasattr(bb.build, 'write_taint'):
0034: try:
File: '/opt/Peta_12052020/components/yocto/source/arm/layers/core/meta/classes/terminal.bbclass', lineno: 96, function: oe_terminal
0092: except oe.terminal.ExecutionError as exc:
0093: bb.fatal('Unable to spawn terminal %s: %s' % (terminal, exc))
0094:
0095: try:
*** 0096: oe.terminal.spawn_preferred(command, title, None, d)
0097: except oe.terminal.NoSupportedTerminals as nosup:
0098: nosup.terms.remove("false")
0099: cmds = '\n\t'.join(nosup.terms).replace("{command}",
0100: "do_terminal").replace("{title}", title)
File: '/opt/Peta_12052020/components/yocto/source/arm/layers/core/meta/lib/oe/terminal.py', lineno: 204, function: spawn_preferred
0200:def spawn_preferred(sh_cmd, title=None, env=None, d=None):
0201: """Spawn the first supported terminal, by priority"""
0202: for terminal in prioritized():
0203: try:
*** 0204: spawn(terminal.name, sh_cmd, title, env, d)
0205: break
0206: except UnsupportedTerminal:
0207: continue
0208: else:
File: '/opt/Peta_12052020/components/yocto/source/arm/layers/core/meta/lib/oe/terminal.py', lineno: 228, function: spawn
0224: import time
0225: pidfile = tempfile.NamedTemporaryFile(delete = False).name
0226: try:
0227: sh_cmd = bb.utils.which(os.getenv('PATH'), "oe-gnome-terminal-phonehome") + " " + pidfile + " " + sh_cmd
*** 0228: pipe = terminal(sh_cmd, title, env, d)
0229: output = pipe.communicate()[0]
0230: if output:
0231: output = output.decode("utf-8")
0232: if pipe.returncode != 0:
File: '/opt/Peta_12052020/components/yocto/source/arm/layers/core/meta/lib/oe/terminal.py', lineno: 50, function: __init__
0046: return [element.format(**fmt) for element in self.command]
0047:
0048:class XTerminal(Terminal):
0049: def __init__(self, sh_cmd, title=None, env=None, d=None):
*** 0050: Terminal.__init__(self, sh_cmd, title, env, d)
0051: if not os.environ.get('DISPLAY'):
0052: raise UnsupportedTerminal(self.name)
0053:
0054:class Gnome(XTerminal):
File: '/opt/Peta_12052020/components/yocto/source/arm/layers/core/meta/lib/oe/terminal.py', lineno: 33, function: __init__
0029:class Terminal(Popen, metaclass=Registry):
0030: def __init__(self, sh_cmd, title=None, env=None, d=None):
0031: fmt_sh_cmd = self.format_command(sh_cmd, title)
0032: try:
*** 0033: Popen.__init__(self, fmt_sh_cmd, env=env)
0034: except OSError as exc:
0035: import errno
0036: if exc.errno == errno.ENOENT:
0037: raise UnsupportedTerminal(self.name)
File: '/opt/Peta_12052020/components/yocto/source/arm/layers/core/bitbake/lib/bb/process.py', lineno: 65, function: __init__
0061:
0062: def __init__(self, *args, **kwargs):
0063: options = dict(self.defaults)
0064: options.update(kwargs)
*** 0065: subprocess.Popen.__init__(self, *args, **options)
0066:
0067:def _logged_communicate(pipe, log, input, extrafiles):
0068: if pipe.stdin:
0069: if input is not None:
File: '/opt/Peta_12052020/components/yocto/source/arm/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.5/subprocess.py', lineno: 676, function: __init__
0672: startupinfo, creationflags, shell,
0673: p2cread, p2cwrite,
0674: c2pread, c2pwrite,
0675: errread, errwrite,
*** 0676: restore_signals, start_new_session)
0677: except:
0678: # Cleanup if the child failed starting.
0679: for f in filter(None, (self.stdin, self.stdout, self.stderr)):
0680: try:
File: '/opt/Peta_12052020/components/yocto/source/arm/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.5/subprocess.py', lineno: 1289, function: _execute_child
1285: # The error must be from chdir(cwd).
1286: err_msg += ': ' + repr(cwd)
1287: else:
1288: err_msg += ': ' + repr(orig_executable)
*** 1289: raise child_exception_type(errno_num, err_msg)
1290: raise child_exception_type(err_msg)
1291:
1292:
1293: def _handle_exitstatus(self, sts, _WIFSIGNALED=os.WIFSIGNALED,
Exception: PermissionError: [Errno 13] Permission denied

ERROR: linux-xlnx-4.19-xilinx-v2019.2+git999-r0 do_menuconfig: Function failed: do_menuconfig
ERROR: Logfile of failure stored in: /opt/2019.2/ultra96v2-vitis-pkg/ultra96v2-petalinux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.19-xilinx-v2019.2+git999-r0/temp/log.do_menuconfig.16083
ERROR: Task (/opt/Peta_12052020/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2019.2.bb:do_menuconfig) failed with exit code '1'
NOTE: Tasks Summary: Attempted 365 tasks of which 358 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/opt/Peta_12052020/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2019.2.bb:do_menuconfig
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

ERROR: Failed to config kernel.

Tags (1)
0 Kudos
1 Reply
Highlighted
Teacher
Teacher
179 Views
Registered: ‎06-16-2013

Hi @ramesh_ch3 

 

It seems permission issue.

Would you read the following file to investigate the route cause ?

 

/opt/2019.2/ultra96v2-vitis-pkg/ultra96v2-petalinux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.19-xilinx-v2019.2+git999-r0/temp/log.do_menuconfig.16083

 

Best regardsm

0 Kudos