cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
70 Views
Registered: ‎09-02-2020

Segmentation fault (core dumped) about petalinux

Jump to solution

I install petalinux2019.1 on ubuntu 18.04.1

i create a petalinux project and config it, it is normal

but when i use 

 petalinux-build

to build ,it says 

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:

    Do not use Bitbake as root.

I exit sudo and run again even other command runs wrong

it says

ysy@ubuntu:~/petalinux2019/linuxprj2019$ petalinux-build
Segmentation fault (core dumped)
ysy@ubuntu:~/petalinux2019/linuxprj2019$ petalinux-config
Segmentation fault (core dumped)
ysy@ubuntu:~/petalinux2019/linuxprj2019$ petalinux-create
Segmentation fault (core dumped)

but if i use sudo -s and run again it will not show this question

what should i do to fix this bug! thank you so much for your reply !

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
42 Views
Registered: ‎05-10-2017

The Petalinux tool should not be installed as root user.

PetaLinux build commands works only in non sudo user, it fails to build with sudo or root user.

Note: Do not change the installer permissions to CHMOD 775 as it can cause BitBake errors.
This installs the PetaLinux Tools into /opt/pkg/petalinux/2019.1 directory.
IMPORTANT! Once installed, you cannot move or copy the installed directory. In the above example, you cannot
move or copy /opt/pkg/petalinux since the full path will be stored into Yocto e-SDK environment file.
Note: You cannot install the tool as root user. Ensure that /opt/pkg/petalinux is writeable. You can
change the permissions after installation to make it globally read-execute (0755). It is not mandatory to
install tool in /opt/pkg/petalinux directory. You can install at any desired location that has the 755
permissions.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
Highlighted
Moderator
Moderator
43 Views
Registered: ‎05-10-2017

The Petalinux tool should not be installed as root user.

PetaLinux build commands works only in non sudo user, it fails to build with sudo or root user.

Note: Do not change the installer permissions to CHMOD 775 as it can cause BitBake errors.
This installs the PetaLinux Tools into /opt/pkg/petalinux/2019.1 directory.
IMPORTANT! Once installed, you cannot move or copy the installed directory. In the above example, you cannot
move or copy /opt/pkg/petalinux since the full path will be stored into Yocto e-SDK environment file.
Note: You cannot install the tool as root user. Ensure that /opt/pkg/petalinux is writeable. You can
change the permissions after installation to make it globally read-execute (0755). It is not mandatory to
install tool in /opt/pkg/petalinux directory. You can install at any desired location that has the 755
permissions.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

0 Kudos
Highlighted
Visitor
Visitor
33 Views
Registered: ‎09-02-2020
thank you !
0 Kudos