[ECOS] cq7750 flash patch

Koichi Nagashima naga@r-lab.co.jp
Tue Dec 3 02:18:00 GMT 2002


Hi,

Please apply the attached patch to avoid the compile error.

**** log ****************
shell> ecosconfig new cq7750 redboot; ecosconfig add flash
U CYGHWR_HAL_SH_CACHE_ENABLE, new inferred value 0
U CYGSEM_HAL_USE_ROM_MONITOR, new inferred value 0
U CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM, new inferred value 0
U CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS, new inferred value 1
U CYGFUN_LIBC_STRING_BSD_FUNCS, new inferred value 0
U CYGPKG_NS_DNS_BUILD, new inferred value 0
U CYGHWR_DEVS_FLASH_AMD_TC58FVB800, new inferred value 1
shell> ecosconfig tree; make
make[1]: Entering directory `/home/naga/eCos/build-sh/redbootRAM'
...
...
...
sh-elf-gcc -mb -m3 -ggdb -nostdlib -Wl,--gc-sections -Wl,-static -L/home/naga/eCos/build-sh/redbootRAM/install/lib -Ttarget.ld -o /home/naga/eCos/build-sh/redbootRAM/install/bin/redboot.elf /home/naga/eCos/build-sh/redbootRAM/install/lib/version.o
/home/naga/eCos/build-sh/redbootRAM/install/lib/libtarget.a(devs_flash_sh_cq7750_cq7750_flash.o): In function `flash_program_buf':
/home/naga/eCos/build-sh/redbootRAM/install/include/cyg/io/flash_am29xxxxx.inl:218: undefined reference to `HAL_READ_UINT32'
/home/naga/eCos/build-sh/redbootRAM/install/include/cyg/io/flash_am29xxxxx.inl:219: undefined reference to `HAL_READ_UINT32'
/home/naga/eCos/build-sh/redbootRAM/install/include/cyg/io/flash_am29xxxxx.inl:219: undefined reference to `HAL_READ_UINT32'
collect2: ld returned 1 exit status
make[2]: *** [/home/naga/eCos/build-sh/redbootRAM/install/bin/redboot.elf] Error 1
make[2]: Leaving directory `/home/naga/eCos/build-sh/redbootRAM/redboot/current'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/naga/eCos/build-sh/redbootRAM'
make: *** [redbootRAM] Error 2
shell>

+++++++++++++++++++++++++++++++++++++++++++
Koichi Nagsahima, R-lab Inc. (in Japan)
E-mail: naga@r-lab.co.jp
Tel: +81-3-3312-0733  FAX: +81-3-3317-3004
+++++++++++++++++++++++++++++++++++++++++++

-------------- next part --------------
--- ecos.redhat-cvs/packages/devs/flash/sh/cq7750/current/src/cq7750_flash.c	Fri May 24 08:01:04 2002
+++ ecos/packages/devs/flash/sh/cq7750/current/src/cq7750_flash.c	Tue Dec  3 12:59:21 2002
@@ -59,6 +59,7 @@
 #define CYGNUM_FLASH_BASE 	(0x80000000u)
 // #define CYGHWR_FLASH_AM29XXXXX_NO_WRITE_PROTECT
 
+#include <cyg/hal/hal_io.h>
 #include "cyg/io/flash_am29xxxxx.inl"
 
 

-------------- next part --------------
-- 
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