summaryrefslogtreecommitdiff
path: root/board/ti
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-07-17 12:24:30 -0400
committerTom Rini <trini@ti.com>2013-07-30 09:21:37 -0400
commit97559b5203e01b033e01aac2d5c0858b2bdaa7aa (patch)
treefca8cd50d52c0eb81d1662dd27aa6a66cf9f8541 /board/ti
parentea70690d6636bf1461ab601fbaa00039896d76c6 (diff)
downloadu-boot-imx-97559b5203e01b033e01aac2d5c0858b2bdaa7aa.zip
u-boot-imx-97559b5203e01b033e01aac2d5c0858b2bdaa7aa.tar.gz
u-boot-imx-97559b5203e01b033e01aac2d5c0858b2bdaa7aa.tar.bz2
board/ti/am335x/README: Document NAND programming
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>
Diffstat (limited to 'board/ti')
-rw-r--r--board/ti/am335x/README24
1 files changed, 24 insertions, 0 deletions
diff --git a/board/ti/am335x/README b/board/ti/am335x/README
index ccc5e16..6d45352 100644
--- a/board/ti/am335x/README
+++ b/board/ti/am335x/README
@@ -13,6 +13,30 @@ 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 write ${loadaddr} kernel 500000
Falcon Mode
===========