diff options
author | Tobias Waldekranz <tobias@waldekranz.com> | 2023-02-16 16:33:52 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-05 10:54:47 -0400 |
commit | bb56da117fe608f4da2a62eb93c4457b2f485c72 (patch) | |
tree | f623d0d7aa37cce130fc987a0bc6d4eccd88ee3e /disk | |
parent | 762dc78bdea3468e8cd35c01f91def13974948f1 (diff) | |
download | u-boot-bb56da117fe608f4da2a62eb93c4457b2f485c72.tar.gz u-boot-bb56da117fe608f4da2a62eb93c4457b2f485c72.tar.bz2 u-boot-bb56da117fe608f4da2a62eb93c4457b2f485c72.zip |
cmd: blkmap: Add blkmap command
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@waldekranz.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'disk')
-rw-r--r-- | disk/part.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/disk/part.c b/disk/part.c index d449635254..35300df590 100644 --- a/disk/part.c +++ b/disk/part.c @@ -140,6 +140,7 @@ void dev_print(struct blk_desc *dev_desc) case UCLASS_NVME: case UCLASS_PVBLOCK: case UCLASS_HOST: + case UCLASS_BLKMAP: printf ("Vendor: %s Rev: %s Prod: %s\n", dev_desc->vendor, dev_desc->revision, |