cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
3,725 Views
Registered: ‎06-18-2019

Petalinux installation error on ubuntu VM

Jump to solution

I am trying to install petalinux installer petalinux-v2019.1-final-installer.run on an ubuntu Virtual Machine as a normal user (not root). I have downloaded the pre-required packages metioned in UG1144 (v2019.1) (Petalinux installation guide).

However I still get this error below:

 

INFO: Checking installation environment requirements...
awk: read error (Bad address)

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/aj/Desktop/package/petalinux_installation_log

./petalinux-v2019.1-final-installer.run: line 140: /tmp/tmp.RyDQQuCamY/petalinux-env-check: No such file or directory
ERROR: Failed to extract Petalinux installer...

Could anyone help me to resolve this issue?

1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
3,698 Views
Registered: ‎04-24-2017

Hi @anjuman_degirum,

These errors are due to missing gawk packages on Ubuntu. We already have a CR to fix the missing information in 2019.1 UG1144 page 11(Quick Installation of Packages section)

Here is the right packages you need to install.

$ sudo apt-get install -y python gawk gcc git make net-tools libncurses5-dev tftpd 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

Are you using Ubuntu-18.04 or 16.04?

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

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

View solution in original post

5 Replies
Highlighted
Moderator
Moderator
3,699 Views
Registered: ‎04-24-2017

Hi @anjuman_degirum,

These errors are due to missing gawk packages on Ubuntu. We already have a CR to fix the missing information in 2019.1 UG1144 page 11(Quick Installation of Packages section)

Here is the right packages you need to install.

$ sudo apt-get install -y python gawk gcc git make net-tools libncurses5-dev tftpd 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

Are you using Ubuntu-18.04 or 16.04?

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

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

View solution in original post

Highlighted
3,688 Views
Registered: ‎06-18-2019

Yes, it worked after attempting to install all packages in table 2 on UG1144 (v2019.1). Your command does the same I believe. 

0 Kudos
Highlighted
3,683 Views
Registered: ‎06-18-2019
I am using Ubuntu 19.04, will that be a problem in the future? It has install correctly I believe.
0 Kudos
Highlighted
Moderator
Moderator
3,671 Views
Registered: ‎04-24-2017

Hi @anjuman_degirum ,

Yes Ubuntu-19.04 is problem for longterm as PetaLinux is generated using Yocto eSDK. Yocto community supports only 18.04 https://www.yoctoproject.org/docs/2.6.1/ref-manual/ref-manual.html#detailed-supported-distros and usually its only Ubuntu LTS versions are supported where 19.04 is not LTS.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
Highlighted
15 Views
Registered: ‎10-31-2018

Hi,

I am trying to install the petalinux-v2020.1 but i am encountering with permission denied error and missing  file error(line 179: /tmp/tmp.cNedMM3kfd/petalinux-env-check: No such file or directory)

I tried the commands which you explained here and i gave executable access to petalinux*.run and the folder where i am trying to install.

Here is the error log which i ma getting with different commands.

Can you please help me here to install petalinux. I am using Virtual box with ubuntu18.04.

 

praveen@praveen-VirtualBox:~/praveen/petalinux$ ./petalinux-v2020.1-final-installer.run --dir ./PLinux_Installation/ --platform "arm aarch64"
./petalinux-v2020.1-final-installer.run: line 92: /home/praveen/praveen/petalinux/petalinux_installation_log: Permission denied
tee: /home/praveen/praveen/petalinux/petalinux_installation_log: Permission denied
INFO: Checking installation environment requirements...

tee: /home/praveen/praveen/petalinux/petalinux_installation_log: Permission denied
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/praveen/praveen/petalinux/petalinux_installation_log

./petalinux-v2020.1-final-installer.run: line 179: /tmp/tmp.cNedMM3kfd/petalinux-env-check: No such file or directory
tee: /home/praveen/praveen/petalinux/petalinux_installation_log: Permission denied
ERROR: Failed to extract Petalinux installer...

 

 

praveen@praveen-VirtualBox:~/praveen/petalinux$ ./petalinux-v2020.1-final-installer.run ./PLinux_Installation/
./petalinux-v2020.1-final-installer.run: line 92: /home/praveen/praveen/petalinux/petalinux_installation_log: Permission denied
tee: /home/praveen/praveen/petalinux/petalinux_installation_log: Permission denied
ERROR: Invalid options: ./PLinux_Installation/
PetaLinux installer.

Usage:
petalinux-v2020.1-final-installer.run [--log <LOGFILE>] [-d|--dir <INSTALL_DIR>] [options]

Options:
--log <LOGFILE> specify where the logfile should be created.
it will be petalinux_installation_log
in your working directory by default.
-d|--dir [INSTALL_DIR] specify the directory where you want to
install the tool kit. If not specified,
it will install to your working directory.
-p|--platform <arch_name> specify the architecture name.
aarch64 : sources for zynqMP and versal
arm : sources for zynq
microblaze_lite : sources for microblaze_lite
microblaze_full : sources for microblaze_full

EXAMPLES:

Install the tool in specified location:
$ ./petalinux-v2020.1-final-installer.run -d/--dir <INSTALL_DIR>

To get only desired sources:
$ ./petalinux-v2020.1-final-installer.run --dir <INSTALL_DIR>
This will install the sources for all(zynq,zynqMP,versal,microblaze_lite,microblaze_full).

$ ./petalinux-v2020.1-final-installer.run --dir <INSTALL_DIR> --platform "arm"
This will install the sources for zynq only.

$ ./petalinux-v2020.1-final-installer.run --dir <INSTALL_DIR> --platform "arm aarch64"
This will install the sources for zynq,zynqMP and versal.

$ ./petalinux-v2020.1-final-installer.run --dir <INSTALL_DIR> --platform "microblaze_lite microblaze_full"
This will install the sources for microblaze_lite


tee: /home/praveen/praveen/petalinux/petalinux_installation_log: Permission denied
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/praveen/praveen/petalinux/petalinux_installation_log

 

 

0 Kudos