[PATCH v7 3/3] spinand: bind mtdblock

2024-07-18 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Reviewed-by: Frieder Schrempf Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index ef50237f10

[PATCH v7 2/3] drivers: introduce mtdblock abstraction

2024-07-18 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Kconfig| 8 ++ drivers/mtd/Makefile | 1 + drivers/mtd/mtdblock.c | 227

[PATCH v7 1/3] disk: support MTD partitions

2024-07-18 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 3 +- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 76 +++ include/part.h| 3 ++ 4 files

[PATCH v7 0/3] Introduce mtdblock device

2024-07-18 Thread Alexey Romanov
tedevices.com/ - [5] https://lore.kernel.org/all/20240524102920.2631731-1-avroma...@salutedevices.com/ - [6] https://lore.kernel.org/all/20240603155702.1840464-1-avroma...@salutedevices.com/ - [7] https://lore.kernel.org/all/20240626104440.2811686-1-avroma...@salutedevices.com/ Alexey Romanov (3)

[PATCH v6 6/6] spinand: bind UBI block

2024-07-18 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov Reviewed-by: Frieder Schrempf --- drivers/mtd/nand/spi/core.c | 12 ++-- 1 file changed, 10 insertions(+), 2

[PATCH v6 5/6] disk: support UBI partitions

2024-07-18 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/Makefile | 2 +- drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files

[PATCH v6 3/6] drivers: introduce UBI block abstraction

2024-07-18 Thread Alexey Romanov
mode 100644 index 00..99d55282cd --- /dev/null +++ b/drivers/mtd/ubi/block.c @@ -0,0 +1,130 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2024 SaluteDevices, Inc. + * + * Author: Alexey Romanov + */ + +#include +#include +#include +#include +#include + +int ubi

[PATCH v6 4/6] disk: don't try search for partition type if already set

2024-07-18 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c

[PATCH v6 2/6] ubi: allow to write to volume with offset

2024-07-18 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 72 +++-- env/ubi.c | 10

[PATCH v6 1/6] ubi: allow to read from volume with offset

2024-07-18 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7 insertions

[PATCH v6 0/6] Introduce UBI block device

2024-07-18 Thread Alexey Romanov
811828-1-avroma...@salutedevices.com/ Alexey Romanov (6): ubi: allow to read from volume with offset ubi: allow to write to volume with offset drivers: introduce UBI block abstraction disk: don't try search for partition type if already set disk: support UBI partitions spinand: bind UBI bl

Re: [PATCH v5 0/6] Introduce UBI block device

2024-07-08 Thread Alexey Romanov
Hello, ping. On Wed, Jun 26, 2024 at 01:45:21PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the UBI block device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

Re: [PATCH v6 0/3] Introduce mtdblock device

2024-07-08 Thread Alexey Romanov
Hello, ping. On Wed, Jun 26, 2024 at 01:44:37PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the mtdblock device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

[PATCH v5 6/6] spinand: bind UBI block

2024-06-26 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov Reviewed-by: Frieder Schrempf --- drivers/mtd/nand/spi/core.c | 9 - 1 file changed, 8 insertions(+), 1 deletion

[PATCH v5 5/6] disk: support UBI partitions

2024-06-26 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/Makefile | 2 +- drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files

[PATCH v5 4/6] disk: don't try search for partition type if already set

2024-06-26 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c

[PATCH v5 3/6] drivers: introduce UBI block abstraction

2024-06-26 Thread Alexey Romanov
ers/mtd/ubi/block.c new file mode 100644 index 00..99d55282cd --- /dev/null +++ b/drivers/mtd/ubi/block.c @@ -0,0 +1,130 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2024 SaluteDevices, Inc. + * + * Author: Alexey Romanov + */ + +#include +#include +#include +#include +

[PATCH v5 2/6] ubi: allow to write to volume with offset

2024-06-26 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 72 +++-- env/ubi.c | 10

[PATCH v5 0/6] Introduce UBI block device

2024-06-26 Thread Alexey Romanov
571-1-avroma...@salutedevices.com/ Alexey Romanov (6): ubi: allow to read from volume with offset ubi: allow to write to volume with offset drivers: introduce UBI block abstraction disk: don't try search for partition type if already set disk: support UBI partitions spinand: bind UBI

[PATCH v5 1/6] ubi: allow to read from volume with offset

2024-06-26 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7 insertions

[PATCH v6 3/3] spinand: bind mtdblock

2024-06-26 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Reviewed-by: Frieder Schrempf Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 62c28aa422..8edb468aed

[PATCH v6 2/3] drivers: introduce mtdblock abstraction

2024-06-26 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Makefile | 3 + drivers/mtd/mtdblock.c | 227 + include/linux/mtd

[PATCH v6 1/3] disk: support MTD partitions

2024-06-26 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 3 +- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 76 +++ include/part.h| 3 ++ 4 files

[PATCH v6 0/3] Introduce mtdblock device

2024-06-26 Thread Alexey Romanov
ore.kernel.org/all/20240603155702.1840464-1-avroma...@salutedevices.com/ Alexey Romanov (3): disk: support MTD partitions drivers: introduce mtdblock abstraction spinand: bind mtdblock disk/part.c | 3 +- drivers/block/blk-uclass.c | 1 + drivers/mtd/Kconfig |

Re: [PATCH v5 0/3] Introduce mtdblock device

2024-06-25 Thread Alexey Romanov
Hi Simon, On Wed, Jun 05, 2024 at 07:17:34AM -0600, Simon Glass wrote: > Hi Alexey, > > On Wed, 5 Jun 2024 at 04:09, Alexey Romanov > wrote: > > > > Hi Simon, > > your message is empty. > > > > On Tue, Jun 04, 2024 at 08:13:34PM -0600, Simon Glass

Re: [PATCH v5 0/3] Introduce mtdblock device

2024-06-17 Thread Alexey Romanov
hanks and regards, > Dario > > On Wed, Jun 5, 2024 at 3:17 PM Simon Glass wrote: > > > > Hi Alexey, > > > > On Wed, 5 Jun 2024 at 04:09, Alexey Romanov > > wrote: > > > > > > Hi Simon, > > > your message is empty. > > > &g

Re: [PATCH v5 0/3] Introduce mtdblock device

2024-06-05 Thread Alexey Romanov
Hi Simon, your message is empty. On Tue, Jun 04, 2024 at 08:13:34PM -0600, Simon Glass wrote: > Hi Alexey, > > On Mon, Jun 3, 2024, 09:57 Alexey Romanov > wrote: > > > Hello! > > > > This series adds support for the mtdblock device, which > > a

[PATCH v4 6/6] spinand: bind UBI block

2024-06-04 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand

[PATCH v4 5/6] disk: support UBI partitions

2024-06-04 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/Makefile | 2 +- drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files

[PATCH v4 4/6] disk: don't try search for partition type if already set

2024-06-04 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c

[PATCH v4 3/6] drivers: introduce UBI block abstraction

2024-06-04 Thread Alexey Romanov
d/ubi/block.c new file mode 100644 index 00..2464decb81 --- /dev/null +++ b/drivers/mtd/ubi/block.c @@ -0,0 +1,130 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2024 SaluteDevices, Inc. + * + * Author: Alexey Romanov + */ + +#include +#include +#include +#include +#incl

[PATCH v4 2/6] ubi: allow to write to volume with offset

2024-06-04 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 71 +++-- env/ubi.c | 10

[PATCH v4 1/6] ubi: allow to read from volume with offset

2024-06-04 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7 insertions

[PATCH v4 0/6] Introduce UBI block device

2024-06-04 Thread Alexey Romanov
-1-avroma...@salutedevices.com/ [3] https://lore.kernel.org/all/20240307130726.1582487-1-avroma...@salutedevices.com/ [4] https://lore.kernel.org/all/20240325144148.3738195-1-avroma...@salutedevices.com/ [5] https://lore.kernel.org/all/20240524111319.3512009-1-avroma...@salutedevices.com/ Alexe

[PATCH v5 3/3] spinand: bind mtdblock

2024-06-04 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Reviewed-by: Frieder Schrempf Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 62c28aa422..8edb468aed

[PATCH v5 2/3] drivers: introduce mtdblock abstraction

2024-06-04 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Makefile | 1 + drivers/mtd/mtdblock.c | 227 + include/linux/mtd

[PATCH v5 1/3] disk: support MTD partitions

2024-06-04 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 3 +- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 76 +++ include/part.h| 3 ++ 4 files

[PATCH v5 0/3] Introduce mtdblock device

2024-06-04 Thread Alexey Romanov
.kernel.org/all/20240524102920.2631731-1-avroma...@salutedevices.com/ Alexey Romanov (3): disk: support MTD partitions drivers: introduce mtdblock abstraction spinand: bind mtdblock disk/part.c | 3 +- drivers/block/blk-uclass.c | 1 + drivers/mtd/Kconfig | 1 + drivers/mtd/Makefi

[PATCH v3 6/6] spinand: bind UBI block

2024-05-24 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand

[PATCH v3 5/6] disk: support UBI partitions

2024-05-24 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/Makefile | 2 +- drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files

[PATCH v3 4/6] disk: don't try search for partition type if already set

2024-05-24 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c

[PATCH v3 3/6] drivers: introduce UBI block abstraction

2024-05-24 Thread Alexey Romanov
d/ubi/block.c new file mode 100644 index 00..2464decb81 --- /dev/null +++ b/drivers/mtd/ubi/block.c @@ -0,0 +1,130 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2024 SaluteDevices, Inc. + * + * Author: Alexey Romanov + */ + +#include +#include +#include +#include +#incl

[PATCH v3 2/6] ubi: allow to write to volume with offset

2024-05-24 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 71 +++-- env/ubi.c | 10

[PATCH v3 1/6] ubi: allow to read from volume with offset

2024-05-24 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7 insertions

[PATCH v3 0/6] Introduce UBI block device

2024-05-24 Thread Alexey Romanov
avroma...@salutedevices.com/ Alexey Romanov (6): ubi: allow to read from volume with offset ubi: allow to write to volume with offset drivers: introduce UBI block abstraction disk: don't try search for partition type if already set disk: support UBI partitions spinand: bind UBI block cmd

[PATCH v4 3/3] spinand: bind mtdblock

2024-05-24 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Reviewed-by: Frieder Schrempf Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 2a3dbcfcb4..dd880adf31

[PATCH v4 2/3] drivers: introduce mtdblock abstraction

2024-05-24 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Makefile | 1 + drivers/mtd/mtdblock.c | 227 + include/linux/mtd

[PATCH v4 1/3] disk: support MTD partitions

2024-05-24 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 3 +- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 69 +++ include/part.h| 3 ++ 4 files

[PATCH v4 0/3] Introduce mtdblock device

2024-05-24 Thread Alexey Romanov
- [4] https://lore.kernel.org/all/20240404105813.1520732-1-avroma...@salutedevices.com/ Alexey Romanov (3): disk: support MTD partitions drivers: introduce mtdblock abstraction spinand: bind mtdblock disk/part.c | 3 +- drivers/block/blk-uclass.c | 1 + drivers/mtd/Kconfig

Re: [PATCH v2 0/6] Introduce UBI block device

2024-05-23 Thread Alexey Romanov
m-0029881/) that should be applied to bracnh before this. > > Michael > > On Thu, May 23, 2024 at 12:49 PM Alexey Romanov > wrote: > > > > > > Hi Michael, > > > > On Mon, May 06, 2024 at 03:59:52PM +0200, Michael Nazzareno Trimarchi wrote: > > &

Re: [PATCH v2 0/6] Introduce UBI block device

2024-05-23 Thread Alexey Romanov
Hi Michael, On Mon, May 06, 2024 at 03:59:52PM +0200, Michael Nazzareno Trimarchi wrote: > Hi Alexey > > Sorry will will put on CI Any news? > > Michael > > On Mon, May 6, 2024 at 3:58 PM Alexey Romanov > wrote: > > > > Hello! Ping. > > > >

Re: [PATCH v2 0/6] Introduce UBI block device

2024-05-06 Thread Alexey Romanov
Hello! Ping. On Mon, Mar 25, 2024 at 05:41:42PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the UBI block device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

Re: [PATCH v3 0/3] Introduce mtdblock device

2024-05-06 Thread Alexey Romanov
Hello Michael, On Thu, Apr 11, 2024 at 06:14:29PM +0200, Michael Nazzareno Trimarchi wrote: > Hi > > I will review tomorrow, I need have a time window to test even on my board Any news? > > Mihcael > > On Thu, Apr 11, 2024 at 6:09 PM Alexey Romanov > wr

[PATCH v5 1/1] fastboot: introduce 'oem board' subcommand

2024-04-18 Thread Alexey Romanov
-by: Alexey Romanov Reviewed-by: Mattijs Korpershoek Reviewed-by: Quentin Schulz --- doc/android/fastboot.rst | 18 ++ drivers/fastboot/Kconfig | 7 +++ drivers/fastboot/fb_command.c | 30 ++ include/fastboot.h| 1 + 4 files

[PATCH v5 0/1] Introduce fastboot oem board command

2024-04-18 Thread Alexey Romanov
757-1-avroma...@salutedevices.com/ [7] https://lore.kernel.org/all/877cgv3ur6@baylibre.com/ Alexey Romanov (1): fastboot: introduce 'oem board' subcommand doc/android/fastboot.rst | 18 ++ drivers/fastboot/Kconfig | 7 +++ drivers/fastboot/fb_co

Re: [PATCH v3 0/3] Introduce mtdblock device

2024-04-11 Thread Alexey Romanov
Hello! Ping. On Thu, Apr 04, 2024 at 01:58:10PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the mtdblock device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

Re: [PATCH v4 1/1] fastboot: introduce 'oem board' subcommand

2024-04-10 Thread Alexey Romanov
Hi guys, On Wed, Apr 10, 2024 at 02:02:21PM +0200, Quentin Schulz wrote: > Hi Alexey, > > On 4/10/24 12:58, Alexey Romanov wrote: > > Currently, fastboot protocol in U-Boot has no opportunity > > to execute vendor custom code with verifed boot. This patch > > introd

[PATCH v4 1/1] fastboot: introduce 'oem board' subcommand

2024-04-10 Thread Alexey Romanov
-by: Alexey Romanov Reviewed-by: Mattijs Korpershoek --- doc/android/fastboot.rst | 18 ++ drivers/fastboot/Kconfig | 7 +++ drivers/fastboot/fb_command.c | 30 ++ include/fastboot.h| 1 + 4 files changed, 56 insertions(+) diff

[PATCH v4 0/1] Introduce fastboot oem board command

2024-04-10 Thread Alexey Romanov
4] https://lore.kernel.org/all/20240408101552.539037-1-avroma...@salutedevices.com/ [5] https://lore.kernel.org/all/9efdf140-8da3-4b5e-b1c4-2f106067a...@theobroma-systems.com/ Alexey Romanov (1): fastboot: introduce 'oem board' subcommand doc/android/fastboot.rst | 18 ++

[PATCH v3 1/1] fastboot: introduce 'oem board' subcommand

2024-04-08 Thread Alexey Romanov
-by: Alexey Romanov --- doc/android/fastboot.rst | 18 ++ drivers/fastboot/Kconfig | 7 +++ drivers/fastboot/fb_command.c | 30 ++ include/fastboot.h| 1 + 4 files changed, 56 insertions(+) diff --git a/doc/android/fastboot.rst b

[PATCH v3 0/1] Introduce fastboot oem board command

2024-04-08 Thread Alexey Romanov
avroma...@salutedevices.com/ [2] https://lore.kernel.org/all/72ac233d-c18d-4f57-bc66-451fe0bd2...@seco.com/ [3] https://lore.kernel.org/all/20240201092027.6258-1-avroma...@salutedevices.com/ Alexey Romanov (1): fastboot: introduce 'oem board' subcommand doc/android/fastboot.rst

[PATCH v3 3/3] spinand: bind mtdblock

2024-04-04 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Reviewed-by: Frieder Schrempf Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 2a3dbcfcb4..dd880adf31

[PATCH v3 2/3] drivers: introduce mtdblock abstraction

2024-04-04 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Makefile | 1 + drivers/mtd/mtdblock.c | 227 + include/linux/mtd

[PATCH v3 1/3] disk: support MTD partitions

2024-04-04 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 3 +- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 69 +++ include/part.h| 3 ++ 4 files

[PATCH v3 0/3] Introduce mtdblock device

2024-04-04 Thread Alexey Romanov
2] https://lore.kernel.org/all/20240227100441.1811047-5-avroma...@salutedevices.com/ - [3] https://lore.kernel.org/u-boot/20240403114047.84030-1-heinrich.schucha...@canonical.com/T/#u Alexey Romanov (3): disk: support MTD partitions drivers: introduce mtdblock abstraction spinand: bind mtdblo

Re: [PATCH v2 6/6] spinand: bind UBI block

2024-04-04 Thread Alexey Romanov
Hi, On Thu, Apr 04, 2024 at 11:23:47AM +0800, Chuanhong Guo wrote: > Hello! > > On Mon, Mar 25, 2024 at 10:46 PM Alexey Romanov > wrote: > > > > UBI block is virtual block device, which is an abstraction > > over MTD layer. Therefore it is logical to use it in co

Re: [RFC PATCH v2 1/2] fastboot: introduce 'oem board' subcommand

2024-04-03 Thread Alexey Romanov
Hello Mattijs, is there any feedback? On Thu, Feb 15, 2024 at 10:14:13AM +0100, Mattijs Korpershoek wrote: > Hi Alexey, > > Thank you for the patch. > > On jeu., f'evr. 01, 2024 at 12:20, Alexey Romanov > wrote: > > > Currently, fastboot protocol in U-Boot has no

Re: [PATCH v2 0/3] Introduce mtdblock device

2024-04-03 Thread Alexey Romanov
Hi guys! Ping. On Thu, Mar 07, 2024 at 04:07:23PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the mtdblock device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

Re: [PATCH v2 0/6] Introduce UBI block device

2024-04-03 Thread Alexey Romanov
Hi guys! Ping. On Tue, Mar 26, 2024 at 05:21:29AM +0100, Heiko Schocher wrote: > Hello Alexey, > > On 25.03.24 15:41, Alexey Romanov wrote: > > Hello! > > > > This series adds support for the UBI block device, which > > allows to read/write data block by b

[PATCH v2 6/6] spinand: bind UBI block

2024-03-25 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand

[PATCH v2 5/6] disk: support UBI partitions

2024-03-25 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- drivers/mtd/ubi/Makefile | 2 +- drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files

[PATCH v2 4/6] disk: don't try search for partition type if already set

2024-03-25 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c

[PATCH v2 3/6] drivers: introduce UBI block abstraction

2024-03-25 Thread Alexey Romanov
d/ubi/block.c new file mode 100644 index 00..95d5ef5752 --- /dev/null +++ b/drivers/mtd/ubi/block.c @@ -0,0 +1,130 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2024 SaluteDevices, Inc. + * + * Author: Alexey Romanov + */ + +#include +#include +#include +#include +#incl

[PATCH v2 2/6] ubi: allow to write to volume with offset

2024-03-25 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 71 +++-- env/ubi.c | 10

[PATCH v2 1/6] ubi: allow to read from volume with offset

2024-03-25 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov Reviewed-by: Heiko Schocher Acked-by: Heiko Schocher --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7 insertions

[PATCH v2 0/6] Introduce UBI block device

2024-03-25 Thread Alexey Romanov
all/20240306134906.1179285-1-avroma...@salutedevices.com/ [3] https://lore.kernel.org/all/20240307130726.1582487-1-avroma...@salutedevices.com/ Alexey Romanov (6): ubi: allow to read from volume with offset ubi: allow to write to volume with offset drivers: introduce UBI block abstraction disk: do

Re: [PATCH v1 0/6] Introduce UBI block device

2024-03-19 Thread Alexey Romanov
Hello! Ping. On Wed, Mar 06, 2024 at 04:49:00PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the UBI block device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

Re: [PATCH v2 0/3] Introduce mtdblock device

2024-03-19 Thread Alexey Romanov
Hello! Ping. On Thu, Mar 07, 2024 at 04:07:23PM +0300, Alexey Romanov wrote: > Hello! > > This series adds support for the mtdblock device, which > allows to read/write data block by block. For example, > it can now be used for BCB or Android AB command: > > $ bcb

[PATCH v2 3/3] spinand: bind mtdblock

2024-03-07 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 2a3dbcfcb4..dd880adf31 100644 --- a/drivers/mtd/nand

[PATCH v2 2/3] drivers: introduce mtdblock abstraction

2024-03-07 Thread Alexey Romanov
MTD block - abstraction over MTD subsystem, allowing to read and write in blocks using BLK UCLASS. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Makefile | 1 + drivers/mtd/mtdblock.c | 227 + include/linux/mtd

[PATCH v2 1/3] disk: support MTD partitions

2024-03-07 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 5 +++- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 69 +++ include/part.h| 2 ++ 4 files

[PATCH v2 0/3] Introduce mtdblock device

2024-03-07 Thread Alexey Romanov
tps://lore.kernel.org/all/20240227100441.1811047-1-avroma...@salutedevices.com/ - [2] https://lore.kernel.org/all/20240227100441.1811047-5-avroma...@salutedevices.com/ Alexey Romanov (3): disk: support MTD partitions drivers: introduce mtdblock abstraction spinand: bind mtdblock disk/par

Re: [PATCH v1 1/4] drivers: introduce mtdblock abstraction

2024-03-07 Thread Alexey Romanov
Hi Heinrich, On Tue, Feb 27, 2024 at 02:37:17PM +0100, Heinrich Schuchardt wrote: > On 27.02.24 11:04, Alexey Romanov wrote: > > MTD block - abstraction over MTD subsystem, allowing > > to read and write in blocks using BLK UCLASS. > > > > - Read algorithm: > &g

[PATCH v1 6/6] spinand: bind UBI block

2024-03-06 Thread Alexey Romanov
UBI block is virtual block device, which is an abstraction over MTD layer. Therefore it is logical to use it in combination with MTD drivers. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/mtd

[PATCH v1 5/6] disk: support UBI partitions

2024-03-06 Thread Alexey Romanov
UBI partition is abstraction over UBI volumes. Can be used by UBI block device. Signed-off-by: Alexey Romanov --- drivers/mtd/ubi/Makefile | 1 + drivers/mtd/ubi/part.c | 99 include/part.h | 2 + 3 files changed, 102 insertions(+) create

[PATCH v1 4/6] disk: don't try search for partition type if already set

2024-03-06 Thread Alexey Romanov
Block devices can already set partition type at initialization stage, so, in this case is no point in searching for partition type. Signed-off-by: Alexey Romanov --- disk/part.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/disk/part.c b/disk/part.c index 0fc5cc0419..362c9de609

[PATCH v1 3/6] drivers: introduce UBI block abstraction

2024-03-06 Thread Alexey Romanov
d5ef5752 --- /dev/null +++ b/drivers/mtd/ubi/block.c @@ -0,0 +1,130 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2024 SaluteDevices, Inc. + * + * Author: Alexey Romanov + */ + +#include +#include +#include +#include +#include + +int ubi_bind(struct udevice *dev) +{ +

[PATCH v1 2/6] ubi: allow to write to volume with offset

2024-03-06 Thread Alexey Romanov
Introduce ubi_volume_offset_write() helper, which allow to write to ubi volume with specified offset. Signed-off-by: Alexey Romanov --- cmd/ubi.c | 71 +++-- env/ubi.c | 10 +++ include/ubi_uboot.h | 2 +- 3 files changed, 74

[PATCH v1 1/6] ubi: allow to read from volume with offset

2024-03-06 Thread Alexey Romanov
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov --- cmd/ubi.c | 6 +++--- env/ubi.c | 6 +++--- include/ubi_uboot.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/ubi.c b/cmd/ubi.c

[PATCH v1 0/6] Introduce UBI block device

2024-03-06 Thread Alexey Romanov
device [1]. - Links: [1] https://lore.kernel.org/all/20240227100441.1811047-1-avroma...@salutedevices.com/ Alexey Romanov (6): ubi: allow to read from volume with offset ubi: allow to write to volume with offset drivers: introduce UBI block abstraction disk: don't try search for partition

Re: [RFC PATCH v2 1/2] fastboot: introduce 'oem board' subcommand

2024-03-04 Thread Alexey Romanov
Hello, On Thu, Feb 15, 2024 at 10:14:13AM +0100, Mattijs Korpershoek wrote: > Hi Alexey, > > Thank you for the patch. > > On jeu., f'evr. 01, 2024 at 12:20, Alexey Romanov > wrote: > > > Currently, fastboot protocol in U-Boot has no opportunity > > to execut

Re: [RFC PATCH v2 2/2] board: ad401: example of fastboot oem board realization

2024-03-04 Thread Alexey Romanov
Hello Mattijs, On Thu, Feb 15, 2024 at 10:24:11AM +0100, Mattijs Korpershoek wrote: > On jeu., f'evr. 01, 2024 at 12:20, Alexey Romanov > wrote: > > > An example of how we use fastboot oeam board subcommand > > for Sean Anderson. > > > > 1 - OEM_BOARD_WRI

Re: [PATCH v1 0/4] Introduce mtdblock device

2024-03-01 Thread Alexey Romanov
Hi Frieder, On Thu, Feb 29, 2024 at 09:51:04AM +0100, Frieder Schrempf wrote: > Hi Alexey, > > On 27.02.24 11:04, Alexey Romanov wrote: > > Hello! > > > > This series adds support for the mtdblock device, which > > allows to read/write data block by block. Fo

[PATCH v1 3/4] spinand: bind mtdblock

2024-02-27 Thread Alexey Romanov
Bind SPI-NAND driver to MTD block driver. Signed-off-by: Alexey Romanov --- drivers/mtd/nand/spi/core.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 2a3dbcfcb4..1d9cf66e4a 100644 --- a/drivers/mtd/nand

[PATCH v1 2/4] disk: support MTD partitions

2024-02-27 Thread Alexey Romanov
Add new MTD partition driver, which can be useful with mtdblock driver combination. Signed-off-by: Alexey Romanov --- disk/part.c | 5 +++- drivers/mtd/Kconfig | 1 + drivers/mtd/mtdpart.c | 69 +++ include/part.h| 2 ++ 4 files

[PATCH v1 4/4] efi: block: compile only if CONFIG_EFI_PARTITION enabled

2024-02-27 Thread Alexey Romanov
We have to compile efi_block abstraction only if option EFI_PARTITION is enabled. For example, if the user only enabled MTD_PARTITIONS, we would still compile efi_block. This is incorrect. Signed-off-by: Alexey Romanov --- lib/efi_driver/Makefile | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v1 1/4] drivers: introduce mtdblock abstraction

2024-02-27 Thread Alexey Romanov
sted number of blocks have been written. Signed-off-by: Alexey Romanov --- drivers/block/blk-uclass.c | 1 + drivers/mtd/Makefile | 1 + drivers/mtd/mtdblock.c | 170 + include/linux/mtd/mtd.h| 12 +++ 4 files changed, 184 insertions(+

[PATCH v1 0/4] Introduce mtdblock device

2024-02-27 Thread Alexey Romanov
Hello! This series adds support for the mtdblock device, which allows to read/write data block by block. For example, it can now be used for BCB or Android AB command: $ bcb load mtd 0 part_name Tested only on SPI NAND, so bind is made only for SPI NAND drivers. Alexey Romanov (4): drivers

Re: [RFC PATCH v2 0/2] Introduce fastboot oem board command

2024-02-14 Thread Alexey Romanov
Hello! Ping. On Thu, Feb 01, 2024 at 12:20:25PM +0300, Alexey Romanov wrote: > Changes v2 since v1 at [1]: > - Added an example of using the command as requsted > by Sean Anderson [2]. > > Links: > [1] > https://lore.kernel.org/all/20231228

Re: [RFC PATCH v2 2/2] board: ad401: example of fastboot oem board realization

2024-02-01 Thread Alexey Romanov
Hi, On Thu, Feb 01, 2024 at 04:56:34PM +0300, Dan Carpenter wrote: > On Thu, Feb 01, 2024 at 12:20:27PM +0300, Alexey Romanov wrote: > > +static int fastboot_nand_write_tpl(struct mtd_info *mtd, void *buffer, > > + u32 offset, size_t

  1   2   3   >