summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-02-16 17:08:41 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2016-02-29 03:50:16 +0900
commitc231c4367ace6574e27ff0d1844d163fc471287b (patch)
tree293c5a005ed85d2729ca1f0832822c9073d9ba8c /include/configs
parent569e4be172d1bf2041e97c0b65f872a7451b178a (diff)
downloadu-boot-imx-c231c4367ace6574e27ff0d1844d163fc471287b.zip
u-boot-imx-c231c4367ace6574e27ff0d1844d163fc471287b.tar.gz
u-boot-imx-c231c4367ace6574e27ff0d1844d163fc471287b.tar.bz2
ARM: uniphier: add emmcupdate command
The Boot ROM expects the boot image (SPL) in the Boot Partition 1. So, updating images involves the hardware partition switch. It might be a bit advanced for some users. To be user-friendly, this commit adds a useful command to update the images; just put SPL and U-Boot proper into the public directory of the TFTP server and execute "run emmcupdate" from the command line. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/uniphier.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h
index 19dbfbb..1b28cdc 100644
--- a/include/configs/uniphier.h
+++ b/include/configs/uniphier.h
@@ -233,6 +233,13 @@
"netdev=eth0\0" \
"verify=n\0" \
"nor_base=0x42000000\0" \
+ "emmcupdate=mmcsetn &&" \
+ "mmc partconf $mmc_first_dev 0 1 1 &&" \
+ "mmc erase 0 800 &&" \
+ "tftpboot u-boot-spl.bin &&" \
+ "mmc write $loadaddr 0 80 &&" \
+ "tftpboot u-boot.img &&" \
+ "mmc write $loadaddr 80 780\0" \
"nandupdate=nand erase 0 0x00100000 &&" \
"tftpboot u-boot-spl.bin &&" \
"nand write $loadaddr 0 0x00010000 &&" \