cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
johne1969
Participant
Participant
2,195 Views
Registered: ‎05-07-2018

petalinux-build fails for zcu104 with locale error

Jump to solution

Hi

 

I am using Ubuntu 18.04, petalinux 2018.2 and the zcu104 bsp.

 

I make a project with the bsp and can complete petalinux-config, but when I try petalinux-build it fails with :-

 

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:

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

 

I have tried reinstalling locales by doing :-

 

sudo dpkg-reconfigure locales
sudo locale-gen en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

export LC_CTYPE=en_US.UTF-8

 

and have added the following lines to my /etc/default/locale

 

LC_ALL="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"
LANG="en_US.UTF-8"

 

the locale command shows the locales are set to en_US.UTF-8

 

but I still get the same error. Anyway else seeing this? Any thoughts what the issue is?

 

Thanks

John

0 Kudos
1 Solution

Accepted Solutions
sandeepg
Moderator
Moderator
2,189 Views
Registered: ‎04-24-2017

Hi @johne1969,

 

Yocto Rocko doesn't support Ubuntu 18.04.x LTS. We are documenting this is petalinux release notes and it should be available in a day or two.

 

https://forums.xilinx.com/t5/Embedded-Linux/petalinux-config-failing-on-Ubuntu-18-04-help/td-p/882486 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

6 Replies
aravindb
Moderator
Moderator
2,149 Views
Registered: ‎02-07-2018

HI John,

 

Ubuntu 18.04 is not support for 2018.x release. , Please use ubuntu-16.04.

Please follow installation requirements as per this link:https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_2/ug1144-petalinux-tools-reference-guide.pdf  (page no:9)

 

 

Thanks & regards

Aravind

 

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

sandeepg
Moderator
Moderator
2,190 Views
Registered: ‎04-24-2017

Hi @johne1969,

 

Yocto Rocko doesn't support Ubuntu 18.04.x LTS. We are documenting this is petalinux release notes and it should be available in a day or two.

 

https://forums.xilinx.com/t5/Embedded-Linux/petalinux-config-failing-on-Ubuntu-18-04-help/td-p/882486 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

johne1969
Participant
Participant
2,132 Views
Registered: ‎05-07-2018

OK, Thank you. I will use 16.04 for the time being.

 

0 Kudos
pedro_uno
Advisor
Advisor
1,975 Views
Registered: ‎02-12-2013

As far as I can tell Petalinux is the only Xilinx tool that does not run properly under Ubuntu 2018.04 LTS.

----------------------------------------
DSP in hardware and software
-----------------------------------------
0 Kudos
sandeepg
Moderator
Moderator
1,963 Views
Registered: ‎04-24-2017

Hi @pedro_uno,

 

Ubuntu-18.04 is not supported from Yocto upstream so we don't support in PetaLinux 2018.x(Yocto 2.4.1)

 

Refer this AR https://www.xilinx.com/support/answers/71448.html 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
pedro_uno
Advisor
Advisor
1,937 Views
Registered: ‎02-12-2013

Petalinux has a lot of dependencies.  It is probably best to set up an Ubuntu 16.04 virtual machine to run petalinux. Still,  I found this posting from a guy that had the same problem running Petalinux Yocto on a Debian machine.

 

    https://forums.xilinx.com/t5/Embedded-Linux/Petalinux-2017-4-quot-petalinux-build-quot-fails-on-the-newest/td-p/845209

 

His fix worked for me in Ubuntu 18.04 LTS. To summarize here:

 

First, I found the sanity.bbclass files.

 

$ find . -name "sanity.bbclass"
./components/yocto/source/microblaze_lite/layers/core/meta/classes/sanity.bbclass
./components/yocto/source/arm/layers/core/meta/classes/sanity.bbclass
./components/yocto/source/microblaze_full/layers/core/meta/classes/sanity.bbclass
./components/yocto/source/aarch64/layers/core/meta/classes/sanity.bbclass

 

Then I edited the last one, aarch64 for MPSOC, in this way adding the line in red.

 

def sanity_check_locale(d):
    """
    Currently bitbake switches locale to en_US.UTF-8 so check that this locale actually exists.
    """
    return # disabling check
    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)

----------------------------------------
DSP in hardware and software
-----------------------------------------