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.
__archive__
Rabeeh Khoury 2009-10-08 17:10:52 -07:00 committed by Zachary T Welch
parent 41c1af7c67
commit 7b650a6abe
1 changed files with 11 additions and 0 deletions

View File

@ -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 { } { proc sheevaplug_load_uboot { } {
# load u-Boot into RAM and execute it # load u-Boot into RAM and execute it