diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh index 8d51287..a571029 100755 --- a/tools/ak2-core.sh +++ b/tools/ak2-core.sh @@ -332,7 +332,8 @@ flash_boot() { fi; done; if [ "$dtbo" ]; then - dtbo_block=/dev/block/bootdevice/by-name/dtbo$slot; + dtbo_block=`find /dev/block -iname dtbo$slot | head -n 1` 2>/dev/null; + [ ! -z $dtbo_block ] && dtbo_block=`readlink -f $dtbo_block` if [ ! -e "$(echo $dtbo_block)" ]; then ui_print " "; ui_print "dtbo partition could not be found. Aborting..."; exit 1; fi;