summaryrefslogtreecommitdiff
path: root/recipes/images/files/colibri-t30/colibri-t30_bin/flash_mmc.scr
diff options
context:
space:
mode:
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}