[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Downloading the executable into ETRAX-100



Hi

It looks like I didn't put in my question properly

I ftp'd my executeable into the board. The 'ls' command shows the following
result.

-rwxr-xr-x  1 root     root         2412  Jan 01 00:09 hello

"hello" is the executeable. So when I try to run the executeable it gives me
an error as

48#
48# hello
hello: no such file or directory

48# ./hello
./hello: no such file or directory
48#
48# pwd
/mnt/flash
48#
48# /mnt/flash/hello
/mnt/flash/hello: no such file or directory
48#

I have followed all the steps mentioned in the website
 http://developer.axis.com/doc/software/apps/apps_linux-howto.html

All the steps worked fine without any errors.

Can anyone help me figure out what is going wrong ???

Cheers
Vilas Uchil


-----Original Message-----
From: owner-dev-etrax@xxxxxxx.com]On">mailto:owner-dev-etrax@xxxxxxx.com]On
Behalf Of Hans-Peter Nilsson
Sent: Tuesday, September 25, 2001 1:46 AM
To: vilas@xxxxxxx.edu
Cc: dev-etrax@xxxxxxx.com
Subject: Re: Downloading the executable into ETRAX-100


> From: "Vilas Uchil" <vilas@xxxxxxx.edu>
> Date: Tue, 25 Sep 2001 00:31:29 -0500

> I compiled the executeable as mentioned in the web page and did an FTP
> into the board.
> When I run the executeable on the board...it does not work
> It gives File not found error.
> Can anyone give me some help as to where I am going wrong...

Did you "chmod +x the_program" after downloading it?
Is the location of the program in PATH?

Do you use DNS calls from your program (gethostbyname etc.)?
If so, apply the following patch in the "devboard_lx" directory:

--- Makefile	2001/07/02 10:28:02	1.51
+++ Makefile	2001/08/24 15:11:00	1.52
@xxxxxxx.img:	$(shell find $(prefix) -type
 			     "files #####" ; \
  			DSOs=`find-needed-shlibs.pl $(prefix)`; \
  			test -z "$$DSOs" \
- 			  || DSOs="$$DSOs libnss_dns.so.2 libnss_files.so.2"; \
+ 			  || DSOs="$$DSOs libnss_dns.so.2 libnss_files.so.2 libresolv.so.2"; \
  			for DSO in $$DSOs; do \
  				strip-cris $(prefix)/lib/$$DSO || exit 1; \
  				grep '^Include: '$$DSO'$$' \


brgds, H-P