From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: cguwinds Cc: ecos-discuss Subject: Re: [ECOS] Question about "Hello,eCos world!" Date: Tue, 31 Jul 2001 08:50:00 -0000 Message-id: <3B66D39F.F121DD5D@redhat.com> References: <996593350.77390.cguwinds@mail2000.com.tw> X-SW-Source: 2001-07/msg00955.html cguwinds wrote: > > After runing the following command ,"run",under the gdb command line, > I can't see "Hello,eCos world!". > Why Segmentation fault? > How to solve it? > Does it matter to Makefile of hello.c?? > (Getting Started with eCos ,P70) > (My target is i386 pc , platform is Linux) > > ========================================= > [root@localhost examples]# gdb -nw a.out > GNU gdb 19991004 > Copyright 1998 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-redhat-linux"... > (gdb) run > Starting program: /opt/ecos/ecos-1.3.1/examples/a.out > > Program received signal SIGSEGV, Segmentation fault. > 0x10000 in _stext () > (gdb) > > ============================================ If your target is i386 PC, then you need to put RedBoot on a floppy, and download your program from a separate PC via serial or ethernet. Alternative, if you are wanting the Linux synthetic target (which allows you to run native linux programs), then did you choose the linux target, rather than the pc target? i.e. "ecosconfig new linux" rather than "ecosconfig new pc" ? Jifl -- Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062 Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine