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 comm

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

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

2023-02-01 Thread Tobias Waldekranz
ps://docs.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

[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 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 3/8] blk: blkmap: Add basic infrastructure

2023-02-01 Thread Tobias Waldekranz
vices. 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/bloc

[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 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 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 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/

[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

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 creat

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-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

[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

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

2023-02-16 Thread Tobias Waldekranz
ps://docs.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 r

[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 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 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

[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 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 3/9] blk: blkmap: Add basic infrastructure

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

[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 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

Re: [PATCH v3 0/5] Add pmem node for preserving distro ISO's

2025-01-24 Thread Tobias Waldekranz
On fre, jan 24, 2025 at 13:39, Ilias Apalodimas wrote: > Heinrich, Tobias > > There's a slight problem that I forgot when commenting v2. > > Heinrich's idea of plugging this into blkmap is eventually the right > thing to do. > > However, when I started coding this I only added the pmem memory as

Re: [PATCH v3 4/5] blkmap: store type of blkmap device in corresponding structure

2025-01-20 Thread Tobias Waldekranz
On mån, jan 20, 2025 at 16:20, Sughosh Ganu wrote: > Add information about the type of blkmap device in the blkmap > structure. Currently, the blkmap device is used for mapping to either > a memory based block device, or another block device (linear > mapping). Put information in the blkmap struct

Re: [PATCH v3 4/5] blkmap: store type of blkmap device in corresponding structure

2025-01-20 Thread Tobias Waldekranz
On tis, jan 21, 2025 at 00:55, Sughosh Ganu wrote: > On Mon, 20 Jan 2025 at 21:50, Tobias Waldekranz wrote: >> >> On mån, jan 20, 2025 at 21:10, Sughosh Ganu wrote: >> > On Mon, 20 Jan 2025 at 20:06, Tobias Waldekranz >> > wrote: >> >> >

Re: [PATCH v3 4/5] blkmap: store type of blkmap device in corresponding structure

2025-01-20 Thread Tobias Waldekranz
On mån, jan 20, 2025 at 19:30, Sughosh Ganu wrote: > On Mon, 20 Jan 2025 at 17:55, Tobias Waldekranz wrote: >> >> On mån, jan 20, 2025 at 16:20, Sughosh Ganu wrote: >> > Add information about the type of blkmap device in the blkmap >> > structure. Current

Re: [PATCH v3 4/5] blkmap: store type of blkmap device in corresponding structure

2025-01-20 Thread Tobias Waldekranz
On mån, jan 20, 2025 at 21:10, Sughosh Ganu wrote: > On Mon, 20 Jan 2025 at 20:06, Tobias Waldekranz wrote: >> >> On mån, jan 20, 2025 at 19:30, Sughosh Ganu wrote: >> > On Mon, 20 Jan 2025 at 17:55, Tobias Waldekranz >> > wrote: >> >> >

Re: [PATCH v4 5/5] blkmap: add pmem nodes for blkmap memory mapped slices

2025-02-21 Thread Tobias Waldekranz
On fre, feb 21, 2025 at 20:55, Ilias Apalodimas wrote: > Hi Sughosh > > This generally looks ok, but I don't love the idea of unconditionally > preserving all slices regardless of their usage. > Basically, if a user doesn't unmap that slice it will end in kernel > memory. My fear is that someone

Re: [PATCH v5 4/6] blkmap: store type of blkmap slice in corresponding structure

2025-02-27 Thread Tobias Waldekranz
can then be used to take specific action based on > the type of the blkmap slice. > > Signed-off-by: Sughosh Ganu > --- Reviewed-by: Tobias Waldekranz

Re: [PATCH v5 5/6] blkmap: add an attribute to preserve the mem mapping

2025-02-27 Thread Tobias Waldekranz
sh Ganu > --- This turned out great! Reviewed-by: Tobias Waldekranz

Re: [PATCH v5 6/6] blkmap: pass information on ISO image to the OS

2025-02-27 Thread Tobias Waldekranz
off-by: Sughosh Ganu > --- If a v6 is needed for some other reason (you seemed to indicate that), then see my small comments below. Either way: Reviewed-by: Tobias Waldekranz > Changes since V4: > * Reword the commit message > * Add a helper function blkmap_get_preserved_pmem_slice() &g

Re: [U-Boot] Hi

2010-08-31 Thread Tobias Waldekranz (Knutsson)
t; http://lists.denx.de/mailman/listinfo/u-boot > -- Hälsningar/Regards Tobias Waldekranz ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] Hi

2010-09-02 Thread Tobias Waldekranz (Knutsson)
ices.com/c/a/Linux-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 > Va