[U-Boot-Users] NAND access via custom interface

Jack Hab jackhab at gmail.com
Mon Oct 23 14:12:19 CEST 2006


Yes I have all the defines related to the NAND.
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?


On 10/23/06, Stefan Roese <sr at denx.de> wrote:
>
> Hi Jack,
>
> On Monday 23 October 2006 13:43, you wrote:
> > I've implemented the NAND interface with functions registerd in
> nand_chip
> > struct. All compiles fine but somehow the cmd_nand.c is not getting
> linked.
> > I get the U-Boot image with all my nand flash functions inside but since
> > cmd_nand.c is not linked, U_BOOT_CMD does not register the nand
> commands.
> > I have
> >
> > #define CONFIG_COMMANDS    (CONFIG_CMD_DFL | CFG_CMD_NAND
> >
> > in my boardconfig.h
> >
> > Is there anything else needed?
>
> Do you have something like:
>
> /*
> * NAND-FLASH stuff
> */
> #define CFG_MAX_NAND_DEVICE     1
> #define NAND_MAX_CHIPS          1
> #define CFG_NAND_BASE           0x51000000      /* NAND FLASH Base Address
> */
>
> in your config file? And please make sure that you don't
> have "CFG_NAND_LEGACY" defined.
>
> BTW: Please keep send those kind of messages to the list and not _only_ to
> me.
> Thanks.
>
> Best regards,
> Stefan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20061023/299535d6/attachment.htm 


More information about the U-Boot mailing list