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
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
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
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)
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
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
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
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
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
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
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
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
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
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
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
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
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
+
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
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
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
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
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
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
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 |
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
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
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
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
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
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
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
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
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
-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
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
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
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
.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
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
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
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
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
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
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
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
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
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
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
- [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
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:
> > &
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.
> >
> >
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
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
-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
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
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
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
-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
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 ++
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
+{
+
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
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
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
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
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
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
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
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
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
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(+
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
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
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 - 100 of 248 matches
Mail list logo