All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/1] board/ti/am335x/README: Document NAND programming
Date: Wed, 17 Jul 2013 16:52:54 -0500	[thread overview]
Message-ID: <1374097974.8183.369@snotra> (raw)
In-Reply-To: <1374078270-20098-2-git-send-email-trini@ti.com> (from trini@ti.com on Wed Jul 17 11:24:30 2013)

On 07/17/2013 11:24:30 AM, Tom Rini wrote:
> The AM335x GP EVM ships with NAND.  Document programming of the chip
> including the redundant locations that the ROM will check.
> 
> Signed-off-by: Tom Rini <trini@ti.com>
> ---
>  board/ti/am335x/README |   25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
> 
> diff --git a/board/ti/am335x/README b/board/ti/am335x/README
> index ccc5e16..3444d7e 100644
> --- a/board/ti/am335x/README
> +++ b/board/ti/am335x/README
> @@ -13,6 +13,31 @@ documented in TI's reference designs:
>  - AM335x EVM SK
>  - Beaglebone White
>  - Beaglebone Black
> +'
> +NAND
> +====
> +
> +The AM335x GP EVM ships with a 256MiB NAND available in most  
> profiles.  In
> +this example to program the NAND we assume that an SD card has been
> +inserted with the files to write in the first SD slot and that  
> mtdparts
> +have been configured correctly for the board.  As a time saving  
> measure we
> +load MLO into memory in one location, copy it into the three  
> locatations
> +that the ROM checks for additional valid copies, then load U-Boot  
> into
> +memory.  We then write that whole section of memory to NAND.
> +
> +U-Boot # mmc rescan
> +U-Boot # env default -f -a
> +U-Boot # nand erase.chip
> +U-Boot # saveenv
> +U-Boot # load mmc 0 81000000 MLO
> +U-Boot # cp.b 81000000 81020000 20000
> +U-Boot # cp.b 81000000 81040000 20000
> +U-Boot # cp.b 81000000 81060000 20000
> +U-Boot # load mmc 0 81080000 u-boot.img
> +U-Boot # nand write 81000000 0 260000
> +U-Boot # load mmc 0 ${loadaddr} uImage
> +U-Boot # nand erase.part kernel
> +U-Boot # nand write ${loadaddr} kernel 500000

You've already done a "nand erase.chip"...  Why do you need to erase  
"kernel" again?

-Scott

  reply	other threads:[~2013-07-17 21:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-17 16:24 [U-Boot] [PATCH 0/1] Add NAND to board/ti/am335x/README Tom Rini
2013-07-17 16:24 ` [U-Boot] [PATCH 1/1] board/ti/am335x/README: Document NAND programming Tom Rini
2013-07-17 21:52   ` Scott Wood [this message]
2013-07-17 22:04     ` Tom Rini
2013-07-30 13:28   ` Tom Rini

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=1374097974.8183.369@snotra \
    --to=scottwood@freescale.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 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.