Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Linaro
firmware-dual-banked-updates
test
Commits
8ea5038c
Commit
8ea5038c
authored
3 years ago
by
Ilias Apalodimas
Browse files
Options
Downloads
Patches
Plain Diff
Make hardware protection optional
Signed-off-by:
Ilias Apalodimas
<
ilias.apalodimas@linaro.org
>
parent
7e508f83
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/chapter1-about.rst
+11
-8
11 additions, 8 deletions
source/chapter1-about.rst
with
11 additions
and
8 deletions
source/chapter1-about.rst
+
11
−
8
View file @
8ea5038c
...
@@ -71,7 +71,8 @@ without UEFI is outside the scope of this document.
...
@@ -71,7 +71,8 @@ without UEFI is outside the scope of this document.
- Update process can target a single firmware component or multiple components. Updating multiple
- Update process can target a single firmware component or multiple components. Updating multiple
components and multiplexing boot combinations can be very challenging. In this document we treat
components and multiplexing boot combinations can be very challenging. In this document we treat
the firmware as a single entity regardless of the components it comprises.
the firmware as a single entity regardless of the components it comprises.
Failing to update one of the components will lead to rollbacks of every affected component
Failing to update one of the components will result in an overall failure,
forcing the firmware to remain on the current bank.
- Updating the firmware and the OS at the same time is prohibited.
- Updating the firmware and the OS at the same time is prohibited.
- A hardware watchdog **must** always be active when critical components are executed.
- A hardware watchdog **must** always be active when critical components are executed.
It's advisable the watchdog is activated on the earliest possible boot stages.
It's advisable the watchdog is activated on the earliest possible boot stages.
...
@@ -83,8 +84,7 @@ Transactional updates
...
@@ -83,8 +84,7 @@ Transactional updates
---------------------
---------------------
Since firmware updates are independent from the OS upgrades, an important aspect of the update
Since firmware updates are independent from the OS upgrades, an important aspect of the update
policy is the device functionality. If the OS ends up being unusable after a firmware update (while the platform is in the Trial state [FWU]_),
policy is the device functionality. If the OS ends up being unusable after a firmware update (while the platform is in the Trial state [FWU]_),
the device must be able to detect this occurrence and steps must be taken to move the platform to
the device must be able to detect this and force the platform to the previously working firmware.
the previously working firmware.
Two scenarios can be considered:
Two scenarios can be considered:
#. The FW acceptance tests, executed by the OS, fail: The OS must request a FW downgrade by using the methodology described in :ref:`revert-sec`.
#. The FW acceptance tests, executed by the OS, fail: The OS must request a FW downgrade by using the methodology described in :ref:`revert-sec`.
...
@@ -115,16 +115,19 @@ will go into a reboot loop.
...
@@ -115,16 +115,19 @@ will go into a reboot loop.
Brick protection
Brick protection
----------------
----------------
The brick protection mechanism not only addresses the bricking during the firmware update, but
The brick protection mechanism not only addresses the bricking during the firmware update, but
addresses potential
hardware failures. The rollback counter might or
might not be always bumped
can optionally protect the device against
hardware failures. The rollback counter might or
during an update. If the secondary partition contains a valid
firmware and the primary partition
might not be always bumped
during an update. If the secondary partition contains a valid
is unable to boot the device (e.g flash corruption),
the device is allowed to fallback on the
firmware and the primary partition
is unable to boot the device (e.g flash corruption),
secondary partition.
the device is allowed to fallback on the
secondary partition.
If the update is going to
update
the rollback counters it's strongly advised to update both of the
If the update is going to
bump
the rollback counters it's strongly advised to update both of the
partitions. In that case the upgrade process will run once to update the secondary partition. Once
partitions. In that case the upgrade process will run once to update the secondary partition. Once
that's finished and accepted, the firmware update agent should update the former primary partition
that's finished and accepted, the firmware update agent should update the former primary partition
as well. This process must not necessarily go through the entire update procedure. Simply writing
as well. This process must not necessarily go through the entire update procedure. Simply writing
and verifying the firmware is enough.
and verifying the firmware is enough.
Similarly if an update of the secondary partition fails (e.g write failed),
then the firmware update agent must restore the partition to a known working
state (e.g overwrite it with the current working firmware)
.. image:: images/rollback_protection_simple.png
.. image:: images/rollback_protection_simple.png
:width: 200px
:width: 200px
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment