ts-7000
[Top] [All Lists]

Re: [ts-7000] Cross Compiled Picocom Fails (Illegal Instruction)

To:
Subject: Re: [ts-7000] Cross Compiled Picocom Fails (Illegal Instruction)
From: Simon Leung <>
Date: Tue, 25 Jan 2011 13:23:29 +0000
On 25/01/11 08:25, ksudeadeye81 wrote:
> Hey All:
>
> I know this has come up here before, but I've tried everything I can think of 
> and still haven't had any luck.
>
> I'm trying to build Picocom for my TS-7260 with the EABI ARM toolchain and 
> Debian Sarge NFS filesystem available from "embeddedarm.com".
>
> The board is running the precompiled 2.6.21 kernel image.
>
> The program compiles and links fine but when I run it on the board I get an 
> "illegal instruction" error.
>
> I modded the Makefile to use the cross-compile toolchain along with the 
> following flags:
> "-march=armv4t"
> "-static"
>
> Static linking is required or else the shell returns a "file not found" error 
> when I try to run it.
>
> Should I try the "old-ABI" toolchain instead?
>
> Thanks in advance for the help.
>
>
It doesn't sound like to me that you're doing cross compilation. You 
were doing native compilation on the target board. Cross compile means 
you compile from a x86 PC with the cross toolchain.
Anyway, it's simple. Edit makefile and make sure you have 
CC=arm-linux-gcc and do make.
Afterwards, transfer the binary on to target board somehow.


> ------------------------------------
>
> Yahoo! Groups Links
>
>
>



------------------------------------

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