summaryrefslogtreecommitdiff
path: root/recipes/images/files/colibri-t30/colibri-t30_bin/flash_mmc.scr
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-05-05 09:48:53 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2015-05-12 10:06:08 +0200
commit2602b3986aa66203ecd375139f9eba0cbd5543c3 (patch)
tree156e23eb1bcff949e19ec32c51e64677f3c441f9 /recipes/images/files/colibri-t30/colibri-t30_bin/flash_mmc.scr
parenta1f6d5b25c105b5088c3aa1b407c4fed8389064a (diff)
apalis/colibri_imx6/t20/t30: revamp update scripts
iMX6: Always do use a secondary argument for the 'mmc dev' command. T30: Do rootfs update of eMMC in chunks as well. Requires pre-splitting file in Ethernet case. As an advantage allows flashing rootfs bigger than RAM plus avoids timeouts during flashing. Added wrapper flash_mmc script as well for backwards compatibility reason. While at it cleanup various whitespaces throughout the update scripts.
Diffstat (limited to 'recipes/images/files/colibri-t30/colibri-t30_bin/flash_mmc.scr')
-rw-r--r--recipes/images/files/colibri-t30/colibri-t30_bin/flash_mmc.scr6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes/images/files/colibri-t30/colibri-t30_bin/flash_mmc.scr b/recipes/images/files/colibri-t30/colibri-t30_bin/flash_mmc.scr
new file mode 100644
index 0000000..207c7db
--- /dev/null
+++ b/recipes/images/files/colibri-t30/colibri-t30_bin/flash_mmc.scr
@@ -0,0 +1,6 @@
+#flash_mmc has been renamed to flash_blk, ensure compatibilty when updating from older versions
+test -n ${interface} || setenv interface mmc
+test -n ${drive} || setenv drive 1
+
+fatload ${interface} ${drive}:1 ${loadaddr} flash_blk.img
+source ${loadaddr}