Petalinux troubleshooting - SundanceMultiprocessorTechnology/VCS-1 GitHub Wiki

Errors and solutions:

  • Errors petalinux-config 2018.3 - sourcing yocto recipies as arm instead of aarch64 solution
  • Error: The OE SDK/ADT was detected as already being present in this shell environment. Please use a clean shell when sourcing this environment script. ERROR: Failed to source bitbake - solution
  • 'petalinux-config -c kernel' error:

INFO] bitbake virtual/kernel -c menuconfig

ERROR: OE-core's config sanity checker detected a potential misconfiguration.

Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).

Following is the list of potential problems / advisories:

The system needs to support the en_US.UTF-8 locale.

Solve it changing "petalinux_installation_path/components/yocto/source/arm/layers/core/meta/classes/sanity.bbclass" code, adding the "return" line below:

def sanity_check_locale(d):
"""
Currently bitbake switches locale to en_US.UTF-8 so check that this locale actually exists.
"""
return # disabled by user due to problems with Ubuntu/testing
import locale
try:
    locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
except locale.Error:
    raise_sanity_error("You system needs to support the en_US.UTF-8 locale.", d)
  • 'petalinux-config -c kernel' Menuconfig gets stuck at 99% - solution below:
% nano project-spec/meta-user/conf/petalinuxbsp.conf

set

OE_TERMINAL = "xterm"

  • ERROR: The postinstall intercept hook 'update_font_cache' failed, details in /Petalinux/Builds/2019.1/ZU4EV/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/temp/log.do_rootfs - Solution:
$ sudo dpkg-configure dash

select NO -> for setting bash as main main console

$ sudo chown -R $USER:$USER /Petalinux/
$ sudo chmod -R 755 /Petalinux

Return Build page