public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] I cant use gdb stubs to load hello
@ 2000-12-11 21:13 Natarajan, Mekala (CTS)
  0 siblings, 0 replies; 4+ messages in thread
From: Natarajan, Mekala (CTS) @ 2000-12-11 21:13 UTC (permalink / raw)
  To: 'bartv@redhat.com'; +Cc: 'ecos-discuss@sources.redhat.com'

hi,
can u tell how to configure and build for redboot in ecos configuration
tools..
The steps which i followed is 
From Configuration tool i selected the redboot template for i386pc target..
when i gave build library it reported the following error..
do i have to some more package to it..

make[1]: Entering directory `/d/redboot/red_build/hal/i386/pc/current'
i386-elf-gcc -c  -I//D/redboot/red_install/include
-I//d/eCos/packages/hal/i386/pc/current
-I//d/eCos/packages/hal/i386/pc/current/src
-I//d/eCos/packages/hal/i386/pc/current/tests -I.
-I//d/eCos/packages/hal/i386/pc/current/src/ -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc
-finit-priority -Wp,-MD,src/plf_misc.tmp -o src/hal_i386_pc_plf_misc.o
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c: In function
`hal_pc_fpe_dsr':
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:88: `cyg_handle_t'
undeclared (first use in this function)
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:88: (Each undeclared
identifier is reported only once
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:88: for each function
it appears in.)
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:88: parse error before
`me'
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:103: `me' undeclared
(first use in this function)
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:103: warning: implicit
declaration of function `cyg_thread_self'
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:109: warning: implicit
declaration of function `cyg_thread_get_stack_base'
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:111: `cyg_addrword_t'
undeclared (first use in this function)
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c: At top level:
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:137: parse error before
`hal_pc_fpe_interrupt_object'
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:137: warning: type
defaults to `int' in declaration of `hal_pc_fpe_interrupt_object'
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:137: warning: data
definition has no type or storage class
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:138: parse error before
`hal_pc_fpe_interrupt'
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:138: warning: type
defaults to `int' in declaration of `hal_pc_fpe_interrupt'
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:138: warning: data
definition has no type or storage class
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c: In function
`hal_platform_init':
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:170: warning: implicit
declaration of function `cyg_interrupt_create'
//d/eCos/packages/hal/i386/pc/current/src/plf_misc.c:173: warning: implicit
declaration of function `cyg_interrupt_attach'
make[1]: *** [src/plf_misc.o.d] Error 1
make[1]: Leaving directory `/d/redboot/red_build/hal/i386/pc/current'
make: *** [build] Error 2

mekala
This e-mail and any files transmitted with it are for the sole use 
of the intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. Any unauthorised review, use, disclosure, 
dissemination, forwarding, printing or copying of this email or any action taken in 
reliance on this e-mail is strictly prohibited and may be unlawful...

		Visit us at http://www.cognizant.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] I cant use gdb stubs to load hello
  2000-12-06  1:29 niky
  2000-12-06  1:40 ` Christian Plessl
@ 2000-12-06  4:31 ` Bart Veer
  1 sibling, 0 replies; 4+ messages in thread
From: Bart Veer @ 2000-12-06  4:31 UTC (permalink / raw)
  To: b4506051; +Cc: ecos-discuss

>>>>> " " == niky  <b4506051@csie.ntu.edu.tw> writes:

     > I make stubs for pc

     > ecosconfig new pc stubs
     > ecosconfig tree
     > make

     > I can execute the version 1.3 prebuild text thread_gdb.exe

     > i386-elf-gdb -nw thread_gdb.exe
     > (gdb)set remotebaud 38400
     > (gdb)target remote /dev/ttyS0
     > (gdb)load
     > (gdb)continue

     > I see

     > PASS:<GDB Thread test OK>
     > EXIT:<done>

     > but I try to execute hello (I make from the version 1.3 example,
     > XCC=i386-elf-gcc)

     > i386-elf-gdb -nw hello
     > (gdb)set remotebaud 38400
     > (gdb)target remote /dev/ttyS0
     > (gdb)load

     > then the pc reboot and does not complete the load.
     > What is wrong?

I suspect you are confusing the stubs configuration and the
application configuration.

When developing for a typical evaluation board, you will need some
kind of ROM monitor running on that board. This can be an existing ROM
monitor which will not know about things like debugging eCos threads,
or it can be RedBoot or gdb stubs or something along those lines. For
the latter you need to configure and build eCos, generating something
that can be blown into EPROM (or whatever is appropriate for your
target hardware). For the PC target you end up with a boot floppy, but
the basic concept is the same.

Then you need a separate eCos configuration for doing actual
application development. This will differ from the stubs configuration
in various ways, for example the application code will typically be
loaded into RAM rather than blown into EPROMs. Application code built
using this configuration can then be loaded into the target hardware
via the ROM monitor.

So what I think you need to do is create another eCos configuration
using e.g. "ecosconfig new pc default", build it, link the "hello
world" application with the resulting libtarget.a, and then things
should work better.

Bart

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] I cant use gdb stubs to load hello
  2000-12-06  1:29 niky
@ 2000-12-06  1:40 ` Christian Plessl
  2000-12-06  4:31 ` Bart Veer
  1 sibling, 0 replies; 4+ messages in thread
From: Christian Plessl @ 2000-12-06  1:40 UTC (permalink / raw)
  To: niky, ecos-discuss

>    then the pc reboot and does not complete the load.
>     What is wrong?


Hi Niky

Have you ever tried to download any test, which comes with eCos. Try

make tests

in your ecos build directory to compile the tests. After this, download one 
of the test applications located in the install/tests/ directory. If this 
works, maybe your makefile for building your hello application is not ok.

Chris

--
Christian Plessl <cplessl@ee.ethz.ch>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ECOS] I cant use gdb stubs to load hello
@ 2000-12-06  1:29 niky
  2000-12-06  1:40 ` Christian Plessl
  2000-12-06  4:31 ` Bart Veer
  0 siblings, 2 replies; 4+ messages in thread
From: niky @ 2000-12-06  1:29 UTC (permalink / raw)
  To: ecos-discuss

Hi,

    I make stubs for pc

    ecosconfig new pc stubs
    ecosconfig tree
    make

    I can execute the version 1.3 prebuild text thread_gdb.exe

    i386-elf-gdb -nw thread_gdb.exe
    (gdb)set remotebaud 38400
    (gdb)target remote /dev/ttyS0
    (gdb)load
    (gdb)continue

    I see

    PASS:<GDB Thread test OK>
    EXIT:<done>

    but I try to execute hello (I make from the version 1.3 example,
    XCC=i386-elf-gcc)

    i386-elf-gdb -nw hello
    (gdb)set remotebaud 38400
    (gdb)target remote /dev/ttyS0
    (gdb)load

    then the pc reboot and does not complete the load.
    What is wrong?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-12-11 21:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-11 21:13 [ECOS] I cant use gdb stubs to load hello Natarajan, Mekala (CTS)
  -- strict thread matches above, loose matches on Subject: below --
2000-12-06  1:29 niky
2000-12-06  1:40 ` Christian Plessl
2000-12-06  4:31 ` Bart Veer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).