[PATCH 1/1] fs/squashfs: avoid superfluous messages

2021-09-16 Thread Heinrich Schuchardt
Output like the following is quite irritating: => bootefi hello Scanning disk mmc2.blk... No valid Btrfs found Bad magic number for SquashFS image. ** Unrecognized filesystem type ** Scanning disk mmc1.blk... No valid Btrfs found Bad magic number for SquashFS

Re: RFC: exclude partitions from efi_selftest

2021-09-16 Thread AKASHI Takahiro
On Thu, Sep 16, 2021 at 09:48:07AM +0200, Michael Lawnick wrote: > Am 16.09.2021 um 09:15 schrieb Michael Lawnick: > > Am 16.09.2021 um 09:12 schrieb AKASHI Takahiro: > > > Please, as Heinrich suggested, add CONFIG_FS_FAT, in your U-Boot > > > configuration. > > > > > Hmm, I didn't understand

[PATCH next v4 00/11] aspeed: Support secure boot chain with FIT image verification

2021-09-16 Thread Chia-Wei Wang
This patch series intends to provide a secure boot chain from SPL to Linux kernel based on the hash and signature verification of FIT image paradigm. To improve the performance and save code size (SPL is limited to 64KB due to HW-RoT), the drviers of two HW crypto engine HACE and ACRY are also

[PATCH next v4 03/11] crypto: aspeed: Add AST2600 HACE support

2021-09-16 Thread Chia-Wei Wang
From: Johnny Huang Hash and Crypto Engine (HACE) is designed to accelerate the throughput of hash data digest, and symmetric-key encryption. Signed-off-by: Johnny Huang Signed-off-by: Chia-Wei Wang --- drivers/crypto/Kconfig | 2 + drivers/crypto/Makefile | 1 +

[PATCH next v4 01/11] aspeed: ast2600: Enlarge SRAM size

2021-09-16 Thread Chia-Wei Wang
The AST2600 SRAM has been extended to 88KB since A1 chip revision. This patch updates the SRAM size to offer more space for early stack/heap use. Signed-off-by: Chia-Wei Wang --- arch/arm/include/asm/arch-aspeed/platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH next v4 05/11] clk: ast2600: Add RSACLK control for ACRY

2021-09-16 Thread Chia-Wei Wang
Add RSACLK enable for ACRY, the HW RSA/ECC crypto engine of ASPEED AST2600 SoCs. As ACRY and HACE share the same reset control bit, we do not perform the reset-hold-n-release operation during their clock ungating process. Instead, only reset release is conducted to prevent mutual interference.

[PATCH next v4 04/11] ARM: dts: ast2600: Add HACE to device tree

2021-09-16 Thread Chia-Wei Wang
From: Joel Stanley Add HACE DTS node and enable it for AST2600 EVB. Signed-off-by: Joel Stanley Signed-off-by: Chia-Wei Wang --- arch/arm/dts/ast2600-evb.dts | 5 + arch/arm/dts/ast2600.dtsi| 8 2 files changed, 13 insertions(+) diff --git a/arch/arm/dts/ast2600-evb.dts

[PATCH 1/1] scripts/mailmapper: enable running with Python 3

2021-09-16 Thread Heinrich Schuchardt
Our mailmapper script required Python 2 which is no longer maintained. A main difference when converting to Python 3 is that byte strings are not character strings. So add conversion and skip over conversion errors. Signed-off-by: Heinrich Schuchardt --- scripts/mailmapper | 14 +-

[PATCH 1/3] efi_selftest: Use EFI_SIMPLE_NETWORK_PROTOCOL::GetStatus() for media check

2021-09-16 Thread Masami Hiramatsu
According to the UEF specification v2.9, the main purpose of the EFI_SIMPLE_NETWORK_PROTOCOL::GetStatus() is for checking the link status via EFI_SIMPLE_NETWORK_MODE::MediaPresent. So this uses net->get_status() for checking the link status before running network test. Signed-off-by: Masami

[PATCH next v4 02/11] clk: ast2600: Add YCLK control for HACE

2021-09-16 Thread Chia-Wei Wang
From: Joel Stanley Add YCLK enable for HACE, the HW hash engine of ASPEED AST2600 SoCs. Signed-off-by: Joel Stanley Signed-off-by: Chia-Wei Wang --- .../arm/include/asm/arch-aspeed/scu_ast2600.h | 5 +++-- drivers/clk/aspeed/clk_ast2600.c | 20 +++ 2 files

Re: [PATCH] apalis/colibri_imx6: move setting bootcmd to defconfig

2021-09-16 Thread Oleksandr Suvorov
Hi Marcel, On Wed, Sep 15, 2021 at 11:12 PM Marcel Ziswiler wrote: > > Hi Oleksandr > > Thanks, just one minor nit-pick below. > > On Sun, 2021-09-12 at 22:39 +0300, Oleksandr Suvorov wrote: > > Move setting the default boot command to the > > apalis/colibri_imx6_defconfig. It allows replacing

Re: RFC: exclude partitions from efi_selftest

2021-09-16 Thread Michael Lawnick
Am 16.09.2021 um 10:02 schrieb AKASHI Takahiro: On Thu, Sep 16, 2021 at 09:48:07AM +0200, Michael Lawnick wrote: Am 16.09.2021 um 09:15 schrieb Michael Lawnick: Am 16.09.2021 um 09:12 schrieb AKASHI Takahiro: Please, as Heinrich suggested, add CONFIG_FS_FAT, in your U-Boot configuration.

Re: [PATCH v2] apalis/colibri_imx6: move setting bootcmd to defconfig

2021-09-16 Thread Marcel Ziswiler
On Thu, 2021-09-16 at 11:54 +0300, Oleksandr Suvorov wrote: > Move setting the default boot command to the > apalis/colibri_imx6_defconfig. It allows replacing the command > without code modification. > > Signed-off-by: Oleksandr Suvorov > Reviewed-by: Peng Fan > Reviewed-by: Igor Opaniuk

[PATCH 1/1] fs: btrfs: avoid superfluous messages

2021-09-16 Thread Heinrich Schuchardt
Output like the following is quite irritating: => bootefi hello Scanning disk mmc2.blk... No valid Btrfs found Bad magic number for SquashFS image. ** Unrecognized filesystem type ** Scanning disk mmc1.blk... No valid Btrfs found Bad magic number for SquashFS

[PATCH 1/1] fs: avoid superfluous messages

2021-09-16 Thread Heinrich Schuchardt
Output like the following is quite irritating: => bootefi hello Scanning disk mmc2.blk... No valid Btrfs found Bad magic number for SquashFS image. ** Unrecognized filesystem type ** Scanning disk mmc1.blk... No valid Btrfs found Bad magic number for SquashFS

Re: [PATCH 2/3] efi_loader: add UEFI GPT measurement

2021-09-16 Thread Masahisa Kojima
On Thu, 16 Sept 2021 at 16:29, Heinrich Schuchardt wrote: > > > > On 9/15/21 7:15 AM, Masahisa Kojima wrote: > > This commit adds the UEFI GPT disk partition topology > > measurement required in TCG PC Client PFP Spec. > > Thanks for looking into the missing parts of TCG measurement in U-Boot. >

Re: [PATCH v3 1/2] GPIO: fxl6408: Add support for FXL6408 GPIO expander

2021-09-16 Thread Oleksandr Suvorov
i Michal, On Thu, Sep 16, 2021 at 10:05 AM Michal Simek wrote: > > > > On 9/15/21 8:35 PM, Oleksandr Suvorov wrote: > > Hi Michal, > > > > On Fri, Sep 10, 2021 at 9:35 AM Michal Simek > > wrote: > >> > >> > >> > >> On 9/9/21 10:44 PM, Oleksandr Suvorov wrote: > >>> From: Oleksandr Suvorov >

[PATCH next v4 08/11] ast2600: spl: Locate load buffer in DRAM space

2021-09-16 Thread Chia-Wei Wang
Return CONFIG_SYS_LOAD_ADDR pointing to DRAM space for spl_get_load_buffer() to allow generic SPL image loading code (e.g. FIT and Ymodem) to store data in DRAM. Signed-off-by: Chia-Wei Wang --- arch/arm/mach-aspeed/ast2600/spl.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-)

[PATCH next v4 07/11] ARM: dts: ast2600: Add ACRY to device tree

2021-09-16 Thread Chia-Wei Wang
Add ACRY DTS node and enable it for AST2600 EVB. Signed-off-by: Chia-Wei Wang --- arch/arm/dts/ast2600-evb.dts | 5 + arch/arm/dts/ast2600.dtsi| 9 + 2 files changed, 14 insertions(+) diff --git a/arch/arm/dts/ast2600-evb.dts b/arch/arm/dts/ast2600-evb.dts index

[PATCH next v4 06/11] crypto: aspeed: Add AST2600 ACRY support

2021-09-16 Thread Chia-Wei Wang
ACRY is deisnged to accerlerate ECC/RSA digital signature generation and verification. Signed-off-by: Chia-Wei Wang --- drivers/crypto/aspeed/Kconfig | 10 ++ drivers/crypto/aspeed/Makefile | 1 + drivers/crypto/aspeed/aspeed_acry.c | 182

[PATCH next v4 11/11] configs: ast2600: Boot kernel FIT in DRAM

2021-09-16 Thread Chia-Wei Wang
AST2600 leverages the FIT hash/signature verification to fulfill secure boot trust chain. To improve the performance and save SW code size for those crypto operations, the two HW crypto engine, HACE and ACRY, are enabled. However, both of the engines can only access to data stored in DRAM space.

[PATCH next v4 09/11] configs: ast2600-evb: Enable SPL FIT support

2021-09-16 Thread Chia-Wei Wang
Enable SPL FIT image load and verification support. The HW accelerated SHA is also available with the newly added support of the HACE HW hash engine. The SPL thumb build is also enabled to keep the binary less than 64KB to fit into the Aspeed secure boot design. Signed-off-by: Chia-Wei Wang ---

[PATCH v2] apalis/colibri_imx6: move setting bootcmd to defconfig

2021-09-16 Thread Oleksandr Suvorov
Move setting the default boot command to the apalis/colibri_imx6_defconfig. It allows replacing the command without code modification. Signed-off-by: Oleksandr Suvorov Reviewed-by: Peng Fan Reviewed-by: Igor Opaniuk --- Changes in v2: - fix spaces after semicolon. - add reviewed-by records.

[PATCH next v4 10/11] configs: aspeed: Make EXTRA_ENV_SETTINGS board specific

2021-09-16 Thread Chia-Wei Wang
Move CONFIG_EXTRA_ENV_SETTINGS to board-specific configuration headers. Signed-off-by: Chia-Wei Wang --- include/configs/aspeed-common.h | 9 - include/configs/evb_ast2500.h | 9 + include/configs/evb_ast2600.h | 9 + 3 files changed, 18 insertions(+), 9 deletions(-)

[PATCH 3/3] efi_selftest: Recieve the packets until the receive buffer is empty

2021-09-16 Thread Masami Hiramatsu
Repeatedly receive the packets until the receive buffer is empty. If the buffer is empty, EFI_SIMPLE_NETWORK_PROTOCOL::Receive() returns EFI_NOT_READY. We don't need to use the wait_for_event() every time. Signed-off-by: Masami Hiramatsu --- lib/efi_selftest/efi_selftest_snp.c | 67

[PATCH 0/3] efi_selftest: Update SIMPLE_NETWORK_PROTOCOL selftest

2021-09-16 Thread Masami Hiramatsu
Hello Heinrich, Here is a series of patches to update the SIMPLE_NETWORK_PROTOCOL according to the explanation in the previous thread [1]. [1] https://lists.denx.de/pipermail/u-boot/2021-September/460711.html So basically this seires modifies the SNP testcase as I said in the previous mail [1].

[PATCH 2/3] efi_selftest: Do not check EFI_SIMPLE_NETWORK_RECEIVE_INTERRUPT

2021-09-16 Thread Masami Hiramatsu
Do not check EFI_SIMPLE_NETWORK_RECEIVE_INTERRUPT in packet receiving loop. This depends on the implementation and not related to whether the packet can be received or not. Whether the received packets are available or not is ensured by wait_for_packet, and that is already done in the loop.

Re: [PATCH 3/3] efi_loader: add DeployedMode and AuditMode variable measurement

2021-09-16 Thread Heinrich Schuchardt
On 9/15/21 7:15 AM, Masahisa Kojima wrote: This commit adds the DeployedMode and AuditMode variable measurement required in TCG PC Client PFP Spec. Signed-off-by: Masahisa Kojima --- lib/efi_loader/efi_tcg2.c | 47 +++ 1 file changed, 47 insertions(+)

Re: RFC: exclude partitions from efi_selftest

2021-09-16 Thread AKASHI Takahiro
On Wed, Sep 15, 2021 at 02:00:31PM +0200, Mark Kettenis wrote: > > Date: Wed, 15 Sep 2021 12:42:16 +0200 > > From: Heinrich Schuchardt > > > > Am 15. September 2021 11:56:07 MESZ schrieb Michael Lawnick > > : > > >Am 14.09.2021 um 17:57 schrieb Heinrich Schuchardt: > > >> On 9/14/21 4:56 PM,

Re: [PATCH v3 1/2] GPIO: fxl6408: Add support for FXL6408 GPIO expander

2021-09-16 Thread Michal Simek
On 9/15/21 8:35 PM, Oleksandr Suvorov wrote: > Hi Michal, > > On Fri, Sep 10, 2021 at 9:35 AM Michal Simek wrote: >> >> >> >> On 9/9/21 10:44 PM, Oleksandr Suvorov wrote: >>> From: Oleksandr Suvorov >>> >>> Initial support for Fairchild's 8 bit I2C gpio expander FXL6408. >>> The

Re: [PATCH 2/3] efi_loader: add UEFI GPT measurement

2021-09-16 Thread Heinrich Schuchardt
On 9/15/21 7:15 AM, Masahisa Kojima wrote: This commit adds the UEFI GPT disk partition topology measurement required in TCG PC Client PFP Spec. Thanks for looking into the missing parts of TCG measurement in U-Boot. The requirements in the TCG PC Client PFP Spec are strange. It does not

Re: RFC: exclude partitions from efi_selftest

2021-09-16 Thread AKASHI Takahiro
On Wed, Sep 15, 2021 at 05:06:09PM +0200, Michael Lawnick wrote: > Am 15.09.2021 um 13:36 schrieb Michael Lawnick: > > Am 15.09.2021 um 13:22 schrieb Heinrich Schuchardt: > > > > > > > > > Am 15. September 2021 12:54:06 MESZ schrieb Michael Lawnick > > > : > > > > Am 15.09.2021 um 12:42 schrieb

RE: [PATCH] ARM: dts: ast2600: Make WDT by default disabled

2021-09-16 Thread Ryan Chen
> -Original Message- > From: ChiaWei Wang > Sent: Thursday, September 16, 2021 2:10 PM > To: u-boot@lists.denx.de > Cc: Ryan Chen > Subject: [PATCH] ARM: dts: ast2600: Make WDT by default disabled > > The WDT devices described in the general .dtsi file should be marked as > "disabled"

Re: [PATCH 3/3] efi_loader: add DeployedMode and AuditMode variable measurement

2021-09-16 Thread Masahisa Kojima
Hi Heinrich, On Thu, 16 Sept 2021 at 16:02, Heinrich Schuchardt wrote: > > > > On 9/15/21 7:15 AM, Masahisa Kojima wrote: > > This commit adds the DeployedMode and AuditMode variable > > measurement required in TCG PC Client PFP Spec. > > > > Signed-off-by: Masahisa Kojima > > --- > >

Re: RFC: exclude partitions from efi_selftest

2021-09-16 Thread Michael Lawnick
Am 16.09.2021 um 09:15 schrieb Michael Lawnick: Am 16.09.2021 um 09:12 schrieb AKASHI Takahiro: Please, as Heinrich suggested, add CONFIG_FS_FAT, in your U-Boot configuration. Hmm, I didn't understand that as a suggestion, but as a question for his understanding. Of course I'll give it a try.

Re: [PATCH] mtd: spi-nor: Fix SF MTDIDS when registering multiple MTDs with DM enabled

2021-09-16 Thread Patrick DELAUNAY
Hi, On 9/15/21 2:10 PM, Marek Vasut wrote: On 9/15/21 2:00 PM, Patrick DELAUNAY wrote: Hi, On 9/15/21 10:57 AM, Marek Vasut wrote: On 9/15/21 10:53 AM, Patrice CHOTARD wrote: Hi All On 9/15/21 7:59 AM, Marek Vasut wrote: On 9/15/21 6:23 AM, Heiko Schocher wrote: Hi Marek, On 15.09.21

[PATCH] ARM: dts: ast2600: Make WDT by default disabled

2021-09-16 Thread Chia-Wei Wang
The WDT devices described in the general .dtsi file should be marked as "disabled" by default. A WDT should be then enabled in the board specific .dts file on demands. Signed-off-by: Chia-Wei Wang --- arch/arm/dts/ast2600.dtsi | 4 1 file changed, 4 insertions(+) diff --git

[PATCH next] lib: hash-checksum: Use DM_HASH if supported

2021-09-16 Thread Chia-Wei Wang
Use DM_HASH to perform hashing operations if supported. Thus either SW or HW-assisted hashing could be leveraged. Signed-off-by: Chia-Wei Wang --- lib/hash-checksum.c | 37 + 1 file changed, 37 insertions(+) diff --git a/lib/hash-checksum.c

[PATCH] driver: gadget: fastboot: Link endpoint and descriptors

2021-09-16 Thread qianfanguijin
From: qianfan Zhao If the downloading file size is equal to the partition size, "fastboot flash" can't work, at least in sunxi platform, because used an uninitalized point: ep->desc. Reproduce: fastboot flash loader1 spl/sunxi-spl.bin. Fix it. Signed-off-by: qianfan Zhao ---

Re: RFC: exclude partitions from efi_selftest

2021-09-16 Thread Michael Lawnick
Am 16.09.2021 um 09:12 schrieb AKASHI Takahiro: On Wed, Sep 15, 2021 at 05:06:09PM +0200, Michael Lawnick wrote: Am 15.09.2021 um 13:36 schrieb Michael Lawnick: Am 15.09.2021 um 13:22 schrieb Heinrich Schuchardt: Am 15. September 2021 12:54:06 MESZ schrieb Michael Lawnick : Am 15.09.2021

[PATCH 0/2] Enable strict signature verification for FIT

2021-09-16 Thread Oleksandr Suvorov
FIT load checks the signature on loadable images, but just continues in the case of a failure. This is undesirable behavior because the boot process depends on the authenticity of every loadable part. Add a check that verifies the FIT's configuration block, and fails if it's not present or the

[PATCH 1/2] spl: Add CONFIG_SPL_FIT_SIGNATURE_STRICT

2021-09-16 Thread Oleksandr Suvorov
From: Henry Beberman SPL FIT load checks the signature on loadable images but just continues in the case of a failure. This is undesirable behavior because the boot process depends on the authenticity of each loadable part. Adding CONFIG_SPL_FIT_SIGNATURE_STRICT to halt the platform when any

[PATCH 2/2] cmd: Add CONFIG_FIT_SIGNATURE_STRICT

2021-09-16 Thread Oleksandr Suvorov
From: Ricardo Salveti Add CONFIG_FIT_SIGNATURE_STRICT to require a valid FIT configuration signature for each command that is able to manipulate FIT images. Signed-off-by: Ricardo Salveti Co-developed-by: Oleksandr Suvorov Signed-off-by: Oleksandr Suvorov --- cmd/fpga.c | 14

Re: [PATCH 1/1] fs: btrfs: avoid superfluous messages

2021-09-16 Thread Tom Rini
On Thu, Sep 16, 2021 at 02:01:28PM +0200, Marek Behún wrote: > On Thu, 16 Sep 2021 10:02:45 +0200 > Heinrich Schuchardt wrote: > > Heinrich, Simon already sent patch > https://lore.kernel.org/u-boot/20210818214022.4.I3eb71025472bbb050bcf9a0a192dde1b6c07fa7f@changeid/ > > Tom, could you apply

Re: [PATCH 2/2] cmd: Add CONFIG_FIT_SIGNATURE_STRICT

2021-09-16 Thread Igor Opaniuk
Hi Oleksandr, On Thu, Sep 16, 2021 at 4:10 PM Oleksandr Suvorov wrote: > > From: Ricardo Salveti > > Add CONFIG_FIT_SIGNATURE_STRICT to require a valid FIT configuration > signature for each command that is able to manipulate FIT images. > > Signed-off-by: Ricardo Salveti > Co-developed-by:

RISC-V MC schedule is out

2021-09-16 Thread Atish Patra
The official schedule RISC-V MC at Plumbers is available now. https://linuxplumbersconf.org/event/11/sessions/114/#20210921 We have many interesting topics that will be discussed including the following draft specifications. [1] RISC-V Platform specification

Re: [PATCH 1/1] fs: btrfs: avoid superfluous messages

2021-09-16 Thread Marek Behún
On Thu, 16 Sep 2021 10:02:45 +0200 Heinrich Schuchardt wrote: Heinrich, Simon already sent patch https://lore.kernel.org/u-boot/20210818214022.4.I3eb71025472bbb050bcf9a0a192dde1b6c07fa7f@changeid/ Tom, could you apply Simon's version? Marek

Re: [PATCH 3/4] crypto: hash: Add software hash DM driver

2021-09-16 Thread Alex G.
On 7/29/21 8:08 PM, Chia-Wei Wang wrote: Add purely software-implmented drivers to support multiple hash operations including CRC, MD5, and SHA family. This driver is based on the new hash uclass. Signed-off-by: Chia-Wei Wang --- drivers/crypto/hash/Kconfig | 11 ++

Re: [PATCH 4/4] fit: Use DM hash driver if supported

2021-09-16 Thread Alex G.
On 7/29/21 8:08 PM, Chia-Wei Wang wrote: Calculate hash using DM driver if supported. For backward compatibility, the call to legacy hash functions is reserved. Signed-off-by: Chia-Wei Wang --- common/image-fit.c | 30 ++ 1 file changed, 30 insertions(+) diff

[PATCH] lib: rsa: fix dependency for SPL_RSA_VERIFY

2021-09-16 Thread Oleksandr Suvorov
SPL_RSA_VERIFY requires SPL_RSA to be enabled. Add correct dependency. Signed-off-by: Oleksandr Suvorov --- lib/rsa/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig index a90d67e5a87..cf802a6d40a 100644 --- a/lib/rsa/Kconfig +++ b/lib/rsa/Kconfig @@

[PATCH 0/3] 30bpp framebuffer support

2021-09-16 Thread Mark Kettenis
Apple M1 machines come up with a framebuffer that in 30bpp mode. This series adds basic support for this mode. Mark Kettenis (3): video: Add 30bpp support efi_loader: GOP: Add 30bpp support video: simplefb: Add 30bpp support drivers/video/console_normal.c| 2 ++

Re: [PATCH] mtd: spi-nor: Fix SF MTDIDS when registering multiple MTDs with DM enabled

2021-09-16 Thread Patrick DELAUNAY
Hi, On 9/16/21 9:50 AM, Patrick DELAUNAY wrote: Hi, On 9/15/21 2:10 PM, Marek Vasut wrote: On 9/15/21 2:00 PM, Patrick DELAUNAY wrote: Hi, On 9/15/21 10:57 AM, Marek Vasut wrote: On 9/15/21 10:53 AM, Patrice CHOTARD wrote: Hi All On 9/15/21 7:59 AM, Marek Vasut wrote: On 9/15/21 6:23

Re: [PATCH v3 2/2] mtd: spi: nor: force mtd name to "nor%d"

2021-09-16 Thread Marek Behún
Hi Marek, Patrick, the patches that made this change also include patch https://source.denx.de/u-boot/u-boot/-/commit/dcb9a80359d699cf659c95b9b6e6604e2d68adb9 This patch was added so that when there are multiple identical SPI-NOR chips on the board, you can still select between them in the `mtd`

Re: [PATCH] mtd: spi: nor: force mtd name to "nor%d"

2021-09-16 Thread Marek Behún
On Mon, 13 Sep 2021 09:40:50 +0200 Patrick Delaunay wrote: You can select by of path, i.e. mtd /soc/spi@58003000/mx66l51235l@0 see patch https://source.denx.de/u-boot/u-boot/-/commit/dcb9a80359d699cf659c95b9b6e6604e2d68adb9 Tom said that mtdparts is deprecated and all instances should be

Re: [PATCH 2/4] dm: hash: Add new UCLASS_HASH support

2021-09-16 Thread Alex G.
Hi, On 7/29/21 8:08 PM, Chia-Wei Wang wrote: Add UCLASS_HASH for hash driver development. Thus the hash drivers (SW or HW-accelerated) can be developed in the DM-based fashion. Software hashing implementations are shared tightly with host tools. With DM, there's no opportunity for code

[PATCH v3 2/2] mtd: spi: nor: force mtd name to "nor%d"

2021-09-16 Thread Patrick Delaunay
Force the mtd name of spi-nor to "nor" + the driver sequence number: "nor0", "nor1"... beginning after the existing nor devices. This patch is coherent with existing "nand" and "spi-nand" mtd device names. When CFI MTD NOR device are supported, the spi-nor index is chosen after the last CFI

Re: [PATCH] mtd: spi-nor: Fix SF MTDIDS when registering multiple MTDs with DM enabled

2021-09-16 Thread Marek Behún
On Wed, 15 Sep 2021 01:06:22 +0200 Marek Vasut wrote: > The flash->mtd.name used to be nor%d before, now it is the type of the > SPI NOR like e.g. mt25ql02g. It is possible to find plenty of examples > of the former in U-Boot configs by searching for MTDIDS.*nor.*spi, while > the later is

[PATCH 3/3] video: simplefb: Add 30bpp support

2021-09-16 Thread Mark Kettenis
Recognize the canonical format strings for framebuffers in 30bpp mode. Signed-off-by: Mark Kettenis --- drivers/video/simplefb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index fd58426cf5..7e1cc4560f 100644 ---

[PATCH 1/3] video: Add 30bpp support

2021-09-16 Thread Mark Kettenis
Add support for 30bpp mode where pixels are picked in 32-bit integers but use 10 bits instead of 8 bits for each component. Signed-off-by: Mark Kettenis --- drivers/video/console_normal.c| 2 ++ drivers/video/console_rotate.c| 6 ++ drivers/video/console_truetype.c | 3 +++

[PATCH 2/3] efi_loader: GOP: Add 30bpp support

2021-09-16 Thread Mark Kettenis
Provide correct framebuffer information for 30bpp modes. Signed-off-by: Mark Kettenis --- lib/efi_loader/efi_gop.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/lib/efi_loader/efi_gop.c b/lib/efi_loader/efi_gop.c index 1206b2d7a2..42bf49b184 100644 ---

[PATCH v3 0/2] mtd: spi: nor: force mtd name to "nor%d"

2021-09-16 Thread Patrick Delaunay
This serie is a V3 for http://patchwork.ozlabs.org/project/uboot/list/?series=262017=* http://patchwork.ozlabs.org/project/uboot/list/?series=262013=* Now the SPI nor are named "norN" with N after the CFI nor device: "nor0" to "norM" => N= M+1. See also an other proposal from Marek (not

[PATCH v3 1/2] mtd: cfi_flash: use cfi_flash_num_flash_banks only when supported

2021-09-16 Thread Patrick Delaunay
When CONFIG_SYS_MAX_FLASH_BANKS_DETECT is activated, CONFIG_SYS_MAX_FLASH_BANKS is replaced by cfi_flash_num_flash_banks, but this variable is defined in drivers/mtd/cfi_flash.c, which is compiled only when CONFIG_FLASH_CFI_DRIVER is activated, in U-Boot or in SPL when CONFIG_SPL_MTD_SUPPORT is

[PATCH] usb: xhci-dwc3: Add support for USB 3.1 controllers

2021-09-16 Thread Mark Kettenis
This adds support for the DWC_sub31 controllers such as those found on Apple's M1 SoC. This version of the controller seems to work fine with the existing driver. Signed-off-by: Mark Kettenis --- drivers/usb/host/xhci-dwc3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH] usb: xhci-dwc3: Add support for USB 3.1 controllers

2021-09-16 Thread Bin Meng
On Thu, Sep 16, 2021 at 10:00 PM Mark Kettenis wrote: > > This adds support for the DWC_sub31 controllers such as those > found on Apple's M1 SoC. This version of the controller > seems to work fine with the existing driver. > > Signed-off-by: Mark Kettenis > --- > drivers/usb/host/xhci-dwc3.c

[PATCH] fs: fat: check for buffer size before reading blocks

2021-09-16 Thread Oleksandr Suvorov
From: Ricardo Salveti This patch optimizes the commit mentioned below by avoiding running a set of commands which useless in the case when size < mydata->sect_size and idx would be 0. Fixes: 5b3ddb17ba ("fs/fat/fat.c: Do not perform zero block reads if there are no blocks left")

Re: [PATCH] imx: imx7d-sdb: fix ethernet, sync .dts with linux

2021-09-16 Thread Fabio Estevam
Hi Rasmus, On Thu, Sep 16, 2021 at 11:53 AM Rasmus Villemoes wrote: > > Commit 0d52bab46 (mx7dsabre: Enable DM_ETH) changed these flags from 0 > (aka GPIO_ACTIVE_HIGH) to GPIO_ACTIVE_LOW. It claimed to "Also sync > device tree with v5.5-rc1", but in the linux tree, these gpios have > always been

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Francesco Dolcini
On Thu, Sep 16, 2021 at 01:30:21PM -0400, Tom Rini wrote: > *(.literal .text) \ > + *(.literal .text_version_string)\ Isn't ".litteral" a duplication? Even if I'm pretty sure it will not cause any difference

Re: [PATCH 2/2] cmd: Add CONFIG_FIT_SIGNATURE_STRICT

2021-09-16 Thread Oleksandr Suvorov
Hi Igor, On Thu, Sep 16, 2021 at 6:09 PM Igor Opaniuk wrote: > > Hi Oleksandr, > > On Thu, Sep 16, 2021 at 4:10 PM Oleksandr Suvorov > wrote: > > > > From: Ricardo Salveti > > > > Add CONFIG_FIT_SIGNATURE_STRICT to require a valid FIT configuration > > signature for each command that is able

Re: [PATCH v2 3/3] mx7ulp_com: add support for SPL

2021-09-16 Thread Fabio Estevam
Hi Oleksandr, On Thu, Sep 16, 2021 at 3:50 PM Oleksandr Suvorov wrote: > The SPL for this board is built with prepended DCD which includes DDR > training data (defined in imximage.cfg). So that the bootrom initializes > DDR using DCD before jumping to SPL. > Is it mandatory to move DDR init in

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Tom Rini
On Thu, Sep 16, 2021 at 09:38:19PM +0200, Francesco Dolcini wrote: > On Thu, Sep 16, 2021 at 01:30:21PM -0400, Tom Rini wrote: > > *(.literal .text) \ > > + *(.literal .text_version_string)\ > > Isn't ".litteral"

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Tom Rini
On Thu, Sep 16, 2021 at 09:50:35PM +0200, Francesco Dolcini wrote: > On Thu, Sep 16, 2021 at 03:42:20PM -0400, Tom Rini wrote: > > On Thu, Sep 16, 2021 at 09:38:19PM +0200, Francesco Dolcini wrote: > > > On Thu, Sep 16, 2021 at 01:30:21PM -0400, Tom Rini wrote: > > > > *(.literal

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Francesco Dolcini
On Thu, Sep 16, 2021 at 04:13:31PM -0400, Tom Rini wrote: > On Thu, Sep 16, 2021 at 09:50:35PM +0200, Francesco Dolcini wrote: > > On Thu, Sep 16, 2021 at 03:42:20PM -0400, Tom Rini wrote: > > > On Thu, Sep 16, 2021 at 09:38:19PM +0200, Francesco Dolcini wrote: > > > > On Thu, Sep 16, 2021 at

Re: [PATCH v3 2/2] mtd: spi: nor: force mtd name to "nor%d"

2021-09-16 Thread Marek Vasut
On 9/16/21 4:01 PM, Patrick Delaunay wrote: [...] @@ -3664,6 +3666,11 @@ int spi_nor_scan(struct spi_nor *nor) struct mtd_info *mtd = >mtd; struct spi_slave *spi = nor->spi; int ret; + int cfi_mtd_nb = 0; + +#ifdef CONFIG_SYS_MAX_FLASH_BANKS + cfi_mtd_nb =

Re: [PATCH v3 1/2] mtd: cfi_flash: use cfi_flash_num_flash_banks only when supported

2021-09-16 Thread Marek Vasut
On 9/16/21 4:01 PM, Patrick Delaunay wrote: When CONFIG_SYS_MAX_FLASH_BANKS_DETECT is activated, CONFIG_SYS_MAX_FLASH_BANKS is replaced by cfi_flash_num_flash_banks, but this variable is defined in drivers/mtd/cfi_flash.c, which is compiled only when CONFIG_FLASH_CFI_DRIVER is activated, in

Re: [PATCH v3 0/2] mtd: spi: nor: force mtd name to "nor%d"

2021-09-16 Thread Marek Vasut
On 9/16/21 4:01 PM, Patrick Delaunay wrote: This serie is a V3 for http://patchwork.ozlabs.org/project/uboot/list/?series=262017=* http://patchwork.ozlabs.org/project/uboot/list/?series=262013=* Now the SPI nor are named "norN" with N after the CFI nor device: "nor0" to "norM" => N= M+1. See

Re: [PATCH] mtd: spi-nor: Fix SF MTDIDS when registering multiple MTDs with DM enabled

2021-09-16 Thread Marek Vasut
On 9/16/21 5:16 PM, Marek Behún wrote: On Wed, 15 Sep 2021 01:06:22 +0200 Marek Vasut wrote: The flash->mtd.name used to be nor%d before, now it is the type of the SPI NOR like e.g. mt25ql02g. It is possible to find plenty of examples of the former in U-Boot configs by searching for

Re: [PATCH 1/2] spl: Add CONFIG_SPL_FIT_SIGNATURE_STRICT

2021-09-16 Thread Alex G.
Hi Oleksandr On 9/16/21 8:09 AM, Oleksandr Suvorov wrote: From: Henry Beberman SPL FIT load checks the signature on loadable images but just continues in the case of a failure. This is undesirable behavior because the boot process depends on the authenticity of each loadable part. Adding

Re: [PATCH 10/11] sandbox: mmc: Support a backing file

2021-09-16 Thread Tom Rini
On Wed, Aug 18, 2021 at 09:40:32PM -0600, Simon Glass wrote: > Provide a way for sandbox MMC to present data from a backing file. This > allows a filesystem to be created on the host and easily served via an > emulated mmc device. > > Signed-off-by: Simon Glass > Reviewed-by: Jaehoon Chung >

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Francesco Dolcini
On Thu, Sep 16, 2021 at 03:42:20PM -0400, Tom Rini wrote: > On Thu, Sep 16, 2021 at 09:38:19PM +0200, Francesco Dolcini wrote: > > On Thu, Sep 16, 2021 at 01:30:21PM -0400, Tom Rini wrote: > > > *(.literal .text) \ > > > + *(.literal

[PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Tom Rini
Update the linker script macros to know that we need to include the .text_version_string section now as well. Signed-off-by: Tom Rini --- arch/xtensa/include/asm/ldscript.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/xtensa/include/asm/ldscript.h

Re: [PATCH v2 3/3] mx7ulp_com: add support for SPL

2021-09-16 Thread Oleksandr Suvorov
Hi Fabio, On Wed, Sep 15, 2021 at 9:21 PM Fabio Estevam wrote: > > Hi Igor, > > On Wed, Sep 15, 2021 at 1:04 PM Igor Opaniuk > wrote: > > > Maybe I misunderstood your question, > > but it's already in board/ea/mx7ulp_com/mx7ulp_com.c, no? > > The DDR initialization is currently at

Re: [PATCH v2] powerpc: mpc: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Tom Rini
On Sun, Aug 08, 2021 at 01:20:38PM +0200, Pali Rohár wrote: > It is unknown why version string is placed at specific position on these > powerpc mpc platforms. But there is no need to overload version_string > symbol. Just use common definition of version_string and modify linker > script to put

[PATCH] mailmap: Update mail address for Nicolas Saenz julienne

2021-09-16 Thread Nicolas Saenz Julienne
From: Nicolas Saenz Julienne The @suse.de address doesn't exist anymore. Update it to something not dependent on my workplace. Signed-off-by: Nicolas Saenz Julienne --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index b76f02283c..b09fc321bd 100644 ---

Re: [PATCH v3 2/2] mtd: spi: nor: force mtd name to "nor%d"

2021-09-16 Thread Marek Behún
On Thu, 16 Sep 2021 16:01:18 +0200 Patrick Delaunay wrote: > Force the mtd name of spi-nor to "nor" + the driver sequence number: > "nor0", "nor1"... beginning after the existing nor devices. > > This patch is coherent with existing "nand" and "spi-nand" > mtd device names. > > When CFI MTD

IMX8MM fsl_esdhc_imx UHS/HS200/HS400 not working?

2021-09-16 Thread Tim Harvey
Greetings, Can anyone confirm if IMX8MM UHS/HS200/HS400 is working for them? I had this working in my U-Boot v2021.01 imx8mm-veice branch but it seems to not work in U-Boot master or v2021.07. I know there was a lot of back and forth on this... perhaps I missed something. I haven't been able to

Re: [PATCH] fs: fat: check for buffer size before reading blocks

2021-09-16 Thread Heinrich Schuchardt
On 9/16/21 4:09 PM, Oleksandr Suvorov wrote: From: Ricardo Salveti This patch optimizes the commit mentioned below by avoiding running a set of commands which useless in the case when %s/which/which are/ size < mydata->sect_size and idx would be 0. Thank you for reviewing the FAT coding.

Re: [PATCH 0/3] efi_selftest: Update SIMPLE_NETWORK_PROTOCOL selftest

2021-09-16 Thread Heinrich Schuchardt
On 9/16/21 10:53 AM, Masami Hiramatsu wrote: Hello Heinrich, Here is a series of patches to update the SIMPLE_NETWORK_PROTOCOL according to the explanation in the previous thread [1]. [1] https://lists.denx.de/pipermail/u-boot/2021-September/460711.html So basically this seires modifies the

[PATCH] imx: imx7d-sdb: fix ethernet, sync .dts with linux

2021-09-16 Thread Rasmus Villemoes
Commit 0d52bab46 (mx7dsabre: Enable DM_ETH) changed these flags from 0 (aka GPIO_ACTIVE_HIGH) to GPIO_ACTIVE_LOW. It claimed to "Also sync device tree with v5.5-rc1", but in the linux tree, these gpios have always been GPIO_ACTIVE_HIGH ever since this node was introduced around v4.13 (linux commit

Re: [PATCH 2/3] efi_loader: GOP: Add 30bpp support

2021-09-16 Thread Heinrich Schuchardt
On 9/16/21 3:01 PM, Mark Kettenis wrote: Provide correct framebuffer information for 30bpp modes. This is not enough to get a correct GOP implementation for the 30bpp mode. Have a look at efi_gop_pixel efi_vid16_to_blt_col() and efi_blt_col_to_vid16() and where they are used.

[PATCH 1/1] powerpc: Drop version_string placement optimization

2021-09-16 Thread Tom Rini
As explained by Wolfgang, historically PowerPC would do a number of things to hand-optimize placement of the binary on NOR flash in order to maximize utilization of very scarce resources. These days, we simply aren't optimizing our binary layout for NOR flash placement and it's quite likely this

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Max Filippov
On Thu, Sep 16, 2021 at 12:42 PM Tom Rini wrote: > We also don't have qemu support for it I'm curious what happened to it and what I should do to update it? xtensa is still supported in the QEMU and AFAIK nothing has changed about it: neither building nor invocation. -- Thanks. -- Max

Re: [PATCH 0/3] efi_selftest: Update SIMPLE_NETWORK_PROTOCOL selftest

2021-09-16 Thread Masami Hiramatsu
Hi Heinrich, 2021年9月17日(金) 12:54 Heinrich Schuchardt : > > On 9/16/21 10:53 AM, Masami Hiramatsu wrote: > > Hello Heinrich, > > > > Here is a series of patches to update the SIMPLE_NETWORK_PROTOCOL > > according to the explanation in the previous thread [1]. > > > > [1]

Re: [PATCH 1/2] sunxi: Simplify MMC pinmux selection

2021-09-16 Thread Samuel Holland
On 9/16/21 5:42 AM, Andre Przywara wrote: > On 12/09/2021 16:28, Samuel Holland wrote: >> Only one board, Yones Toptech BD1078, actually uses a non-default MMC >> pinmux. All other uses of these symbols select the default value or an >> invalid value. To simplify things, remove support for the

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Max Filippov
On Thu, Sep 16, 2021 at 10:30 AM Tom Rini wrote: > > Update the linker script macros to know that we need to include the > .text_version_string section now as well. > > Signed-off-by: Tom Rini > --- > arch/xtensa/include/asm/ldscript.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [PATCH 1/1] fs: avoid superfluous messages

2021-09-16 Thread AKASHI Takahiro
On Thu, Sep 16, 2021 at 10:10:20AM +0200, Heinrich Schuchardt wrote: > Output like the following is quite irritating: > > => bootefi hello > Scanning disk mmc2.blk... > No valid Btrfs found > Bad magic number for SquashFS image. > ** Unrecognized filesystem type ** >

[PATCH v4] apalis/colibri_imx6: move setting bootcmd to defconfig

2021-09-16 Thread Oleksandr Suvorov
Move setting the default boot command to the apalis/colibri_imx6_defconfig. It allows replacing the command without code modification. Signed-off-by: Oleksandr Suvorov Reviewed-by: Peng Fan Reviewed-by: Igor Opaniuk Acked-by: Marcel Ziswiler --- Changes in v4: - add an acked-by record.

Re: RFC: exclude partitions from efi_selftest

2021-09-16 Thread Michael Lawnick
Am 16.09.2021 um 11:37 schrieb AKASHI Takahiro: On Thu, Sep 16, 2021 at 11:14:01AM +0200, Michael Lawnick wrote: Am 16.09.2021 um 10:02 schrieb AKASHI Takahiro: On Thu, Sep 16, 2021 at 09:48:07AM +0200, Michael Lawnick wrote: Am 16.09.2021 um 09:15 schrieb Michael Lawnick: - What is the

Re: [PATCH] mailmap: Update mail address for Nicolas Saenz julienne

2021-09-16 Thread Matthias Brugger
On 16/09/2021 11:55, Nicolas Saenz Julienne wrote: From: Nicolas Saenz Julienne The @suse.de address doesn't exist anymore. Update it to something not dependent on my workplace. Signed-off-by: Nicolas Saenz Julienne Thanks for doing this to keep you in the loop on RPi stuff going on.

Re: [PATCH 3/3] efi_selftest: Recieve the packets until the receive buffer is empty

2021-09-16 Thread Heinrich Schuchardt
On 9/16/21 10:53 AM, Masami Hiramatsu wrote: Repeatedly receive the packets until the receive buffer is empty. If the buffer is empty, EFI_SIMPLE_NETWORK_PROTOCOL::Receive() returns EFI_NOT_READY. We don't need to use the wait_for_event() every time. Why do you want to make the change? Was

Re: RFC: exclude partitions from efi_selftest

2021-09-16 Thread AKASHI Takahiro
On Thu, Sep 16, 2021 at 11:14:01AM +0200, Michael Lawnick wrote: > Am 16.09.2021 um 10:02 schrieb AKASHI Takahiro: > > On Thu, Sep 16, 2021 at 09:48:07AM +0200, Michael Lawnick wrote: > > > Am 16.09.2021 um 09:15 schrieb Michael Lawnick: > > > > Am 16.09.2021 um 09:12 schrieb AKASHI Takahiro: > >

  1   2   >