diff options
author | Rabeeh Khoury <rabeeh@marvell.com> | 2009-10-08 17:10:52 -0700 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-10-08 17:10:52 -0700 |
commit | 7b650a6abefbede7beffff32ef38518b026ea060 (patch) | |
tree | c171690ef4f09d910ebefbe933b1a5c6b70eca59 /tcl | |
parent | 41c1af7c672cfae188308b7b2ec994f9095e621d (diff) | |
download | openocd_libswd-7b650a6abefbede7beffff32ef38518b026ea060.tar.gz openocd_libswd-7b650a6abefbede7beffff32ef38518b026ea060.tar.bz2 openocd_libswd-7b650a6abefbede7beffff32ef38518b026ea060.tar.xz openocd_libswd-7b650a6abefbede7beffff32ef38518b026ea060.zip |
Function to flash SheevaPlug u-boot sectors
This function is used by the SheevaPlug installer to flash the
erase and re-flash the U-Boot environment in the NAND Flash.
Diffstat (limited to 'tcl')
-rw-r--r-- | tcl/board/sheevaplug.cfg | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tcl/board/sheevaplug.cfg b/tcl/board/sheevaplug.cfg index 1a3f61b8..62b78ee1 100644 --- a/tcl/board/sheevaplug.cfg +++ b/tcl/board/sheevaplug.cfg @@ -110,6 +110,17 @@ proc sheevaplug_reflash_uboot { } { } +proc sheevaplug_reflash_uboot_env { } { + + # reflash the u-Boot environment variables area + sheevaplug_init + nand probe 0 + nand erase 0 0xa0000 0x40000 + nand write 0 uboot-env.bin 0xa0000 oob_softecc_kw + resume + +} + proc sheevaplug_load_uboot { } { # load u-Boot into RAM and execute it |