Simple Linux Hello word exe is NOT executing on mini2440 3.5

Post Reply
khire_s
Posts: 12
Joined: Wed Sep 23, 2009 9:52 pm
Location: Pune
Contact:

Simple Linux Hello word exe is NOT executing on mini2440 3.5

Post by khire_s » Sun Sep 27, 2009 7:11 am

Hello,

I am using mini2440 board, with 3.5 inch Touch Pannel.
I have loaded following images
supervivi_mini2440
zImage_n35
root_qutopia_tp.img
With This board is booting up and working fine.

Now I have setup my development PC with Fedora Core 10 Linux distribution.

I have installed arm-linux-gcc 4.3.2

I have written a simple Hello word program, which just prints on debug console.
I have build it using arm-linux-gcc 4.3.2: hello.bin

Using file command I verified that its a :- ELF 32 Bit LSB Executable, ARM, version 1 (SYSV) dynamically linked (user shared libs), for GNU/Linux 2.6.14

I have given correct permissions to the hello.bin

Using Serial , Hyperterminal using Transfer file ZModem option , I transfered this file to mini2440 board at /usr/sbin

BUT, When I try to execute this hello.bin on the board I get following error
//////
[root@FriendlyARM /]# ./usr/sbin/hello.bin
-sh: ./usr/sbin/hello.bin: not found
[root@FriendlyARM /]#
//////

I tried to execute it through script file. Tried arm-linux-strip and tried but always the same error.

If I create a script file which just echo some text to terminal, Then this scrip executes file on the board.

Please let me know and without this step I Can't conclude my Development environment is OK for further developments on the mini2440 board.

With Regards,

Satish

nicolas
Posts: 162
Joined: Sun Jun 07, 2009 4:32 pm

Re: Simple Linux Hello word exe is NOT executing on mini2440 3.5

Post by nicolas » Sun Sep 27, 2009 12:45 pm

Can you list the folder your trying run the .bin from ?
Also, have you checked it has execute permission ?

khire_s
Posts: 12
Joined: Wed Sep 23, 2009 9:52 pm
Location: Pune
Contact:

Re: Simple Linux Hello word exe is NOT executing on mini2440 3.5

Post by khire_s » Mon Sep 28, 2009 11:43 pm

Hi,
I am trying to execute it from /usr/sbin
Yes I have checked all owner , group and other permissions , everything is fine.

Same is the case if I build say dirview.bin file from Qt-embedded 4.5

I could find following possibilities:-
1. Is there something to do with cross compiler arm-linux-gcc 4.3.2 ?
2. If my board is using Qutopia 1.7 and If I download Qt App using Qt embedded (latest) 4.5 will it execute on
my board?
3. Using file command I verified that its a :- ELF 32 Bit LSB Executable, ARM, version 1 (SYSV) dynamically
linked (user shared libs), for GNU/Linux 2.6.14
Any idea what is (SYSV) mean in above?

With Regards,

Satish K

khire_s
Posts: 12
Joined: Wed Sep 23, 2009 9:52 pm
Location: Pune
Contact:

Re: Simple Linux Hello word exe is NOT executing on mini2440 3.5

Post by khire_s » Wed Sep 30, 2009 10:08 am

Hello,

Here is listing of /usr/sbin on my target (mini2440) board
> [root@FriendlyARM sbin]# ls -al
> drwxr-xr-x 1 root root 512 Aug 23 2006 .
> drwxr-xr-x 1 root root 512 Jun 24 2008 ..
> lrwxrwxrwx 1 root root 17 Aug 28 2008 chroot -> ../../bin/busybox
> lrwxrwxrwx 1 root root 17 Aug 28 2008 crond -> ../../bin/busybox
> -rwxr-xr-x 1 root root 5088 Sep 27 16:32 dirview.bin
> -rwxr-xr-x 1 root root 145 Sep 27 19:10 dirview.sh
> -rwxr-xr-x 1 root root 5088 Sep 27 18:38 dirview2.bin
> lrwxrwxrwx 1 root root 17 Aug 28 2008 dnsd -> ../../bin/busybox
> lrwxrwxrwx 1 root root 17 Aug 28 2008 fakeidentd -> ../../bin/busybox
> lrwxrwxrwx 1 root root 17 Aug 28 2008 fbset -> ../../bin/busybox
> -rwxr-xr-x 1 root root 5061 Sep 27 19:07 hello.bin
> -rwxr-xr-x 1 root root 7983 Sep 28 03:09 hello_le.bin
> -rwxr-xr-x 1 root root 3100 Sep 28 03:09 hello_le_strp.bin
> -rwxr-xr-x 1 root root 2772 Sep 28 04:01 hello_n_le.bin
> -rwxr-xr-x 1 root root 50984 Aug 21 2006 in.ftpd
> -rwxr-xr-x 1 root root 36136 Aug 21 2006 in.telnetd
> lrwxrwxrwx 1 root root 17 Aug 28 2008 inetd -> ../../bin/busybox
> -rwxrwxr-x 1 root root 35327 Sep 30 22:26 qtopiatest1
> lrwxrwxrwx 1 root root 17 Aug 28 2008 rdate -> ../../bin/busybox
> lrwxrwxrwx 1 root root 17 Aug 28 2008 readprofile -> ../../bin/busybox
> lrwxrwxrwx 1 root root 17 Aug 28 2008 setlogcons -> ../../bin/busybox
> -rwxr-xr-x 1 root root 4696 Aug 21 2006 tcpd
> lrwxrwxrwx 1 root root 17 Aug 28 2008 telnetd -> ../../bin/busybox
> lrwxrwxrwx 1 root root 17 Aug 28 2008 udhcpd -> ../../bin/busybox
> [root@FriendlyARM sbin]#
>

Please help.

nicolas
Posts: 162
Joined: Sun Jun 07, 2009 4:32 pm

Re: Simple Linux Hello word exe is NOT executing on mini2440 3.5

Post by nicolas » Wed Sep 30, 2009 10:14 am

Very strange. Its an extremely simply file, there is no reason it should be giving you a not found error.
Any other error, fine, but not not found.

Im sorry I dont know what to tell you.

ppppp
Posts: 7
Joined: Thu Apr 02, 2009 9:24 am

Re: Simple Linux Hello word exe is NOT executing on mini2440 3.5

Post by ppppp » Thu Oct 01, 2009 5:13 pm

Did u use -march=armv4t -mtune=arm920t for compilation of your file?

Delavar
Posts: 36
Joined: Mon Dec 22, 2008 12:03 pm
Contact:

Re: Simple Linux Hello word exe is NOT executing on mini2440 3.5

Post by Delavar » Fri Oct 02, 2009 1:22 am

May be you should type /usr/sbin/hello.bin and not ./usr/sbin/hello.bin
./ is current dir

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests