Skip to content
Snippets Groups Projects
Commit 1fa60148 authored by Gary Bisson's avatar Gary Bisson Committed by Troy Kisky
Browse files

boundary: bootscripts: upgrade: fix block count of filesize


The comparison between the new and old U-boot is still done using
$filesize and therefore is correct.

Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
parent 299645d9
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,10 @@ else
fi
# Compute block count for filesize and offset
setexpr cntfile ${filesize} / ${block_size}
setexpr cntoffset ${offset} / ${block_size}
setexpr cntfile ${filesize} / ${block_size}
# Add 1 in case the $filesize is not a multiple of $block_size
setexpr cntfile ${cntfile} + 1
# Select media partition (if different from main partition)
mmc dev ${env_dev} ${env_part}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment