public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] calling nand_probe
@ 2006-11-20 15:34 Charles Krinke
  2006-11-20 15:55 ` Stefan Roese
  0 siblings, 1 reply; 2+ messages in thread
From: Charles Krinke @ 2006-11-20 15:34 UTC (permalink / raw)
  To: u-boot

I need to use JFFS2 & NAND to boot a linux kernel. With that in mind, I
define CFG_CMD_NAND & CFG_CMD_JFFS2. 

In looking through cmd_nand.c, I see the routine nand_probe which,
amongs other things sets up the IO_ADDR member of the nand_chip
structure.

But, I don't see anywhere in the code base where nand_probe is called. I
would have expected this to occur in the init_sequence[] array
surrounded by an #ifdef CFG_CMD_NAND.

Can you help me understand if nand_probe is called and if not, where
should it be called. Additionally, any hints about other things to
consider in this little sub-project would be greatly appreciated.

Charles

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot-Users] calling nand_probe
  2006-11-20 15:34 [U-Boot-Users] calling nand_probe Charles Krinke
@ 2006-11-20 15:55 ` Stefan Roese
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2006-11-20 15:55 UTC (permalink / raw)
  To: u-boot

Hi Charles,

On Monday 20 November 2006 16:34, Charles Krinke wrote:
> I need to use JFFS2 & NAND to boot a linux kernel. With that in mind, I
> define CFG_CMD_NAND & CFG_CMD_JFFS2.
>
> In looking through cmd_nand.c, I see the routine nand_probe which,
> amongs other things sets up the IO_ADDR member of the nand_chip
> structure.
>
> But, I don't see anywhere in the code base where nand_probe is called. I
> would have expected this to occur in the init_sequence[] array
> surrounded by an #ifdef CFG_CMD_NAND.

nand_probe() seems to be a function from the "legacy" NAND driver, which 
should no longer be used. Please take a look how this is done in the "new" 
NAND driver "drivers/nand/*". Examples to look at could be the pdnb3 board or 
the PPChameleonEVB.

> Can you help me understand if nand_probe is called and if not, where
> should it be called. Additionally, any hints about other things to
> consider in this little sub-project would be greatly appreciated.

Please see above.

Best regards,
Stefan

PS: Again: Do not use the legacy NAND driver anymore. It's not supported 
anymore and will eventually be deleted by Wolfgang in the future.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-20 15:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-20 15:34 [U-Boot-Users] calling nand_probe Charles Krinke
2006-11-20 15:55 ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox