--- In "mugilan" <> wrote:
>
> Hi,
>
> I wanted to use Cygwin as a crosstool chain. I pretty much followed
> through the procedures in the "Linux For ARM On TS-72XX" page 34-35.
> After extracting the tar file and compiling the helloworld.c program
> using the arm-unknownlinux-gnu-gcc.exe, I tried to run the "hello"
> binary file within the cygwin environment itself.
Code targeting ARM Cross-compiled within Cygwin will not run within
Cygwin. You need to get the executable onto the TS-xxxx board. There
are several ways to do this: serial transfers, ftp, moving physical
media (like CF or SD cards).
>
> First of all, when I run the "file hello" command, it gave me the
> error "bash: file: command not found". Skipping that, I tried to run
> buy using "./hello" but I was given the error "./hello: ./hello:
> cannot execute binary file".
>
> My questions are:
>
> Can I run the binary file in the Cygwin window?
Yes, but not one that is cross-compiled for an ARM target. Only
binaries for your Cygwin host will run i.e. x86 with a Microsoft
Windows OS compatibility wrapper or native Microsoft Windows applications.
>
> And if I should be able to, why am I getting these errors?
1) "file" isn't installed into your Cygwin - I checked my Cygwin and
it wasn't found there either. Search through Cygwin's installer to
find it.
2) Your ./hello is an ARM executable so the Cygwin loader recognizes
it early enough as non-executable for the Cygwin environment.
>
> Thank you in advance.
>
Your welcome,
----
Andy
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|