Yes I have all the defines related to the NAND. <br>I understand the stuff in cmd_nand.c is not called directly from U-Boot code, so what's the mechanism which includes this file in the link stage?<br><br><br><div><span class="gmail_quote">
On 10/23/06, <b class="gmail_sendername">Stefan Roese</b> <<a href="mailto:sr@denx.de">sr@denx.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Jack,<br><br>On Monday 23 October 2006 13:43, you wrote:<br>> I've implemented the NAND interface with functions registerd in nand_chip<br>> struct. All compiles fine but somehow the cmd_nand.c is not getting linked.
<br>> I get the U-Boot image with all my nand flash functions inside but since<br>> cmd_nand.c is not linked, U_BOOT_CMD does not register the nand commands.<br>> I have<br>><br>> #define CONFIG_COMMANDS (CONFIG_CMD_DFL | CFG_CMD_NAND
<br>><br>> in my boardconfig.h<br>><br>> Is there anything else needed?<br><br>Do you have something like:<br><br>/*<br> * NAND-FLASH stuff<br> */<br>#define CFG_MAX_NAND_DEVICE 1<br>#define NAND_MAX_CHIPS 1
<br>#define CFG_NAND_BASE 0x51000000 /* NAND FLASH Base Address<br>*/<br><br>in your config file? And please make sure that you don't<br>have "CFG_NAND_LEGACY" defined.<br><br>BTW: Please keep send those kind of messages to the list and not _only_ to me.
<br>Thanks.<br><br>Best regards,<br>Stefan<br></blockquote></div><br>