Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v2 0/2] add sparse image format support
@ 2023-11-14 21:04 Dmitry Baryshkov
  2023-11-14 21:04 ` [PATCH v2 1/2] rust-android-sparse: add lightweight simg2img/img2simg implementation Dmitry Baryshkov
  2023-11-14 21:04 ` [PATCH v2 2/2] image_types.bbclass: add support for sparse images Dmitry Baryshkov
  0 siblings, 2 replies; 8+ messages in thread
From: Dmitry Baryshkov @ 2023-11-14 21:04 UTC (permalink / raw)
  To: openembedded-core

Typically the generated filesystem image contains a lot of free space,
which is filled with zeroes. Android ecosystem has come up with the
'sparse' image formwat, which basically drops all irrelevant data blocks
instead of storing them. This way the generated image consumes less
space when stored and takes less time to be flashed (as there is no need
to transfer sequences of zeroes). For example, bootloaders implementing
fastboot protocol natively support writing such images.

The meta-oe repository already supports sparse format. However keeping
it in meta-oe means that it can not be used for BSP layers. Moving it
directly to OE-Core is not possible, since meta-oe uses android-tools, a
huge beast, to support this kind of conversion. Instead of that, use the
simple Rust crate to implement sparse <-> raw image conversion.

Changes since v1:
- Epanded patch description and added cover letter to describe sparse
  images and the reasons for bringing their support into OE-Core.

Dmitry Baryshkov (2):
  rust-android-sparse: add lightweight simg2img/img2simg implementation
  image_types.bbclass: add support for sparse images

 meta/classes-recipe/image_types.bbclass       |  4 +-
 .../rust-android-sparse-crates.inc            | 98 +++++++++++++++++++
 .../rust-android-sparse_0.6.0.bb              | 20 ++++
 3 files changed, 121 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-extended/rust-android-sparse/rust-android-sparse-crates.inc
 create mode 100644 meta/recipes-extended/rust-android-sparse/rust-android-sparse_0.6.0.bb

-- 
2.39.2



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

end of thread, other threads:[~2023-11-16 18:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-14 21:04 [PATCH v2 0/2] add sparse image format support Dmitry Baryshkov
2023-11-14 21:04 ` [PATCH v2 1/2] rust-android-sparse: add lightweight simg2img/img2simg implementation Dmitry Baryshkov
2023-11-16 16:01   ` [OE-core] " Alexandre Belloni
2023-11-16 18:40   ` Ross Burton
2023-11-14 21:04 ` [PATCH v2 2/2] image_types.bbclass: add support for sparse images Dmitry Baryshkov
2023-11-15 13:21   ` [OE-core] " Alexander Kanavin
2023-11-16 16:32   ` Richard Purdie
2023-11-16 18:39   ` Ross Burton

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