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

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@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

On Monday 23 October 2006 14:12, Jack Hab wrote:
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,
It _is_ called from U-Boot code. Via the "nand read/write/bad ..." commands.
so what's the mechanism which includes this file in the link stage?
Nothing special. Works for me just fine as is.
Best regards, Stefan
participants (2)
-
Jack Hab
-
Stefan Roese