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]

Re: Re: Re: Re: AT91EB40 RedBoot install problems - solution !


My problem with gcc 2.95.2 has been resolved !!!

The gcc 2.95.2 had problem with "\" in MS-DOS files. I have to do "mount -t
c: /ecos-c" to make it in text mode instead of binary mode. I am now able to
build the eCos library and test suites on my Windows 2000 PC, download to
the AT91EB40 target and run it :-)

Thank you for all the help !



-----Original Message-----
From: Chan, Raymond 
Sent: Wednesday, September 11, 2002 4:35 PM
To: 'Gary Thomas'
Cc: eCos Discussion; 'J Sevy'; 'scott@dattalo.com'
Subject: RE: [ECOS] Re: Re: Re: AT91EB40 RedBoot install problems -
solution !


Have installed gcc 2.95.2 with ecos-gcc-2952.pat. Also replaced the old
ecos.db 3/24/2000 with the latest from cvs dated 9/3/2002. The same applies
to ecosadmin.tcl. Now when I open the configtool GUI on Windows 2000, I have
NO ERROR/WARNING messages !

However, I am still having problem building the library. The template
selected is Atmel evaluation board (EB40) for the AT91EB40 V2.0 board. I am
now using the current version of eCOS which is the latest since I did a cvs
update yesterday. The error I got when I complie with gcc 2.95.2 is:

make[1]: Entering directory
`/ecos-c/eCOSWork/AT91EB40_build/hal/arm/arch/current'
arm-elf-gcc -mcpu=arm7tdmi -mno-short-load-words -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc
-finit-priority  -I/ecos-c/eCOSWork/AT91EB40_install/include
-I/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/hal/arm/arch/current
-I/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/hal/arm/arch/current/src
-I/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/hal/arm/arch/current/tests -I.
-Wp,-MD,arm.tmp -o hal_mk_defs.tmp -S
/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/hal/arm/arch/current/src/hal_mk_defs
.c
In file included from
/ecos-c/eCOSWork/AT91EB40_install/include/cyg/hal/hal_arch.h:58,
                 from
/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/hal/arm/arch/current/src/hal_mk_defs
.c:57:
/ecos-c/eCOSWork/AT91EB40_install/include/cyg/infra/cyg_type.h:257: Invalid
token in expression
make[1]: *** [arm.inc] Error 1
make[1]: Leaving directory
`/ecos-c/eCOSWork/AT91EB40_build/hal/arm/arch/current'
make: *** [build] Error 2
make: Leaving directory `/ecos-c/eCOSWork/AT91EB40_build'




With the latest gcc 3.2.1 dated 08/26/02, I got further but it stopped at:

arm-elf-gcc -c  -I/ecos-c/eCOSWork/AT91EB40_install/include
-I/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/language/c/libc/stdio/current
-I/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/language/c/libc/stdio/current/src
-I/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/language/c/libc/stdio/current/test
s -I.
-I/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/language/c/libc/stdio/current/src/
input/ -mcpu=arm7tdmi -mno-short-load-words -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/input/fgetc.tmp -o
src/input/language_c_libc_stdio_fgetc.o
/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/language/c/libc/stdio/current/src/in
put/fgetc.cxx
/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/language/c/libc/stdio/current/src/in
put/fgetc.cxx:131: `
   int getc(CYG_ADDRESS (*)[9999])' defined both normally and as an alias
make[1]: *** [src/input/fgetc.o.d] Error 1
make[1]: Leaving directory
`/ecos-c/eCOSWork/AT91EB40_build/language/c/libc/stdio/current'
make: *** [build] Error 2
make: Leaving directory `/ecos-c/eCOSWork/AT91EB40_build'





On Wed, 2002-09-11 at 10:23, Chan, Raymond wrote:
> My problem with installing RedBoot in AT91EB40 has been resolved. I
suspect
> it is not hardware related. My host is Windows 2000 based. I ended up
using
> the Multi2000 debugger to talk to the AT91EB40 via Angel. With the
Multi2000
> debugger, I downloaded the redboot_RAM.elf and ran it. It worked the very
> first time !! At this point, I have to suspect that my version of the GDB
> was not able to download the redboot_RAM.elf correctly to the AT91EB40
V2.0.
> May be it has some problems talking to the Angel monitor.
> 
> Now my new problem is in building the library with configtool :-( I loaded
> eCOS 1.3.1 and have used CVS Windows client to get the latest eCOS source
> code. Also the configuration tool has been updated to "1.3.net Oct 10
2001".
> 
> 
> However, the ecos.db has not been updated as there is AT91EB40 when I
tried
> to select "Build -> Templates -> Hardware". Any idea how to add the
AT91EB40
> ? 
> 
> I also got a lot of warning messages when I bring up the eCos
Configuration
> Tool :
> 
> ecos.db, package CYGPKG_DEVICES_WALLCLOCK: warning Version subdirectory
> `mips' does not have a CDL script `wallclock.cdl'.
> 
> If I select the "ARM development board (PID)" and do a build library, I
got
> the following errors:
> 
> arm-elf-gcc -c  -I/ecos-c/eCOSWork/ARMPID_install/include
> -I/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/kernel/v1_3_1

This tells me you are *not* using the latest CVS sources, since the 
version would be labeled "current".

Make sure you are using the correct repository/sources and try again.
If you still have troubles, then let us know.

Also, what version of GCC are you trying to use?  Remember that 2.95.x
is the recommended version and that GCC 3.x.x is *not* supported at this
time.

-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------

-- 
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]