All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Booting from NAND flash
Date: Thu, 29 Nov 2007 07:19:24 +0100	[thread overview]
Message-ID: <200711290719.24975.sr@denx.de> (raw)
In-Reply-To: <67BFAF42E016FC40ADE4EE73E07B70600CA43F@pks00005.kanatek.com>

Hi Craig,

On Wednesday 28 November 2007, Craig Millen wrote:
> I am currently trying to use u-boot to boot from NAND flash as opposed
> to NOR flash.
> We have both on our board, but would rather just use NAND and depopulate
> the NOR.
>
> Questions:
> There seems to be only one complete setup that includes a bootloader and
> full support for NAND booting, which is the AMCC/Sequoia board.  Though
> my board is very similar, we are using the PPC440EP and not the
> PPC440EPX, with the latter having internal RAM.
> Has anyone booted u-boot from NAND by using the external RAM?

Yes. You missed other platforms that support NAND booting:

AMCC-Acadia (405EZ) and AMCC-Bamboo (440EP)

And here you go: 440EP is already supported.

> Excerpt from u-boot/cpu/ppc4xx/start.S starting at line 389:
>
> #if defined(CONFIG_NAND_SPL)
>  /*
>   * Enable internal SRAM
>   */

This doesn't seem to be the current source code. In the current version this 
looks like this:

#if defined(CONFIG_NAND_SPL)
#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
        /*
         * Enable internal SRAM (only on 440EPx/GRx, 440EP/GR have no OCM)
         */
        lis     r2,0x7fff
        ori     r2,r2,0xffff
        mfdcr   r1,isram0_dpc
        and     r1,r1,r2                /* Disable parity check */
        mtdcr   isram0_dpc,r1
        mfdcr   r1,isram0_pmeg
        and     r1,r1,r2                /* Disable pwr mgmt */
        mtdcr   isram0_pmeg,r1
#endif
#if defined(CONFIG_440EP)
        /*
         * On 440EP with no internal SRAM, we setup SDRAM very early
         * and copy the NAND_SPL to SDRAM and jump to it
         */

So you should really update to the latest U-Boot version and use Bamboo as a 
reference for your NAND booting port.

Just let me know if you have any further questions.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2007-11-29  6:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-28 20:16 [U-Boot-Users] Booting from NAND flash Craig Millen
2007-11-29  6:19 ` Stefan Roese [this message]
     [not found] <mailman.815502.1196284960.7786.u-boot-users@lists.sourceforge.net>
2007-11-29 14:12 ` Fowley, Douglas G

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=200711290719.24975.sr@denx.de \
    --to=sr@denx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.