ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: programming tools for TS-Linux

To:
Subject: Re: [ts-7000] Re: programming tools for TS-Linux
From: Seano <>
Date: Wed, 16 May 2007 14:36:51 -0500
I'm using the 2.3.2 crosstool chain, and I checked on the target board - it has libc-2.3.2.so.

However, the Cygwin system does not have any libc files. Well, it has 'libc.a '.

The Ubuntu system I just created to try and see if that helps has libc-2.5.so.

So, does the Cygwin system need 2.3.2 in order for this to work, even though the compiler is correct for 2.3.2 and the target board is for 2.3.2? Seeing as the Cygwin doesn't even have that in the /lib, it doesn't seem like it would matter.

On 5/16/07, Jason Stahls <> wrote:

AFAIK, TS-Linux/Debian for the TS7xxx uses glibc 2.3.2, so compiling a dynamic linked app with 2.4.3 and trying to run it on a machine using 2.3.2 _should_ blow up and not run :)

Check your crosscompiller, there are two versions on TS's site, and make sure you get the one with the same version of glib as what you have.  To check glibc run 'ls /lib/libc*' you should find a file called libc-<version>.so

Jason



Seano wrote:
A bit of followup, not sure if it helps:

I have another hello world program that does run.

When I run 'file', I get the following:

'object.o: ELF 32-bit LSB relocatable, ARM, version 1, for GNU/Linux 2.4.3, dynamically linked (uses shared libs), not stripped'

So it looks like the differences are:
1. 'for GNU/Linux 2.4.3'
2. 'dynamically linked (uses shared libs)

I'm going to try and find out how to build the other file so it has the same 'file' output.

If I have an success (I haven't had much success at all getting this platform to do anything but 'hello world') I will post more.


On 5/16/07, Seano <> wrote:
I am having a similar problem. Well, the same problem. I was trying to use the gps_pps code from the files section of the site and get that error. However, I can see when I run 'make' that it is calling out to the proper cross compiler.

Further, I tried the 'file' command you just mentioned and I get the following output:

'object.o: ELF 32-bit LSB relocatable, ARM, version 1, not stripped'

So mine is for the ARM, but there must be something different about it.



On 5/16/07, Yan Seiner <> wrote:

--- In ts-7000%40yahoogroups.com, "hein_piet" wrote:
>
> I've troubles running applications on my TS-7400 board*. When I
> compile example code (hello world) on my Debian etch machine (gcc -o
> hello hello.c) I can run it with no troubles. Then I transfer the file
> via ftp to the TS board and change the permissions (chmod +x ./hello).
> But when I try to execute it, the TS board returns an error:
>
> ./hello: 1: Syntax error: "(" unexpected
>
> What can I do to solve this problem?
> Is it possible to install gcc under TS-Linux? (if so, how? apt-get is
> not part of the busybox..)
>
> *BTW: My board has no problem running the pre-compiled applications
> available on the embeddedarm server.
>

Your desktop is an x86 machine - basically an Intel Pentium compatible.

The TS7xx0 boards are ARM machines - completely different from an
Intel Pentium.

You need to get and install a cross-compiler. Google for crosscompile
and read up on it.

Then download the toolchain from the TS website.

The command 'file' will tell you which architecture a particular
program is built for; 'man file' for more info.

HTH,

--Yan




__._,_.___


SPONSORED LINKS
Single board computer Hardware Computer running slow
Linux os

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