
Dear Kok:
The macros `NAND_CTL_SETCLE' and others need to be defined for the hardware in your system to set/clr the CLE (CommandLatchEnable), set/clr ALE (Address Latch Enable) and a few others.
How these work is described in the readme for nand and once defined, this code will compile and work properly.
The issue is that each board has a different implementation and macros are required to accommodate the various addressing schemes used by hardware designers for nand access.
Charles
-----Original Message----- From: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] On Behalf Of KokHow.Teh@infineon.com Sent: Wednesday, January 17, 2007 1:32 AM To: u-boot-users@lists.sourceforge.net Subject: [U-Boot-Users] U-boot-1.1.5: building nand_base failed
Hi; I have the following error when building nand_base.c:
make[1]: Entering directory `/usr/src/u-boot/drivers/nand' mips-linux-gcc -g -Os -D__KERNEL__ -DUBOOT_RAM_TEXT_BASE=0xA0400000 -I/usr/src/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uclibc-toolchain/ifx-lxdb-1-2/gcc-3.4.4/toolchain-mips/bin-ccache/. ./lib/gcc/mips-linux-uclibc/3.4.4/include -pipe -DCONFIG_MIPS -D__MIPS__ -march=mips32r2 -mtune=mips32r2 -EB -mabicalls -Wall -Wstrict-prototypes -DCONFIG_IFX_MIPS -DCONFIG_LZMA -DIFX_CONFIG_MEMORY_SIZE=32 -DIFX_CONFIG_FLASH_SIZE=4 -DCONFIG_REMOVE_GZIP -DIFX_UBOOT_OPTIMIZED -DIFX_CONFIG_KERNEL_MEMORY_SIZE=31 -c -o nand.o nand.c mips-linux-gcc -g -Os -D__KERNEL__ -DUBOOT_RAM_TEXT_BASE=0xA0400000 -I/usr/src/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uclibc-toolchain/ifx-lxdb-1-2/gcc-3.4.4/toolchain-mips/bin-ccache/. ./lib/gcc/mips-linux-uclibc/3.4.4/include -pipe -DCONFIG_MIPS -D__MIPS__ -march=mips32r2 -mtune=mips32r2 -EB -mabicalls -Wall -Wstrict-prototypes -DCONFIG_IFX_MIPS -DCONFIG_LZMA -DIFX_CONFIG_MEMORY_SIZE=32 -DIFX_CONFIG_FLASH_SIZE=4 -DCONFIG_REMOVE_GZIP -DIFX_UBOOT_OPTIMIZED -DIFX_CONFIG_KERNEL_MEMORY_SIZE=31 -c -o nand_base.o nand_base.c nand_base.c: In function `nand_command': nand_base.c:542: error: `NAND_CTL_SETCLE' undeclared (first use in this function) nand_base.c:542: error: (Each undeclared identifier is reported only once nand_base.c:542: error: for each function it appears in.) nand_base.c:565: error: `NAND_CTL_CLRCLE' undeclared (first use in this function) nand_base.c:568: error: `NAND_CTL_SETALE' undeclared (first use in this function) nand_base.c:585: error: `NAND_CTL_CLRALE' undeclared (first use in this function) nand_base.c: In function `nand_command_lp': nand_base.c:654: error: `NAND_CTL_SETCLE' undeclared (first use in this function) nand_base.c:658: error: `NAND_CTL_CLRCLE' undeclared (first use in this function) nand_base.c:661: error: `NAND_CTL_SETALE' undeclared (first use in this function) nand_base.c:679: error: `NAND_CTL_CLRALE' undeclared (first use in this function) nand_base.c: In function `nand_wait': nand_base.c:841: warning: integer overflow in expression nand_base.c:843: warning: integer overflow in expression make[1]: *** [nand_base.o] Error 1 make[1]: Leaving directory `/usr/src/u-boot/drivers/nand' make: *** [drivers/nand/libnand.a] Error 2 [tehkok@linux2:/usr/src/u-boot 34]$ grep NAND_CTL_ include/configs/ifx_mips.h #define NAND_CTL_CLRALE(nandptr) #define NAND_CTL_SETALE(nandptr) #define NAND_CTL_CLRCLE(nandptr) #define NAND_CTL_SETCLE(nandptr) [tehkok@linux2:/usr/src/u-boot 35]$
Any insight is appreciated.
Best Regards, Kok How
------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D... V _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users