This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

building problem with redboot


Hi,

1. I got a building problem when I want to have GDB debug function with
redboot as the following.
The detailed build output is as the attachment.
The prblem is cyg_start have conflict definition in main.c and stubrom.c
when it try to build gdb_module.o.
I choosed CYGBLD_BUILD_GDB_STUBS & CYGBLD_BUILD_COMMON_GDB_STUBS &
CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT in cfgtools.


arm-elf-gcc -c  -I/ecos-c/Firmware/palomino/80200evb_redboot_install/include
-I/ecos-c/ecos/ecos/packages/hal/common/current
-I/ecos-c/ecos/ecos/packages/hal/common/current/src
-I/ecos-c/ecos/ecos/packages/hal/common/current/tests -I. -Wp,-MD,deps.tmp
-I/ecos-c/ecos/ecos/packages/hal/common/current/src/stubrom/ -Wall
-Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g
-O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions
-fvtable-gc -finit-priority -mapcs-frame -o src/stubrom/gdb_module.o
/ecos-c/ecos/ecos/packages/hal/common/current/src/stubrom/stubrom.c
arm-elf-gcc -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib
-L/ecos-c/Firmware/palomino/80200evb_redboot_install/lib -Ttarget.ld -o
/ecos-c/Firmware/palomino/80200evb_redboot_install/bin/gdb_module.img
src/stubrom/gdb_module.o
/ecos-c/Firmware/palomino/80200evb_redboot_install/lib/libtarget.a(redboot_m
ain.o): In function `bist':

/********** multiple definition error ************/
redboot_main.o(.text.cyg_start+0x0): multiple definition of `cyg_start'
src/stubrom/gdb_module.o(.text.cyg_start+0x0): first defined here
/usr/local/arm-elf/bin/ld: Warning: size of symbol `cyg_start' changed from
24 to 740 in redboot_main.o
/ecos-c/Firmware/palomino/80200evb_redboot_install/lib/libtarget.a(redboot_m
ain.o): In function `do_go':
/ecos-c/ecos/ecos/packages/redboot/current/src/main.c:549: undefined
reference to `RedBoot_version'
collect2: ld returned 1 exit status
make[1]: ***
[/ecos-c/Firmware/palomino/80200evb_redboot_install/bin/gdb_module.img]
Error 1
make[1]: Leaving directory
`/firmware/palomino/80200evb_redboot_build/hal/common/current'
make: *** [build] Error 2

2. Thanks for your guys' help, I ported redboot to 80200. It can be booted
into redboot now. :-)
But When I load -m xMODEM, it takes about 10 seconds to get 'C' prompt. I
can't figure out why it takes such a long time. The source code only takes
about 500000us. Why?

Thanks,

Attachment: make.err
Description: Binary data

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]