Make sure that the FTP from Windows is using binary mode for the file
transfer. Assuming that the FTP client you're using is the one
included with Microsoft Windows you'll need to give the command "bin"
after you've connected to the FTP host on the TS7200.
The Microsoft Windows FTP client defaults to text or ASCII mode for
transfers.
Also, if you have the 'file' command available on your Cygwin
installation it will tell you if the file is compiled for ARM or x86.
I recommend that you consider running Linux for a development platform
as soon as possible. It will aid your development efforts in that
you'll have Linux on your host development system as well as your
target, the TS-7200. A direct install is preferred but a QEMU install
onto Windows is workable.
----
Andy
--- In "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!
>
> <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/
|