[ELDK] Problem running application

Karsten Becker denx at karsten-becker.de
Wed May 19 15:49:31 CEST 2010


Hi there,
I want to run a simple application on my Virtex4FX powerpc405. Linux is booting up fine and everything works as expected, except for actually running self build applications. 
Test.c:
#include <stdio.h>

int main(){
  printf("Hello world");
  return 0;
}

compile.sh:
#!/bin/bash
export ARCH=ppc
export CROSS_COMPILE=ppc_4xx-
export DEPMOD=/opt/ELDK/4.2/usr/bin/depmod.pl
powerpc-linux-gcc test.c -o test.elf

md5sum test.elf 
9af4ccac31b0afbe8a272db452da42bf  test.elf

And on the target I run:
root:/tmp> tftp -g -r test.elf 192.168.23.22
root:/tmp> md5sum test.elf 
9af4ccac31b0afbe8a272db452da42bf  test.elf
root:/tmp> chmod +x test.elf 
root:/tmp> ./test.elf 
./test.elf: not found
root:/tmp> ls -al
drwxr-xr-x    2 1543     1543         1024 Jan  1 00:42 .
drwxr-xr-x   13 root     root         1024 Jan  1 00:41 ..
-rwxr-xr-x    1 root     root         9279 Jan  1 00:42 test.elf


What am I missing?

Thanks in advance,
Karsten



More information about the eldk mailing list