summaryrefslogtreecommitdiff
path: root/recipes/images/files/library/fwd_blk.scr
diff options
context:
space:
mode:
authorMax Krummenacher <max.oss.09@gmail.com>2015-10-20 14:56:24 +0200
committerMax Krummenacher <max.oss.09@gmail.com>2015-10-28 09:36:02 +0100
commit8a6d1bb3afe9e76156d7999e720527a4f1b3a871 (patch)
treeaea0eed2b77945587752fb2c220961dec1b9570d /recipes/images/files/library/fwd_blk.scr
parent59f0507817c86e84239265a1c0b95d519e467b17 (diff)
update.sh: use moduletype specific folder for output files
With update.sh one creates files on e.g. a SD-card or a tftp server which enables updating the SW on a module from U-Boot running on said module. This commit adds a module type specific directory on that output media so that update data for multiple module types can be stored on one media. Generic U-Boot scripts in the media's root directory do select the matching update data depending on module type.
Diffstat (limited to 'recipes/images/files/library/fwd_blk.scr')
-rw-r--r--recipes/images/files/library/fwd_blk.scr8
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes/images/files/library/fwd_blk.scr b/recipes/images/files/library/fwd_blk.scr
new file mode 100644
index 0000000..9db3744
--- /dev/null
+++ b/recipes/images/files/library/fwd_blk.scr
@@ -0,0 +1,8 @@
+#the update.sh script renames this. fwd_blk.scr -> ../flash_blk.img
+test -n ${interface} || setenv interface mmc
+test -n ${drive} || setenv drive 1
+test "${board_name}" = "colibri_t20" && setenv drive 0
+test "${board_name}" = "colibri_vf" && setenv drive 0
+
+fatload ${interface} ${drive}:1 ${loadaddr} ${board_name}/flash_blk.img
+source ${loadaddr}