public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] why flash package can not be added ?
@ 2003-11-26  2:13 zheng wujun
  2003-11-26  8:40 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: zheng wujun @ 2003-11-26  2:13 UTC (permalink / raw)
  To: ecos-discuss

Thanks !!! all

I also want to include the flash package to generate redboot.bin file,but 
when I include flash package CYGPKG_IO_FLASH and compile sa below and 
compile error will happen;Another,when I use configtool to generate the 
redboot.bin file,this error also happened.

*****************************************************************
[root@zheng kernel]#
[root@zheng kernel]# ./ecosconfig new snds redboot
[root@zheng kernel]# ./ecosconfig import 
/opt/ecos/ecos-2.0/packages/hal/arm/snds/v2_0/misc/redboot_ROM.ecm
[root@zheng kernel]# ./ecosconfig add CYGPKG_IO_FLASH
[root@zheng kernel]# ./ecosconfig check
Target: snds
Template: redboot
Added:
CYGPKG_IO_FLASH
No conflicts
[root@zheng kernel]# ./ecosconfig tree
[root@zheng kernel]# make
make -r -C hal/arm/arch/v2_0 headers
make[1]: Entering directory `/home/examples/kernel/hal/arm/arch/v2_0'
make[1]: Leaving directory `/home/examples/kernel/hal/arm/arch/v2_0'
make -r -C hal/arm/snds/v2_0 headers

......

make[1]: Leaving directory `/home/examples/kernel/hal/arm/arch/v2_0'
make -r -C redboot/v2_0 /home/examples/kernel/install/bin/redboot.elf
make[1]: Entering directory `/home/examples/kernel/redboot/v2_0'
arm-elf-gcc -c  -I/home/examples/kernel/install/include 
-I/opt/ecos/ecos-2.0/packages/redboot/v2_0 
-I/opt/ecos/ecos-2.0/packages/redboot/v2_0/src 
-I/opt/ecos/ecos-2.0/packages/redboot/v2_0/tests -I. -mcpu=arm7tdmi -Wall 
-Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g 
-O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions 
-fvtable-gc -finit-priority -o /home/examples/kernel/install/lib/version.o 
/opt/ecos/ecos-2.0/packages/redboot/v2_0/src/version.c
arm-elf-gcc -mcpu=arm7tdmi -g -nostdlib -Wl,--gc-sections -Wl,-static 
-L/home/examples/kernel/install/lib -Ttarget.ld -o 
/home/examples/kernel/install/bin/redboot.elf 
/home/examples/kernel/install/lib/version.o
/home/examples/kernel/install/lib/libtarget.a(redboot_main.o): In function 
`do_go':
/home/examples/kernel/install/include/cyg/hal/hal_if.h:607: undefined 
reference to `_flash_info'
collect2: ld returned 1 exit status
make[1]: *** [/home/examples/kernel/install/bin/redboot.elf] Error 1
make[1]: Leaving directory `/home/examples/kernel/redboot/v2_0'
make: *** [build] Error 2
[root@zheng kernel]#
[root@zheng kernel]#
[root@zheng kernel]#

************************************************************************
Can someone give me some hints?

Thank in advance!

_________________________________________________________________
Groove on the latest from the hot new rock groups!  Get downloads, videos, 
and more here.  http://special.msn.com/entertainment/wiredformusic.armx


-- 
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] 3+ messages in thread

* Re: [ECOS] why flash package can not be added ?
  2003-11-26  2:13 [ECOS] why flash package can not be added ? zheng wujun
@ 2003-11-26  8:40 ` Andrew Lunn
  2003-11-26  9:23   ` Roland Caßebohm
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2003-11-26  8:40 UTC (permalink / raw)
  To: zheng wujun; +Cc: ecos-discuss

On Wed, Nov 26, 2003 at 02:13:28AM +0000, zheng wujun wrote:
> Thanks !!! all
> 
> I also want to include the flash package to generate redboot.bin file,but 
> when I include flash package CYGPKG_IO_FLASH and compile sa below and 
> compile error will happen;Another,when I use configtool to generate the 
> redboot.bin file,this error also happened.

You have added the generic flash layer, but there is no hardware
specific flash driver for the SNDS. 

Does the SNDS have flash? If so, it looks like you need to write a
driver for it. If its a well known flash chip, that should be
reasonably easy.

           Andrew

-- 
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] 3+ messages in thread

* Re: [ECOS] why flash package can not be added ?
  2003-11-26  8:40 ` Andrew Lunn
@ 2003-11-26  9:23   ` Roland Caßebohm
  0 siblings, 0 replies; 3+ messages in thread
From: Roland Caßebohm @ 2003-11-26  9:23 UTC (permalink / raw)
  To: Andrew Lunn, zheng wujun; +Cc: ecos-discuss

On Mittwoch, 26. November 2003 09:40, Andrew Lunn wrote:
> On Wed, Nov 26, 2003 at 02:13:28AM +0000, zheng wujun wrote:
> > Thanks !!! all
> >
> > I also want to include the flash package to generate redboot.bin file,but
> > when I include flash package CYGPKG_IO_FLASH and compile sa below and
> > compile error will happen;Another,when I use configtool to generate the
> > redboot.bin file,this error also happened.
>
> You have added the generic flash layer, but there is no hardware
> specific flash driver for the SNDS.
>
> Does the SNDS have flash? If so, it looks like you need to write a
> driver for it. If its a well known flash chip, that should be
> reasonably easy.
>
>            Andrew

Which FLASH do you use in the snds board? I could send you a package
for two Atmel AT29C040A used parallel, but I don't know which flashes
are inserted after shipping.

Roland

-- 
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] 3+ messages in thread

end of thread, other threads:[~2003-11-26  9:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-26  2:13 [ECOS] why flash package can not be added ? zheng wujun
2003-11-26  8:40 ` Andrew Lunn
2003-11-26  9:23   ` Roland Caßebohm

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