public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [RFC 0/2] A/B firmware update based in eMMC boot partition.
@ 2022-01-25 13:55 Ying-Chun Liu
  2022-01-25 13:55 ` [RFC 1/2] drivers: mmc: write protect active boot area after mmc init Ying-Chun Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ying-Chun Liu @ 2022-01-25 13:55 UTC (permalink / raw)
  To: u-boot; +Cc: Ying-Chun Liu (PaulLiu)

From: "Ying-Chun Liu (PaulLiu)" <paul.liu@linaro.org>

Hi all,

I've implemented A/B firmware update based on eMMC hw partitions.
Normally we have 2 boot partitions on eMMC. One is active and another
is inactive. We can then flash the firmware to the inactive one and
make it active.

Also when booting we can write protect the current active one. And
left the inactive partition still writable.

So I make 2 commits that implements the following features:
1. Write protect "active" boot area when board init.
2. flash firmware to inactive boot area.
3. Change the inactive boot area after firmware update.

Thanks.

Ying-Chun Liu (PaulLiu) (2):
  drivers: mmc: write protect active boot area after mmc init.
  drivers: dfu: flash firmware to inactive boot area and active it

 drivers/dfu/dfu_mmc.c | 32 +++++++++++++++++++++---
 drivers/mmc/Kconfig   | 10 ++++++++
 drivers/mmc/mmc.c     | 58 +++++++++++++++++++++++++++++++++++++++++++
 include/dfu.h         |  1 +
 4 files changed, 98 insertions(+), 3 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-02-03 18:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-25 13:55 [RFC 0/2] A/B firmware update based in eMMC boot partition Ying-Chun Liu
2022-01-25 13:55 ` [RFC 1/2] drivers: mmc: write protect active boot area after mmc init Ying-Chun Liu
2022-01-26 23:25   ` Jaehoon Chung
2022-01-27  1:23     ` Paul Liu
2022-01-27  1:45       ` Jaehoon Chung
2022-01-25 13:55 ` [RFC 2/2] drivers: dfu: flash firmware to inactive boot area and active it Ying-Chun Liu
2022-01-25 14:43 ` [RFC 0/2] A/B firmware update based in eMMC boot partition Wolfgang Denk
2022-01-26  8:28   ` Alexander Dahl
2022-02-03 18:19   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox