[PATCH 1/1] mkimage: error handling for FIT image

2022-02-28 Thread Heinrich Schuchardt
If parameter -F is given but FIT support is missing, a NULL pointer might dereferenced (Coverity CID 350249). If incorrect parameters are given, provide a message and show usage. Signed-off-by: Heinrich Schuchardt --- tools/mkimage.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-)

Re: [PATCH] ARM: mvebu: x530: clearfog: Add ODT configuration

2022-02-28 Thread Baruch Siach
Hi Chris, On Tue, Mar 01 2022, Chris Packham wrote: > Commit 369e532691e0 ("ddr: marvell: a38x: allow board specific ODT > configuration") added the odt_config member to struct > mv_ddr_topology_map ahead of the clk_enable and ck_delay members. This > means that any boards that configured either

Re: [PATCH v2 0/3] Add SPI boot to SPL on SUNIV/F1C100s

2022-02-28 Thread Jesse Taube
Hey just checking if you know about this set. This patch adds the ability to detect the BROM's boot source, as well as the ability to boot from SPI. Jesse Taube (3): mach-sunxi: Add boot device detection for SUNIV/F1C100s mach-sunxi: Add SPL SPI boot for SUNIV mach-sunxi: Enable SPI

Re: [PATCH 14/18] Make ASYMMETRIC_KEY_TYPE depend on FIT_SIGNATURE

2022-02-28 Thread AKASHI Takahiro
Simon, On Mon, Feb 28, 2022 at 12:08:31PM -0700, Simon Glass wrote: > Add this dependency to avoid a build error if FIT_SIGNATURE is not > enabled. I doubt it. With qemu_arm64_defconfig & ASYMMETRIC_KEY_TYPE & !FIT_SIGNATURE, I don't see any build error on 2022.04-rc2. -Takahiro Akashi >

[PATCH 2/2] tools: buildman: Fix doc path in warning message

2022-02-28 Thread Johannes Krottmayer
Fix documentation path in deprecated warning message about device driver. Signed-off-by: Johannes Krottmayer --- tools/buildman/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/buildman/test.py b/tools/buildman/test.py index 714bb3e4f9..27287438ee 100644 ---

[PATCH 1/2] Makefile: Fix doc path in warning message

2022-02-28 Thread Johannes Krottmayer
Fix documentation path in warning message about deprecated device driver. Signed-off-by: Johannes Krottmayer --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e6fc80aa6f..0af5065624 100644 --- a/Makefile +++ b/Makefile @@ -1080,7

[PATCH 0/2] Fix doc path in warning message

2022-02-28 Thread Johannes Krottmayer
Fix doc path in warning messages. Okay? Johannes Krottmayer (2): Makefile: Fix doc path in warning message tools: buildman: Fix doc path in warning message Makefile | 4 ++-- tools/buildman/test.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.34.1

Re: [PATCH] riscv: Fix build against binutils 2.38

2022-02-28 Thread Leo Liang
Hi Alex, On Mon, Feb 21, 2022 at 05:42:41PM +0100, Alexandre Ghiti wrote: > On Sat, Feb 19, 2022 at 9:52 AM Leo Liang wrote: > > > > Hi Alex, > > On Thu, Feb 17, 2022 at 11:28:46AM +0100, Alexandre Ghiti wrote: > > > Hi Leo, > > > > > > On Thu, Feb 17, 2022 at 10:25 AM Leo Liang wrote: > > > > >

[RFC] [PATCH] binman: support mkimage split files

2022-02-28 Thread Peter Geis
Good Evening, I successfully tested your v2 patch series to create a bootable sdcard image out of the box for rockpro64-rk3399. Unfortunately, rk356x and rk3399-spi modes are broken, due to the inability to pass multiple images to mkimage at the same time. rk3399-spi mode is already supported

[PATCH v2 10/12] arm: dts: rockchip: sync rk3288 DT boards from Linux

2022-02-28 Thread Johan Jonker
Sync rk3288 DT boards that have support both in Linux 5.17 as in U-boot. Signed-off-by: Johan Jonker --- Changed V2: update change led labels --- arch/arm/dts/rk3288-firefly-u-boot.dtsi | 4 +- arch/arm/dts/rk3288-firefly.dts | 17 +- arch/arm/dts/rk3288-firefly.dtsi|

[PATCH v2 11/12] arm: dts: rockchip: sync rk3288-veyron DT from Linux

2022-02-28 Thread Johan Jonker
Sync rk3288-veyron DT from Linux version 5.17. Signed-off-by: Johan Jonker --- Changed V2: update add label spi_flash veyron --- arch/arm/dts/rk3288-veyron-analog-audio.dtsi | 99 +++ .../dts/rk3288-veyron-broadcom-bluetooth.dtsi | 22 + arch/arm/dts/rk3288-veyron-chromebook.dtsi|

[PATCH v2 09/12] arm: dts: rockchip: sync rk3288.dtsi from Linux

2022-02-28 Thread Johan Jonker
Sync rk3288.dtsi from Linux version 5.17. Signed-off-by: Johan Jonker --- Changed V2: rename mipi_dsi0 label move io_domains remove hdmi_audio veyron node change memory@0 reg size --- arch/arm/dts/rk3288-evb.dtsi |7 +- arch/arm/dts/rk3288-firefly.dtsi |3 +-

[PATCH v2 12/12] rockchip: fix boot_devices constants

2022-02-28 Thread Johan Jonker
The DT node name pattern in mmc-controller.yaml for mmc is "^mmc(@.*)?$". The Rockchip mmc nodes have been synced with Linux, so update the boot_devices constants as well. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- arch/arm/mach-rockchip/rk3188/rk3188.c | 4 ++--

[PATCH v2 08/12] arm: dts: rockchip: move all rk3288 u-boot specific properties in separate dtsi files

2022-02-28 Thread Johan Jonker
In order to sync rk3288.dtsi from Linux it needed to move all u-boot specific properties in separate dtsi files. Signed-off-by: Johan Jonker --- Changed V2: combine U-boot specific changes add bus_intmem label use current led node name --- arch/arm/dts/rk3288-evb-u-boot.dtsi |

[PATCH v2 04/12] arm: dts: rockchip: sync rk322x.dtsi from Linux

2022-02-28 Thread Johan Jonker
Sync rk322x.dtsi from Linux version 5.17. Signed-off-by: Johan Jonker --- Changed V2: update rename usb20_otg label --- arch/arm/dts/rk3229-evb.dts | 2 +- arch/arm/dts/rk322x.dtsi| 846 +--- 2 files changed, 695 insertions(+), 153 deletions(-) diff

[PATCH v2 05/12] arm: dts: rockchip: sync rk3229-evb.dts from Linux

2022-02-28 Thread Johan Jonker
Sync rk3229-evb.dts from Linux version 5.17. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3229-evb.dts | 212 +--- arch/arm/dts/rk3229.dtsi| 52 + 2 files changed, 249 insertions(+), 15 deletions(-) create mode 100644 arch/arm/dts/rk3229.dtsi

[PATCH v2 07/12] rockchip: rk3288-cru: sync the clock dt-binding header from Linux

2022-02-28 Thread Johan Jonker
In order to update the DT for rk3288 sync the clock dt-binding header. This is the state as of v5.17 in Linux. Keep SCLK_MAC_PLL in use for rk3288 clock driver. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- include/dt-bindings/clock/rk3288-cru.h | 13 - 1 file changed,

[PATCH v2 06/12] rockchip: rk3288-power: sync power domain dt-binding header from Linux

2022-02-28 Thread Johan Jonker
In order to update the DT for rk3288 sync the power domain dt-binding header. This is the state as of v5.17 in Linux. Change location to be more in line with other SoCs. Signed-off-by: Johan Jonker --- Changed V2: changed include rk3288.dtsi --- arch/arm/dts/rk3288.dtsi | 2

[PATCH v2 03/12] arm: dts: rockchip: move all rk322x u-boot specific properties in separate dtsi files

2022-02-28 Thread Johan Jonker
In order to sync rk322x.dtsi from Linux, move all U-boot specific properties in separate dtsi files. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3229-evb-u-boot.dtsi | 28 +++ arch/arm/dts/rk3229-evb.dts | 17 - arch/arm/dts/rk322x-u-boot.dtsi | 54

[PATCH v2 02/12] rockchip: rk3228-cru: sync the clock dt-binding header from Linux

2022-02-28 Thread Johan Jonker
In order to update the DT for rk3228 sync the clock dt-binding header. This is the state as of v5.17 in Linux. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- include/dt-bindings/clock/rk3228-cru.h | 54 +- 1 file changed, 52 insertions(+), 2 deletions(-) diff

[PATCH v2 01/12] rockchip: rk3228-power: sync power domain dt-binding header from Linux

2022-02-28 Thread Johan Jonker
In order to update the DT for rk3228 sync the power domain dt-binding header. This is the state as of v5.17 in Linux. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- include/dt-bindings/power/rk3228-power.h | 21 + 1 file changed, 21 insertions(+) create mode

[PATCH] ARM: mvebu: x530: clearfog: Add ODT configuration

2022-02-28 Thread Chris Packham
Commit 369e532691e0 ("ddr: marvell: a38x: allow board specific ODT configuration") added the odt_config member to struct mv_ddr_topology_map ahead of the clk_enable and ck_delay members. This means that any boards that configured either of clk_enable or ck_delay needed to have their board topology

[PATCH 6/8] tpm: Allow reporting the internal state

2022-02-28 Thread Simon Glass
It is useful to read information about the current TPM state, where supported, e.g. for debugging purposes when verified boot fails. Add support for this to the TPM interface as well as Cr50. Add a simple sandbox test. Signed-off-by: Simon Glass --- cmd/tpm-common.c | 20

[PATCH 7/8] tpm: Implement state command for Cr50

2022-02-28 Thread Simon Glass
Add a vendor-specific TPM2 command for this and implement it for Cr50. Signed-off-by: Simon Glass --- drivers/tpm/cr50_i2c.c | 117 + include/tpm-v2.h | 54 +++ lib/tpm-v2.c | 24 + 3 files changed, 195

[PATCH 8/8] tpm: Allow commiting non-volatile data

2022-02-28 Thread Simon Glass
Add an option to tell the TPM to commit non-volatile data immediately it is changed, rather than waiting until later. This is needed in some situations, since if the device reboots it may not write the data. Add definitions for the rest of the Cr50 commands while we are here. Signed-off-by:

[PATCH 5/8] tpm: sandbox: Allow init of TPM in a different phase

2022-02-28 Thread Simon Glass
At present the emulator assumes that the TPM is inited in the same phase where it is used. But in fact SPL may init the TPM, so we don't want to complain when U-Boot proper later uses it. Remove this check. It might be best to save this information into the device state for the TPM, so that we

[PATCH 3/8] tpm: Correct the permissions command in TPMv1

2022-02-28 Thread Simon Glass
The offset here is incorrect. Fix it. Signed-off-by: Simon Glass --- lib/tpm-v1.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/tpm-v1.c b/lib/tpm-v1.c index 22a769c587..d0e3ab1b21 100644 --- a/lib/tpm-v1.c +++ b/lib/tpm-v1.c @@ -456,12 +456,13 @@ u32

[PATCH 4/8] tpm: Correct the define-space command in TPMv2

2022-02-28 Thread Simon Glass
The message format is incorrect. Fix it. Signed-off-by: Simon Glass --- lib/tpm-v2.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/lib/tpm-v2.c b/lib/tpm-v2.c index 6058f2e1e4..fe99b9c863 100644 --- a/lib/tpm-v2.c +++ b/lib/tpm-v2.c @@ -89,14 +89,14 @@

[PATCH 2/8] tpm: Require a digest source when extending the PCR

2022-02-28 Thread Simon Glass
This feature is used for measured boot. It is not currently supported in the TPM drivers, but add it to the API so that code which expects it can signal its request. Signed-off-by: Simon Glass --- cmd/tpm-v1.c | 3 ++- cmd/tpm_test.c| 5 +++-- include/tpm_api.h | 8 +---

[PATCH 1/8] tpm: Export the TPM-version functions

2022-02-28 Thread Simon Glass
These functions should really be available outside the TPM code, so that other callers can find out which version the TPM is. Rename them to have a tpm_ prefix() and add them to the header file. Signed-off-by: Simon Glass --- include/tpm_api.h | 10 ++ lib/tpm_api.c | 92

[PATCH 0/8] tpm: Various minor fixes and enhancements

2022-02-28 Thread Simon Glass
This series contains some minor enhancements for the TPM code to make it work with Chromium OS verified boot. Simon Glass (8): tpm: Export the TPM-version functions tpm: Require a digest source when extending the PCR tpm: Correct the permissions command in TPMv1 tpm: Correct the

[ANN] U-Boot v2022.04-rc3 released

2022-02-28 Thread Tom Rini
Hey all, It's release day and so here's v2022.04-rc3. With the release itself nearing a month away, I'm opening the -next branch as well with this release. At this point, if there's platform specific changes, or other bug fixes / changes you had submitted and hoped would be in this release, but

[PATCH] phy: nop-phy: Fix phy reset if no reset-gpio defined

2022-02-28 Thread Tim Harvey
Ensure there is a valid reset-gpio defined before using it. Fixes: f9852acdce02 ("phy: nop-phy: Fix enabling reset") Cc: Adam Ford Signed-off-by: Tim Harvey --- drivers/phy/nop-phy.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/phy/nop-phy.c

Re: [PATCH] image: Control FIT signature verification at runtime

2022-02-28 Thread Andrew Jeffery
On Tue, 1 Mar 2022, at 08:42, Alex G. wrote: > On 2/27/22 19:29, Andrew Jeffery wrote: >> >> >> On Tue, 15 Feb 2022, at 13:55, Andrew Jeffery wrote: >>> On Tue, 15 Feb 2022, at 13:42, Dhananjay Phadke wrote: On 2/14/2022 3:13 PM, Patrick Williams wrote: > On Mon, Feb 14, 2022 at

[PATCH 2/2] x86: Correct the coreboot header file in MAINTAINERS

2022-02-28 Thread Simon Glass
This board has its own config header file. Correct it. Signed-off-by: Simon Glass --- board/coreboot/coreboot/MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/coreboot/coreboot/MAINTAINERS b/board/coreboot/coreboot/MAINTAINERS index

[PATCH 1/2] x86: Add an enum name for the GNVS firmware type

2022-02-28 Thread Simon Glass
This enum is currently anonymous. Add a name so it can be used in the code. Signed-off-by: Simon Glass --- arch/x86/include/asm/intel_gnvs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/intel_gnvs.h b/arch/x86/include/asm/intel_gnvs.h index

[PATCH 4/5] sandbox: Slow down the LCD sync rate

2022-02-28 Thread Simon Glass
There is seldom a need to refresh at 100Hz and it uses a lot of CPU. Reduce the rate to 10Hz which seems to be adequate. Signed-off-by: Simon Glass --- drivers/video/video-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/video-uclass.c

[PATCH 5/5] sandbox: test: Tidy up spl_test_load() calls

2022-02-28 Thread Simon Glass
Use the new sandbox_find_next_phase() function, which does what is needed here. Signed-off-by: Simon Glass --- test/image/spl_load.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/image/spl_load.c b/test/image/spl_load.c index e7cabf5680..df389e26f9 100644 ---

[PATCH 3/5] sandbox: Open host file for read-only access if needed

2022-02-28 Thread Simon Glass
Some files cannot be written but read-only access is still useful for tests. Add a fallback to read-only access when needed. This is useful in CI when opening a large data file provided by docker, where read/write access would result in copying the file, thus needing a lot of extra disk space.

[PATCH 2/5] sandbox: Add the handoff header for spl

2022-02-28 Thread Simon Glass
This defines a function declared in handoff.h so add the header. Signed-off-by: Simon Glass --- arch/sandbox/cpu/spl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c index 650bdb0a70..3f107b8acb 100644 --- a/arch/sandbox/cpu/spl.c +++

[PATCH 1/5] sandbox: Show a message when writing out the ram buffer

2022-02-28 Thread Simon Glass
If state is not being written, but RAM is, we should still show a message, so it is clear that this is happening. Signed-off-by: Simon Glass --- arch/sandbox/cpu/state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/state.c b/arch/sandbox/cpu/state.c

[PATCH 0/5] sandbox: Minor Fixes in various areas

2022-02-28 Thread Simon Glass
This series contains some minor tweaks and fixes to sandbox-related code. Simon Glass (5): sandbox: Show a message when writing out the ram buffer sandbox: Add the handoff header for spl sandbox: Open host file for read-only access if needed sandbox: Slow down the LCD sync rate

Re: [PATCH] image: Control FIT signature verification at runtime

2022-02-28 Thread Alex G.
On 2/27/22 19:29, Andrew Jeffery wrote: On Tue, 15 Feb 2022, at 13:55, Andrew Jeffery wrote: On Tue, 15 Feb 2022, at 13:42, Dhananjay Phadke wrote: On 2/14/2022 3:13 PM, Patrick Williams wrote: On Mon, Feb 14, 2022 at 11:14:53AM -0800, Dhananjay Phadke wrote: There's a key-requirement

Re: [PATCH] arm: pdu001: Setup pinmux for console UART as early as possible

2022-02-28 Thread Tom Rini
On Mon, Feb 21, 2022 at 02:26:05PM +0100, Felix Brack wrote: > To make sure we get a working console as soon as possible in the SPL the > UART pins require to be configured earlier. This is especially > true for the pins of UART3, since the PDU001 board uses this UART for > the console by

Re: [PATCH v2] board: stemmy: Detect board variants and patch DTB

2022-02-28 Thread Tom Rini
On Sun, Feb 20, 2022 at 11:47:01PM +0100, Linus Walleij wrote: > This patch scans the cmdline from the Samsung SBL (second stage > bootloader) and stores the parameters board_id=N and lcdtype=N > in order to augment the DTB for different board and LCD types. > > We then add a custom

Re: [PATCH v3 1/1] arm: apple: Switch to fully dynamic mem layout

2022-02-28 Thread Tom Rini
On Sat, Feb 19, 2022 at 02:05:19PM +0100, Janne Grunau wrote: > Support for Apple M1 Pro and Max will allow using a single binary for > all M1 SoCs. The M1 Pro/Max have a different memory layout. The RAM > start address is 0x100__ instead of 0x8__. > Replace the hardcoded memory

Re: [PATCH] arm: pdu001: Fix early debugging UART

2022-02-28 Thread Tom Rini
On Tue, Feb 15, 2022 at 03:27:23PM +0100, Felix Brack wrote: > The changes from commit 0dba45864b2a ("arm: Init the debug UART") > prevent the early debug UART from being initialized correctly. > To fix this we not just configure the pin multiplexer but add setting up > early clocks. > >

Re: [PATCH] tools: mkimage/dumpimage: Allow to use -l with -T

2022-02-28 Thread Tom Rini
On Sun, Feb 13, 2022 at 01:09:46AM +0100, Pali Rohár wrote: > Currently -l option for mkimage and dumpimage ignores option -T and always > tries to autodetect image type. > > With this change it is possible to tell mkimage and dumpimage to parse > image file as specific type (and not random

Re: [PATCH] configs: ti: use standard configuration nodes naming

2022-02-28 Thread Denys Dmytriyenko
On Thu, Feb 10, 2022 at 11:13:36PM +0100, Romain Naour wrote: > Currently, any u-boot bootloader for ti armv7 platforms using > DEFAULT_FIT_TI_ARGS to boot with a fitimage (boot_fit = 1) > doesn't boot when built with Yocto Poky (openembedded-core). > > ## Loading kernel from FIT Image at

Re: [PATCH v3 0/6] imx8mn-smm-s2/pro: Add iMX8MN BSH SMM S2 boards

2022-02-28 Thread Michael Nazzareno Trimarchi
Hi Stefano Any plan to get those boards in? On Thu, Feb 17, 2022 at 3:35 PM Ariel D'Alessandro wrote: > > Introduce BSH SystemMaster (SMM) S2 board family, which consists of: > iMX8MN SMM S2 and iMX8MN SMM S2 PRO boards. > > This patchset also adds support for NXP TJA11xx Ethernet PHYs. > >

[PATCH v2] core: devres: optionally build devres into the SPL

2022-02-28 Thread Angus Ainslie
Add a CONFIG_SPL_DEVRES option Signed-off-by: Angus Ainslie --- Changes since v1: Instead of gaurding the source add an SPL_DEVRES option drivers/core/Kconfig | 13 + drivers/core/Makefile | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git

Re: [PATCH u-boot-marvell] arm64: a37xx: pinctrl: Fix PWM pins indexes

2022-02-28 Thread Pali Rohár
On Monday 28 February 2022 15:59:37 Marek Behún wrote: > From: Marek Behún > > Commit 5534fb4f4833 ("arm64: a37xx: pinctrl: Correct PWM pins > definitions") introduced bogus definitions os PWM pins: all 4 pins have > index 11, instead of having indexes 11, 12, 13, 14. > > Fix this. > >

phy_connect_dev calling phy_reset???

2022-02-28 Thread Tim Harvey
Greetings, I'm wondering if it is proper in U-Boot for phy_connect_dev() to always call phy_reset() which generates a soft reset via BMCR_RESET. For some (or most?) PHY's this resets specific PHY config such as RGMII delays and LED configuration that may have been configured by firmware running

[PATCH 17/18] dm: core: Tidy up comments in uclass headers

2022-02-28 Thread Simon Glass
Improve some of the comments in these files, which don't follow the correct style. Signed-off-by: Simon Glass --- include/dm/uclass-internal.h | 18 +- include/dm/uclass.h | 13 ++--- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git

[PATCH 16/18] dm: core: Add a required struct declaration

2022-02-28 Thread Simon Glass
This file uses struct driver, so declare it at the top in case the header-inclusion order is not as expected. Signed-off-by: Simon Glass --- include/dm/device-internal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dm/device-internal.h b/include/dm/device-internal.h index

[PATCH 18/18] dm: blk: Expand iteration and add tests

2022-02-28 Thread Simon Glass
Add some functions which support iteration before probing. Also add tests for the functions. Signed-off-by: Simon Glass --- drivers/block/blk-uclass.c | 24 include/blk.h | 45 +++ test/dm/blk.c | 111 + 3

[PATCH 15/18] stdint: Add a definition of UINT8_MAX

2022-02-28 Thread Simon Glass
This is normally defined in stdint.h but is not used in U-Boot. When libraries (such as Chromium OS vboot) are built against U-Boot they may expect this value to be available. Add it to avoid build errors in this case. Signed-off-by: Simon Glass --- include/stdint.h | 7 +++ 1 file

[PATCH 14/18] Make ASYMMETRIC_KEY_TYPE depend on FIT_SIGNATURE

2022-02-28 Thread Simon Glass
Add this dependency to avoid a build error if FIT_SIGNATURE is not enabled. Signed-off-by: Simon Glass --- lib/crypto/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/crypto/Kconfig b/lib/crypto/Kconfig index 6369bafac0..5c6e964862 100644 --- a/lib/crypto/Kconfig +++

[PATCH 13/18] Add a default for TPL_TEXT_BASE

2022-02-28 Thread Simon Glass
If this value is not provided it causes a hang in the build. Add a default value to avoid this. Signed-off-by: Simon Glass --- common/spl/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 9418d37b2e..b59215fe4f 100644 ---

[PATCH 12/18] disk: Correct the conditions for SPL

2022-02-28 Thread Simon Glass
These filesystems may have different settings for SPL and TPL. Use the correct Makefile variable to handle this. Signed-off-by: Simon Glass --- disk/Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/disk/Makefile b/disk/Makefile index

[PATCH 11/18] spi: Avoid checking console in SPL

2022-02-28 Thread Simon Glass
When SPI flash is used in SPL there is no console, so ctrlc() cannot be called. Add a condition to fix this. Signed-off-by: Simon Glass --- drivers/mtd/spi/spi-nor-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi-nor-core.c

[PATCH 09/18] cbfs: Add some more definititions

2022-02-28 Thread Simon Glass
Add definitions for a payload or 'self', which is like an unpacked ELF file. Signed-off-by: Simon Glass --- include/cbfs.h | 43 +++ 1 file changed, 43 insertions(+) diff --git a/include/cbfs.h b/include/cbfs.h index 7449873b49..38efb1d2b0 100644 ---

[PATCH 10/18] cros_ec: Complete the comment for cros_ec_read_batt_charge()

2022-02-28 Thread Simon Glass
Add the missing 'Return' information. Signed-off-by: Simon Glass --- include/cros_ec.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/cros_ec.h b/include/cros_ec.h index 2a7728622c..94c988a7d6 100644 --- a/include/cros_ec.h +++ b/include/cros_ec.h @@ -648,6 +648,7 @@ int

[PATCH 08/18] lzma: Tidy up the function prototype

2022-02-28 Thread Simon Glass
This should use a const pointer for the input stream. Fix this and also add a proper comment. Signed-off-by: Simon Glass --- lib/lzma/LzmaTools.c | 4 ++-- lib/lzma/LzmaTools.h | 17 +++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/lib/lzma/LzmaTools.c

[PATCH 07/18] fdt: sandbox: Avoid looking for an appended device tree

2022-02-28 Thread Simon Glass
We don't use an appended tree for sandbox and the required symbols are not present. Add a condition to avoid a build error. Signed-off-by: Simon Glass --- lib/fdtdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 086f0c732a..0c0ec034ec 100644 ---

[PATCH 06/18] fdt: Correct condition for SEPARATE_BSS

2022-02-28 Thread Simon Glass
This may have different settings for SPL and TPL. Correct the condition. Signed-off-by: Simon Glass --- lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 87aa677a4a..086f0c732a 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@

[PATCH 05/18] abuf: Correct a corner case with abuf_realloc()

2022-02-28 Thread Simon Glass
If the buffer is empty and not allocated, then abuf_realloc() tries to copy invalid data. This happens because an incorrect change to use memdup() was added after the original code was written. Signed-off-by: Simon Glass --- lib/abuf.c | 4 +++- test/lib/abuf.c | 29

[PATCH 04/18] errno: Avoid including strings in SPL

2022-02-28 Thread Simon Glass
At present the header file defines this function in SPL but the file may not actually be built. This causes a build error if the option is enabled. Fix the condition in the header file. Signed-off-by: Simon Glass --- include/errno.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 01/18] buildman: Update default config to build for sandbox

2022-02-28 Thread Simon Glass
At present the default .buildman file written by buildman does not specify a default toolchain. Add an 'other' line so this works correctly and sandbox builds run as expected. Signed-off-by: Simon Glass --- tools/buildman/bsettings.py | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 03/18] binman: Correct Chromium OS entry types

2022-02-28 Thread Simon Glass
The conversion to bintools broke the invocation of the utility, since the arguments are not correct. Fix it. Signed-off-by: Simon Glass --- tools/binman/btool/futility.py | 4 ++-- tools/binman/etype/vblock.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 02/18] buildman: Fix up cfgutil

2022-02-28 Thread Simon Glass
The name of this function changed at the same time as this file was added. Fix the naming. Signed-off-by: Simon Glass --- tools/buildman/cfgutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/buildman/cfgutil.py b/tools/buildman/cfgutil.py index

[PATCH 00/18] Various bugfixes related to verified boot

2022-02-28 Thread Simon Glass
This series collects together various misc patches that were needed when building mainline U-Boot against Chromium OS verified boot. Most of them fix minor bugs. Simon Glass (18): buildman: Update default config to build for sandbox buildman: Fix up cfgutil binman: Correct Chromium OS

Re: [PATCH 06/14] misc: Add support for nvmem cells

2022-02-28 Thread Sean Anderson
On 2/26/22 1:36 PM, Simon Glass wrote: > Hi Sean, > > On Mon, 7 Feb 2022 at 16:42, Sean Anderson wrote: >> >> This adds support for "nvmem cells" as seen in Linux. The nvmem device >> class in Linux is used for various assorted ROMs and EEPROMs. In this >> sense, it is similar to UCLASS_MISC,

[PATCH] firmware: zynqmp: Do not bind PD driver in SPL if disabled

2022-02-28 Thread Michal Simek
Change if condition to cover SPL flow. SPL needs to have CONFIG_SPL_POWER_DOMAIN enabled to be able to bind CONFIG_ZYNQMP_POWER_DOMAIN driver. Signed-off-by: Michal Simek --- drivers/firmware/firmware-zynqmp.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH v3] binman: Include also subnodes in generator nodes

2022-02-28 Thread Jan Kiszka
From: Jan Kiszka This allows to prefill fdt and config nodes with hash and signature subnodes. It's just important to place the child nodes last so that hashes do not come before the data - would be disliked by mkimage. Signed-off-by: Jan Kiszka --- Rebased over "binman: rockchip: Migrate

RE: [PATCH] arch: arm: recode the initialization of GICv3 ITS Re-Distributor tables

2022-02-28 Thread Z.Q. Hou
Hi Marc, Thanks a lot for your comments! > -Original Message- > From: Marc Zyngier > Sent: 2022年2月26日 19:10 > To: Z.Q. Hou > Cc: u-boot@lists.denx.de; s...@chromium.org; > bharat.go...@broadcom.com; Priyanka Jain ; > mich...@walle.cc > Subject: Re: [PATCH] arch: arm: recode the

Re: ARM: socfpga: gen5: release reset before using USB as device with ums

2022-02-28 Thread Marek Vasut
On 2/28/22 16:18, Wolfgang Grandegger wrote: Hi, [...] diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c index 7267163222..a2eed73fe9 100644 --- a/arch/arm/mach-socfpga/board.c +++ b/arch/arm/mach-socfpga/board.c @@ -83,6 +83,14 @@ int board_usb_init(int index, enum

Re: [PATCH v5 3/4] test/py: Handle expected reboot while booting sandbox

2022-02-28 Thread Simon Glass
Hi Masami, On Mon, 28 Feb 2022 at 07:47, Masami Hiramatsu wrote: > > Hi Simon, > > 2022年2月28日(月) 22:56 Simon Glass : > > > > Hi, > > > > On Mon, 28 Feb 2022 at 06:48, Tom Rini wrote: > > > > > > On Sun, Feb 27, 2022 at 02:45:36PM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Sun,

Re: [PATCH v5 3/4] test/py: Handle expected reboot while booting sandbox

2022-02-28 Thread Simon Glass
Hi Masami, On Mon, 28 Feb 2022 at 07:40, Masami Hiramatsu wrote: > > Hi Simon, > > 2022年2月28日(月) 6:45 Simon Glass : > > > > > Hi Tom, > > > > On Sun, 27 Feb 2022 at 13:58, Tom Rini wrote: > > > > > > On Sun, Feb 27, 2022 at 12:11:01PM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

[PATCH u-boot-marvell] arm64: a37xx: pinctrl: Fix PWM pins indexes

2022-02-28 Thread Marek Behún
From: Marek Behún Commit 5534fb4f4833 ("arm64: a37xx: pinctrl: Correct PWM pins definitions") introduced bogus definitions os PWM pins: all 4 pins have index 11, instead of having indexes 11, 12, 13, 14. Fix this. Signed-off-by: Marek Behún --- drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 6

[PATCH] arm64: zynqmp: Add resets property to sdhci nodes

2022-02-28 Thread Michal Simek
From: Sai Krishna Potthuri Add "resets" property to sdhci nodes. resets property is used to reset the SD host controller when dynamic configuration support is enabled. Signed-off-by: Sai Krishna Potthuri Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp.dtsi | 2 ++ 1 file changed, 2

Re: ARM: socfpga: gen5: release reset before using USB as device with ums

2022-02-28 Thread Marek Vasut
On 2/28/22 15:13, Wolfgang Grandegger wrote: The command "ums 0 mmc 0" does not work because the USB port is still in reset. Releasing it in board_usb_init() fixes the problem. This issue has been observed and fixed on the Aries MCVEVP board. Signed-off-by: Wolfgang Grandegger ---

Re: [PATCH v5 3/4] test/py: Handle expected reboot while booting sandbox

2022-02-28 Thread Masami Hiramatsu
Hi Simon, 2022年2月28日(月) 22:56 Simon Glass : > > Hi, > > On Mon, 28 Feb 2022 at 06:48, Tom Rini wrote: > > > > On Sun, Feb 27, 2022 at 02:45:36PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Sun, 27 Feb 2022 at 13:58, Tom Rini wrote: > > > > > > > > On Sun, Feb 27, 2022 at 12:11:01PM

Re: [PATCH v5 3/4] test/py: Handle expected reboot while booting sandbox

2022-02-28 Thread Masami Hiramatsu
Hi Simon, 2022年2月28日(月) 6:45 Simon Glass : > > Hi Tom, > > On Sun, 27 Feb 2022 at 13:58, Tom Rini wrote: > > > > On Sun, Feb 27, 2022 at 12:11:01PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Sun, 27 Feb 2022 at 11:14, Tom Rini wrote: > > > > > > > > On Sun, Feb 27, 2022 at

[PATCH v7 13/15] Introduce Verifying Program Loader (VPL)

2022-02-28 Thread Simon Glass
Add support for VPL, a new phase of U-Boot. This runs after TPL. It is responsible for selecting which SPL binary to run, based on a verified-boot process. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Update spl_phase_prefix() for VPL - Tidy up some of the Makefile

[PATCH v7 12/15] binman: Add VPL support

2022-02-28 Thread Simon Glass
Add support for U-Boot's Verifying Program Loader phase. Signed-off-by: Simon Glass --- Changes in v7: - Renumber the tests - Update for the patman library rename Changes in v6: - Fix the missing SPDX tag on test/204... tools/binman/etype/u_boot_vpl.py | 42

[PATCH v7 14/15] vpl: Add Kconfig options for VPL

2022-02-28 Thread Simon Glass
Add VPL versions of commonly used Kconfig options. Signed-off-by: Simon Glass --- Changes in v7: - Add a few more options Changes in v5: - Rebase this patch on mainline (for GPIO and MISC Kconfig renames) Changes in v4: - Add options for blk, core, misc and tpl also - Add VPL_SIZE_LIMIT

[PATCH v7 15/15] sandbox: Add a build for VPL

2022-02-28 Thread Simon Glass
Add an initial VPL build for sandbox. This includes the flow: TPL (with of-platdata) -> VPL -> SPL -> U-Boot To run it: ./tpl/u-boot-tpl -D The -D is needed to get the default device tree, which includes the serial console info. Add a Makefile check for OF_HOSTFILE which is the option

[PATCH v7 11/15] fdt: sandbox: Avoid looking for an appended device tree

2022-02-28 Thread Simon Glass
We don't use an appended tree for sandbox and the required symbols are not present. Add a condition to avoid a build error. Signed-off-by: Simon Glass --- Changes in v7: - Add new patch to avoid looking for an appended device tree lib/fdtdec.c | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH v7 09/15] disk: Correct the conditions for SPL

2022-02-28 Thread Simon Glass
These filesystems may have different settings for SPL and TPL. Use the correct Makefile variable to handle this. Signed-off-by: Simon Glass --- Changes in v7: - Add new patch to correct the conditions for SPL disk/Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff

[PATCH v7 08/15] Add a default for TPL_TEXT_BASE

2022-02-28 Thread Simon Glass
If this value is not provided it causes a hang in the build. Add a default value to avoid this. Signed-off-by: Simon Glass --- Changes in v7: - Add new patch with a default for TPL_TEXT_BASE common/spl/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/common/spl/Kconfig

[PATCH v7 07/15] Makefile: Tidy up the TPL build rules

2022-02-28 Thread Simon Glass
These should follow the same pattern as SPL, for consistency. Fix them. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9d026cc8ac..f8c5fc2041 100644 --- a/Makefile +++

[PATCH v7 06/15] Makefile: Simplify devicetree rules for SPL/TPL

2022-02-28 Thread Simon Glass
The current logic checks several options to decide whether SPL/TPL need the U-Boot devicetree to be built. In fact we can check OF_CONTROL, which is enabled in all cases that matter. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 7 ++- 1 file changed, 2 insertions(+), 5

[PATCH v7 10/15] fdt: Correct condition for SEPARATE_BSS

2022-02-28 Thread Simon Glass
This may have different settings for SPL and TPL. Correct the condition. Signed-off-by: Simon Glass --- Changes in v7: - Add new patch to correct condition for SEPARATE_BSS lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index

[PATCH v7 03/15] test: Tidy up test building with SPL

2022-02-28 Thread Simon Glass
We can in principle add tests to any SPL build, e.g. TPL or VPL. Update the build rules to handle this. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 2 +- scripts/Makefile.spl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile

[PATCH v7 04/15] bloblist: Correct Kconfig dependencies

2022-02-28 Thread Simon Glass
This feature is not available in SPL unless common/ and lib/ are built. Update the Kconfig to avoid build errors. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Add new patch to correct bloblist Kconfig dependencies common/Kconfig | 4 ++-- 1 file changed, 2

[PATCH v7 05/15] avb: Don't build in SPL

2022-02-28 Thread Simon Glass
This feature is not used in SPL at present. Update the Makefile to avoid it being built. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Add new patch to avoid building avb in SPL common/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v7 02/15] doc: Expand SPL docs to explain the phase and config

2022-02-28 Thread Simon Glass
Add a bit more information about how to use SPL. Signed-off-by: Simon Glass --- (no changes since v1) doc/develop/spl.rst | 34 ++ 1 file changed, 34 insertions(+) diff --git a/doc/develop/spl.rst b/doc/develop/spl.rst index 4d6f394bed..1059b2fb9c 100644 ---

[PATCH v7 01/15] doc: Convert SPL documentation to ReST

2022-02-28 Thread Simon Glass
Move this documentation over to .rst format. Signed-off-by: Simon Glass --- (no changes since v1) doc/develop/index.rst | 1 + doc/{README.SPL => develop/spl.rst} | 36 +++-- 2 files changed, 20 insertions(+), 17 deletions(-) rename doc/{README.SPL =>

[PATCH v7 00/15] vpl: Introduce a verifying program loader

2022-02-28 Thread Simon Glass
U-Boot provides a verified-boot feature based around FIT, but there is no standard way of implementing it for a board. At present the various required pieces must be built up separately, to produce a working implementation. In particular, there is no built-in support for selecting A/B boot or

  1   2   >