ts-7000
[Top] [All Lists]

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

To:
Subject: Re: [ts-7000] Re: Cross Compiled Picocom Fails (Illegal Instruction)
From: Simon Leung <>
Date: Tue, 25 Jan 2011 20:08:15 +0000
Indeed. It appears that I'm using the oldabi toolchain, which is the 
easier approach to get dynamic binary support on my ts7800.
So maybe you could try the oldabi as well?

On 25/01/11 19:08, ksudeadeye81 wrote:
> Nope, it's being cross-compiled. Not much point in building on the board 
> itself given the speed of the CPU.
>
> Your toolchain prefix is different from what I'm using. Here's another slice 
> of my Picocom Makefile:
>
> CXX=arm-none-linux-gnueabi-g++
> CC=arm-none-linux-gnueabi-gcc
>
> Heres the info returned from 'file picocom'.
>
> picocom: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 
> 2.4.17, statically linked, not stripped
>
> --- In  Simon Leung<>  wrote:
>> 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
>
>
>



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

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