summaryrefslogtreecommitdiffstats
path: root/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/fwd_blk.scr
diff options
context:
space:
mode:
Diffstat (limited to 'meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/fwd_blk.scr')
-rw-r--r--meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/fwd_blk.scr11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/fwd_blk.scr b/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/fwd_blk.scr
new file mode 100644
index 0000000..7af72e6
--- /dev/null
+++ b/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/fwd_blk.scr
@@ -0,0 +1,11 @@
1#the update.sh script renames this. fwd_blk.scr -> ../flash_blk.img
2test -n ${interface} || setenv interface mmc
3test -n ${drive} || setenv drive 1
4test -z "${board_name}" && test "${soc}" = "vf500" && setenv board_name colibri_vf
5test -z "${board_name}" && test "${soc}" = "vf610" && setenv board_name colibri_vf
6test "${board_name}" = "colibri_imx7" && setenv drive 0
7test "${board_name}" = "colibri_t20" && setenv drive 0
8test "${board_name}" = "colibri_vf" && setenv drive 0
9
10test -n ${board_name} || echo "board_name env not set!" && exit
11fatload ${interface} ${drive}:1 ${loadaddr} ${board_name}/flash_blk.img && source ${loadaddr}