diff mbox

ARM: uniphier: add usbupdate command

Message ID 1494417459-6215-1-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 8d3064d9a93a14fdec9e6963766ed77cf3f826a1
Headers show

Commit Message

Masahiro Yamada May 10, 2017, 11:57 a.m. UTC
This script command will be useful to update boot images in the
USB storage.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 include/configs/uniphier.h | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Masahiro Yamada May 17, 2017, 2:23 p.m. UTC | #1
2017-05-10 20:57 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> This script command will be useful to update boot images in the
> USB storage.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>


Applied to u-boot-uniphier/master.
diff mbox

Patch

diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h
index cdc5b00..7bd2d8c 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