* [ECOS] Problem compiling redboot for XScale @ 2003-03-26 16:05 Pascal Pediroda @ Brime 2003-03-26 16:30 ` Jonathan Larmour 0 siblings, 1 reply; 10+ messages in thread From: Pascal Pediroda @ Brime @ 2003-03-26 16:05 UTC (permalink / raw) To: ecos-discuss Hello, I try to make a redboot image for the IQ80321 board. So this is what I have done : -Installed cygwin on my W2000 PC (under C:\cygwin) -Installed eCos Configuration Tool v2.11 -Downloaded and compiled the GNU sources for arm-elf target (gcc-3.2.2, gdb5.3) -Checked out from CVS (yesterday) the last ecos sources Know, from eCos CT, I have created a project (BootRosso.ecc) using the template option (HW = IQ80321 , template = redboot) and then I have launched the Build. Here is the end of the log file from the make (the part that fails !) : make -r -C hal/arm/arch/current arm.inc make[1]: Entering directory `/ecos-c/BootRosso/Bootrosso_build/hal/arm/arch/current' arm-elf-gcc -mcpu=xscale -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 -I/ecos-c/Bo otRosso/Bootrosso_install/include -I/ecos-c/cygwin/src/ecos/packages/hal/arm /arch/current -I/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src -I /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/tests -I. -Wp,-MD,arm. tmp -o hal_mk_defs.tmp -S /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:57:5 4: cyg/hal/hal_arch.h: No such file or directory /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:58:5 4: cyg/hal/hal_intr.h: No such file or directory /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:63:2 8: cyg/hal/hal_if.h: No such file or directory /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c: In function `main': /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:81: warning: implicit declaration of function `offsetof' /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:81: `HAL_SavedRegisters' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:81: (Each undeclared identifier is reported only once /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:81: for each function it appears in.) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:81: `d' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:81: `HAL_THREAD_CONTEXT_R0' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:82: `HAL_THREAD_CONTEXT_R4' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:83: `HAL_THREAD_CONTEXT_R8' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:84: `HAL_THREAD_CONTEXT_R9' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:85: `HAL_THREAD_CONTEXT_R10' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:86: `sp' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:87: `fp' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:88: `ip' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:89: `lr' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:90: `pc' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:91: `cpsr' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:92: `vector' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:93: `svc_lr' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:94: `svc_sp' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:96: `CYGNUM_HAL_ISR_COUNT' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:97: `CYGNUM_HAL_VSR_COUNT' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:99: `CYGNUM_HAL_EXCEPTION_ILLEGAL_INSTRUCTION' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:100: `CYGNUM_HAL_EXCEPTION_INTERRUPT' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:102: `CYGNUM_HAL_EXCEPTION_CODE_ACCESS' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:104: `CYGNUM_HAL_EXCEPTION_DATA_ACCESS' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:105: `CYGNUM_HAL_VECTOR_IRQ' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:109: `CPSR_IRQ_DISABLE' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:110: `CPSR_FIQ_DISABLE' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:111: `CPSR_THUMB_ENABLE' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:112: `CPSR_IRQ_MODE' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:113: `CPSR_FIQ_MODE' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:114: `CPSR_SUPERVISOR_MODE' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:115: `CPSR_UNDEF_MODE' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:116: `CPSR_MODE_BITS' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:117: `CPSR_INITIAL' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:118: `CPSR_THREAD_INITIAL' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:120: `CYGNUM_CALL_IF_TABLE_SIZE' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:122: `CYGNUM_HAL_INTERRUPT_NONE' undeclared (first use in this function) make[1]: Leaving directory `/ecos-c/BootRosso/Bootrosso_build/hal/arm/arch/current' /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:81: warning: asm operand 0 probably doesn't match constraints make: Leaving directory `/ecos-c/BootRosso/Bootrosso_build' /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:82: warning: asm operand 0 probably doesn't match constraints /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:83: warning: asm operand 0 probably doesn't match constraints /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:84: warning: asm operand 0 probably doesn't match constraints /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:85: warning: asm operand 0 probably doesn't match constraints /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:86: warning: asm operand 0 probably doesn't match constraints /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:87: warning: asm operand 0 probably doesn't match constraints /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:88: warning: asm operand 0 probably doesn't match constraints /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:89: warning: asm operand 0 probably doesn't match constraints /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:90: warning: asm operand 0 probably doesn't match constraints /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:91: warning: asm operand 0 probably doesn't match constraints /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:92: warning: asm operand 0 probably doesn't match constraints /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:93: warning: asm operand 0 probably doesn't match constraints /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:94: warning: asm operand 0 probably doesn't match constraints make[1]: *** [arm.inc] Error 1 make: *** [build] Error 2 Can anyone help ? Thank you in advance. Pascal -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ECOS] Problem compiling redboot for XScale 2003-03-26 16:05 [ECOS] Problem compiling redboot for XScale Pascal Pediroda @ Brime @ 2003-03-26 16:30 ` Jonathan Larmour 2003-03-26 16:31 ` [ECOS] R: " Pascal Pediroda @ Brime 0 siblings, 1 reply; 10+ messages in thread From: Jonathan Larmour @ 2003-03-26 16:30 UTC (permalink / raw) To: pascal.pediroda; +Cc: ecos-discuss Pascal Pediroda @ Brime wrote: > Hello, > I try to make a redboot image for the IQ80321 board. > So this is what I have done : > -Installed cygwin on my W2000 PC (under C:\cygwin) > -Installed eCos Configuration Tool v2.11 > -Downloaded and compiled the GNU sources for arm-elf target (gcc-3.2.2, > gdb5.3) > -Checked out from CVS (yesterday) the last ecos sources > > Know, from eCos CT, I have created a project (BootRosso.ecc) using the > template option (HW = IQ80321 , template = redboot) and then I have > launched the Build. > Here is the end of the log file from the make (the part that fails !) : > > make -r -C hal/arm/arch/current arm.inc > make[1]: Entering directory > `/ecos-c/BootRosso/Bootrosso_build/hal/arm/arch/current' > arm-elf-gcc -mcpu=xscale -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 -I/ecos-c/Bo > otRosso/Bootrosso_install/include -I/ecos-c/cygwin/src/ecos/packages/hal/arm > /arch/current -I/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src -I > /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/tests -I. -Wp,-MD,arm. > tmp -o hal_mk_defs.tmp -S > /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c > /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:57:5 > 4: cyg/hal/hal_arch.h: No such file or directory This looks seriously broken, but there's no reason why it should be. Does the header install directory ( /ecos-c/BootRosso/Bootrosso_install/include ) really not include cyg/hal/hal_arch.h? Jifl -- eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts --[ "You can complain because roses have thorns, or you ]-- --[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* [ECOS] R: [ECOS] Problem compiling redboot for XScale 2003-03-26 16:30 ` Jonathan Larmour @ 2003-03-26 16:31 ` Pascal Pediroda @ Brime 2003-03-26 17:09 ` [ECOS] " Jonathan Larmour 0 siblings, 1 reply; 10+ messages in thread From: Pascal Pediroda @ Brime @ 2003-03-26 16:31 UTC (permalink / raw) To: Jonathan Larmour; +Cc: ecos-discuss Thank you for your answer Jifl, I do have the /ecos-c/BootRosso/Bootrosso_install/include/cyg/hal/hal_arch.h file. -----Messaggio originale----- Da: Jonathan Larmour [mailto:jifl@eCosCentric.com] Inviato: mercoledi 26 marzo 2003 17.18 A: pascal.pediroda@brime.it Cc: ecos-discuss@sources.redhat.com Oggetto: Re: [ECOS] Problem compiling redboot for XScale Pascal Pediroda @ Brime wrote: > Hello, > I try to make a redboot image for the IQ80321 board. > So this is what I have done : > -Installed cygwin on my W2000 PC (under C:\cygwin) > -Installed eCos Configuration Tool v2.11 > -Downloaded and compiled the GNU sources for arm-elf target (gcc-3.2.2, > gdb5.3) > -Checked out from CVS (yesterday) the last ecos sources > > Know, from eCos CT, I have created a project (BootRosso.ecc) using the > template option (HW = IQ80321 , template = redboot) and then I have > launched the Build. > Here is the end of the log file from the make (the part that fails !) : > > make -r -C hal/arm/arch/current arm.inc > make[1]: Entering directory > `/ecos-c/BootRosso/Bootrosso_build/hal/arm/arch/current' > arm-elf-gcc -mcpu=xscale -Wall -Wpointer-arith -Wstrict-prototypes -Winline > -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -f no > -rtti -fno-exceptions -fvtable-gc -finit-priority -mapcs-frame -I/ecos-c/ Bo > otRosso/Bootrosso_install/include -I/ecos-c/cygwin/src/ecos/packages/hal/arm > /arch/current -I/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src -I > /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/tests -I. -Wp,-MD,arm. > tmp -o hal_mk_defs.tmp -S > /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c > /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:57:5 > 4: cyg/hal/hal_arch.h: No such file or directory This looks seriously broken, but there's no reason why it should be. Does the header install directory ( /ecos-c/BootRosso/Bootrosso_install/include ) really not include cyg/hal/hal_arch.h? Jifl -- eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts --[ "You can complain because roses have thorns, or you ]-- --[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* [ECOS] Re: R: [ECOS] Problem compiling redboot for XScale 2003-03-26 16:31 ` [ECOS] R: " Pascal Pediroda @ Brime @ 2003-03-26 17:09 ` Jonathan Larmour 2003-03-26 17:59 ` [ECOS] R: " Pascal Pediroda @ Brime 0 siblings, 1 reply; 10+ messages in thread From: Jonathan Larmour @ 2003-03-26 17:09 UTC (permalink / raw) To: pascal.pediroda; +Cc: ecos-discuss Pascal Pediroda @ Brime wrote: > Thank you for your answer Jifl, > I do have the /ecos-c/BootRosso/Bootrosso_install/include/cyg/hal/hal_arch.h > file. Can you try the compilation of that file by hand, i.e.: cd /ecos-c/BootRosso/Bootrosso_build/hal/arm/arch/current make If that doesn't work, can you cut and paste the entire command and try running it but add the extra option "-v" and send the output. Jifl -- eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts --[ "You can complain because roses have thorns, or you ]-- --[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* [ECOS] R: R: [ECOS] Problem compiling redboot for XScale 2003-03-26 17:09 ` [ECOS] " Jonathan Larmour @ 2003-03-26 17:59 ` Pascal Pediroda @ Brime 2003-03-26 20:53 ` [ECOS] " Jonathan Larmour 0 siblings, 1 reply; 10+ messages in thread From: Pascal Pediroda @ Brime @ 2003-03-26 17:59 UTC (permalink / raw) To: Jonathan Larmour; +Cc: ecos-discuss Here is the command : arm-elf-gcc -c -I/ecos-c/BootRosso/Bootrosso_install/include -I/ecos-c/cygw in/src/ecos/packages/hal/arm/arch/current -I/ecos-c/cygwin/src/ecos/packages /hal/arm/arch/current/src -I/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/cu rrent/tests -I. -I/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/ -v -mcpu=xscale -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -f no-exceptions -fvtable-gc -finit-priority -mapcs-frame -Wp,-MD,src/hal_misc. tmp -o src/hal_arm_arch_hal_misc.o /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_misc.c Here is the resulting log: Reading specs from /gnutools/lib/gcc-lib/arm-elf/3.2.2/specs Configured with: /src/gcc-3.2.2/configure --target=arm-elf --prefix=/gnutools --enable-langua ges=c,c++ --with-gnu-as --with-new-ld --with-newlib -with-gxx-include-dir=/g nutools/arm-elf/include -v : (reconfigured) /src/gcc-3.2.2/configure --target=arm-elf --prefix=/gnutools --enable-langua ges=c,c++ --with-gnu-as --with-new-ld --with-newlib -with-gxx-include-dir=/g nutools/arm-elf/include -v : (reconfigured) /src/gcc-3.2.2/configure --target=arm-elf --prefix=/gnutools --enable-langua ges=c,c++ --with-gnu-as --with-new-ld --with-newlib -with-gxx-include-dir=/g nutools/arm-elf/include -v Thread model: single gcc version 3.2.2 /gnutools/lib/gcc-lib/arm-elf/3.2.2/cc1.exe -lang-c -v -I/ecos-c/BootRosso/B ootrosso_install/include -I/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/cur rent -I/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src -I/ecos-c/c ygwin/src/ecos/packages/hal/arm/arch/current/tests -I. -I/ecos-c/cygwin/src/ ecos/packages/hal/arm/arch/current/src/ -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__ GNUC_PATCHLEVEL__=2 -D__GXX_ABI_VERSION=102 -D__ELF__ -D__ELF__ -D__OPTIMIZE __ -D__STDC_HOSTED__=1 -Acpu=arm -Amachine=arm -D__ARM_ARCH_5TE__ -D__XSCALE __ -D__APCS_32__ -D__ARMEL__ -D__ELF__ -D__USES_INITFINI__ -D__arm__ -MD src/hal_misc.tmp /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_misc.c -quiet -dumpbase hal_misc.c -mcpu=xscale -mapcs-frame -g -O2 -Wall -Wpointer-arith -Wstrict-p rototypes -Winline -Wundef -Woverloaded-virtual -version -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -o /ecos-c/DOCUME~1/fferrara/IMPOST~1/Temp/ccKY3a9n.s ignoring nonexistent directory "/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/tests" GNU CPP version 3.2.2 (cpplib) (ARM/ELF) GNU C version 3.2.2 (arm-elf) compiled by GNU C version 3.2 20020927 (prerelease). ignoring nonexistent directory "/gnutools/arm-elf/sys-include" ignoring duplicate directory "/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src" #include "..." search starts here: #include <...> search starts here: /ecos-c/BootRosso/Bootrosso_install/include /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src . /gnutools/include /gnutools/lib/gcc-lib/arm-elf/3.2.2/include /gnutools/arm-elf/include End of search list. /gnutools/lib/gcc-lib/arm-elf/3.2.2/../../../../arm-elf/bin/as.exe -mxscale -mapcs-frame -o src/hal_arm_arch_hal_misc.o /ecos-c/DOCUME~1/fferrara/IMPOST~1/Temp/ccKY3a9n.s Thank you again -----Messaggio originale----- Da: Jonathan Larmour [mailto:jifl@eCosCentric.com] Inviato: mercoledi 26 marzo 2003 17.58 A: pascal.pediroda@brime.it Cc: ecos-discuss@sources.redhat.com Oggetto: Re: R: [ECOS] Problem compiling redboot for XScale Pascal Pediroda @ Brime wrote: > Thank you for your answer Jifl, > I do have the /ecos-c/BootRosso/Bootrosso_install/include/cyg/hal/hal_arch.h > file. Can you try the compilation of that file by hand, i.e.: cd /ecos-c/BootRosso/Bootrosso_build/hal/arm/arch/current make If that doesn't work, can you cut and paste the entire command and try running it but add the extra option "-v" and send the output. Jifl -- eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts --[ "You can complain because roses have thorns, or you ]-- --[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* [ECOS] Re: R: R: [ECOS] Problem compiling redboot for XScale 2003-03-26 17:59 ` [ECOS] R: " Pascal Pediroda @ Brime @ 2003-03-26 20:53 ` Jonathan Larmour 2003-03-27 7:31 ` [ECOS] R: " Pascal Pediroda @ Brime 0 siblings, 1 reply; 10+ messages in thread From: Jonathan Larmour @ 2003-03-26 20:53 UTC (permalink / raw) To: pascal.pediroda; +Cc: ecos-discuss Pascal Pediroda @ Brime wrote: > Here is the command : > > arm-elf-gcc -c -I/ecos-c/BootRosso/Bootrosso_install/include -I/ecos-c/cygw > in/src/ecos/packages/hal/arm/arch/current -I/ecos-c/cygwin/src/ecos/packages > /hal/arm/arch/current/src -I/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/cu > rrent/tests -I. -I/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/ > -v -mcpu=xscale -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef > -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -f > no-exceptions -fvtable-gc -finit-priority -mapcs-frame -Wp,-MD,src/hal_misc. > tmp -o src/hal_arm_arch_hal_misc.o > /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_misc.c Hold on, that's not hal_mk_defs. Ah I suppose being a custom build rule it is treated differently. Sigh. You could try: "make arm.inc" instead of "make" from before. An alternative is not to use the config tool and instead try using straight ecosconfig and see if that helps. BTW is it repeatable anyway? Jifl -- eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts --[ "You can complain because roses have thorns, or you ]-- --[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* [ECOS] R: R: R: [ECOS] Problem compiling redboot for XScale 2003-03-26 20:53 ` [ECOS] " Jonathan Larmour @ 2003-03-27 7:31 ` Pascal Pediroda @ Brime 2003-03-27 15:24 ` [ECOS] Re: Questions about eb40a port wkhto 2003-03-27 20:52 ` [ECOS] Re: R: R: R: [ECOS] Problem compiling redboot for XScale Jonathan Larmour 0 siblings, 2 replies; 10+ messages in thread From: Pascal Pediroda @ Brime @ 2003-03-27 7:31 UTC (permalink / raw) To: Jonathan Larmour; +Cc: ecos-discuss Hello , here is the new log. I hope it will me more usefull for you ;-) : Reading specs from /gnutools/lib/gcc-lib/arm-elf/3.2.2/specs Configured with: /src/gcc-3.2.2/configure --target=arm-elf --prefix=/gnutools --enable-langua ges=c,c++ --with-gnu-as --with-new-ld --with-newlib -with-gxx-include-dir=/g nutools/arm-elf/include -v : (reconfigured) /src/gcc-3.2.2/configure --target=arm-elf --prefix=/gnutools --enable-langua ges=c,c++ --with-gnu-as --with-new-ld --with-newlib -with-gxx-include-dir=/g nutools/arm-elf/include -v : (reconfigured) /src/gcc-3.2.2/configure --target=arm-elf --prefix=/gnutools --enable-langua ges=c,c++ --with-gnu-as --with-new-ld --with-newlib -with-gxx-include-dir=/g nutools/arm-elf/include -v Thread model: single gcc version 3.2.2 /gnutools/lib/gcc-lib/arm-elf/3.2.2/cc1.exe -lang-c -v -I/ecos-c/BootRosso/B ootrosso_install/include -I/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/cur rent -I/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src -I/ecos-c/c ygwin/src/ecos/packages/hal/arm/arch/current/tests -I. -D__GNUC__=3 -D__GNUC _MINOR__=2 -D__GNUC_PATCHLEVEL__=2 -D__GXX_ABI_VERSION=102 -D__ELF__ -D__ELF __ -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Acpu=arm -Amachine=arm -D__ARM_ARCH_5 TE__ -D__XSCALE__ -D__APCS_32__ -D__ARMEL__ -D__ELF__ -D__USES_INITFINI__ -D __arm__ -MD arm.tmp /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c -qui et -dumpbase hal_mk_defs.c -mcpu=xscale -mapcs-frame -g -O2 -Wall -Wpointer-arith -Wstric t-prototypes -Winline -Wundef -Woverloaded-virtual -version -ffunction-secti ons -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -o hal_mk_defs.tmp ignoring nonexistent directory "/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/tests" GNU CPP version 3.2.2 (cpplib) (ARM/ELF) GNU C version 3.2.2 (arm-elf) compiled by GNU C version 3.2 20020927 (prerelease). ignoring nonexistent directory "/gnutools/arm-elf/sys-include" #include "..." search starts here: #include <...> search starts here: /ecos-c/BootRosso/Bootrosso_install/include /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src . /gnutools/include /gnutools/lib/gcc-lib/arm-elf/3.2.2/include /gnutools/arm-elf/include End of search list. /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c: In function `main': /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:83: `HAL_THREAD_CONTEXT_R8' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:83: (Each undeclared identifier is reported only once /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:83: for each function it appears in.) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:84: `HAL_THREAD_CONTEXT_R9' undeclared (first use in this function) /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:93: structure has no member named `svc_lr' /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:94: structure has no member named `svc_sp' /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c:122: `CYGNUM_HAL_INTERRUPT_NONE' undeclared (first use in this function) -----Messaggio originale----- Da: Jonathan Larmour [mailto:jifl@eCosCentric.com] Inviato: mercoledi 26 marzo 2003 19.58 A: pascal.pediroda@brime.it Cc: ecos-discuss@sources.redhat.com Oggetto: Re: R: R: [ECOS] Problem compiling redboot for XScale Pascal Pediroda @ Brime wrote: > Here is the command : > > arm-elf-gcc -c -I/ecos-c/BootRosso/Bootrosso_install/include -I/ecos-c/cygw > in/src/ecos/packages/hal/arm/arch/current -I/ecos-c/cygwin/src/ecos/packages > /hal/arm/arch/current/src -I/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/cu > rrent/tests -I. -I/ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/ > -v -mcpu=xscale -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wunde f > -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -f > no-exceptions -fvtable-gc -finit-priority -mapcs-frame -Wp,-MD,src/hal_misc. > tmp -o src/hal_arm_arch_hal_misc.o > /ecos-c/cygwin/src/ecos/packages/hal/arm/arch/current/src/hal_misc.c Hold on, that's not hal_mk_defs. Ah I suppose being a custom build rule it is treated differently. Sigh. You could try: "make arm.inc" instead of "make" from before. An alternative is not to use the config tool and instead try using straight ecosconfig and see if that helps. BTW is it repeatable anyway? Jifl -- eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts --[ "You can complain because roses have thorns, or you ]-- --[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* [ECOS] Re: Questions about eb40a port 2003-03-27 7:31 ` [ECOS] R: " Pascal Pediroda @ Brime @ 2003-03-27 15:24 ` wkhto 2003-03-28 22:55 ` Konstantin Kletschke 2003-03-27 20:52 ` [ECOS] Re: R: R: R: [ECOS] Problem compiling redboot for XScale Jonathan Larmour 1 sibling, 1 reply; 10+ messages in thread From: wkhto @ 2003-03-27 15:24 UTC (permalink / raw) To: ecos-discuss Hi Konsti I used the eco2.0 b1 and the tools in the same package to compile my source code. I try that on both Linux and Cygwin, it works!! I don't have external memory in my eb40a, therefore I have to make some changes to the Memory layout file to make it works For the RAM version: I made some change to the .ldi file and the .h file for the RAM Here are the changes for the .h file: #define CYGMEM_REGION_ram (0x00000000) #define CYGMEM_REGION_ram_SIZE (0x00020000) #define CYGMEM_REGION_ram_ATTR (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W) Here are the changes for the .h file: MEMORY { ram : ORIGIN = 0x00000000, LENGTH = 0x00020000 } SECTIONS { SECTIONS_BEGIN SECTION_fixed_vectors (ram, 0x20, LMA_EQ_VMA) SECTION_rom_vectors (ram, 0x00200, LMA_EQ_VMA) SECTION_text (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_rodata (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_rodata1 (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_gcc_except_table (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_data (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA) CYG_LABEL_DEFN(__heap1) = ALIGN (0x8); SECTIONS_END } I try that and it works!! This morning I try to work on the ROMRAM version, it seems working fine too. For the ROMRAM version, you have to make sure the flash, ram and the data copy section is correct for your eb40a configuration. Take a look at the hal_platform_setup.h file to make sure it matches with your configuration Wilson ---------------------------------------- This mail sent through www.mywaterloo.ca -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ECOS] Re: Questions about eb40a port 2003-03-27 15:24 ` [ECOS] Re: Questions about eb40a port wkhto @ 2003-03-28 22:55 ` Konstantin Kletschke 0 siblings, 0 replies; 10+ messages in thread From: Konstantin Kletschke @ 2003-03-28 22:55 UTC (permalink / raw) To: ecos-discuss; +Cc: wkhto Hi Wilson! * wkhto@engmail.uwaterloo.ca <wkhto@engmail.uwaterloo.ca> [Thu, Mar 27, 2003 at 09:52:58AM -0500]: > Hi Konsti > > I used the eco2.0 b1 and the tools in the same package to compile my source > code. I try that on both Linux and Cygwin, it works!! I don't have external Aha, thats good to know :-) > For the RAM version: Do you mean internal RAM or potentional attached external RAM? Well, yes, modifying the ram file for the internal RAM... > I made some change to the .ldi file and the .h file for the RAM My question is, did you apply any eb40a patches or are you talking of /ecos/packages/hal/arm/at91/current/include/pkgconf/mlt_arm_at91_eb40_ram.[h|ldi] of the ecos-2.0b tree? > I try that and it works!! Two final Questions and I have much to play @work on monday :-): What gcc version did you use, is it save to use 3.2.2 or is it more save to use 2.95.3? Today I switched my arm-elf toolchain to gcc-2.95.3 anyhow... What commands did you pass two arm-elf-gdb to download the redbbot.elf to the eb40a? Any enabling or changing of registers or so? > This morning I try to work on the ROMRAM version, it seems working fine too. Good Luck! > For the ROMRAM version, you have to make sure the flash, ram and the data copy > section is correct for your eb40a configuration. Take a look at the > hal_platform_setup.h file to make sure it matches with your configuration *gnarf* 1st I am desperately trying to fire up redboot_RAM, then I will help in the flash part :-) Konsti -- Kletschke & Uhlig GbR: http://www.ku-gbr.de -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* [ECOS] Re: R: R: R: [ECOS] Problem compiling redboot for XScale 2003-03-27 7:31 ` [ECOS] R: " Pascal Pediroda @ Brime 2003-03-27 15:24 ` [ECOS] Re: Questions about eb40a port wkhto @ 2003-03-27 20:52 ` Jonathan Larmour 1 sibling, 0 replies; 10+ messages in thread From: Jonathan Larmour @ 2003-03-27 20:52 UTC (permalink / raw) To: pascal.pediroda; +Cc: ecos-discuss Pascal Pediroda @ Brime wrote: > Hello , > here is the new log. I hope it will me more usefull for you ;-) : Well in the sense of revealing the source of the problem, it turns out not, but it was worth a look. I notice it doesn't complain about a missing hal_arch.h now. My current suspicion is it might be a cygwin problem. What cygwin DLL version are you using? I'm trying to see if there is any correlation between your report and someone else who has reported something that looks like the same problem separately. Jifl -- eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts --[ "You can complain because roses have thorns, or you ]-- --[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-03-28 15:45 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-03-26 16:05 [ECOS] Problem compiling redboot for XScale Pascal Pediroda @ Brime 2003-03-26 16:30 ` Jonathan Larmour 2003-03-26 16:31 ` [ECOS] R: " Pascal Pediroda @ Brime 2003-03-26 17:09 ` [ECOS] " Jonathan Larmour 2003-03-26 17:59 ` [ECOS] R: " Pascal Pediroda @ Brime 2003-03-26 20:53 ` [ECOS] " Jonathan Larmour 2003-03-27 7:31 ` [ECOS] R: " Pascal Pediroda @ Brime 2003-03-27 15:24 ` [ECOS] Re: Questions about eb40a port wkhto 2003-03-28 22:55 ` Konstantin Kletschke 2003-03-27 20:52 ` [ECOS] Re: R: R: R: [ECOS] Problem compiling redboot for XScale Jonathan Larmour
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).