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> &lt;<a href="mailto:sr@denx.de">sr@denx.de</a>&gt; 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>&gt; I've implemented the NAND interface with functions registerd in nand_chip<br>&gt; struct. All compiles fine but somehow the cmd_nand.c is not getting linked.
<br>&gt; I get the U-Boot image with all my nand flash functions inside but since<br>&gt; cmd_nand.c is not linked, U_BOOT_CMD does not register the nand commands.<br>&gt; I have<br>&gt;<br>&gt; #define CONFIG_COMMANDS&nbsp;&nbsp;&nbsp;&nbsp;(CONFIG_CMD_DFL | CFG_CMD_NAND
<br>&gt;<br>&gt; in my boardconfig.h<br>&gt;<br>&gt; 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&nbsp;&nbsp;&nbsp;&nbsp; 1<br>#define NAND_MAX_CHIPS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1
<br>#define CFG_NAND_BASE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x51000000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* NAND FLASH Base Address<br>*/<br><br>in your config file? And please make sure that you don't<br>have &quot;CFG_NAND_LEGACY&quot; 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>