diff options
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.scr | 11 |
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 | ||
2 | test -n ${interface} || setenv interface mmc | ||
3 | test -n ${drive} || setenv drive 1 | ||
4 | test -z "${board_name}" && test "${soc}" = "vf500" && setenv board_name colibri_vf | ||
5 | test -z "${board_name}" && test "${soc}" = "vf610" && setenv board_name colibri_vf | ||
6 | test "${board_name}" = "colibri_imx7" && setenv drive 0 | ||
7 | test "${board_name}" = "colibri_t20" && setenv drive 0 | ||
8 | test "${board_name}" = "colibri_vf" && setenv drive 0 | ||
9 | |||
10 | test -n ${board_name} || echo "board_name env not set!" && exit | ||
11 | fatload ${interface} ${drive}:1 ${loadaddr} ${board_name}/flash_blk.img && source ${loadaddr} | ||