[PATCH] lib: rsa: Set conventional salt length RSA-PSS parameter

2024-10-31 Thread Loic Poulain
we set the default RSA-PSS salt-length value to the conventional one. A further improvement could consist in making it configurable as signature FIT node attribute. rfc3447: https://datatracker.ietf.org/doc/html/rfc3447 rfc4055: https://datatracker.ietf.org/doc/html/rfc4055 Signed-off-by: Lo

[PATCH 3/3] spl: fit: Load compressed blob to heap buffer

2023-11-03 Thread Loic Poulain
(inplace) decompression to fail. Instead we can simply allocate a temporary buffer in the heap Signed-off-by: Loic Poulain --- common/spl/spl_fit.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index 08428660b0

[PATCH 2/3] spl: fit: Add support for LZO compressed images

2023-11-03 Thread Loic Poulain
Signed-off-by: Loic Poulain --- common/spl/spl_fit.c | 10 ++ include/spl.h| 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index 1d42cb1d10..08428660b0 100644 --- a/common/spl/spl_fit.c +++ b/common/spl

[PATCH 1/3] spl: fit: Discard decompression if not supported

2023-11-03 Thread Loic Poulain
And simplify further decompression testing. Signed-off-by: Loic Poulain --- common/spl/spl_fit.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index 70d8d5942d..1d42cb1d10 100644 --- a/common/spl

Re: [PATCH] usb: gadget: sdp: Option to enable SDP read register command

2023-09-01 Thread Loic Poulain
Hi Marek, On Mon, 14 Aug 2023 at 01:53, Marek Vasut wrote: > > On 8/13/23 10:39, Loic Poulain wrote: > > The SDP read register command can be used to read any memory > > mapped address of the device (ddr, registers...). It can then > > be exploited by an attacker to acce

[PATCH] usb: gadget: sdp: Option to enable SDP read register command

2023-08-13 Thread Loic Poulain
make it optional from u-boot/spl as well. Signed-off-by: Loic Poulain --- drivers/usb/gadget/Kconfig | 14 ++ drivers/usb/gadget/f_sdp.c | 2 ++ 2 files changed, 16 insertions(+) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 1cfe602284..50cf7c0dae 100644

Re: [PATCH v2 3/3] test: dm: mmc: Check block erasing boundaries

2023-02-08 Thread Loic Poulain
On Fri, 27 Jan 2023 at 15:30, Simon Glass wrote: > > Hi Loic, > > On Thu, 26 Jan 2023 at 02:24, Loic Poulain wrote: > > > > Verify that erasing blocks does not impact adjacent ones. > > - Write four blocks [0 1 2 3] > > - Erase two blocks [ 1 2 ] > >

Re: [PATCH v2 2/3] mmc: erase: Use TRIM erase when available

2023-02-08 Thread Loic Poulain
Hi Jaehoon, On Mon, 6 Feb 2023 at 06:05, Jaehoon Chung wrote: > > Hi, > > > -Original Message- > > From: Loic Poulain > > Sent: Thursday, January 26, 2023 6:24 PM > > To: s...@chromium.org; peng@nxp.com; jh80.ch...@samsung.com > > Cc: u-boot@l

Re: [PATCH v2 4/5] lib: sha256: Add support for hardware specific sha256_process

2023-02-07 Thread Loic Poulain
Hi Simon, On Tue, 7 Feb 2023 at 05:05, Simon Glass wrote: > > Hi Loic, > > On Mon, 6 Feb 2023 at 15:12, Loic Poulain wrote: > > > > Hi Simon, > > > > Le lun. 6 févr. 2023 à 18:12, Simon Glass a écrit : > >> > >> Hi Loic, >

Re: [PATCH v2 4/5] lib: sha256: Add support for hardware specific sha256_process

2023-02-06 Thread Loic Poulain
Hi Simon, Le lun. 6 févr. 2023 à 18:12, Simon Glass a écrit : > Hi Loic, > > On Wed, 1 Jun 2022 at 12:27, Loic Poulain wrote: > > > > Mark sha256_process as weak to allow hardware specific implementation. > > Add parameter for supporting multiple blocks processing.

Re: [PATCH v2 2/3] mmc: erase: Use TRIM erase when available

2023-02-01 Thread Loic Poulain
Hi Simon, On Sat, 28 Jan 2023 at 23:01, Simon Glass wrote: > > Hi Loic, > > On Thu, 26 Jan 2023 at 02:24, Loic Poulain wrote: > > > > The default erase command applies on erase group unit, and > > simply round down to erase group size. When the start block > >

[PATCH v2 3/3] test: dm: mmc: Check block erasing boundaries

2023-01-26 Thread Loic Poulain
Verify that erasing blocks does not impact adjacent ones. - Write four blocks [0 1 2 3] - Erase two blocks [ 1 2 ] - Verify [0 1 2 3 ] Signed-off-by: Loic Poulain --- v2: Add this change to the series test/dm/mmc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff

[PATCH v2 2/3] mmc: erase: Use TRIM erase when available

2023-01-26 Thread Loic Poulain
, or by the partition table itself). To prevent this issue, a simple solution is to use TRIM as argument of the Erase command, which is usually supported with eMMC > 4.0, and allow to apply erase operation to write blocks instead of erase group Signed-off-by: Loic Poulain --- v2: Add mmc unit t

[PATCH v2 1/3] mmc: Check support for TRIM operations

2023-01-26 Thread Loic Poulain
When secure/insecure TRIM operations are supported. When used as erase command argument it applies the erase operation to write blocks instead of erase groups. Signed-off-by: Loic Poulain --- v2: Add mmc unit test change to the series drivers/mmc/mmc.c | 3 +++ include/mmc.h | 4 2

[PATCH 2/2] mmc: erase: Use TRIM erase when available

2023-01-25 Thread Loic Poulain
, or by the partition table itself). To prevent this issue, a simple solution is to use TRIM as argument of the Erase command, which is usually supported with eMMC > 4.0, and allow to apply erase operation to write blocks instead of erase group Signed-off-by: Loic Poulain --- drivers/

[PATCH 1/2] mmc: Check support for TRIM operations

2023-01-25 Thread Loic Poulain
When secure/insecure TRIM operations are supported. When used as erase command argument it applies the erase operation to write blocks instead of erase groups. Signed-off-by: Loic Poulain --- drivers/mmc/mmc.c | 3 +++ include/mmc.h | 4 2 files changed, 7 insertions(+) diff --git a

[PATCH v4 2/2] serial: mxc: Speed-up character transmission

2023-01-12 Thread Loic Poulain
Instead of waiting for empty FIFO condition before writing a character, wait for non-full FIFO condition. This helps in saving several tens of milliseconds during boot (depending verbosity). Signed-off-by: Loic Poulain Tested-by: Lothar Waßmann Acked-by: Pali Rohár --- v2: fixing transfert

[PATCH v4 1/2] serial: mxc: Wait for TX completion before reset

2023-01-12 Thread Loic Poulain
reinitialization. For this we're waiting for Transmitter Complete bit, indicating that the FIFO and the shift register are empty. flushing has a 4ms timeout guard, which is normally more than enough to consume the FIFO @ low baudrate (9600bps). Signed-off-by: Loic Poulain Tested-by: Lothar Wa

Re: [PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-11 Thread Loic Poulain
On Wed, 11 Jan 2023 at 09:08, Pali Rohár wrote: > > On Wednesday 11 January 2023 08:53:30 Loic Poulain wrote: > > On Wed, 11 Jan 2023 at 00:53, Pali Rohár wrote: > > > > > > On Tuesday 10 January 2023 20:24:06 Loic Poulain wrote: > > > > The u-boot conso

Re: [PATCH v2 2/2] serial: mxc: Wait for TX completion before reset

2023-01-11 Thread Loic Poulain
On Wed, 11 Jan 2023 at 01:15, Simon Glass wrote: > > Hi, > > On Tue, 10 Jan 2023 at 05:42, Loic Poulain wrote: > > > > The u-boot console may show some corrupted characters when > > printing in board_init() due to reset of the UART (probe) > > before the

Re: [PATCH v3 2/2] serial: mxc: Speed-up character transmission

2023-01-10 Thread Loic Poulain
On Wed, 11 Jan 2023 at 00:55, Pali Rohár wrote: > > On Tuesday 10 January 2023 20:24:07 Loic Poulain wrote: > > Instead of waiting for empty FIFO condition before writing a > > character, wait for non-full FIFO condition. > > > > This helps in saving several te

Re: [PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Loic Poulain
On Wed, 11 Jan 2023 at 00:53, Pali Rohár wrote: > > On Tuesday 10 January 2023 20:24:06 Loic Poulain wrote: > > The u-boot console may show some corrupted characters when > > printing in board_init() due to reset of the UART (probe) > > before the TX FIFO has been comple

[PATCH v3 2/2] serial: mxc: Speed-up character transmission

2023-01-10 Thread Loic Poulain
Instead of waiting for empty FIFO condition before writing a character, wait for non-full FIFO condition. This helps in saving several tens of milliseconds during boot (depending verbosity). Signed-off-by: Loic Poulain Tested-by: Lothar Waßmann --- v2: fixing transfert abort & char corrup

[PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Loic Poulain
this we're waiting for Transmitter Complete bit, indicating that the FIFO and the shift register are empty. flushing has a 4ms timeout guard, which is normally more than enough to consume the FIFO @ low baudrate (9600bps). Signed-off-by: Loic Poulain Tested-by: Lothar Waßmann ---  v2: Add

[PATCH v2 2/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Loic Poulain
this we're waiting for Transmitter Complete bit, indicating that the FIFO and the shift register are empty. flushing has a 4ms timeout guard, which is normally more than enough to consume the FIFO @ low baudrate (9600bps). Signed-off-by: Loic Poulain --- v2: Add this commit to the series dr

[PATCH v2 1/2] serial: mxc: Speed-up character transmission

2023-01-10 Thread Loic Poulain
Instead of waiting for empty FIFO condition before writing a character, wait for non-full FIFO condition. This helps in saving several tens of milliseconds during boot (depending verbosity). Signed-off-by: Loic Poulain --- v2: Add 2/2 fixing transfert abort & char corruption drivers/se

Re: [PATCH v2 2/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Loic Poulain
nsume the FIFO @ low baudrate (9600bps). > > > > Signed-off-by: Loic Poulain > > --- > > v2: Add this commit to the series > > Should this patch come first in the series? > > In case someone is bisecting, the current patch 1/2 may cause serial > corruption,

[PATCH v2 2/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Loic Poulain
this we're waiting for Transmitter Complete bit, indicating that the FIFO and the shift register are empty. flushing has a 4ms timeout guard, which is normally more than enough to consume the FIFO @ low baudrate (9600bps). Signed-off-by: Loic Poulain --- v2: Add this commit to the series dr

[PATCH v2 1/2] serial: mxc: Speed-up character transmission

2023-01-10 Thread Loic Poulain
Instead of waiting for empty FIFO condition before writing a character, wait for non-full FIFO condition. This helps in saving several tens of milliseconds during boot (depending verbosity). Signed-off-by: Loic Poulain --- v2: Add 2/2 fixing transfert abort & char corruption drivers/se

Re: [PATCH] serial: mxc: Speed-up character transmission

2023-01-10 Thread Loic Poulain
Hi Lothar, On Tue, 10 Jan 2023 at 07:46, Lothar Waßmann wrote: > A previous attempt to do this in: > |commit c7878a0483c59c48a730123bc0f4659fd40921bf > |Author: Johannes Schneider > |Date: Tue Sep 6 14:15:04 2022 +0200 > | > |serial: mxc: have putc use the TXFIFO > > has been reverted in:

[PATCH] serial: mxc: Speed-up character transmission

2023-01-09 Thread Loic Poulain
Instead of waiting for empty FIFO condition before writing a character, wait for non-full FIFO condition. This helps in saving several tens of milliseconds during boot (depending verbosity). Signed-off-by: Loic Poulain --- drivers/serial/serial_mxc.c | 8 1 file changed, 4 insertions

[PATCH v2] configs: imx8m: Enable CONFIG_ARMV8_CRYPTO support

2022-09-22 Thread Loic Poulain
This enables armv8 crypto extension usage for SHA1/SHA256. Which speed up sha1/sha256 operations, about 10x faster with a imx8mm evk for a 20MiB kernel hash verification (12ms vs 165ms). Signed-off-by: Loic Poulain --- v2: Select ARMV8_CRYPTO in the imx8m common Kconfig arch/arm/mach-imx

[PATCH] configs: imx8mm*: Enable CONFIG_ARMV8_CRYPTO support

2022-09-20 Thread Loic Poulain
Which speed up sha1/sha256 operations, about 10x faster with a imx8mm evk for a 20MiB kernel hash verification (12ms vs 165ms). Signed-off-by: Loic Poulain --- configs/imx8mm-cl-iot-gate-optee_defconfig| 1 + configs/imx8mm-cl-iot-gate_defconfig | 1 + configs/imx8mm-icore-mx8mm

Re: [PATCH v2 0/5] Add ARMv8 CE sha1/sha256 support

2022-06-15 Thread Loic Poulain
Hi Folks, Any comments on this series? Anyone else to CC? Thanks, Loic On Wed, 1 Jun 2022 at 20:26, Loic Poulain wrote: > > This series adds support for the SHA-1 and SHA-256 Secure Hash Algorithm > for CPUs that have support of the ARM v8 Crypto Extensions. It Improves > speed

[PATCH v2 5/5] armv8 SHA-256 using ARMv8 Crypto Extensions

2022-06-01 Thread Loic Poulain
implementation is a simplified version of the Linux version (from Ard Biesheuvel). Signed-off-by: Loic Poulain --- arch/arm/cpu/armv8/Kconfig | 4 ++ arch/arm/cpu/armv8/Makefile | 1 + arch/arm/cpu/armv8/sha256_ce_core.S | 134 arch/arm/cpu/armv8

[PATCH v2 2/5] sha1: Fix digest state size/type

2022-06-01 Thread Loic Poulain
sha1 digest size is 5*32-bit => 160-bit. Using 64-bit unsigned long does not cause issue with the current sha1 implementation, but could be problematic for vectorized access. Signed-off-by: Loic Poulain --- include/u-boot/sha1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH v2 1/5] lib: sha1: Add support for hardware specific sha1_process

2022-06-01 Thread Loic Poulain
Mark sha1_process as weak to allow hardware specific implementation. Add parameter to support for multiple blocks processing. Signed-off-by: Loic Poulain --- lib/sha1.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/lib/sha1.c b/lib/sha1.c index

[PATCH v2 4/5] lib: sha256: Add support for hardware specific sha256_process

2022-06-01 Thread Loic Poulain
Mark sha256_process as weak to allow hardware specific implementation. Add parameter for supporting multiple blocks processing. Signed-off-by: Loic Poulain --- lib/sha256.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/lib/sha256.c b/lib/sha256

[PATCH v2 3/5] armv8 SHA-1 using ARMv8 Crypto Extensions:

2022-06-01 Thread Loic Poulain
a simplified version of the Linux version (from Ard Biesheuvel). Signed-off-by: Loic Poulain --- arch/arm/cpu/armv8/Kconfig| 11 arch/arm/cpu/armv8/Makefile | 1 + arch/arm/cpu/armv8/sha1_ce_core.S | 132 ++ arch/arm/cpu/armv8

[PATCH v2 0/5] Add ARMv8 CE sha1/sha256 support

2022-06-01 Thread Loic Poulain
if SHA1 and SHA256 selected Loic Poulain (5): lib: sha1: Add support for hardware specific sha1_process sha1: Fix digest state size/type armv8 SHA-1 using ARMv8 Crypto Extensions: lib: sha256: Add support for hardware specific sha256_process armv8 SHA-256 using ARMv8 Crypto Extensions arch/arm

[PATCH 3/3] armv8 SHA-1 using ARMv8 Crypto Extensions:

2022-06-01 Thread Loic Poulain
a simplified version of the Linux version (from Ard Biesheuvel). Signed-off-by: Loic Poulain --- arch/arm/cpu/armv8/Kconfig| 10 +++ arch/arm/cpu/armv8/Makefile | 1 + arch/arm/cpu/armv8/sha1_ce_core.S | 132 ++ arch/arm/cpu/armv8

[PATCH 2/3] sha1: Fix digest state size/type

2022-06-01 Thread Loic Poulain
sha1 digest size is 5*32-bit => 160-bit. Using 64-bit unsigned long does not cause issue with the current sha1 implementation, but could be problematic for vectorized access. Signed-off-by: Loic Poulain --- include/u-boot/sha1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH 1/3] lib: sha1: Add support for hardware specific sha1_process

2022-06-01 Thread Loic Poulain
Mark sha1_process as weak to allow hardware specific implementation. Add parameter to support for multiple blocks processing. Signed-off-by: Loic Poulain --- lib/sha1.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/lib/sha1.c b/lib/sha1.c index

[PATCH 1/2] mmc: Add support for wait_dat0 callback

2022-05-26 Thread Loic Poulain
support for wait_dat0() mmc operation. Signed-off-by: Loic Poulain --- drivers/mmc/mmc.c | 3 +++ include/mmc.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index f6ccd83..109f340 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -34,6 +34,9

[PATCH 2/2] mmc: fsl_esdhc_imx: Implement wait_dat0 mmc ops

2022-05-26 Thread Loic Poulain
0.286494] [0.700793 0.000108] [0.700845 0.52] U-Boot 2021.04- Signed-off-by: Loic Poulain --- drivers/mmc/fsl_esdhc_imx.c | 50 ++--- 1 file changed, 33 insertions(+), 17 deletions(-) diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc

Re: USB init before using usb_serial_acm gadget?

2022-04-21 Thread Loic Poulain
On Sun, 17 Apr 2022 at 10:45, Sergey Nazaryev wrote: > > > So I think the right place to call usb_gadget_initialize is probably > > before registering the acm gadget function into acm_stdio_start(). Can > > you try this? and submit a follow_up fix patch if working? > > It's required for `usb_gadge

Re: USB init before using usb_serial_acm gadget?

2022-04-14 Thread Loic Poulain
Hi Sergey, On Thu, 14 Apr 2022 at 20:31, Sergey Nazaryev wrote: > > Hi! > > As I can see, recently [1] the implementation of USB ACM gadget has > been merged into U-boot master. I tried to use it but the problem is > that running `setenv stdout usbacm` on my board based on STM32MP157 > leads to

[PATCH] imx8ulp: clock: Fix lcd clock algo

2022-03-31 Thread Loic Poulain
The div loop uses reassign and reuse parent_rate, which causes the parent rate reference to be wrong after the first loop, the resulting clock becomes incorrect for div != 1. Fixes: 829e06bf4175 ("imx8ulp: clock: Add MIPI DSI clock and DCNano clock") Signed-off-by: Loic Poulain ---

Re: [PATCH v3 2/2] usb: gadget: Add CDC ACM function

2021-11-26 Thread Loic Poulain
Hi Pali, On Thu, 25 Nov 2021 at 19:10, Pali Rohár wrote: > > On Thursday 25 November 2021 18:16:15 Loic Poulain wrote: > > Add support for CDC ACM using the new UDC and gadget API. This protocol > > can be used for serial over USB data transfer and is widely supported >

[PATCH v3 1/2] lib/circbuf: Make circbuf selectable symbol

2021-11-25 Thread Loic Poulain
It is currenly only used from usbtty driver but make it properly selectable via Kconfig symbol, for future usage. Signed-off-by: Loic Poulain --- v2: no change v3: add symbol description lib/Kconfig | 3 +++ lib/Makefile | 8 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff

[PATCH v3 2/2] usb: gadget: Add CDC ACM function

2021-11-25 Thread Loic Poulain
regular UART to the user. A default stdio device named 'usbacm' is created, and can be used to redirect console to USB link over CDC ACM: > setenv stdin usbacm; setenv stdout usbacm Signed-off-by: Loic Poulain --- v2: - remove possible infinite recursipe print loop - Remo

Re: [PATCH v2 1/2] lib/circbuf: Make circbuf selectable symbol

2021-11-22 Thread Loic Poulain
Hi Wolfgang, On Mon, 22 Nov 2021 at 13:50, Wolfgang Denk wrote: > > Dear Loic Poulain, > > In message <1637584252-15617-1-git-send-email-loic.poul...@linaro.org> you > wrote: > > It is currenly only used from usbtty driver but make it properly > > selectable via

Re: [PATCH v2 2/2] usb: gadget: Add CDC ACM function

2021-11-22 Thread Loic Poulain
Hi Pali, On Mon, 22 Nov 2021 at 16:48, Pali Rohár wrote: > > Hello! I have just few notes, see below. > > > diff --git a/drivers/usb/gadget/Makefile b/drivers/usb/gadget/Makefile > > index f560068..d5d891b 100644 > > --- a/drivers/usb/gadget/Makefile > > +++ b/drivers/usb/gadget/Makefile > > @@ -

[PATCH v2 2/2] usb: gadget: Add CDC ACM function

2021-11-22 Thread Loic Poulain
regular UART to the user. A default stdio device named 'stdio_acm' is created, and can be used to redirect console to USB link over CDC ACM: > setenv stdin stdio_acm; setenv stdout stdio_acm Signed-off-by: Loic Poulain --- v2: - remove possible infinite recursipe print loop

[PATCH v2 1/2] lib/circbuf: Make circbuf selectable symbol

2021-11-22 Thread Loic Poulain
It is currenly only used from usbtty driver but make it properly selectable via Kconfig symbol, for future usage. Signed-off-by: Loic Poulain --- v2: no change lib/Kconfig | 3 +++ lib/Makefile | 8 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib

Re: [PATCH 3/3] cmd: add acmconsole command

2021-11-22 Thread Loic Poulain
Hi Pali, On Tue, 16 Nov 2021 at 20:36, Pali Rohár wrote: > > Hello! > > On Tuesday 16 November 2021 20:05:07 Loic Poulain wrote: > > Hi Pali, > > > > Sorry for the late reply, > > > > On Mon, 27 Sept 2021 at 22:04, Pali Rohár wrote: > > > >

Re: [PATCH 3/3] cmd: add acmconsole command

2021-11-16 Thread Loic Poulain
Hi Pali, Sorry for the late reply, On Mon, 27 Sept 2021 at 22:04, Pali Rohár wrote: > > On Thursday 19 August 2021 13:13:06 Loic Poulain wrote: > > This command allows to start CDC ACM function and redirect console > > (stdin, stdout, stderr) to USB (acmconsole start). The co

Re: [PATCH 2/3] usb: gadget: Add CDC ACM function

2021-09-07 Thread Loic Poulain
Hi folks, Any comments on this? On Thu, 19 Aug 2021 at 13:02, Loic Poulain wrote: > > Add support for CDC ACM using the new UDC and gadget API. This protocol > can be used for serial over USB data transfer and is widely supported > by various OS (GNU/Linux, MS-Windows, OSX...

[PATCH 3/3] cmd: add acmconsole command

2021-08-19 Thread Loic Poulain
USB function. Signed-off-by: Loic Poulain --- cmd/Kconfig | 8 cmd/Makefile | 2 ++ cmd/acmconsole.c | 50 ++ 3 files changed, 60 insertions(+) create mode 100644 cmd/acmconsole.c diff --git a/cmd/Kconfig b/cmd/Kconfig index

[PATCH 2/3] usb: gadget: Add CDC ACM function

2021-08-19 Thread Loic Poulain
regular UART to the user. Signed-off-by: Loic Poulain --- drivers/usb/gadget/Kconfig | 9 + drivers/usb/gadget/Makefile | 1 + drivers/usb/gadget/f_acm.c | 663 3 files changed, 673 insertions(+) create mode 100644 drivers/usb/gadget/f_acm.c

[PATCH 1/3] lib/circbuf: Make circbuf selectable symbol

2021-08-19 Thread Loic Poulain
It is currenly only used from usbtty driver but make it properly selectable via Kconfig symbol, for future usage. Signed-off-by: Loic Poulain --- lib/Kconfig | 3 +++ lib/Makefile | 8 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index

Re: [U-Boot] DFU and UBIFS Volume upgrade

2019-09-04 Thread Loic Poulain
Thanks Heiko, On Wed, 4 Sep 2019 at 07:24, Heiko Schocher wrote: > Hello Loic, > > added Lukasz as he is the DFU custodian. > > Am 03.09.2019 um 09:59 schrieb Loic Poulain: > > Hi, > > > > AFAIU, today it's possible to update a UBI partition via DFU wi

[U-Boot] DFU and UBIFS Volume upgrade

2019-09-03 Thread Loic Poulain
Hi, AFAIU, today it's possible to update a UBI partition via DFU with a new UBI blob using 'partubi'. However, this causes two issues/limitations: - It erases the partition, causing PEB erase counters amnesia (contrary to Linux ubiformat) - It's no possible to have a volume-grained upgrade (per UB