Skip to content
Snippets Groups Projects
Commit fbe73dc8 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

ARM: uniphier: select a correct mmc device before flashing images


Some boards support an SD card and an eMMC device at the same time.
Since both belong to 'mmc', they are identified by a device number.
When the device number of the eMMC is 1 instead 0, "mmc dev" command
must be performed to switch the target device before flashing images.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 045e4fcb
No related branches found
No related tags found
No related merge requests found
...@@ -186,6 +186,7 @@ ...@@ -186,6 +186,7 @@
"setexpr tmp_addr $nor_base + 0x70000 && " \ "setexpr tmp_addr $nor_base + 0x70000 && " \
"tftpboot $tmp_addr $third_image\0" \ "tftpboot $tmp_addr $third_image\0" \
"emmcupdate=mmcsetn &&" \ "emmcupdate=mmcsetn &&" \
"mmc dev $mmc_first_dev &&" \
"mmc partconf $mmc_first_dev 0 1 1 &&" \ "mmc partconf $mmc_first_dev 0 1 1 &&" \
"tftpboot $second_image && " \ "tftpboot $second_image && " \
"mmc write $loadaddr 0 100 && " \ "mmc write $loadaddr 0 100 && " \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment