summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-05-10 20:57:39 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-05-17 21:46:20 +0900
commit8d3064d9a93a14fdec9e6963766ed77cf3f826a1 (patch)
treeffa10dc9737d0e2527ad38162be21f05b6a481a1
parentc5bd411f6c152cecb0411e9a658d8394562a3fd1 (diff)
ARM: uniphier: add usbupdate command
This script command will be useful to update boot images in the USB storage. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r--include/configs/uniphier.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h
index cdc5b0018a..7bd2d8cc28 100644
--- a/include/configs/uniphier.h
+++ b/include/configs/uniphier.h
@@ -246,6 +246,11 @@
"nand write $loadaddr 0 0x00020000 && " \
"tftpboot $third_image && " \
"nand write $loadaddr 0x00020000 0x000e0000\0" \
+ "usbupdate=usb start &&" \
+ "tftpboot $second_image && " \
+ "usb write $loadaddr 0 100 && " \
+ "tftpboot $third_image && " \
+ "usb write $loadaddr 100 700\0" \
BOOT_IMAGES \
LINUXBOOT_ENV_SETTINGS