[PATCH v2 6/9] cmd: blkmap: Add blkmap command

Simon Glass sjg at chromium.org
Fri Feb 17 03:55:08 CET 2023


On Thu, 16 Feb 2023 at 08:34, Tobias Waldekranz <tobias at waldekranz.com> wrote:
>
> Add a frontend for the blkmap subsystem. In addition to the common
> block device operations, this allows users to create and destroy
> devices, and map in memory and slices of other block devices.
>
> With that we support two primary use-cases:
>
> - Being able to "distro boot" from a RAM disk. I.e., from an image
>   where the kernel is stored in /boot of some filesystem supported
>   by U-Boot.
>
> - Accessing filesystems not located on exact partition boundaries,
>   e.g. when a filesystem image is wrapped in an FIT image and stored
>   in a disk partition.
>
> Signed-off-by: Tobias Waldekranz <tobias at waldekranz.com>
> ---
>  MAINTAINERS  |   1 +
>  cmd/Kconfig  |  19 +++++
>  cmd/Makefile |   1 +
>  cmd/blkmap.c | 233 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  disk/part.c  |   1 +
>  5 files changed, 255 insertions(+)
>  create mode 100644 cmd/blkmap.c
>

Reviewed-by: Simon Glass <sjg at chromium.org>

nit: If you use a single quote inside the double quotes, you can avoid
the backflashes


More information about the U-Boot mailing list