Re: [PATCH v6 0/2] Support for Kontron Electronics i.MX6UL/ULL and i.MX8MM SoMs

2021-10-06 Thread Frieder Schrempf
On 06.10.21 23:34, Stefano Babic wrote: > Hi Frieder, > > On 30.09.21 15:16, Frieder Schrempf wrote: >> Hi Stefano, >> >> On 29.09.21 16:42, Frieder Schrempf wrote: >>> From: Frieder Schrempf >>> >>> This a patchset to upstream the support for the SL i.MX6UL, SL >>> i.MX6ULL and >>> SL i.MX8MM fa

[PATCH v4 11/11] test/py: efi_capsule: add image authentication test

2021-10-06 Thread AKASHI Takahiro
Add a couple of test cases against capsule image authentication for capsule-on-disk, where only a signed capsule file with the verified signature will be applied to the system. Due to the difficulty of embedding a public key (esl file) in U-Boot binary during pytest setup time, all the keys/certif

[PATCH v4 10/11] test/py: efi_capsule: add a test for "--guid" option

2021-10-06 Thread AKASHI Takahiro
This test scenario tests a new feature of mkeficapsule, "--guid" option, which allows us to specify FMP driver's guid explicitly at the command line. Signed-off-by: AKASHI Takahiro --- test/py/tests/test_efi_capsule/conftest.py| 3 + .../test_efi_capsule/test_capsule_firmware.py | 67 ++

[PATCH v4 09/11] test/py: efi_capsule: align with the syntax change of mkeficapsule

2021-10-06 Thread AKASHI Takahiro
Since the syntax of mkeficapsule was changed in the previous commit, we need to modify command line arguments in a pytest script and added one more test case, Case 4, for verifying the new "--guid" option. Signed-off-by: AKASHI Takahiro --- test/py/tests/test_efi_capsule/conftest.py | 4 ++-- 1

[PATCH v4 08/11] tools: mkeficapsule: allow for specifying GUID explicitly

2021-10-06 Thread AKASHI Takahiro
The existing options, "--fit" and "--raw," are only used to put a proper GUID in a capsule header, where GUID identifies a particular FMP (Firmware Management Protocol) driver which then would handle the firmware binary in a capsule. In fact, mkeficapsule does the exact same job in creating a capsu

[PATCH v4 07/11] doc: update UEFI document for usage of mkeficapsule

2021-10-06 Thread AKASHI Takahiro
Now we can use mkeficapsule command instead of EDK-II's script to create a signed capsule file. So update the instruction for capsule authentication. Signed-off-by: AKASHI Takahiro --- doc/develop/uefi/uefi.rst | 122 ++ 1 file changed, 46 insertions(+), 76 de

[PATCH v4 06/11] tools: mkeficapsule: add man page

2021-10-06 Thread AKASHI Takahiro
Add a man page for mkeficapsule command. Signed-off-by: AKASHI Takahiro --- MAINTAINERS| 1 + doc/mkeficapsule.1 | 95 ++ 2 files changed, 96 insertions(+) create mode 100644 doc/mkeficapsule.1 diff --git a/MAINTAINERS b/MAINTAINERS index 65

[PATCH v4 05/11] tools: mkeficapsule: add firmwware image signing

2021-10-06 Thread AKASHI Takahiro
With this enhancement, mkeficapsule will be able to sign a capsule file when it is created. A signature added will be used later in the verification at FMP's SetImage() call. To do that, We need specify additional command parameters: -monotonic-cout : monotonic count -private-key : private k

[PATCH v4 04/11] tools: add fdtsig.sh

2021-10-06 Thread AKASHI Takahiro
With this script, a public key is added to a device tree blob as the default efi_get_public_key_data() expects. Signed-off-by: AKASHI Takahiro --- MAINTAINERS | 1 + tools/fdtsig.sh | 40 2 files changed, 41 insertions(+) create mode 100755 tools/fd

[PATCH v4 03/11] efi_loader: capsule: add back efi_get_public_key_data()

2021-10-06 Thread AKASHI Takahiro
The commit 47a25e81d35c ("Revert "efi_capsule: Move signature from DTB to .rodata"") failed to revert the removal of efi_get_public_key_data(). Add back this function and move it under lib/efi_loader so that other platforms can utilize it. It is now declared as a weak function so that it can be re

[PATCH v4 02/11] Revert "Revert "doc: Update CapsuleUpdate READMEs""

2021-10-06 Thread AKASHI Takahiro
This reverts commit a7e4f905d206d5895dab4bd38a8316e4f2fe15fe. The description originally written by Sughosh is still valid even after the commit 47a25e81d35c ("Revert "efi_capsule: Move signature from DTB to .rodata"") was applied. Signed-off-by: AKASHI Takahiro --- doc/develop/uefi/uefi.rst | 1

[PATCH v4 01/11] Revert "Revert "mkeficapsule: Remove dtb related options""

2021-10-06 Thread AKASHI Takahiro
This reverts commit d428e81266a59974ade74c1ba019af39f23304ab. We have agreed with removing dtb-related stuff from mkeficapsule command even if the commit 47a25e81d35c ("Revert "efi_capsule: Move signature from DTB to .rodata"") was applied. Signed-off-by: AKASHI Takahiro --- tools/mkeficapsule.c

[PATCH v4 00/11] efi_loader: capsule: improve capsule authentication support

2021-10-06 Thread AKASHI Takahiro
As I proposed and discussed in [1] and [2], I have made a couple of improvements on the current implementation of capsule update in this patch set. * add signing feature to mkeficapsule * add "--guid" option to mkeficapsule * add man page of mkeficapsule [1] https://lists.denx.de/pipermail/u-boot

Re: [PATCH] stm32f429: move CONFIG_BOOTCOMMAND in defconfig

2021-10-06 Thread Patrice CHOTARD
Hi Patrick On 10/6/21 5:16 PM, Patrick Delaunay wrote: > Move CONFIG_BOOTCOMMAND defined in Kconfig in the board defconfig. > > Signed-off-by: Patrick Delaunay > --- > > configs/stm32f429-discovery_defconfig | 1 + > include/configs/stm32f429-discovery.h | 3 --- > 2 files changed, 1 insertion

Re: [PATCH v3 3/4] efi_loader: simplify efi_sigstore_parse_sigdb()

2021-10-06 Thread Heinrich Schuchardt
On 10/6/21 16:05, Ilias Apalodimas wrote: On Wed, 6 Oct 2021 at 16:15, Heinrich Schuchardt wrote: On 10/6/21 10:02, Ilias Apalodimas wrote: On Wed, 6 Oct 2021 at 10:21, Heinrich Schuchardt wrote: On 10/6/21 08:29, Ilias Apalodimas wrote: On Sun, Oct 03, 2021 at 11:23:19AM +0200, Hein

Re: [PATCH v5 02/29] kconfig: Add tools support to CONFIG_IS_ENABLED()

2021-10-06 Thread Tom Rini
On Wed, Oct 06, 2021 at 08:49:13PM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 6 Oct 2021 at 18:26, Tom Rini wrote: > > > > On Sat, Sep 25, 2021 at 07:43:15PM -0600, Simon Glass wrote: > > > > > At present we must separately test for the host build for many options, > > > since we force them

Re: [PATCH v5 02/29] kconfig: Add tools support to CONFIG_IS_ENABLED()

2021-10-06 Thread Simon Glass
Hi Tom, On Wed, 6 Oct 2021 at 18:26, Tom Rini wrote: > > On Sat, Sep 25, 2021 at 07:43:15PM -0600, Simon Glass wrote: > > > At present we must separately test for the host build for many options, > > since we force them to be enabled. For example, CONFIG_FIT is always > > enabled in the host tool

Re: [PATCH v4 04/10] verdin-imx8mm: switch to use binman to pack images

2021-10-06 Thread Simon Glass
Hi Marcel, On Wed, 6 Oct 2021 at 15:28, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > Use binman to pack images. > > Signed-off-by: Marcel Ziswiler > Reviewed-by: Heiko Thiery > Reviewed-by: Fabio Estevam > Reviewed-by: Heiko Schocher > > --- > > Changes in v4: > - Add Heiko Schocher'

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

2021-10-06 Thread Simon Glass
Hi ChiaWei, +Alexandru Gagniuc too On Wed, 6 Oct 2021 at 20:07, ChiaWei Wang wrote: > > Hi Simon, > > > From: Simon Glass > > Sent: Wednesday, October 6, 2021 10:10 PM > > > > Hi Chia-Wei, > > > > On Thu, 16 Sept 2021 at 00:39, Chia-Wei Wang > > wrote: > > > > > > Use DM_HASH to perform hashin

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

2021-10-06 Thread ChiaWei Wang
Hi Simon, > From: Simon Glass > Sent: Wednesday, October 6, 2021 10:10 PM > > Hi Chia-Wei, > > On Thu, 16 Sept 2021 at 00:39, Chia-Wei Wang > wrote: > > > > Use DM_HASH to perform hashing operations if supported. > > Thus either SW or HW-assisted hashing could be leveraged. > > This is missin

[PATCH v2] board: gateworks: venice: add imx8mn-gw7902 support

2021-10-06 Thread Tim Harvey
The GW7902 is based on the i.MX 8M Mini / Nano SoC featuring: - LPDDR4 DRAM - eMMC FLASH - Gateworks System Controller - LTE CAT M1 modem - USB 2.0 HUB - M.2 Socket with USB2.0, PCIe, and dual-SIM - IMX8M FEC - PCIe based GbE - RS232/RS485/RS422 serial transceiver - GPS - CAN bus - WiFi

Re: [PATCH v5 02/29] kconfig: Add tools support to CONFIG_IS_ENABLED()

2021-10-06 Thread Tom Rini
On Sat, Sep 25, 2021 at 07:43:15PM -0600, Simon Glass wrote: > At present we must separately test for the host build for many options, > since we force them to be enabled. For example, CONFIG_FIT is always > enabled in the host tools, even if CONFIG_FIT is not enabled by the > board itself. > > I

Re: [RFC PATCH v1 0/5] arm64: dts: imx8mm: add common -binman.dtsi and further clean-up

2021-10-06 Thread Marcel Ziswiler
On Thu, 2021-09-02 at 14:08 -0300, Fabio Estevam wrote: > Hi Marcel, > > On Thu, Aug 26, 2021 at 9:14 AM Marcel Ziswiler wrote: > > > > From: Marcel Ziswiler > > > > > > With the move to using binman to generate SPL aka u-boot-spl-ddr.bin and > > U-Boot proper aka u-boot.itb every board now c

Re: [RFC PATCH v1 2/5] arm64: dts: imx8mm: add common -binman.dtsi

2021-10-06 Thread Marcel Ziswiler
Hi Tim On Thu, 2021-08-26 at 07:57 -0700, Tim Harvey wrote: > ... > Marcel, > > This would break imx8mm-venice. > > The of-list, @fdt-SEQ and @config-SEQ are required to support > automatic generation of fdt and config nodes when you have multiple > device-trees. See tools/binman/entries.rst for

Re: Broken build with disabling OpenSSL crypto

2021-10-06 Thread Alex G.
Hi Jernej, On 10/6/21 4:27 PM, Jernej Škrabec wrote: Hi everyone! Commit cb9faa6f98ae ("tools: Use a single target-independent config to enable OpenSSL") recently introduced option to disable usage of OpenSSL via CONFIG_TOOLS_LIBCRYPTO. However, just a bit later, another commit b4f3cc2c42d9 ("t

Re: [PATCH v2] imx8mm_venice: switch to use binman to pack images

2021-10-06 Thread Marcel Ziswiler
On Wed, 2021-10-06 at 13:17 -0700, Tim Harvey wrote: > Use binman to pack images. > > Note that imx8mm_venice supports several boards via multiple DTB's thus > in the fit node we must use: > - fit,fdt-list = "of-list" > - fdt-SEQ > - config-SEQ > > Signed-off-by: Tim Harvey Reviewed-by: Marcel

Re: [PATCH v6 0/2] Support for Kontron Electronics i.MX6UL/ULL and i.MX8MM SoMs

2021-10-06 Thread Stefano Babic
Hi Frieder, On 30.09.21 15:16, Frieder Schrempf wrote: Hi Stefano, On 29.09.21 16:42, Frieder Schrempf wrote: From: Frieder Schrempf This a patchset to upstream the support for the SL i.MX6UL, SL i.MX6ULL and SL i.MX8MM families of SoMs and matching evaluation boards by Kontron Electronics.

[PATCH v4 10/10] verdin-imx8mm: fix watchdog pinctrl issue

2021-10-06 Thread Marcel Ziswiler
From: Marcel Ziswiler Finally, found the root cause of the issue already once mentioned back here [2] which caused the following error message during boot: imx_wdt watchdog@3028: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19 Turns out while the watchdog node itself wa

[PATCH v4 00/10] board: toradex: verdin-imx8mm: target refresh

2021-10-06 Thread Marcel Ziswiler
From: Marcel Ziswiler An assortment of fixes and improvements like an Ethernet PHY configuration fix, DEK blob encapsulation preparation, migration to using binman to pack images, SLEEP_MOCI# enablement, dropping of V1.0 hardware support [1], renaming kernel image variable, using preboot for fdt

[PATCH v4 08/10] include/configs: apalis-imx8/verdin-imx8mm: rename kernel image variable

2021-10-06 Thread Marcel Ziswiler
From: Oleksandr Suvorov Variable "kernel_image" is used in boot.scr script only, that sets its own default value to the constant string @@KERNEL_IMAGETYPE@@ in case "kernel_image" is not set. The default name of the kernel image shipped with BSP 5.x is "Image.gz". Setting kernel_image="Image" as

[PATCH v4 09/10] verdin-imx8mm: use preboot for fdtfile evaluation

2021-10-06 Thread Marcel Ziswiler
From: Igor Opaniuk Enable and set preboot var with fdtfile evaluation. It will be checked and run immediately before starting the CONFIG_BOOTDELAY countdown and/or running the auto-boot command resp. entering interactive mode. This provides possibility to use different boot cmds in interactive m

[PATCH v4 07/10] verdin-imx8mm: drop support for v1.0 hardware

2021-10-06 Thread Marcel Ziswiler
From: Max Krummenacher We drop support for Verdin iMX8M Mini V1.0B. Related-to: ELB-3551 Signed-off-by: Max Krummenacher Signed-off-by: Marcel Ziswiler Reviewed-by: Fabio Estevam --- Changes in v4: - Re-based. Changes in v3: - Add Fabio's reviewed-by tag. Changes in v2: - Drop first patch

[PATCH v4 04/10] verdin-imx8mm: switch to use binman to pack images

2021-10-06 Thread Marcel Ziswiler
From: Marcel Ziswiler Use binman to pack images. Signed-off-by: Marcel Ziswiler Reviewed-by: Heiko Thiery Reviewed-by: Fabio Estevam Reviewed-by: Heiko Schocher --- Changes in v4: - Add Heiko Schocher's reviewed-by tag. - Fix copyright periods. Changes in v3: - Case fold hex string. - Rev

[PATCH v4 05/10] verdin-imx8mm: enable sleep_moci output

2021-10-06 Thread Marcel Ziswiler
From: Max Krummenacher This powers some peripherals on the carrier board e.g. the USB hub. Related-to: ELB-3206 Signed-off-by: Max Krummenacher Signed-off-by: Marcel Ziswiler Reviewed-by: Fabio Estevam --- (no changes since v1) arch/arm/dts/imx8mm-verdin.dts | 18 ++ confi

[PATCH v4 03/10] ARM: dts: imx8mm-verdin: prepare for dek blob encapsulation

2021-10-06 Thread Marcel Ziswiler
From: Marcel Ziswiler Prepare for DEK blob encapsulation support through "dek_blob" command. On ARMv8, u-boot runs in non-secure, thus cannot encapsulate a DEK blob for encrypted boot. The DEK blob is encapsulated by OP-TEE through a trusted application call. U-boot sends and receives the DEK and

[PATCH v4 06/10] verdin-imx8mm: clean-up include order

2021-10-06 Thread Marcel Ziswiler
From: Marcel Ziswiler Alphabetically order includes. While at it also update copyright year resp. period. Signed-off-by: Marcel Ziswiler --- (no changes since v3) Changes in v3: - New patch cleaning up include order. board/toradex/verdin-imx8mm/verdin-imx8mm.c | 4 ++-- 1 file changed, 2 in

[PATCH v4 02/10] verdin-imx8mm: fix ethernet

2021-10-06 Thread Marcel Ziswiler
From: Marcel Ziswiler Turns out Microship (formerly Micrel) meanwhile integrated proper support for the DLL setup on their KSZ9131. Unfortunately, this conflicts with our previous board code doing that. Fix this by getting rid of our board code and just relying on the generic implementation relyi

[PATCH v4 01/10] imx8m: clean-up kconfig indentation

2021-10-06 Thread Marcel Ziswiler
From: Marcel Ziswiler Replace spurious spaces with proper tabs. Signed-off-by: Marcel Ziswiler Reviewed-by: Fabio Estevam --- (no changes since v1) arch/arm/mach-imx/imx8m/Kconfig | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-imx/im

Broken build with disabling OpenSSL crypto

2021-10-06 Thread Jernej Škrabec
Hi everyone! Commit cb9faa6f98ae ("tools: Use a single target-independent config to enable OpenSSL") recently introduced option to disable usage of OpenSSL via CONFIG_TOOLS_LIBCRYPTO. However, just a bit later, another commit b4f3cc2c42d9 ("tools: kwbimage: Do not hide usage of secure header un

[PATCH v2] imx8mm_venice: switch to use binman to pack images

2021-10-06 Thread Tim Harvey
Use binman to pack images. Note that imx8mm_venice supports several boards via multiple DTB's thus in the fit node we must use: - fit,fdt-list = "of-list" - fdt-SEQ - config-SEQ Signed-off-by: Tim Harvey --- v2: - rebase on origin/mater - remove ATF_LOAD_ADDR from README as its no longer neede

[PATCH] imx8mm-venice-gw7902: fix M2_RST# gpio pinmux

2021-10-06 Thread Tim Harvey
Fix the invalid gw7902 M2_RST# gpio pinmux. Signed-off-by: Tim Harvey --- arch/arm/dts/imx8mm-venice-gw7902.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/imx8mm-venice-gw7902.dts b/arch/arm/dts/imx8mm-venice-gw7902.dts index 07e436be95..d37ffc050d 100644 -

Re: [PATCH 14/14] Convert CONFIG_NAND_OMAP_ECCSCHEME to Kconfig

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:39PM -0400, Tom Rini wrote: > The values of CONFIG_NAND_OMAP_ECCSCHEME map to the enum in > include/linux/mtd/omap_gpmc.h for valid ECC schemes. Make which one we > will use be a choice statement, enumerating the ones which we have > implemented. > > Signed-off-by:

Re: [PATCH 13/14] Convert CONFIG_SYS_NAND_U_BOOT_LOCATIONS et al to Kconfig

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:38PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_SYS_NAND_U_BOOT_LOCATIONS >CONFIG_SYS_NAND_U_BOOT_OFFS > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 12/14] Convert CONFIG_NAND_FSL_ELBC et al to Kconfig

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:37PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_NAND_FSL_ELBC >CONFIG_NAND_FSL_IFC > > Note that a number of PowerPC platforms had previously enabled > CONFIG_NAND_FSL_ELBC without CONFIG_MTD_RAW_NAND, and now they no longer > en

Re: [PATCH 11/14] Convert CONFIG_SYS_NAND_MAX_CHIPS to Kconfig

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:36PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_SYS_NAND_MAX_CHIPS > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 10/14] nand.h: Cleanup linux/mtd/rawnand.h usage

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:35PM -0400, Tom Rini wrote: > We only include in for the forward > declaration of struct nand_chip, so do that directly. Then, include > where required directly. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [PATCH 09/14] Convert CONFIG_SYS_NAND_ONFI_DETECTION to Kconfig

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:34PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_SYS_NAND_ONFI_DETECTION > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 08/14] Convert CONFIG_SYS_NAND_5_ADDR_CYCLE to Kconfig

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:33PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_SYS_NAND_5_ADDR_CYCLE > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 07/14] Convert CONFIG_SYS_NAND_BAD_BLOCK_POS to Kconfig

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:32PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_SYS_NAND_BAD_BLOCK_POS > > In order to do this, introduce a choice for HAS_LARGE/SMALL_BADBLOCK_POS > as those are the only valid values. Use LARGE as the default as no > in-tree board

Re: [PATCH 06/14] nand_spl_simple: Drop CONFIG_SYS_NAND_4_ADDR_CYCLE support

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:31PM -0400, Tom Rini wrote: > This code is unused, drop it. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 05/14] Convert CONFIG_SYS_NAND_PAGE_COUNT to Kconfig

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:30PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_SYS_NAND_PAGE_COUNT > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 04/14] Convert CONFIG_SPL_NAND_LOAD et al to Kconfig

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:29PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_SPL_NAND_LOAD >CONFIG_SYS_NAND_BLOCK_SIZE >CONFIG_SYS_NAND_PAGE_SIZE >CONFIG_SYS_NAND_OOBSIZE > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom sign

Re: [PATCH 03/14] Convert CONFIG_NAND_LPC32XX_MLC to Kconfig

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:28PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_NAND_LPC32XX_MLC > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 02/14] m53menlo: Switch to deriving CONFIG_SYS_NAND_PAGE_COUNT

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:27PM -0400, Tom Rini wrote: > Typically platforms will define CONFIG_SYS_NAND_PAGE_COUNT based on > CONFIG_SYS_NAND_BLOCK_SIZE / CONFIG_SYS_NAND_PAGE_SIZE. Switch to this > in preparation for migrating CONFIG_SYS_NAND namespace to Kconfig. > > Cc: Marek Vasut > Cc:

Re: [PATCH 01/14] rk3308: Remove unused NAND defines

2021-10-06 Thread Tom Rini
On Wed, Sep 22, 2021 at 02:50:26PM -0400, Tom Rini wrote: > These platforms do not currently enable NAND, remove these references. > > Cc: Kever Yang > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] lib: rsa: fix dependency for SPL_RSA_VERIFY

2021-10-06 Thread Tom Rini
On Thu, Sep 16, 2021 at 03:03:36PM +0300, Oleksandr Suvorov wrote: > SPL_RSA_VERIFY requires SPL_RSA to be enabled. Add correct > dependency. > > Signed-off-by: Oleksandr Suvorov Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] acpi: Use U-Boot version for OEM_REVISION

2021-10-06 Thread Tom Rini
On Sat, Jul 10, 2021 at 01:10:01PM +0200, Pali Rohár wrote: > OEM_REVISION is 32-bit unsigned number. It should be increased only when > changing software version. Therefore it should not depend on build time. > > Change calculation to use U-Boot version numbers and set this revision > to date nu

[PATCH v2 5/5] colibri-imx6ull: add emmc variant

2021-10-06 Thread Marcel Ziswiler
From: Max Krummenacher Add code to build the eMMC variant of the Colibri iMX6ULL, i.e. the 'Colibri iMX6ULL 1GB' which has a eMMC instead of the raw NAND used on other SKUs. Related-to: ELB-4056, ELB-4057 Signed-off-by: Max Krummenacher Signed-off-by: Marcel Ziswiler --- Changes in v2: - Re-

[PATCH v2 0/5] board: toradex: prepare and add colibri imx6ull 1gb (emmc) support

2021-10-06 Thread Marcel Ziswiler
From: Marcel Ziswiler Some preparatory steps concerning tdx-cfg-block including a fix for the interactive mode IT handling and adding them new SKUs and then adding initial support for the Toradex Colibri iMX6ULL 1GB (eMMC) V1.1A module. They are now strapped to boot from eFuses which are factory

[PATCH v2 4/5] colibri-imx6ull: imximage.cfg: integrate new 1GiB RAM variant

2021-10-06 Thread Marcel Ziswiler
From: Philippe Schenker Integrate new Toradex SKU 0062 Colibri iMX6ULL 1GB IT. This commit basically adjusts three parameters of the RAM settings: Increase density from 4Gb to 8Gb Increase ROW address from 15 to 16 Increase tRFC (refresh command time) from 260 to 350 This timing is valid for al

[PATCH v2 3/5] toradex: tdx-cfg-block: add new i.mx 6ull and 8m plus skus

2021-10-06 Thread Marcel Ziswiler
From: Marcel Ziswiler Add new i.MX 6ULL and 8M Plus SKUs to ConfigBlock handling: 0062: Colibri iMX6ULL 1GB IT (eMMC) 0063: Verdin iMX8M Plus Quad 4GB IT 0064: Verdin iMX8M Plus Quad 2GB Wi-Fi / BT IT 0065: Verdin iMX8M Plus QuadLite 1GB IT 0066: Verdin iMX8M Plus Quad 8GB Wi-Fi / BT Signed

[PATCH v2 2/5] toradex: configblock: fix interactive mode it handling

2021-10-06 Thread Marcel Ziswiler
From: Denys Drozdov Restore "Is the module an IT version? [y/N]" for "cfgblock create" interactive mode command, which was leading to invalid detection of 0051 Colibri iMX8DX 1GB WB module; Fixes: a5b5ad4d859b ("toradex: tdx-cfg-clock: add new i.mx 8m mini/plus skus") Related-to: ELB-3482 Signed

[PATCH v2 1/5] toradex: take over maintainership

2021-10-06 Thread Marcel Ziswiler
From: Marcel Ziswiler Also take over maintainership of remaining Toradex SoMs as Oleksandr has left our company. Signed-off-by: Marcel Ziswiler CC: Oleksandr Suvorov --- (no changes since v1) board/toradex/apalis-imx8x/MAINTAINERS| 2 +- board/toradex/apalis_imx6/MAINTAINERS | 2 +-

[PATCH] pm9263: Remove unused CONFIG_USER_LOWLEVEL_INIT

2021-10-06 Thread Patrick Delaunay
Remove the latest reference of CONFIG_USER_LOWLEVEL_INIT in code Signed-off-by: Patrick Delaunay --- include/configs/pm9263.h | 1 - scripts/config_whitelist.txt | 1 - 2 files changed, 2 deletions(-) diff --git a/include/configs/pm9263.h b/include/configs/pm9263.h index c13f8de7c1..fb2d2b

[PATCH 2/2] env: mmc: Add support for redundant env in both eMMC boot partitions

2021-10-06 Thread Marek Vasut
Currently the MMC environment driver supports storing redundant environment only in one eMMC partition at different offsets. This is sub-optimal, since if this one boot partition is erased, both copies of environment are lost. Since the eMMC has two boot partitions, add support for storing one copy

[PATCH 1/2] env: mmc: Add missing eMMC bootpart restoration to env erase

2021-10-06 Thread Marek Vasut
If the environment is stored in eMMC hardware boot partition, the environment driver first stores the currently selected eMMC boot partition, then does the requested operation, and then restores the original boot partition settings. In case the environment operation fails, the boot partition settin

RE: [PATCH] stv0991: remove specific CONFIG_STV0991 configs

2021-10-06 Thread patrick.delaunay
Hi, ST Restricted > -Original Message- > From: Patrick Delaunay > Sent: mercredi 6 octobre 2021 17:19 > To: u-boot@lists.denx.de > Cc: Patrick Delaunay ; Priyanka Jain > ; Simon Glass ; Stefan Roese > ; Vikas Manocha ; U-Boot STM32 > > Subject: [PATCH] stv0991: remove specific CONFIG_S

[PATCH] stv0991: remove specific CONFIG_STV0991 configs

2021-10-06 Thread Patrick Delaunay
Remove the following STV0991 specific configs: - CONFIG_STV0991 (never used, only defined in CONFIG_SYS_EXTRA_OPTIONS) - CONFIG_STV0991_HZ (replaced by generic CONFIG_SYS_HZ) - CONFIG_STV0991_HZ_CLOCK (replaced by generic CONFIG_SYS_HZ_CLOCK) This patch allows to reduce the file config_whitelist.t

Re: [PATCH] fit: display proper node on error

2021-10-06 Thread Alex G.
+ Simon On 10/6/21 10:47 AM, Angelo Dureghello wrote: Fix final error message from Verification failed for '' hash node in 'conf@1' config node to Verification failed for 'signature@1' hash node in 'conf@1' config node Signed-off-by: Angelo Dureghello --- common/image-fit-sig.c | 2 +- 1

[PATCH] fit: display proper node on error

2021-10-06 Thread Angelo Dureghello
Fix final error message from Verification failed for '' hash node in 'conf@1' config node to Verification failed for 'signature@1' hash node in 'conf@1' config node Signed-off-by: Angelo Dureghello --- common/image-fit-sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH] stv0991: remove specific CONFIG_STV0991 configs

2021-10-06 Thread Patrick Delaunay
Remove the following STV0991 specific configs: - CONFIG_STV0991 (never used) - CONFIG_STV0991_HZ (replaced by generic CONFIG_SYS_HZ) - CONFIG_STV0991_HZ_CLOCK (replaced by generic CONFIG_SYS_HZ_CLOCK) This patch allows to reduce the file config_whitelist.txt. Signed-off-by: Patrick Delaunay ---

[PATCH] stm32f429: move CONFIG_BOOTCOMMAND in defconfig

2021-10-06 Thread Patrick Delaunay
Move CONFIG_BOOTCOMMAND defined in Kconfig in the board defconfig. Signed-off-by: Patrick Delaunay --- configs/stm32f429-discovery_defconfig | 1 + include/configs/stm32f429-discovery.h | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/configs/stm32f429-discovery_defconfig

[PATCH v2] ARM: amlogic: update JetHub D1/H1 configs (was: add SYS_LOAD_ADDR to JetHub D1/H1 configs)

2021-10-06 Thread Vyacheslav Bocharov
- late fix for 49c8ef0e45a91ec894ef15e7d043dafe8f1c5efd commit by Tom Rini. - enable i2c, rtc, eeprom Changes: - add i2c, rtc, eeprom Signed-off-by: Vyacheslav Bocharov --- configs/jethub_j100_defconfig | 8 configs/jethub_j80_defconfig | 8 2 files changed, 16 insertions(+)

Re: [PATCH v2] pwm: Add driver for cadence TTC

2021-10-06 Thread Michal Simek
On 8/30/21 6:03 PM, Sean Anderson wrote: > > > On 8/30/21 5:38 AM, Michal Simek wrote: >> TTC has three modes of operations. Timer, PWM and input counters. >> >> There is already driver for timer under CADENCE_TTC_TIMER which is >> used for >> ZynqMP R5 configuration. >> This driver is targeti

[PATCH v3 3/3] pwm: Add driver for cadence TTC

2021-10-06 Thread Michal Simek
TTC has three modes of operations. Timer, PWM and input counters. There is already driver for timer under CADENCE_TTC_TIMER which is used for ZynqMP R5 configuration. This driver is targeting PWM which is for example configuration which can be used for fan control. The driver has been tested on Xi

[PATCH v3 2/3] timer: cadence: Add bind function to driver

2021-10-06 Thread Michal Simek
When DT node has pwm-cells property it shouldn't be bind as timer driver but as PWM driver. That's why make sure that this property is checked. Signed-off-by: Michal Simek --- Changes in v3: - New patch in series drivers/timer/cadence-ttc.c | 12 1 file changed, 12 insertions(+)

[PATCH v3 1/3] dm: core: Bind another driver with the same compatible string

2021-10-06 Thread Michal Simek
When one IP can have multiple configurations (like timer and PWM) covered by multiple drivers. Because it is the same IP it should also have the same compatible string. Current code look for the first driver which matches compatible string and call bind function. If this is not the right driver whi

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

2021-10-06 Thread Simon Glass
Hi Chia-Wei, On Thu, 16 Sept 2021 at 00:39, Chia-Wei Wang wrote: > > Use DM_HASH to perform hashing operations if supported. > Thus either SW or HW-assisted hashing could be leveraged. This is missing a full motivation. Please can you explain why this code is needed on a board, rather than just

Re: [PATCH v3 3/4] efi_loader: simplify efi_sigstore_parse_sigdb()

2021-10-06 Thread Ilias Apalodimas
On Wed, 6 Oct 2021 at 16:15, Heinrich Schuchardt wrote: > > On 10/6/21 10:02, Ilias Apalodimas wrote: > > On Wed, 6 Oct 2021 at 10:21, Heinrich Schuchardt > > wrote: > >> > >> > >> > >> On 10/6/21 08:29, Ilias Apalodimas wrote: > >>> On Sun, Oct 03, 2021 at 11:23:19AM +0200, Heinrich Schuchardt w

Re: [PATCH v3 3/4] efi_loader: simplify efi_sigstore_parse_sigdb()

2021-10-06 Thread Heinrich Schuchardt
On 10/6/21 10:02, Ilias Apalodimas wrote: On Wed, 6 Oct 2021 at 10:21, Heinrich Schuchardt wrote: On 10/6/21 08:29, Ilias Apalodimas wrote: On Sun, Oct 03, 2021 at 11:23:19AM +0200, Heinrich Schuchardt wrote: Simplify efi_sigstore_parse_sigdb() by using existing functions. Signed-off-by:

Re: [PATCH v3 3/4] efi_loader: simplify efi_sigstore_parse_sigdb()

2021-10-06 Thread Heinrich Schuchardt
On 10/6/21 10:02, Ilias Apalodimas wrote: On Wed, 6 Oct 2021 at 10:21, Heinrich Schuchardt wrote: On 10/6/21 08:29, Ilias Apalodimas wrote: On Sun, Oct 03, 2021 at 11:23:19AM +0200, Heinrich Schuchardt wrote: Simplify efi_sigstore_parse_sigdb() by using existing functions. Signed-off-by:

mvebu/x530: Difference between spl/u-boot-spl.bin and spl/u-boot-spl-dtb.bin

2021-10-06 Thread Pali Rohár
Hello! I would like to ask, what is the difference between spl/u-boot-spl.bin and spl/u-boot-spl-dtb.bin binaries? Because there is board/alliedtelesis/x530/kwbimage.cfg file which overrides global file arch/arm/mach-mvebu/kwbimage.cfg.in and the only difference between these files is that board

[PATCH] efi_loader: don't load shims MOK database from file

2021-10-06 Thread Heinrich Schuchardt
When using a file to store UEFI variables we must make sure that secure boot related variables are not loaded from this file. With commit 9ef82e29478c ("efi_loader: don't load signature database from file") this has already been implemented for variables defined in the UEFI specification. As most L

[PATCH] tools: termios_linux.h: Fix tcsendbreak() implementation

2021-10-06 Thread Pali Rohár
There are two Linux ioctls which implements tcsendbreak() functionality: TCSBRK and TCSBRKP TCSBRK with non-zero parameter implements tcdrain() and with zero parameter implements tcsendbreak() for duration of 0.25s. TCSBRKP with zero parameter is same as TCSBRK and with non-zero parameter impleme

Re: [PATCH] acpi: Use U-Boot version for OEM_REVISION

2021-10-06 Thread Pali Rohár
On Thursday 30 September 2021 13:46:31 Tom Rini wrote: > On Wed, Sep 29, 2021 at 10:08:58PM -0600, Simon Glass wrote: > > Hi Pali, > > > > On Sun, 12 Sept 2021 at 15:30, Pali Rohár wrote: > > > > > > On Tuesday 20 July 2021 12:32:46 Simon Glass wrote: > > > > On Sat, 10 Jul 2021 at 05:10, Pali Ro

[PATCH v2] usb: xhci-brcm: Include header file needed for dev_err

2021-10-06 Thread Stefan Agner
dev_err seems to be moved to different header file. Include dm/device_compat.h file to compile properly. Fixes: 69dae8902b16 ("linux/compat.h: Remove redefinition of dev_xxx macros") Signed-off-by: Stefan Agner --- Changes in v2: - Correctly place include drivers/usb/host/xhci-brcm.c | 1 + 1

[PATCH 9/9] board: phytec: imx8mm-phycore: Switch to binman

2021-10-06 Thread Teresa Remmet
Use binman for image creation. Signed-off-by: Teresa Remmet --- arch/arm/dts/phycore-imx8mm-u-boot.dtsi | 122 ++ arch/arm/mach-imx/imx8m/Kconfig | 1 + board/phytec/phycore_imx8mm/Kconfig | 2 +- .../phytec/phycore_imx8mm/imximage-8mm-sd.cfg |

[PATCH 8/9] configs: phycore-imx8mm_defconfig: Enable clk command

2021-10-06 Thread Teresa Remmet
Enable clk command to dump clock tree. Signed-off-by: Teresa Remmet --- configs/phycore-imx8mm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/phycore-imx8mm_defconfig b/configs/phycore-imx8mm_defconfig index 6cb2d368552e..1897cb398ffd 100644 --- a/configs/phycore-imx8mm_de

[PATCH 7/9] board: phytec: phycore-imx8mm: Add SPI-NOR flash support

2021-10-06 Thread Teresa Remmet
Adds SPI-NOR flash support to erase, read and write in bootloader. Signed-off-by: Teresa Remmet --- arch/arm/dts/phycore-imx8mm.dts | 28 configs/phycore-imx8mm_defconfig | 19 +++ 2 files changed, 47 insertions(+) diff --git a/arch/arm/dts/phycore-

[PATCH 6/9] arm: dts: phycore-imx8mm: Fix property

2021-10-06 Thread Teresa Remmet
Fix misspelled property "stdout-path". Signed-off-by: Teresa Remmet --- arch/arm/dts/phycore-imx8mm.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/phycore-imx8mm.dts b/arch/arm/dts/phycore-imx8mm.dts index c46d3c72ced9..a4332619e5f7 100644 --- a/arch/arm/dts

[PATCH 5/9] arm: dts: phycore-imx8mm-u-boot: Add wdog pinctrl entry

2021-10-06 Thread Teresa Remmet
Add missing pinctrl entry in spl. Signed-off-by: Teresa Remmet --- arch/arm/dts/phycore-imx8mm-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/phycore-imx8mm-u-boot.dtsi b/arch/arm/dts/phycore-imx8mm-u-boot.dtsi index 91515b8df9a0..7c2dfb4a273c 100644 --- a/arch

[PATCH 4/9] include: configs: phycore-imx8mm: Do not use macro for address

2021-10-06 Thread Teresa Remmet
Do not use size macros for addesses. So convert PHYS_SDRAM to address. No functional change. Signed-off-by: Teresa Remmet --- include/configs/phycore_imx8mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/phycore_imx8mm.h b/include/configs/phycore_imx8mm.h i

[PATCH 3/9] include: configs: phycore-imx8mm: Remove not needed defines

2021-10-06 Thread Teresa Remmet
Remove obsolet defines in phycore_imx8mm.h. Signed-off-by: Teresa Remmet --- include/configs/phycore_imx8mm.h | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/include/configs/phycore_imx8mm.h b/include/configs/phycore_imx8mm.h index aa879122e844..b13787bc2471 10064

[PATCH 2/9] include: configs: phycore_imx8mm: Remove hard coded network settings

2021-10-06 Thread Teresa Remmet
Remove ip address and server ip from board config as they should not be added hardcoded. Signed-off-by: Teresa Remmet --- include/configs/phycore_imx8mm.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/configs/phycore_imx8mm.h b/include/configs/phycore_imx8mm.h i

[PATCH 1/9] board: phytec: phycore_imx8mm: Clean up spl

2021-10-06 Thread Teresa Remmet
Remove not needed code in the spl board code. Signed-off-by: Teresa Remmet --- board/phytec/phycore_imx8mm/spl.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/board/phytec/phycore_imx8mm/spl.c b/board/phytec/phycore_imx8mm/spl.c index 64f0780f6e65..d541

[PATCH 0/9] phyCORE-i.MX8MM Updates

2021-10-06 Thread Teresa Remmet
This patchstack contains mainly cleanup for phyCORE-i.MX8MM but also adds: * SPI NOR flash support * clk command * binman support Teresa Teresa Remmet (9): board: phytec: phycore_imx8mm: Clean up spl include: configs: phycore_imx8mm: Remove hard coded network settings include: configs: phyc

Re: [PATCH v3 3/4] efi_loader: simplify efi_sigstore_parse_sigdb()

2021-10-06 Thread Ilias Apalodimas
On Wed, 6 Oct 2021 at 10:21, Heinrich Schuchardt wrote: > > > > On 10/6/21 08:29, Ilias Apalodimas wrote: > > On Sun, Oct 03, 2021 at 11:23:19AM +0200, Heinrich Schuchardt wrote: > >> Simplify efi_sigstore_parse_sigdb() by using existing functions. > >> > >> Signed-off-by: Heinrich Schuchardt > >

Re: [PATCH v3 3/4] efi_loader: simplify efi_sigstore_parse_sigdb()

2021-10-06 Thread Heinrich Schuchardt
On 10/6/21 08:29, Ilias Apalodimas wrote: On Sun, Oct 03, 2021 at 11:23:19AM +0200, Heinrich Schuchardt wrote: Simplify efi_sigstore_parse_sigdb() by using existing functions. Signed-off-by: Heinrich Schuchardt --- v3: Keep error handling in efi_sigstore_parse_sigdb() v2: re

Re: [PATCH v5 3/5] env: Allow U-Boot scripts to be placed in a .env file

2021-10-06 Thread Wolfgang Denk
Dear Simon, In message you wrote: > > > 1) This requires that the .env files are run through CPP, which is > >only added in a later patch. > > OK perhaps I should just merge the patches. It is a bit artificial > having two and it seems that people agree we need the += syntax. Yes, some way