public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Status of at91sam7xek
@ 2008-04-08 10:45 David.Babin
  2008-04-08 11:10 ` Andrew Lunn
  0 siblings, 1 reply; 8+ messages in thread
From: David.Babin @ 2008-04-08 10:45 UTC (permalink / raw)
  To: ecos-discuss

Hello,

Since 3 days, i try to flash my at91sam7x256-ek board without success !
Maybe something wrong in my configuration.

I use cygwin with make 3.80-1, last cvs version, last configtool 
available.

i can't build os with at91sam7xek/lwip_eth using configtool. this message 
appear :

 
/opt/ecos/ecos-cvs/ecos/packages/services/memalloc/common/current/src/dlmalloc.cxx: 
In
        make: Leaving directory 
`/ecos-d/eCos/eCos_arm_at91sam7x/at91_build'
           member function `cyg_uint8* 
           Cyg_Mempool_dlmalloc_Implementation::resize_alloc(cyg_uint8*, 
int, 
           cyg_int32*)':
 
/opt/ecos/ecos-cvs/ecos/packages/services/memalloc/common/current/src/dlmalloc.cxx:1525: 
`
           memmove' undeclared (first use this function)
 
/opt/ecos/ecos-cvs/ecos/packages/services/memalloc/common/current/src/dlmalloc.cxx:1525: 
(Each
           undeclared identifier is reported only once for each function 
it appears 
           in.)
        make[1]: *** [src/dlmalloc.o.d] Error 1
        make: *** [build] Error 2

 
When i choose at91sam7xek/minimal, build work fine, but when i try to 
compile my simple hello world (after remplaced printf with diag_printf) 
this message appear :

        $ arm-elf-gcc -g -Iat91_install/include hello.c -Lat91_install/lib 
-Ttarget.ld -nostdlib
        at91_install/lib/libtarget.a(kernel_except.o): In function 
`_GLOBAL__I.12000__Z26cyg_null_exception_handlerjij':
 
/opt/ecos/ecos-cvs/ecos/packages/kernel/current/src/common/except.cxx:259: 
multiple definition of `cyg_hal_deliver_exception'
 
at91_install/lib/libtarget.a(hal_common_drv_api.o):/opt/ecos/ecos-cvs/ecos/packages/hal/common/current/src/drv_api.c:938: 
first defined here
 
/opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld: 
Warning: size of symbol `cyg_hal_deliver_exception' changed fr
        om 4 to 40 in at91_install/lib/libtarget.a(kernel_except.o)
        at91_install/lib/libtarget.a(kernel_intr.o): In function 
`_GLOBAL__D.12000__ZN13Cyg_Interrupt15disable_counterE':
 /opt/ecos/ecos-cvs/ecos/packages/kernel/current/src/intr/intr.cxx:72: 
multiple definition of `cyg_interrupt_call_pending_DSRs'
 
at91_install/lib/libtarget.a(hal_common_drv_api.o)(.text.cyg_interrupt_call_pending_DSRs+0x0): 
first defined here
        at91_install/lib/libtarget.a(kernel_intr.o): In function 
`cyg_interrupt_post_dsr':
        kernel_intr.o(.text.cyg_interrupt_post_dsr+0x0): multiple 
definition of `cyg_interrupt_post_dsr'
 
at91_install/lib/libtarget.a(hal_common_drv_api.o)(.text.cyg_interrupt_post_dsr+0x0): 
first defined here
        at91_install/lib/libtarget.a(kernel_intr.o): In function 
`interrupt_end':
        kernel_intr.o(.text.interrupt_end+0x0): multiple definition of 
`interrupt_end'
 
at91_install/lib/libtarget.a(hal_common_drv_api.o)(.text.interrupt_end+0x0): 
first defined here
 
/opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld: 
Warning: size of symbol `interrupt_end' changed from 80 to 128
         in at91_install/lib/libtarget.a(kernel_intr.o)
        at91_install/lib/extras.o: In function `at91_eth_init':
 
/opt/ecos/ecos-cvs/ecos/packages/devs/eth/arm/at91/current/src/if_at91.c:607: 
undefined reference to `eth_drv_dsr'
        at91_install/lib/extras.o: In function `at91_eth_recv':
 
/opt/ecos/ecos-cvs/ecos/packages/devs/eth/arm/at91/current/src/if_at91.c:930: 
undefined reference to `eth_drv_funs'
        at91_install/lib/libtarget.a(kernel_intr.o): In function 
`_GLOBAL__D.12000__ZN13Cyg_Interrupt15disable_counterE':
 /opt/ecos/ecos-cvs/ecos/packages/kernel/current/src/intr/intr.cxx:652: 
undefined reference to `hal_interrupt_stack_call_pending_DSRs'
        collect2: ld returned 1 exit status


Finally trying with at91sam7xek/default, building ok, but compile give new 
message :

        $ arm-elf-gcc -g -Iat91_install/include hello.c -Lat91_install/lib 
-Ttarget.ld -nostdlib
        at91_install/lib/extras.o: In function `at91_eth_init':
 
/opt/ecos/ecos-cvs/ecos/packages/devs/eth/arm/at91/current/src/if_at91.c:607: 
undefined reference to `eth_drv_dsr'
        at91_install/lib/extras.o: In function `at91_eth_recv':
 
/opt/ecos/ecos-cvs/ecos/packages/devs/eth/arm/at91/current/src/if_at91.c:930: 
undefined reference to `eth_drv_funs'
        at91_install/lib/libtarget.a(kernel_intr.o): In function 
`_GLOBAL__D.12000__ZN13Cyg_Interrupt15disable_counterE':
 /opt/ecos/ecos-cvs/ecos/packages/kernel/current/src/intr/intr.cxx:652: 
undefined reference to `hal_interrupt_stack_call_pending_DSRs'
        collect2: ld returned 1 exit status

So is the status of this board is ready to use ?
How can i check my environment to know if something missing ?
Is there any tutorial for this board anywhere on the web ?

Thanks for help :-)

David BABIN


Ce message et tous les fichiers rattachés sont confidentiels.  

Sous réserve de tout accord conclu par écrit entre vous et DMIC SAS, son contenu ne représente en aucun cas un engagement de la part de DMIC SAS.  
Toute publication, utilisation ou diffusion, même partielle, doit être autorisée préalablement.  
Si vous n'êtes pas destinataire de ce message, merci d'en avertir immédiatement l'expéditeur.  


L’énergie est notre avenir, économisons-la !  
Avant d'imprimer ce mail, pensez à notre environnement !  

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [ECOS] Status of at91sam7xek
@ 2008-04-10  8:47 David Babin
  2008-04-10  8:50 ` Andrew Lunn
  2008-04-10 13:58 ` Markus Schaber
  0 siblings, 2 replies; 8+ messages in thread
From: David Babin @ 2008-04-10  8:47 UTC (permalink / raw)
  To: ecos-discuss

> The AT91SAM7XEK does not have an external memory interface. So you
> need to live with what you have on chip.

I suspect that the embedded 64k will not be sufficient for my usage :
PPP - Ethernet - IP Stack (TCP/UDP/DNS) - Flash

After some research, i've seen that adding memory can be done via SPI
bus with SRAM.
In this way ecos can be running with light modification on ldi files,
seen in this post :
http://sourceware.org/ml/ecos-discuss/2003-10/msg00338.html

Can you confirm me it's the correct way ?

David.

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

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

end of thread, other threads:[~2008-04-10  8:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-08 10:45 [ECOS] Status of at91sam7xek David.Babin
2008-04-08 11:10 ` Andrew Lunn
2008-04-08 15:17   ` Andrew Lunn
2008-04-08 18:47     ` David.Babin
2008-04-08 19:55       ` Andrew Lunn
2008-04-10  8:47 David Babin
2008-04-10  8:50 ` Andrew Lunn
2008-04-10 13:58 ` Markus Schaber

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).