ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Cross Compiling Problems TS-7390

To:
Subject: Re: [ts-7000] Re: Cross Compiling Problems TS-7390
From: Donal <>
Date: Fri, 23 Jan 2009 20:46:11 +0000
I've attempted to build the oabi verison of helloworld but got a linker

ld: cannot find -lgcc_s

I linked it statically think with -static linker flag and it compiled.
Running it on the board however resulted in simply a "Killed" message.

Can eabi compiled code not work with oabi or what is the problem you think?

Is it the way Debian was compiled on my board? - This is becoming a nightmare for me!

When I ran my board in fastmode (off the flash), the normal helloworld binary executable resulted in 'Illegal Instruction'
but however when I run it off Linux on the sd card it get 'Segmentation Error'

This isn't making much sense to me at all

Any suggestions would be appreciated.

Thanks.

Donal

On Fri, Jan 23, 2009 at 6:28 PM, kenwmetzler <> wrote:

I had this same problem on a 7350. I believe the issue was that I
needed to use the helloworld-oabi version of the helloworld program.

Ken



--- In ts-7000%40yahoogroups.com, "wap_surfer" <> wrote:
>
> Hi,
>
> I am having no luck what so ever with cross compiling.
> First of all I've tried using the windows eclipse IDE + compiler
that
> comes on the SD card I got with the development kit.
> I successfully compiled the simple helloworld project. I copied the
> ARM binary produced to my board using ftp and done following:
>
> ts7000:~# chmod 755 helloworld
> ts7000:~# ./helloworld
> Illegal instruction
> ts7000:~#
>
> I'm guessing that its getting compiled to code for a slightly
> different CPU that has different instruction set.
>
> I know the CPU in the TS-7390 is a Cirrus EP9302 so I downloaded a
> ready made binary tool [arm-ep9312-linux-gnueabi] chain from
> http://freaknet.org/martin/crosstool/packages/
> I succesfully installed this with dpkg -i .....
>
> I then compiled my program statically:
>
> $ arm-ep9312-linux-gnueabi-gcc helloworld.c -o helloworld.out -
static
>
> This resulted in illegal instruction
>
> I tried another tool chain off here:
> ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7350-linux/cross-
toolchains/crosstool-linux-gnueabi-2005q3-2.tar.gz
>
> Untarred it and set the path to the bin folder and compiled similar
to
> above and got "Segmentation Fault".
>
> In all cases i tried the "-march=armv4t" option as well and had no
> luck that way either.
>
> I'm at a total loss, I need to get QT/E on the board and start
> compiling programs ASAP but this is really blocking me.
>
>
> I've searched past posts and havnt found anything that solved my
problem.
>
> Anyone got any suggestions?
>
> Thanks,
> Donal
>


__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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