• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

UpdateHub / updatehub / 44909086511
67%

Build:
DEFAULT BRANCH: master
Ran 21 Nov 2026 01:37PM UTC
Jobs 1
Files 82
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Nov 2026 01:29PM UTC coverage: 66.237% (-2.7%) from 68.963%
44909086511

push

github

otavio
feat: keep A/B firmware in the eMMC boot partitions

Boards such as the STM32MP135 boot TF-A and the FIP from an eMMC hardware
boot partition, picked by PARTITION_CONFIG. Updating that firmware took
scripts to unlock the partitions (force_ro), write the right one and
switch PARTITION_CONFIG, all of it outside the agent's view of the update.

With `[firmware.boot-emmc] device = "/dev/mmcblkN"`, installation set N
boots from boot partition N, and the agent keeps the eMMC in step:

- An update first copies the running firmware to the boot partition of
  the set it installs, then writes its `boot-emmc` raw objects over it, so
  a package without firmware, or with part of it, still yields complete
  firmware. Only that partition is unlocked, and it is synced before the
  update is activated.
- When the set is swapped, PARTITION_CONFIG follows it through the
  MMC_IOC_CMD ioctl, keeping the boot acknowledge, and is read back. If it
  cannot, the set is swapped back.
- A device booting from the partition an update is about to write, e.g.
  one provisioned before this, is repaired first with a warning: its
  firmware is copied to the other boot partition, which it then boots.
- A pending update records that it wrote the eMMC, and in which boot. On
  start, the eMMC follows the set again, which covers a bootloader rolling
  the update back and a power cut between the set and the eMMC switching.
  In that case the agent reboots once, so the update is validated running
  its own firmware, and rolls it back if the eMMC still does not follow.
  An agent restarting before the device rebooted does not validate it.
- Kernels that keep a cached PARTITION_CONFIG write it back on the next
  boot partition access. Each partition is read uncached before it is
  written and checked again afterwards; if the eMMC moved, the update
  fails and the eMMC goes back to the running firmware.

boot-emmc needs persistent runtime settings, since they are what brings
the eMMC back aft... (continued)

147 of 504 new or added lines in 10 files covered. (29.17%)

46 existing lines in 5 files now uncovered.

4524 of 6830 relevant lines covered (66.24%)

1288.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
192
16.52
updatehub/src/utils/emmc.rs
61
24.69
updatehub/src/firmware/boot_emmc.rs
32
76.94
-3.44% updatehub/src/object/installer/raw.rs
27
72.16
-27.84% updatehub/src/states/install.rs
27
53.81
-5.49% updatehub/src/states/mod.rs
9
92.36
-3.15% updatehub/src/runtime_settings.rs
5
71.21
-3.01% updatehub/src/states/validation.rs
3
75.0
-25.0% updatehub/src/utils/mod.rs
1
96.43
-1.61% updatehub/src/firmware/installation_set.rs

Coverage Regressions

Lines Coverage ∆ File
25
0.0
0.0% updatehub/src/object/installer/tarball.rs
9
93.63
2.14% updatehub/src/firmware/mod.rs
7
44.19
-1.05% updatehub/src/utils/definitions.rs
4
92.36
-3.15% updatehub/src/runtime_settings.rs
1
76.94
-3.44% updatehub/src/object/installer/raw.rs
Jobs
ID Job ID Ran Files Coverage
1 44909086511.1 21 Nov 2026 01:37PM UTC 82
66.24
GitHub Action Run
Source Files on build 44909086511
  • Tree
  • List 82
  • Changed 15
  • Source Changed 15
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44909086511
  • b69e0807 on github
  • Prev Build on master (#44310452771)
  • Next Build on master (#44911378199)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc