Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
yaoxiaojun
Posts: 16
Registered: ‎05-13-2012
0

Could the hello_world_0.elf run on linux?(zc702)

I've put the hello_world_0.elf on linux by ftp.

print info bellow

zynq> ./hello_world.elf
Illegal instruction

 

How do i run a pro on linux?

 

Xilinx Employee
tingk
Posts: 4
Registered: ‎05-24-2012
0

Re: Could the hello_world_0.elf run on linux?(zc702)

Hi,

I am not quite sure what design you are running.  But please take a look UG873 and follows the steps in there for hello world.

 

-- Ting

Visitor
yaoxiaojun
Posts: 16
Registered: ‎05-13-2012
0

Re: Could the hello_world_0.elf run on linux?(zc702)

I have tried running a linux apllication on zc702 followed UG821.

 

So the hello_world_0.elf is generated and i put it to linux file system.

 

The hello_world_0.elf is located on liunx root  catalog.

 

zynq> chmod 777 ./hello_world.elf
zynq> ./hello_world.elf
Illegal instruction

 


 

 

Visitor
yaoxiaojun
Posts: 16
Registered: ‎05-13-2012
0

Re: Could the hello_world_0.elf run on linux?(zc702)

That is OK!

 

Linux Application development in sdk should invoked by the new project(not xilinx c project)wizard and seclect the project type as "Xilinx ARM Linux Executable".

 

Then the project set the toolchains to "Xilinx ARM GNU/Linux Toolchain" as default.