We have exactly the same in upstream bindings.
Signed-off-by: Alexey Romanov
---
.../interrupt-controller/arm-gic.h| 23 ---
1 file changed, 23 deletions(-)
delete mode 100644 include/dt-bindings/interrupt-controller/arm-gic.h
diff --git a/include/dt-bindings
We have exactly the same in upstream bindings.
Signed-off-by: Alexey Romanov
---
include/dt-bindings/clock/axg-audio-clkc.h | 94 ---
include/dt-bindings/clock/axg-clkc.h | 100 -
2 files changed, 194 deletions(-)
delete mode 100644 include/dt
We have exactly the same in upstream bindings.
Signed-off-by: Alexey Romanov
---
.../clock/amlogic,a1-peripherals-clkc.h | 168 --
.../dt-bindings/clock/amlogic,a1-pll-clkc.h | 25 ---
include/dt-bindings/gpio/meson-a1-gpio.h | 73
include/dt-bindings
, we can remove legacy arch/arm/dts/meson-a1.dtsi file.
Signed-off-by: Alexey Romanov
---
arch/arm/dts/meson-a1.dtsi | 518 -
1 file changed, 518 deletions(-)
delete mode 100644 arch/arm/dts/meson-a1.dtsi
diff --git a/arch/arm/dts/meson-a1.dtsi b/arch/arm/dts
We should remove bindings and dtsi from include/ folder for A1
and AXG Amlogic devices. We have exactly the same, or with minor
differences in dts/upstream folder.
I tested this changes on devices closes to reference A1 and AXG SoCs
devices and didn't receive any problems.
Alexey Roman
Hi Michael,
Sorry for the late reply.
On Fri, Jul 19, 2024 at 08:57:04AM +0200, Michael Walle wrote:
> Hi,
>
> > Tested only on SPI NAND, so bind is made only for
> > SPI NAND drivers.
>
> If tried to test this with the SPI NOR framework but I couldn't get
> it to work. The SPI NOR flash didn't
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
-avroma...@salutedevices.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/
Ale
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
all/20240626104527.2811828-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 partitio
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
0603155740.1840571-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
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
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
[6]
https://lore.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/Kco
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
> *bdesc)
>
> Thanks 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 messa
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
> > allows
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
06.1179285-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.c
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
tps://lore.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/
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
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
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
> wrote:
> &g
: 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/fast
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
: 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
: 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/fastbo
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 h
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 bloc
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
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
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 part
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 e
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_W
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
1 - 100 of 254 matches
Mail list logo