ts-7000
[Top] [All Lists]

Re: [ts-7000] segmentation fault right away

To:
Subject: Re: [ts-7000] segmentation fault right away
From: Jim Jackson <>
Date: Mon, 5 May 2008 19:05:20 +0100 (BST)


On Mon, 5 May 2008, dwreck_stg wrote:

> I just began working with ts-7200. Trying to execute a hello world file.
> Using Cygwin & crosstool to compile. Then FTP to board. when I try to
> run I get the following seg fault. (See further below for all code and
> scripts... Any help would be appreciated!
>
> Thanks!

if you do

  file simple

what does it say

>
> <SegFault>
>
> pc : [<2aab3a3c>]    lr : [<2aaaccdc>]    Tainted: P
> sp : 7ffff8bc  ip : 2aac78f0  fp : 7ffff994
> r10: 2aac76b8  r9 : 00000000  r8 : 00000000
> r7 : 2aac73f4  r6 : 00000001  r5 : 2aac78f0  r4 : 2aac78f0
> r3 : 00000000  r2 : 00000000  r1 : 00000001  r0 : 2aac78f0
> Flags: nZCv  IRQs on  FIQs on  Mode USER_32  Segment user
> Control: C000317F  Table: 01154000  DAC: 00000015
> Segmentation fault
>
> </SegFault>
>
> <code>
>
> #include<unistd.h>
> #include<sys/types.h>
> #include<sys/mman.h>
> #include<stdio.h>
> #include<fcntl.h>
> #include<string.h>
>
> int main(int argc, char **argv)
> {
>       printf("Hello World");
> }
>
> </code>
>
> My compile script is also pretty simple...
>
> <compile_script>
>
> export
> PATH=/usr/local/bin:/usr/bin:/bin:/opt/crosstool/arm-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/bin
> rm simple
> arm-unknown-linux-gnu-gcc.exe -o simple simple.c
> chmod +x ./simple
>
> </compile_script>
>
>
>
>

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

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