Skip to content
Snippets Groups Projects
Verified Commit 87bc6780 authored by Andreas Gnau's avatar Andreas Gnau :speech_balloon:
Browse files

brcmbca: Acknowledge boot using steadystate as well


Acknowledge the boot using the steadystate / support_fallback feature
introduced in BCM SDK 5.04L.04p2 as well. Not doing so and having the
feature enabled will lead to fallbacks to the other bank.

Signed-off-by: default avatarAndreas Gnau <andreas.gnau@iopsys.eu>
parent 891f0a15
Branches
No related tags found
1 merge request!1405brcmbca: Acknowledge boot using steadystate as well
......@@ -4,6 +4,23 @@
# because bcm_bootsate resets /proc/bootstate/reset_reason
START=13
boot() {
local ret=0
# If the loader attempts to load a committed image with support_fallback / bcm_support_fallback
# enabled, the watchdog and bootstate driver are set to detect if a reboot occurs before
# the Linux userspace sets the "steadystate" as done below
set_steady_state || ret=$?
# If the image reboots prior to reaching steady state, the loader boots the non-committed image once.
#
# Ordinarily, the non-committed image then commits itself after having itself
# booted successfully (see set_bank_permanently function) as done below
set_bank_permanently || ret=$?
return $ret
}
set_steady_state() {
echo "steadystate" >/proc/bootstate/reset_reason
}
# Set bank temporarily booted by sysupgrade to boot permanently after
# "successful" boot
......@@ -50,9 +67,4 @@ set_bank_permanently() {
fi
echo "Permanently set boot bank to $booted_partition" | tee /dev/console
fi
}
boot() {
set_bank_permanently
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment