UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer icyman
Observer
14,426 Views
Registered: ‎12-27-2015

petalinux 2016.4 installation fail

Jump to solution

I have installed the petalinux 2016.4 on the Ubuntu 16.04 for several times due to installation fails like as below.

 

After the installation with this error, there is no files and directories in the components/yocto directory except downloads.

 

What's wrong with this fail?

 

 

 

 

 

INFO: Checking installer checksum...
INFO: Extracting PetaLinux installer...
INFO: Installing PetaLinux...
INFO: Checking PetaLinux installer integrity...
INFO: Extracting Installation files...
INFO: Checking installation environment requirements...
INFO: Installing PetaLinux SDK to "/opt/Xilinx/petalinux-v2016.4-final/."
INFO: Installing PetaLinux zynqMP Yocto SDK to "/opt/Xilinx/petalinux-v2016.4-final/./components/yocto/source/aarch64"...
*********************************************
ERROR: Failed to install Yocto SDK for zynqMP.
*********************************************
Please refer to the PetaLinux Tools Installation Guide.

Check the troubleshooting guide at the end of that manual, and if you are
unable to resolve the issue please contact customer support with file:
/home/icyman/Desktop/petalinux_installation_log

 

 

 

0 Kudos
1 Solution

Accepted Solutions
Observer icyman
Observer
21,975 Views
Registered: ‎12-27-2015

Re: petalinux 2016.4 installation fail

Jump to solution

I solved this issue.

 

You should use not root account to install the petalinux_installler.

 

0 Kudos
20 Replies
Observer icyman
Observer
21,976 Views
Registered: ‎12-27-2015

Re: petalinux 2016.4 installation fail

Jump to solution

I solved this issue.

 

You should use not root account to install the petalinux_installler.

 

0 Kudos
Xilinx Employee
Xilinx Employee
14,263 Views
Registered: ‎07-01-2010

Re: petalinux 2016.4 installation fail

Jump to solution

@icyman

 

Thanks for updating the resolution.

 

Yes, user need to have root access to install petalinux.

 

This is documented in the UG1144 under Installation Requirements.

 

Regards,
Achutha

---------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------
0 Kudos
14,055 Views
Registered: ‎01-06-2017

Re: petalinux 2016.4 installation fail

Jump to solution

Hello @icyman

I met the same problem as you

Here are my logs:

qwer@ubuntu:~/Desktop/installer/petalinux$ sudo ./petalinux-2016.4-final.run /opt/pkg/petalinux
INFO: Checking installer checksum...
INFO: Extracting PetaLinux installer...
INFO: Installing PetaLinux...
INFO: Checking PetaLinux installer integrity...
*********************************************
WARNING: PetaLinux installation directory: /opt/pkg/petalinux/. is not empty!
*********************************************
Please input "y" to continue to install PetaLinux in that directory?[n]y
INFO: Extracting Installation files...
 
LICENSE AGREEMENTS
 
PetaLinux SDK contains software from a number of sources. Please review
the following licenses and indicate your acceptance of each to continue.
 
You do not have to accept the licenses, however if you do not then you may
not use PetaLinux SDK.
 
Use PgUp/PgDn to navigate the license viewer, and press 'q' to close
 
Press Enter to display the license agreements
Do you accept Xilinx End User License Agreement? [y/N] > y
Do you accept Webtalk Terms and Conditions? [y/N] > y
Do you accept Third Party End User License Agreement? [y/N] > y
INFO: Checking installation environment requirements...
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
INFO: Installing PetaLinux SDK to "/opt/pkg/petalinux/."
INFO: Installing PetaLinux zynqMP Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/aarch64"...
PetaLinux Extensible SDK installer version 2016.4
=================================================
ERROR: The extensible sdk cannot be installed as root.
*********************************************
ERROR: Failed to install Yocto SDK for zynqMP.
*********************************************
 
Please refer to the PetaLinux Tools Installation Guide.
 
Check the troubleshooting guide at the end of that manual, and if you are
unable to resolve the issue please contact customer support with file:
/home/qwer/Desktop/installer/petalinux/petalinux_installation_log
 
I used my user account with sudo command, but it failed.

 

0 Kudos
14,047 Views
Registered: ‎01-06-2017

Re: petalinux 2016.4 installation fail

Jump to solution

Hi @achutha

 

I used my default user account with sudo command instead of the root account, but it failed several times.

Here are the logs :

 

INFO: Checking installation environment requirements...
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
INFO: Installing PetaLinux SDK to "/opt/pkg/petalinux/."
INFO: Installing PetaLinux zynqMP Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/aarch64"...
PetaLinux Extensible SDK installer version 2016.4
=================================================
ERROR: The extensible sdk cannot be installed as root.
*********************************************
ERROR: Failed to install Yocto SDK for zynqMP.
*********************************************
 
I just don't understand.
If i don't use the sudo command, those files can't be installed to my disk.
Once i used sudo command, it tell me the sdk cannot be installed as root.
What should i do? Re-creating a user account?

 

0 Kudos
Moderator
Moderator
14,038 Views
Registered: ‎04-17-2011

Re: petalinux 2016.4 installation fail

Jump to solution
Try installing it under your /home directory as a normal user.

Note: To separately install Yocto SDK, download the required .sh file from the link http://downloads.yoctoproject.org/releases/yocto/yocto-2.1/toolchain/x86_64/ and execute the .sh file after setting proper permission "chmod +x".
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
14,037 Views
Registered: ‎01-06-2017

Re: petalinux 2016.4 installation fail

Jump to solution
Thank you!
I re-created a normal user and installed the software package in the new /home directory successfully.
0 Kudos
Moderator
Moderator
14,035 Views
Registered: ‎04-17-2011

Re: petalinux 2016.4 installation fail

Jump to solution
Thanks. We will get this clarified in the Petalinux documentation.
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
13,510 Views
Registered: ‎02-07-2008

Re: petalinux 2016.4 installation fail

Jump to solution

Hi,

 

I've also had this problem and I finally managed to get Petalinux 2016.4 installed by:

 

* Copying the installer to the home directory

* Running the installer as a normal user (not root, not using sudo)

* Installing it to a directory within my home directory (it never worked when installing to /opt/pkg)

 

Jeff

Visitor zyxer
Visitor
12,550 Views
Registered: ‎11-30-2016

Re: petalinux 2016.4 installation fail

Jump to solution

The problem seems to be of the location where this is installed, less to do with user account types/permissions. If Xilinx is listening it would be better to avoid such restrictions at least in future releases. Summary is to not try and make good organization of the computer in which it is installed, but just install the way it has been tested. Seriously, I don't want to clutter my /home directory but there is no other option.

0 Kudos
Visitor shawnlxf
Visitor
9,109 Views
Registered: ‎04-09-2017

Re: petalinux 2016.4 installation fail

Jump to solution

I met the same problem with you and tried your method, but still failed. (ubuntu14.04)

lxf@sunny-HP-Z640:/home$ sudo ./petalinux-v2016.4-final-installer1.run lxf/petalinux/

=======================

ERROR: The extensible sdk cannot be installed as root.
*********************************************
ERROR: Failed to install Yocto SDK for zynqMP.
*********************************************

 

0 Kudos
Observer fahem
Observer
9,054 Views
Registered: ‎04-12-2017

Re: petalinux 2016.4 installation fail

Jump to solution

Hi,

I'm facing a problem with the petlinux2016.4 installation. Actually, every time I try to install it, I get directly this message:

 

INFO: Checking installer checksum...
ERROR: Failed to install PetaLinux. Installer checksum checking failed!
ERROR: Expected checksum is "67a57c5e69b25f89ded23830967963ec", actual checksum is "d41d8cd98f00b204e9800998ecf8427e".

 

I have tried with 2016.3 version then I have downloaded the Petalinux many time however I didn't get any result.

 

So, please, have you any isea how to fix this problem?

Visitor shawnlxf
Visitor
9,047 Views
Registered: ‎04-09-2017

Re: petalinux 2016.4 installation fail

Jump to solution

Today when I runned the installation like that:

sunny@sunny-HP-Z640:/home/petalinux$ ./petalinux-v2016.4-final-installer1.run .

I installed it successfully but I still don't know the reason why I failed the day before.

0 Kudos
Visitor jmairs
Visitor
8,947 Views
Registered: ‎03-25-2017

Re: petalinux 2016.4 installation fail

Jump to solution

I had no problem with checksums matching on Centos7.2 but when I burned the .run installer file to cdrom media and installed it on Redhat 7.2 I get a checksum error: 67a57...

 

On Redhat I am running

 

md5sum --v   (8.22)

 

Perhaps the media is off

0 Kudos
8,410 Views
Registered: ‎05-26-2017

Re: petalinux 2016.4 installation fail

Jump to solution

hello,If you use the way metioned by all of adviser and also do not work. I suggest you should check whether you creat your target holder using your own account rather root account. And the most important is all operations should be down in your own account not root. And the target folder and installer both be putted in your Home folder. NOT home.

0 Kudos
Visitor abhinav6
Visitor
8,322 Views
Registered: ‎06-01-2017

Re: petalinux 2016.4 installation fail

Jump to solution

Hello, For me the following trick helped.
See the problem is that you cannot install SDK as root user or sudo....  So somehow you need the way to install it as a normal user...
So i will recommend you to start fresh remove all previously made directory and strictly follow the commands on user guide UG1144 which is petalinux 2017 guide.
So now make sure that your opt is accessible to normal user so put the following command
sudo chmod 777 /opt

And also your home is accessible so
sudo chmod 777 /home

Note.... Do not change the terminal while writing all these commands...

Now just mkdir without sudo as mentioned in guide UG1144
mkdir -p /opt/pkg/petalinux

 

Now run the peatalinux executable as mentioned in user guide AGAIN NOT SUDO

Explorer
Explorer
8,246 Views
Registered: ‎03-09-2017

Re: petalinux 2016.4 installation fail

Jump to solution

cd /my/download-folder, chmod +x petalinux-v2017.1-finalinstaller.run  and

 

sudo ./petalinux-v2015.4-final-installer-dec.run /opt/PetaLinux.

 

The install is failing at the final step saying it can't be installed in a root directory and a list of errors like in the above posts, so

I want to run it in the home directory and used the following commands

 

cd /my/download-folder,chmod +x petalinux-v2017.1-finalinstaller.run and

 

petalinux-v2017.1-final-installer.run /home/my/Petalinux

 

but an error command not found is displayed.

 

It would be nice if i get to know the commands to be followed to run it in my home directory.

0 Kudos
Explorer
Explorer
8,233 Views
Registered: ‎03-09-2017

Re: petalinux 2016.4 installation fail

Jump to solution
These are my commands and i have my petalinux downloads in the downloads folder

my-Ubuntu:~/Downloads$ sudo chmod 777 /opt
my-Ubuntu:~/Downloads$ sudo chmod 777 /home

my-Ubuntu:~/Downloads$ mkdir -p /opt/pkg/petalinux
my-Ubuntu:~/Downloads$ ./petalinux-v2017.1-final-installer.run /opt/pkg/petalinux

But permissions denied is being displayed.
Visitor akkudub
Visitor
8,201 Views
Registered: ‎06-07-2017

Re: petalinux 2016.4 installation fail

Jump to solution

On a shared server, giving users access to the entire /opt can be less than ideal, so I did this and it worked:

 

 

cd /opt
sudo mkdir -p pkg/petalinux
sudo chown -R [OWNER]:[GROUP] pkg
./petalinux-v2017.1-final-installer.run /opt/pkg/petalinux

Replace the [OWNER]  and [GROUP] with your own username and group.

 

Hope this helps! I really wish they'd include something like this in the documentation. Or at least do some permission checks BEFORE they do the time consuming extraction and checksum so we don't have to wait freaking 15 minutes before we try again.

 

Participant diegosantibanez
Participant
7,491 Views
Registered: ‎07-25-2017

Re: petalinux 2016.4 installation fail

Jump to solution

I had problems installing petalinux 2017.2 into opt/pkg/petalinux.

 

The only thing that finally worked for me was:

 

sudo mkdir -p opt/pkg/petalinux

sudo chmod 777 opt/pkg/petalinux

./petalinux-v2017.2-final-installer.run opt/pkg/petalinux

 

 

 

Diego.

0 Kudos
Xilinx Employee
Xilinx Employee
4,489 Views
Registered: ‎09-11-2014

Re: petalinux 2016.4 installation fail

Jump to solution

Hitting the same exact problem with 2017.2 ... this is really an issue with the installation system, and how permissions are set.

 

My home directory is a network drive, and I don't want to install the tool on a remote drive... that makes it incredibly slow.

 

I wish I could: sudo apt-get install petalinux

 

Here is how I am getting this to work in Ubuntu 16.04:

 

 

sudo mkdir  /opt/pkg

sudo mkdir  /opt/pkg/petalinux-v2017.2

sudo chown <username> /opt/pkg/petalinux-v2017.2

 

Copy the *.run installer to /opt/pkg/petalinux-v2017.2/

cd /opt/pkg/petalinux-v2017.2/

./petalinux-v2017.2-final-installer.run

 

It won't work if you run with sudo.. it will fail at the Yocto stage.

 

This can be hard even if you work at Xilinx... :-)