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.
>
> 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?
No, sorry, its for an ARM target, and so can only be
run on the target. Actually, it can be run on the host
in an emulator. I think gdb has an ARM emulator target,
but I haven't used it.
> And if I should be able to, why am I getting these errors?
If the command 'file' doesn't work, then you're just missing
it from your Cygwin install. Run the setup tool again, and
click on the right-top display style button until you get
a detailed listing of all the packages. The 'file' program
is in the file package (I'm pretty sure anyway).
Now when you run file on your hello world, it'll tell you
its an ARM executable.
If you are doing embedded development, I'd recommend using
Linux directly, or use coLinux under Windows. Go and buy
the latest edition of Circuit Cellar (April 2008), and there
is an article telling you how to set coLinux up.
Cheers,
Dave
------------------------------------
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/
|