]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
omap3: overo: Use software BCH8 ECC for NAND
authorAsh Charles <ashcharles@gmail.com>
Tue, 28 Apr 2015 23:17:53 +0000 (16:17 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:38:42 +0000 (22:38 +0200)
commit2fdcf424d2e894ff2cd4ae99c437f10e8612a9fb
tree5400be06891b55f8edb118033e6f307361c30794
parentf2b371db93fa32bc14ce00bcd843ce180c264891
omap3: overo: Use software BCH8 ECC for NAND

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@lists.denx.de/msg163912.html

Signed-off-by: Ash Charles <ashcharles@gmail.com>
include/configs/omap3_overo.h