ts-7000
[Top] [All Lists]

Re: [ts-7000] Problem Using Cygwin as a Crosstool Chain

To:
Subject: Re: [ts-7000] Problem Using Cygwin as a Crosstool Chain
From: David Hawkins <>
Date: Mon, 21 Apr 2008 13:22:42 -0700
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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU