cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
2,920 Views
Registered: ‎08-01-2017

Linux application not running on Target device ( zc702 ) giving error no such file and directory

Jump to solution

I followed all the instructions of ug1165 to run the linux application (LED blinking with IP) on my zynq 702 board, I copied all elf files to Apps folder and changed the permission too but still I am unable to get the output, I can't figure out where I made the mistake.

 

Please provide me some helpful resource and guidance.

I attached screen shot of error I'm getting.

linux_app_error_sc.png
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Observer
Observer
4,863 Views
Registered: ‎08-01-2017

Choose "Xilinx ARM v7 GNU/Linux Toolchain" as the current toolchain in C/C++ Build > Tool Chain Editor under project properties in SDK. It will be Xilinx ARM GNU/Linux Toolchain by default. Build the project again, copy the binaries and try again.

View solution in original post

4 Replies
Highlighted
Observer
Observer
2,918 Views
Registered: ‎07-27-2017

i am also facing same problem  

0 Kudos
Highlighted
Explorer
Explorer
2,908 Views
Registered: ‎04-05-2016

what does the readelf command produce?  It should look like the below.  It's possible you are not targeting the correct cross compiler.

# readelf -h linux_blinkled_app.elf

ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           ARM
  Version:                           0x1
  Entry point address:               0x833c
  Start of program headers:          52 (bytes into file)
  Start of section headers:          4536 (bytes into file)
  Flags:                             0x5000202, has entry point, Version5 EABI, soft-float ABI
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         9
  Size of section headers:           40 (bytes)
  Number of section headers:         30
  Section header string table index: 27
0 Kudos
Highlighted
Observer
Observer
4,864 Views
Registered: ‎08-01-2017

Choose "Xilinx ARM v7 GNU/Linux Toolchain" as the current toolchain in C/C++ Build > Tool Chain Editor under project properties in SDK. It will be Xilinx ARM GNU/Linux Toolchain by default. Build the project again, copy the binaries and try again.

View solution in original post

Highlighted
Adventurer
Adventurer
2,847 Views
Registered: ‎08-01-2017
Thanks! It worked but in my case I had to change "Xilinx ARM v7 GNU/Linux Toolchain" (default) to Xilinx ARM GNU/Linux . : )
0 Kudos