From cc32117c366e93446fba80b7aff44b01534bc21e Mon Sep 17 00:00:00 2001 From: Gary Bisson <gary.bisson@boundarydevices.com> Date: Wed, 4 Jul 2018 11:46:49 +0200 Subject: [PATCH] boundary: bootscripts: upgrade: do partconf for emmc boot partitions Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> --- board/boundary/bootscripts/upgrade.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/board/boundary/bootscripts/upgrade.txt b/board/boundary/bootscripts/upgrade.txt index de70e42dc5b..24b705eb762 100644 --- a/board/boundary/bootscripts/upgrade.txt +++ b/board/boundary/bootscripts/upgrade.txt @@ -67,6 +67,11 @@ for n in 5 4 3 2 1 ; do done mmc write ${a_uImage1} ${cntoffset} ${cntfile} +# Make sure to boot from the proper partition +if itest ${env_part} != 0 ; then + mmc partconf ${env_dev} 1 ${env_part} 0 +fi + # Switch back to main eMMC partition (to avoid confusion) mmc dev ${env_dev} -- GitLab