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!
<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/
|