Re: [PATCH 09/15] blk: blkmap: Support mapping to device of any block size

2023-09-26 Thread Tobias Waldekranz
On tis, sep 26, 2023 at 16:43, Bin Meng wrote: > At present if a device to map has a block size other than 512, > the blkmap map process just fails. There is no reason why we > can't just use the block size of the mapped device. Won't this be very confusing to the user? The blkmap device uses a

Re: [PATCH v2 0/6] introduce EFI_RAM_DISK_PROTOCOL

2023-07-14 Thread Tobias Waldekranz
Hi Masahisa, On fre, jul 14, 2023 at 14:44, Masahisa Kojima wrote: > This series introduces the EFI_RAM_DISK_PROTOCOL implementation. > The major purpose of this series is a preparation for EFI HTTP(S) boot. > > Now U-Boot can download the distro installer ISO image > via wget or tftpboot

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

2023-02-16 Thread Tobias Waldekranz
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 --- M

[PATCH v2 9/9] efi_loader: device_path: support blkmap devices

2023-02-16 Thread Tobias Waldekranz
Create a distinct EFI device path for each blkmap device. Signed-off-by: Tobias Waldekranz --- include/efi_loader.h | 4 lib/efi_loader/efi_device_path.c | 30 ++ 2 files changed, 34 insertions(+) diff --git a/include/efi_loader.h b/include

[PATCH v2 3/9] blk: blkmap: Add basic infrastructure

2023-02-16 Thread Tobias Waldekranz
. Subsequent changes will extend this to add support for actual mappings. Signed-off-by: Tobias Waldekranz --- MAINTAINERS| 6 + drivers/block/Kconfig | 18 ++ drivers/block/Makefile | 1 + drivers/block/blk-uclass.c | 1 + drivers/block/blkmap.c | 343

[PATCH v2 8/9] doc: blkmap: Add introduction and examples

2023-02-16 Thread Tobias Waldekranz
Explain block maps by going through two common use-cases. Signed-off-by: Tobias Waldekranz --- MAINTAINERS | 1 + doc/usage/blkmap.rst | 111 +++ doc/usage/index.rst | 1 + 3 files changed, 113 insertions(+) create mode 100644 doc/usage

[PATCH v2 4/9] blk: blkmap: Add memory mapping support

2023-02-16 Thread Tobias Waldekranz
Allow a slice of RAM to be mapped to a blkmap. This means that RAM can now be accessed as if it was a block device, meaning that existing filesystem drivers can now be used to access ramdisks. Signed-off-by: Tobias Waldekranz --- drivers/block/blkmap.c | 105

[PATCH v2 7/9] test: blkmap: Add test suite

2023-02-16 Thread Tobias Waldekranz
Verify that: - Block maps can be created and destroyed - Mappings aren't allowed to overlap - Multiple mappings can be attached and be read/written from/to Signed-off-by: Tobias Waldekranz --- MAINTAINERS | 1 + configs/sandbox_defconfig | 1 + test/dm/Makefile | 1

[PATCH v2 2/9] cmd: blk: Allow generic read/write operations to work in sandbox

2023-02-16 Thread Tobias Waldekranz
Ensure that the memory destination/source addresses of block read/write operations are mapped in before access. Currently, this is only needed on sandbox builds. Signed-off-by: Tobias Waldekranz Reviewed-by: Simon Glass --- cmd/blk_common.c | 15 +++ 1 file changed, 11 insertions

[PATCH v2 5/9] blk: blkmap: Add linear device mapping support

2023-02-16 Thread Tobias Waldekranz
Allow a slice of an existing block device to be mapped to a blkmap. This means that filesystems that are not stored at exact partition boundaries can be accessed by remapping a slice of the existing device to a blkmap device. Signed-off-by: Tobias Waldekranz --- drivers/block/blkmap.c | 71

[PATCH v2 0/9] blk: blkmap: Composable virtual block devices

2023-02-16 Thread Tobias Waldekranz
kernel.org/admin-guide/device-mapper/index.html v1 -> v2: - Change internal API to use device pointers - Convert test suite from Python to C - Various cosmetic fixes Tobias Waldekranz (9): image: Fix script execution from FIT images with external data cmd: blk: Allow generic read/wri

[PATCH v2 1/9] image: Fix script execution from FIT images with external data

2023-02-16 Thread Tobias Waldekranz
Update the script loading code to recognize when script data is stored externally from the FIT metadata (i.e., built with `mkimage -E`). Signed-off-by: Tobias Waldekranz Reviewed-by: Simon Glass --- boot/image-board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boot

Re: [PATCH 3/8] blk: blkmap: Add basic infrastructure

2023-02-07 Thread Tobias Waldekranz
On mån, feb 06, 2023 at 21:02, Simon Glass wrote: > Hi Tobias, > > On Mon, 6 Feb 2023 at 01:30, Tobias Waldekranz wrote: >> >> On fre, feb 03, 2023 at 17:20, Simon Glass wrote: >> > Hi Tobias, >> > >> > On Fri, 3 Feb 2023 at 02:38, Tobias Wal

Re: [PATCH 3/8] blk: blkmap: Add basic infrastructure

2023-02-06 Thread Tobias Waldekranz
On fre, feb 03, 2023 at 17:20, Simon Glass wrote: > Hi Tobias, > > On Fri, 3 Feb 2023 at 02:38, Tobias Waldekranz wrote: >> >> On ons, feb 01, 2023 at 13:20, Simon Glass wrote: >> > Hi Tobias, >> >> Hi Simon, >> >> Thanks for the review!

Re: [PATCH 3/8] blk: blkmap: Add basic infrastructure

2023-02-03 Thread Tobias Waldekranz
On ons, feb 01, 2023 at 13:20, Simon Glass wrote: > Hi Tobias, Hi Simon, Thanks for the review! > On Wed, 1 Feb 2023 at 11:10, Tobias Waldekranz wrote: >> >> blkmaps are loosely modeled on Linux's device mapper subsystem. The >> basic idea is that you can create vir

[PATCH 8/8] doc: blkmap: Add introduction and examples

2023-02-01 Thread Tobias Waldekranz
Explain block maps by going through two common use-cases. Signed-off-by: Tobias Waldekranz --- MAINTAINERS | 1 + doc/usage/blkmap.rst | 109 +++ doc/usage/index.rst | 1 + 3 files changed, 111 insertions(+) create mode 100644 doc/usage

[PATCH 7/8] test: blkmap: Add test suite

2023-02-01 Thread Tobias Waldekranz
Verify that: - Block maps can be created and destroyed - Mappings aren't allowed to overlap - Multiple mappings can be attached and be read/written from/to Signed-off-by: Tobias Waldekranz --- MAINTAINERS | 1 + configs/sandbox_defconfig| 1 + test/py/tests

[PATCH 6/8] cmd: blkmap: Add blkmap command

2023-02-01 Thread Tobias Waldekranz
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 --- M

[PATCH 5/8] blk: blkmap: Add linear device mapping support

2023-02-01 Thread Tobias Waldekranz
Allow a slice of an existing block device to be mapped to a blkmap. This means that filesystems that are not stored at exact partition boundaries can be accessed by remapping a slice of the existing device to a blkmap device. Signed-off-by: Tobias Waldekranz --- drivers/block/blkmap.c | 71

[PATCH 4/8] blk: blkmap: Add memory mapping support

2023-02-01 Thread Tobias Waldekranz
Allow a slice of RAM to be mapped to a blkmap. This means that RAM can now be accessed as if it was a block device, meaning that existing filesystem drivers can now be used to access ramdisks. Signed-off-by: Tobias Waldekranz --- drivers/block/blkmap.c | 106

[PATCH 3/8] blk: blkmap: Add basic infrastructure

2023-02-01 Thread Tobias Waldekranz
. Subsequent changes will extend this to add support for actual mappings. Signed-off-by: Tobias Waldekranz --- MAINTAINERS | 6 + disk/part.c | 1 + drivers/block/Kconfig| 18 ++ drivers/block/Makefile | 1 + drivers/block/blk

[PATCH 2/8] cmd: blk: Allow generic read/write operations to work in sandbox

2023-02-01 Thread Tobias Waldekranz
Ensure that the memory destination/source addresses of block read/write operations are mapped in before access. Currently, this is only needed on sandbox builds. Signed-off-by: Tobias Waldekranz --- cmd/blk_common.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff

[PATCH 1/8] image: Fix script execution from FIT images with external data

2023-02-01 Thread Tobias Waldekranz
Update the script loading code to recognize when script data is stored externally from the FIT metadata (i.e., built with `mkimage -E`). Signed-off-by: Tobias Waldekranz --- boot/image-board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boot/image-board.c b/boot/image

[PATCH 0/8] blk: blkmap: Composable virtual block devices

2023-02-01 Thread Tobias Waldekranz
kernel.org/admin-guide/device-mapper/index.html Tobias Waldekranz (8): image: Fix script execution from FIT images with external data cmd: blk: Allow generic read/write operations to work in sandbox blk: blkmap: Add basic infrastructure blk: blkmap: Add memory mapping support blk: blkmap:

Re: [U-Boot] Hi

2010-09-03 Thread Tobias Waldekranz (Knutsson)
-For-Devices-Articles/Introduction-to-Das-UBoot-the-universal-open-source-bootloader/ Now trying to figure out this using the above document... Not very clear... as to how to do this ... will read the README of u-boot .. Let me know ! Thanks and Regards Vaishali On 9/1/10, Tobias Waldekranz (Knutsson