summaryrefslogtreecommitdiff
path: root/recipes/images/files/library/fwd_mmc.scr
blob: 4731435f91db11dd20e27edd86483c84d4a6af8f (plain)
1
2
3
4
5
6
7
8
9
#the update.sh script renames this. fwd_mmc.scr -> ../flash_mmc.img
#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
test "${board_name}" = "colibri_t20" && setenv drive 0
test "${board_name}" = "colibri_vf" && setenv drive 0

test -n ${board_name} || echo "board_name env not set!" && exit
fatload ${interface} ${drive}:1 ${loadaddr} ${board_name}/flash_blk.img && source ${loadaddr}