cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
2,191 Views
Registered: ‎09-01-2017

install petaLinux 2017.2 failed !

when I execute "./petalinux-v2017.2-final-installer.run " , it showed "bash: ./petalinux-v2017.2-final-installer.run: cannot execute binary file: Executable file format error "

my PC 64-bit Ubuntu 16.04,   it can successfully support petaLinux 2017.1 ,why petaLinux 2017.2?

0 Kudos
Reply
12 Replies
Highlighted
Visitor
Visitor
2,176 Views
Registered: ‎09-01-2017

I have  solved this problem just by adding sudo

please change the petaLinux tutorial document

0 Kudos
Reply
Highlighted
Moderator
Moderator
2,174 Views
Registered: ‎11-09-2015

Hi @luo_zhaohui,

 

It is already in the documentation (UG1144)...

 

UG1144.PNG


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Highlighted
Visitor
Visitor
2,170 Views
Registered: ‎09-01-2017

it still failed

"  1: ./petalinux-v2017.2-final-installer.run: Syntax error: "&" unexpected "

this "2017.2.run" file is not a shell file , it seems that it the 64-bit Ubuntu 16.04 OS can not support it

 

0 Kudos
Reply
Highlighted
Moderator
Moderator
2,161 Views
Registered: ‎11-09-2015

Hi @luo_zhaohui,

 

Still from UG1144:

PetaLinux tools require your host system "/bin/sh" is bash. If you are using Ubuntu distribution and your "/bin/sh" is dash, you can consult your system administrator to change your default with sudo dpkg-reconfigure dash command.

 

Did you do that?

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Highlighted
Visitor
Visitor
2,152 Views
Registered: ‎09-01-2017

I am sure taht the host system "/bin/sh" is bash. it still failed

I can not find any solution to this , please help me!

the Log:

"luo@luo-B85M-D3H:/media/luo/storage/Ubuntu_Desktop_Release_2017_1$ ls -al /bin/sh
lrwxrwxrwx 1 root root 4 9月 1 17:11 /bin/sh -> bash
luo@luo-B85M-D3H:/media/luo/storage/Ubuntu_Desktop_Release_2017_1$ ./petalinux-v2017.2-final-installer.run
bash: ./petalinux-v2017.2-final-installer.run: cannot execute binary file: Executable file format error"

0 Kudos
Reply
Highlighted
Moderator
Moderator
2,141 Views
Registered: ‎11-09-2015

Hi @luo_zhaohui

 

Could you try to run it using sudo?

 

Kind Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Highlighted
Visitor
Visitor
2,130 Views
Registered: ‎09-01-2017

sudo also failed
0 Kudos
Reply
Highlighted
Moderator
Moderator
2,107 Views
Registered: ‎11-09-2015

With the same error?

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Highlighted
Visitor
Visitor
2,096 Views
Registered: ‎09-01-2017

yes, sudo can not solve it

do I need to compile the source code?

I saw the source code download link in the web, PetaLinux 2017.2 Open Component

but is there any tutorial about how to compile petalinux  source code?

I can not find it in UG1144

 

0 Kudos
Reply
Highlighted
Moderator
Moderator
1,269 Views
Registered: ‎11-09-2015

Hi @luo_zhaohui,

 

No you shouldn't need to compile the sources.

 

You should just have to run the petalinux installer:

$ mkdir -p /opt/pkg/petalinux
$ ./petalinux-v2017.1-final-installer.run /opt/pkg/petalinux

 

Please make sure you are using sudo and not root user.

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Highlighted
Visitor
Visitor
1,265 Views
Registered: ‎09-01-2017

I followed it,

while the petalinux2017.2 installer can not  execute!

"bash: ./petalinux-v2017.2-final-installer.run: cannot execute binary file: Executable file format error"

0 Kudos
Reply
Highlighted
Visitor
Visitor
1,125 Views
Registered: ‎09-28-2017

I am having difficulties as well. In my case the file 

petalinux-v2017.1-final-installer.run

does not exist.

The download is confusing. I downloaded it twice and got filenames of 59CC69B4 and 59CD5463. No tar.gz or any kind of extension. Luckily 7Zip figured it out and I unzipped it to a tar, but the installer.run file is not present.

Does "installation" just consist of unpacking this archive? Could you please update your documentation?

 

0 Kudos
Reply