diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2015-02-05 14:30:22 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2015-02-07 00:11:12 +0900 |
commit | 75bc8e85b5aa44c8f834ec9518c8ca4a7c1d7067 (patch) | |
tree | 2a7d2fcfc1877d27f53bf9070028474e6df7559a /include/configs/uniphier.h | |
parent | 0e063dff5c8a555ad92e26edb5c6358a127d5c8f (diff) |
ARM: UniPhier: add environment variable to update images in NAND
To boot UniPhier boards with the NAND boot mode, two images
(u-boot-spl.bin and u-boot-dtb.img) must be written at the correct
offset addresses.
TFTP downloading is useful to update such images in the NAND device.
We generally do:
=> nand erase 0 0x100000
=> tftpboot u-boot-spl.bin
=> nand write $loadaddr 0 0x10000
=> tftpboot u-boot-dtb.img
=> nand write $loadaddr 0x10000 0xf0000
It is a tedious and error-prone operation.
This commit provides the shorthand:
=> run nandupdate
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'include/configs/uniphier.h')
-rw-r--r-- | include/configs/uniphier.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h index 43d2a4c359..35bea1a72f 100644 --- a/include/configs/uniphier.h +++ b/include/configs/uniphier.h @@ -235,6 +235,11 @@ "image_offset=0x00080000\0" \ "image_size=0x00f00000\0" \ "verify=n\0" \ + "nandupdate=nand erase 0 0x100000 &&" \ + "tftpboot u-boot-spl.bin &&" \ + "nand write $loadaddr 0 0x10000 &&" \ + "tftpboot u-boot-dtb.img &&" \ + "nand write $loadaddr 0x10000 0xf0000\0" \ "norboot=run add_default_bootargs &&" \ "bootm $image_offset\0" \ "nandboot=run add_default_bootargs &&" \ |