Skip to content

Commit

Permalink
core: force second bank on firmware upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: Ansuel Smith <[email protected]>
  • Loading branch information
Ansuel committed Dec 9, 2020
1 parent 5e5dcd1 commit 3ab577c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions decompressed/base/lib/upgrade/platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ platform_do_upgrade() {
# As last step update base in original bank_2 overlay
echo_log "Update base file in original /overlay"
copy_base_files $base_file_dir /overlay/$booted_bank
# Simulate the bank_1 failed 3 times
echo 1 > /proc/prozone/bootfail
echo 2 > /proc/prozone/bootcounter
echo 0 > /proc/prozone/bootbank
fi

platform_do_upgrade_bank $1 $booted_bank || exit 1
Expand Down

0 comments on commit 3ab577c

Please sign in to comment.