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: 
Highlighted
Explorer
Explorer
4,373 Views
Registered: ‎04-18-2017

Petalinux install - permission denied petalinux-env-check in /tmp

Jump to solution

Hello,

 

I am trying to install the latest version of petalinux on ubuntu 16.04 but I am facing problems when installing with the following command:

 

ariel@ariel-PC:~/Downloads$ ./petalinux-v2017.4-final-installer.run /home/ariel/Petalinux/

And these are the issues:

 

INFO: Checking installation environment requirements...
./petalinux-v2017.4-final-installer.run: line 183: /tmp/tmp.1V0IDGq0Q6/./tools/common/petalinux/utils/petalinux-env-check: Permission denied
WARNING: Please install required packages.

I have the ownership of tmp:

ariel@ariel-PC:~/Downloads$ ls -ld /tmp/
drwxrwxrwx 15 root ariel 560 Mar 15 10:22 /tmp/

And I have installed the required packages according to the user guide UG1144

 

sudo apt-get install python3 tofrodos iproute gawk xvfb gcc git make net-tools libncurses5-dev tftpd zlib1g-dev zlib1g:i386 libssl-dev flex bison libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential libsdl1.2-dev libglib2.0-dev screen pax gzip 

Should I change permissions for some other folder?

Thanks for the help.

0 Kudos
1 Solution

Accepted Solutions
Explorer
Explorer
4,641 Views
Registered: ‎04-18-2017

Re: Petalinux install - permission denied petalinux-env-check in /tmp

Jump to solution

I found the issue. I have /tmp mounted on RAM, by changing /etc/fstab adding the following line:

 

tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=5G 0 0

I commented it, installed petalinux and uncommented it and now petalinux is installed.

0 Kudos
11 Replies
Scholar watari
Scholar
4,362 Views
Registered: ‎06-16-2013

Re: Petalinux install - permission denied petalinux-env-check in /tmp

Jump to solution

Hi @aripod

 

Could you use the following command ?

I resolved petalinux install issue with this command.

 

% bash ./petalinux-v2017.4-final-installer.run /home/ariel/Petalinux

 

Best regards,

0 Kudos
Explorer
Explorer
4,344 Views
Registered: ‎04-18-2017

Re: Petalinux install - permission denied petalinux-env-check in /tmp

Jump to solution

Hello @watari,

 

The issue remains:

 

ariel@ariel-PC:~/Downloads$ bash ./petalinux-v2017.4-final-installer.run /home/ariel/Petalinux/
INFO: Checking installer checksum...
INFO: Extracting PetaLinux installer...

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...
./petalinux-v2017.4-final-installer.run: line 183: /tmp/tmp.U8HAxFVIAT/./tools/common/petalinux/utils/petalinux-env-check: Permission denied
WARNING: Please install required packages.

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/ariel/Downloads/petalinux_installation_log

Thanks for the help.

0 Kudos
Scholar austin
Scholar
4,324 Views
Registered: ‎02-27-2008

Re: Petalinux install - permission denied petalinux-env-check in /tmp

Jump to solution

in bash:

 

mkdir plinux

sudo chmod 755 plinux
cd plinux
./petalinux-v2017.4-final-installer.run /home/austin/plinux

 

worked for me.  Then one has to resolve all dependencies ....

 

sudo apt-get install build-essential gcc-multilib gcc-4.8-multilib g++-multilib g++-4.8-multilib lib32z1 lib32ncurses5 lib32bz2-1.0 libc6-dev libgmp-dev libmpfr-dev libmpc-dev

 

sudo dpkg --add-architecture i386

 

sudo apt-get install -y python tofrodos iproute2 gawk xvfb gcc git make net-tools libncurses5-dev tftpd zlib1g-dev libssl-dev flex bison libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential libsdl1.2-dev libglib2.0-dev zlib1g:i386 screen pax

 

sudo apt-get dist-upgrade

 

 

 

 

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Explorer
Explorer
4,300 Views
Registered: ‎04-18-2017

Re: Petalinux install - permission denied petalinux-env-check in /tmp

Jump to solution

@austin,

 

The error is with

 

/home/ariel/Downloads/./petalinux-v2017.4-final-installer.run: line 183: /tmp/tmp.bpdO5iBHk0/./tools/common/petalinux/utils/petalinux-env-check: Permission denied

Which is strange because I can create folders and files in /tmp.

 

ariel@ariel-PC:~/Petalinux$ ls -ld /tmp/
drwxrwxrwt 14 root ariel 360 Mar 16 08:38 /tmp/

Is it possible to change so it uses as temporary directory ~/Petalinux/tmp for example?

 

Thanks for the help.

0 Kudos
Scholar austin
Scholar
4,284 Views
Registered: ‎02-27-2008

Re: Petalinux install - permission denied petalinux-env-check in /tmp

Jump to solution

I advise you to use a directory,

 

under your username, like I did. (/home/austin/plinux as noted)

 

Did not have any luck at all (just did not work) for me to put the directory under the root (for me).

 

 

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Explorer
Explorer
4,279 Views
Registered: ‎04-18-2017

Re: Petalinux install - permission denied petalinux-env-check in /tmp

Jump to solution

@austin,

 

I am using a directory in my home to install :

 

./petalinux-v2017.4-final-installer.run /home/ariel/Petalinux

But the installation is using /tmp to extract the files I believe. That is the issue but I cannot understand why I can create files and foldes in /tmp but not the petalinux installer.

0 Kudos
Explorer
Explorer
4,239 Views
Registered: ‎04-18-2017

Re: Petalinux install - permission denied petalinux-env-check in /tmp

Jump to solution

@austin, I have just followed yours steps again to update all the dependencies, I copied the .run file to a folder in my home but I still have the error with /tmp.

 

What should be the permission for the script? I set it to 755:

 

sudo chmod 755 petalinux-v2017.4-final-installer.run 
0 Kudos
Scholar austin
Scholar
4,229 Views
Registered: ‎02-27-2008

Re: Petalinux install - permission denied petalinux-env-check in /tmp

Jump to solution

chmod applies to the directory, not the command,

 

do not use sudo to execute the install

 

....

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Explorer
Explorer
4,224 Views
Registered: ‎04-18-2017

Re: Petalinux install - permission denied petalinux-env-check in /tmp

Jump to solution
Yes of course it does not apply for the command....I am not going to launch the script with chmod.... I meant for the folder in my home to install petalinux......775 I believe? or 777. Regardless, none of them solve the issue as the script creates a folder in /tmp called /tmp/tmp.random_string which is where it is giving the permission denied error.....which is the root of the problem. That is why I asked if there is a way to change that temporary folder to use the same one where I want to install petalinux (in my home) to avoid any permission errors.
0 Kudos
Explorer
Explorer
3,403 Views
Registered: ‎04-18-2017

Re: Petalinux install - permission denied petalinux-env-check in /tmp

Jump to solution

@austin,

 

I changed:

 

ariel@ariel-PC:~/Downloads$ sudo chmod 755 /home/ariel/petalinux/
ariel@ariel-PC:~/Downloads$ sudo chmod +x /home/ariel/Downloads/petalinux-v2017.4-final-installer.run 
ariel@ariel-PC:~/Downloads$ sudo chmod 1777 /tmp

And then:

ariel@ariel-PC:~/Downloads$ ./petalinux-v2017.4-final-installer.run /home/ariel/petalinux/

So just to be 100% sure all permissions are correctly. Still, I get the same issue with /tmp

 

./petalinux-v2017.4-final-installer.run: line 183: /tmp/tmp.dPB3hFJiuy/./tools/common/petalinux/utils/petalinux-env-check: Permission denied
0 Kudos
Explorer
Explorer
4,642 Views
Registered: ‎04-18-2017

Re: Petalinux install - permission denied petalinux-env-check in /tmp

Jump to solution

I found the issue. I have /tmp mounted on RAM, by changing /etc/fstab adding the following line:

 

tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=5G 0 0

I commented it, installed petalinux and uncommented it and now petalinux is installed.

0 Kudos