From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, 4/6] omap3: overo: Use software BCH8 ECC for NAND
Date: Sun, 10 May 2015 10:09:20 -0400 [thread overview]
Message-ID: <20150510140920.GW5267@bill-the-cat> (raw)
In-Reply-To: <1430263075-27682-5-git-send-email-ashcharles@gmail.com>
On Tue, Apr 28, 2015 at 04:17:53PM -0700, Ash Charles wrote:
> Overo COMs have NAND flash that requires 4-bit ECC or better except for
> the first sector which can use 1-bit ECC. The boot ROM expects to load
> a payload from NAND written using 1-bit hardware-based ECC. In short,
> write SPL to NAND something like this (4 times for redundancy):
> #> nandecc hw
> #> nand write ${loadaddr} 0x0 ${filesize}
> #> nand write ${loadaddr} 0x20000 ${filesize}
> #> nand write ${loadaddr} 0x40000 ${filesize}
> #> nand write ${loadaddr} 0x60000 ${filesize}
>
> Then, switch back to software-based BCH8 for everything else:
> #> nandecc sw bch8
>
> After [1], enlarge the max size of the SPL so the BCH code can fit.
>
> [1] https://www.mail-archive.com/u-boot at lists.denx.de/msg163912.html
>
> Signed-off-by: Ash Charles <ashcharles@gmail.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150510/00977f69/attachment.sig>
next prev parent reply other threads:[~2015-05-10 14:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-28 23:17 [U-Boot] [PATCH 0/6] omap3: overo: collected fixes Ash Charles
2015-04-28 23:17 ` [U-Boot] [PATCH 1/6] omap3: overo: Set the Arbor43C 'expansionname' Ash Charles
2015-05-10 14:09 ` [U-Boot] [U-Boot, " Tom Rini
2015-04-28 23:17 ` [U-Boot] [PATCH 2/6] omap3: overo: Add DTS support for TobiDuo expansion Ash Charles
2015-05-10 14:09 ` [U-Boot] [U-Boot, " Tom Rini
2015-04-28 23:17 ` [U-Boot] [PATCH 3/6] overo: Add support for Palo35 expansion board Ash Charles
2015-05-10 14:09 ` [U-Boot] [U-Boot, " Tom Rini
2015-04-28 23:17 ` [U-Boot] [PATCH 4/6] omap3: overo: Use software BCH8 ECC for NAND Ash Charles
2015-05-10 14:09 ` Tom Rini [this message]
2015-04-28 23:17 ` [U-Boot] [PATCH 5/6] omap3: overo: Allow boot with kernel in UBI rootfs Ash Charles
2015-05-10 14:09 ` [U-Boot] [U-Boot, " Tom Rini
2015-04-28 23:17 ` [U-Boot] [PATCH 6/6] overo: Override RAM setup for rev. 0 boards Ash Charles
2015-05-10 14:07 ` [U-Boot] [U-Boot, " Tom Rini
2015-05-11 15:23 ` Ash Charles
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=20150510140920.GW5267@bill-the-cat \
--to=trini@konsulko.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