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
(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
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
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
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
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
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 ]
> >
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
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,
>
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.
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
> >
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
,
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
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
,
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/
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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:
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
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
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
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
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
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 --
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
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
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
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
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
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 --
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
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
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
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
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
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
---
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
>
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
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
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
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
> > @@ -
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
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
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:
> > >
>
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
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...
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
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
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
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
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
63 matches
Mail list logo