public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Sughosh Ganu <urwithsughosh@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] OMAP3: NAND init problems
Date: Sat, 18 Jun 2011 00:57:08 +0530	[thread overview]
Message-ID: <20110617192707.GA17494@Hardy> (raw)
In-Reply-To: <BANLkTimmd5BSgOLdp3dtV1iTpn7gEobWZQ@mail.gmail.com>

hi,
On Fri Jun 17, 2011 at 12:03:31PM +0200, Simon Schwarz wrote:

> I'am trying to get the NAND-flash to work in my OMAP3 SPL. I
> essentially call these functions after the base init:
> gpmc_init();
> nand_init();

  I guess this is the same as nand_spl. Do you use nand_boot.c in the
  spl code. This file has the nand_chip object declared as a local
  variable on the stack, and not bss.


> But in nand_init() the cpu jumps somewhere in memory. I tracked that
> down to nand_get_flash_type() to the call chip->select_chip(mtd, 0);
> Some digging shows that the select_chip function pointer isn't
> initialized -> just garbage.

  If you check the nand_boot function in the nand_boot.c, it calls
  board_nand_init, and not nand_init, so i guess you are using a
  different path here.

-sughosh

  parent reply	other threads:[~2011-06-17 19:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17 10:03 [U-Boot] OMAP3: NAND init problems Simon Schwarz
2011-06-17 14:41 ` Andreas Bießmann
     [not found]   ` <BANLkTi=91rBGKWnRaQxkdPj5aGNARy687Q@mail.gmail.com>
2011-06-17 17:13     ` Andreas Bießmann
2011-06-17 19:27 ` Sughosh Ganu [this message]
2011-06-20 16:17   ` Simon Schwarz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110617192707.GA17494@Hardy \
    --to=urwithsughosh@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox