This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Question about "Hello,eCos world!"
- To: cguwinds <cguwinds at mail2000 dot com dot tw>
- Subject: Re: [ECOS] Question about "Hello,eCos world!"
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 31 Jul 2001 16:49:51 +0100
- Cc: ecos-discuss <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <996593350.77390.cguwinds@mail2000.com.tw>
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