[ECOS] why flash package can not be added ?

zheng wujun wj_zheng10@hotmail.com
Wed Nov 26 02:13:00 GMT 2003


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



More information about the Ecos-discuss mailing list