[RFC 13/13] block: rkmtd: select CONFIG_RANDOM_UUID explicitly

2023-10-25 Thread AKASHI Takahiro
This option is necessary to compile any way. Signed-off-by: AKASHI Takahiro --- drivers/block/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index 048a6caef00f..5cda21551043 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig

[RFC 12/13] lib: uuid: move CONFIG_RANDOM_UUID

2023-10-25 Thread AKASHI Takahiro
This option is independent from any commands and should be managed under lib. For instance, drivers/block/rkmtd.c is a user. It would be better to remove this configuration. Signed-off-by: AKASHI Takahiro --- cmd/Kconfig | 7 --- lib/Kconfig | 7 +++ 2 files changed, 7 insertions(+), 7

[RFC 11/13] fs: remove explicit efi configuration dependency

2023-10-25 Thread AKASHI Takahiro
Now it is clear that the feature actually depends on efi interfaces, not "bootefi" command. efi_set_bootdev() will automatically be nullified if necessary efi component is disabled. Signed-off-by: AKASHI Takahiro --- fs/fs.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff

[RFC 10/13] net: tftp: remove explicit efi configuration dependency

2023-10-25 Thread AKASHI Takahiro
Now it is clear that the feature actually depends on efi interfaces, not "bootefi" command. efi_set_bootdev() will automatically be nullified if necessary efi component is disabled. Signed-off-by: AKASHI Takahiro --- net/tftp.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-)

[RFC 09/13] efi_loader: rename BOOTEFI_BOOTMGR to EFI_BOOTMGR

2023-10-25 Thread AKASHI Takahiro
At this point, EFI boot manager interfaces is fully independent from bootefi command. So just rename the configuration parameter. Signed-off-by: AKASHI Takahiro --- boot/Makefile | 2 +- cmd/Kconfig | 4 ++-- cmd/efidebug.c | 4 ++-- lib/efi_loader/Kconfig | 2 +-

[RFC 08/13] efi_loader: split unrelated code from efi_bootmgr.c

2023-10-25 Thread AKASHI Takahiro
Some code moved from cmd/bootefi.c is actually necessary only for "bootefi " command (starting an image manually loaded by a user using U-Boot load commands or other methods (like JTAG debugger). The code will never been opted out as unused code by a compiler which doesn't know how EFI boot

[RFC 05/13] cmd: bootefi: move library interfaces under lib/efi_loader

2023-10-25 Thread AKASHI Takahiro
In the prior commits, interfaces for executing EFI binary or boot manager were carved out. Move them under efi_loader directory so that they can be called from other places without depending on bootefi command. Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c| 546

[RFC 07/13] bootmeth: use efi_loader interfaces instead of bootefi command

2023-10-25 Thread AKASHI Takahiro
Now that efi_loader subsystem provides interfaces that are equivalent with bootefi command, we can replace command invocations with APIs. Signed-off-by: AKASHI Takahiro --- boot/Kconfig| 4 ++-- boot/Makefile | 2 +- boot/bootm_os.c | 31

[RFC 06/13] cmd: efidebug: ease efi configuration dependency

2023-10-25 Thread AKASHI Takahiro
Now it is clear that the command actually depends on interfaces, not "bootefi bootmgr" command. Signed-off-by: AKASHI Takahiro --- cmd/efidebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/efidebug.c b/cmd/efidebug.c index 201531ac19fc..c2b2b074e094 100644 ---

[RFC 04/13] cmd: bootefi: carve out binary execution interface

2023-10-25 Thread AKASHI Takahiro
Carve binary execution code out of do_bootefi_image(). Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 46 -- 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c index 899ed90f6817..8b0bd07f1ff8 100644 ---

[RFC 03/13] cmd: bootefi: carve out EFI boot manager interface

2023-10-25 Thread AKASHI Takahiro
Carve EFI boot manager related code out of do_bootefi_image(). Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 43 --- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c index ae00bba3b4f0..899ed90f6817 100644

[RFC 02/13] cmd: bootefi: re-organize do_bootefi_image()

2023-10-25 Thread AKASHI Takahiro
Decompose and re-organize do_bootefi_image() into three parts for the succeeding refactor work. Signed-off-by: AKASHI Takahiro --- cmd/Kconfig | 15 ++-- cmd/bootefi.c| 82 ++-- include/efi_loader.h | 2 -- 3 files changed, 69

[RFC 01/13] cmd: bootefi: unfold do_bootefi_image()

2023-10-25 Thread AKASHI Takahiro
Unfold do_bootefi_image() into do_bootefi() for the sake of the succeeding refactor work. Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 101 ++ 1 file changed, 37 insertions(+), 64 deletions(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c

[RFC 00/13] cmd: bootefi: refactor the code for bootmgr

2023-10-25 Thread AKASHI Takahiro
This patch set is motivated by the discussion[1] regarding CONFIG_BOOTEFI_BOOTMGR option. At the end, bootefi.c will be decomposed into two parts, one for providing the command itself and one for implementing helper functions. EFI_LOADER will now be available without CONFIG_CMDLINE or

[PATCH 1/1] board: sifive: unmatched: move kernel load address to 0x80200000

2023-10-25 Thread Yong-Xuan Wang
U-boot initially loads the kernel image to the kernel_addr_r, and subsequently relocates it to memory address 0x8020. Setting kernel_addr_r to 0x8020 can eliminate one copy operation. Signed-off-by: Yong-Xuan Wang --- include/configs/sifive-unmatched.h | 2 +- 1 file changed, 1

Re: quick question about TPM

2023-10-25 Thread niek.nooij...@omron.com
Hi Simon Yes that fixes it! Thanks! Maybe an Idea to add a dedicated TPM page to the docs with information like this? (https://u-boot.readthedocs.io/en/latest/index.html) Cause I wouldn't have thought I needed an option tugged away under Library routines. Anyhow Thanks! Niek

Re: [PATCH v2 3/3] bootcount: Add driver model I2C driver

2023-10-25 Thread Heiko Schocher
Hello Philip, On 20.10.23 11:02, Philip Richard Oberfichtner wrote: > This adds a generic I2C bootcounter adhering to driver model to replace > the previously removed legacy implementation. > > There is no change in functionality, it can be used on any I2C device. > The device tree configuration

Re: [PATCH v2 2/3] i2c: Implement i2c_get_chip_by_phandle()

2023-10-25 Thread Heiko Schocher
Hello Philip, On 20.10.23 11:02, Philip Richard Oberfichtner wrote: > This new function enhances the i2c_get_chip*() toolbox by implementing a > variant that does not require a chip_addr. Instead, the desired device > is pointed to by a phandle. > > Signed-off-by: Philip Richard Oberfichtner >

Re: [PATCH v2 1/3] bootcount: Remove legacy I2C driver

2023-10-25 Thread Heiko Schocher
Hello Philip. On 20.10.23 11:02, Philip Richard Oberfichtner wrote: > The legacy I2C bootcounter will hereby be removed and eventually > be replaced by a driver model implementation in the follow-up commit. > > The legacy driver has the following drawbacks: > - It's not adhering to the

Re: [PATCH v2] i2c: nuvoton: remove standard mode only

2023-10-25 Thread Heiko Schocher
Hello Jim, On 04.10.23 03:35, Jim Liu wrote: > first version is only support standard mode. > remove this judgment to support standard/fast/fast plus mode. > > Signed-off-by: Jim Liu > > Changes for v2: >- add commit message > --- > drivers/i2c/npcm_i2c.c | 5 - > 1 file changed, 5

[PATCH 3/3] arm: rmobile: rzg2_beacon: Auto select Linux device tree by SoC

2023-10-25 Thread Adam Ford
There is a function inside the board file to autodetect which device tree is needed by U-Boot to properly load its own device tree, but it currently defaults to always loading RZ/G2M for Linux. This is not correct for other SoC variants. Add board_late_init function to query the SoC name and use

[PATCH 2/3] configs: rzg2_beacon: Realign ENV location and offset

2023-10-25 Thread Adam Ford
The ENV size and offset were changed to different values in Beacon's downstream release. Change them to the same values as the downstream for consistent behavior. Signed-off-by: Adam Ford diff --git a/configs/rzg2_beacon_defconfig b/configs/rzg2_beacon_defconfig index 7b14d225b5..534f641e84

[PATCH 1/3] configs: rzg2_beacon: Disable the ability to remove devices

2023-10-25 Thread Adam Ford
In order to save some space, disable the ability to dynamically remove devices. Without this, U-Boot is too large to load without recompiling TF-A. Signed-off-by: Adam Ford diff --git a/configs/rzg2_beacon_defconfig b/configs/rzg2_beacon_defconfig index 73abe966b8..7b14d225b5 100644 ---

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-25 Thread Tom Rini
On Thu, Oct 26, 2023 at 01:02:40AM +0200, Heinrich Schuchardt wrote: > On 10/25/23 23:09, Tom Rini wrote: > > On Wed, Oct 25, 2023 at 10:52:48PM +0200, Heinrich Schuchardt wrote: > > > On 10/25/23 19:09, Tom Rini wrote: > > > > On Wed, Oct 25, 2023 at 05:28:10PM +0200, Heinrich Schuchardt wrote: >

[PATCH 5/5] configs: imx8mn_beacon: Disable the WDT autostart

2023-10-25 Thread Adam Ford
Auto-starting the WDT can cause false reboots when the user is not intentionally trying to use the WDT, so leave it off until it is requested. Signed-off-by: Adam Ford --- configs/imx8mn_beacon_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx8mn_beacon_defconfig

[PATCH 4/5] configs: imx8mn_beacon: Do not set SYS_CONSOLE_IS_IN_ENV

2023-10-25 Thread Adam Ford
The hardware only supports a specific console port, so remove the option to change the console location in the environment. Signed-off-by: Adam Ford --- configs/imx8mn_beacon_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx8mn_beacon_defconfig

[PATCH 3/5] configs: imx8mm_beacon: Disable the WDT autostart

2023-10-25 Thread Adam Ford
Auto-starting the WDT can cause false reboots when the user is not intentionally trying to use the WDT, so leave it off until it is requested. Signed-off-by: Adam Ford --- configs/imx8mm_beacon_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx8mm_beacon_defconfig

[PATCH 2/5] configs: imx8mm_beacon: Enable fastboot downloading

2023-10-25 Thread Adam Ford
Fastboot is necessary to use UUU enhanced functions, so enable it. Signed-off-by: Adam Ford --- configs/imx8mm_beacon_defconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/imx8mm_beacon_defconfig b/configs/imx8mm_beacon_defconfig index 031470c169..886d912650

[PATCH 1/5] configs: imx8mp_beacon: Do not set SYS_CONSOLE_IS_IN_ENV

2023-10-25 Thread Adam Ford
The hardware only supports a specific console port, so remove the option to change the console location in the environment. Signed-off-by: Adam Ford --- configs/imx8mp_beacon_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx8mp_beacon_defconfig

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-25 Thread Heinrich Schuchardt
On 10/25/23 23:09, Tom Rini wrote: On Wed, Oct 25, 2023 at 10:52:48PM +0200, Heinrich Schuchardt wrote: On 10/25/23 19:09, Tom Rini wrote: On Wed, Oct 25, 2023 at 05:28:10PM +0200, Heinrich Schuchardt wrote: On 25.10.23 16:28, Tom Rini wrote: On Wed, Oct 25, 2023 at 04:18:20PM +0200, Mark

[PATCH] arm: kirkwood: Enable bootstd for Zyxel NSA310S board

2023-10-25 Thread Tony Dinh
Enable bootstd for Zyxel NSA310S board, and remove distroboot. Signed-off-by: Tony Dinh --- configs/nsa310s_defconfig | 3 ++- include/configs/nsa310s.h | 17 ++--- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/configs/nsa310s_defconfig

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-25 Thread Heinrich Schuchardt
On 10/25/23 23:13, Tom Rini wrote: On Wed, Oct 25, 2023 at 10:28:05PM +0200, Mark Kettenis wrote: Date: Wed, 25 Oct 2023 21:57:44 +0200 From: Heinrich Schuchardt On 10/25/23 20:23, Simon Glass wrote: Hi Heinrich, On Tue, 24 Oct 2023 at 18:02, Simon Glass wrote: Hi Heinrich, On Mon, 23

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-25 Thread Tom Rini
On Wed, Oct 25, 2023 at 10:28:05PM +0200, Mark Kettenis wrote: > > Date: Wed, 25 Oct 2023 21:57:44 +0200 > > From: Heinrich Schuchardt > > > > On 10/25/23 20:23, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Tue, 24 Oct 2023 at 18:02, Simon Glass wrote: > > >> > > >> Hi Heinrich, > > >>

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-25 Thread Tom Rini
On Wed, Oct 25, 2023 at 10:52:48PM +0200, Heinrich Schuchardt wrote: > On 10/25/23 19:09, Tom Rini wrote: > > On Wed, Oct 25, 2023 at 05:28:10PM +0200, Heinrich Schuchardt wrote: > > > On 25.10.23 16:28, Tom Rini wrote: > > > > On Wed, Oct 25, 2023 at 04:18:20PM +0200, Mark Kettenis wrote: > > > >

[PATCH v6 3/3] dt-bindings: mtd: binman-partitions: Add alignment properties

2023-10-25 Thread Simon Glass
Add three properties for controlling alignment of partitions, aka 'entries' in binman. For now there is no explicit mention of hierarchy, so a 'section' is just the 'binman' node. These new properties are inputs to the packaging process, but are also needed if the firmware is repacked, to ensure

[PATCH v6 2/3] dt-bindings: mtd: binman-partition: Add binman compatibles

2023-10-25 Thread Simon Glass
Add two compatible for binman entries, as a starting point for the schema. Note that, after discussion on v2, we decided to keep the existing meaning of label so as not to require changes to existing userspace software when moving to use binman nodes to specify the firmware layout.

[PATCH v6 1/3] dt-bindings: mtd: partitions: Add binman compatible

2023-10-25 Thread Simon Glass
Add a compatible string for binman, so we can extend fixed-partitions in various ways. Signed-off-by: Simon Glass --- (no changes since v5) Changes in v5: - Add #address/size-cells and parternProperties - Drop $ref to fixed-partitions.yaml - Drop 'select: false' Changes in v4: - Change

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-25 Thread Simon Glass
Hi Heinrich, On Wed, 25 Oct 2023 at 20:51, Heinrich Schuchardt wrote: > > On 10/25/23 22:28, Mark Kettenis wrote: > >> Date: Wed, 25 Oct 2023 21:57:44 +0200 > >> From: Heinrich Schuchardt > >> > >> On 10/25/23 20:23, Simon Glass wrote: > >>> Hi Heinrich, > >>> > >>> On Tue, 24 Oct 2023 at

Re: [PATCH v4 2/3] dt-bindings: mtd: binman-partition: Add binman compatibles

2023-10-25 Thread Simon Glass
Hi Miquel, On Wed, 25 Oct 2023 at 08:11, Miquel Raynal wrote: > > Hi Simon, > > s...@chromium.org wrote on Tue, 24 Oct 2023 14:40:54 -0700: > > > Hi Rob, > > > > On Tue, 24 Oct 2023 at 09:16, Rob Herring wrote: > > > > > > On Mon, Oct 09, 2023 at 04:04:14PM -0600, Simon Glass wrote: > > > > Add

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-25 Thread Heinrich Schuchardt
On 10/25/23 19:09, Tom Rini wrote: On Wed, Oct 25, 2023 at 05:28:10PM +0200, Heinrich Schuchardt wrote: On 25.10.23 16:28, Tom Rini wrote: On Wed, Oct 25, 2023 at 04:18:20PM +0200, Mark Kettenis wrote: Date: Tue, 24 Oct 2023 18:34:05 -0400 From: Tom Rini On Mon, Oct 23, 2023 at 05:31:19PM

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-25 Thread Heinrich Schuchardt
On 10/25/23 22:28, Mark Kettenis wrote: Date: Wed, 25 Oct 2023 21:57:44 +0200 From: Heinrich Schuchardt On 10/25/23 20:23, Simon Glass wrote: Hi Heinrich, On Tue, 24 Oct 2023 at 18:02, Simon Glass wrote: Hi Heinrich, On Mon, 23 Oct 2023 at 23:20, Heinrich Schuchardt wrote: Forward and

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-25 Thread Mark Kettenis
> Date: Wed, 25 Oct 2023 21:57:44 +0200 > From: Heinrich Schuchardt > > On 10/25/23 20:23, Simon Glass wrote: > > Hi Heinrich, > > > > On Tue, 24 Oct 2023 at 18:02, Simon Glass wrote: > >> > >> Hi Heinrich, > >> > >> On Mon, 23 Oct 2023 at 23:20, Heinrich Schuchardt > >> wrote: > >>> > >>>

Re: Pull request efi-2024-01-rc2

2023-10-25 Thread Tom Rini
On Wed, Oct 25, 2023 at 10:09:55PM +0200, Heinrich Schuchardt wrote: > On 10/25/23 20:57, Tom Rini wrote: > > On Wed, Oct 25, 2023 at 04:20:06AM +0200, Heinrich Schuchardt wrote: > > > > > Dear Tom, > > > > > > The following changes since commit > > > 5cab3515f8c9796015739c1750b8933291c816be: >

Re: [PATCH 2/3] board: rockchip: Add Maskrom Mode for Anbernic RGxx3

2023-10-25 Thread Chris Morgan
On Mon, Oct 23, 2023 at 07:12:14PM +0200, Jonas Karlman wrote: > Hi Chris, > > On 2023-10-23 17:18, Chris Morgan wrote: > > On Mon, Oct 23, 2023 at 06:10:07PM +0800, Kever Yang wrote: > >> Hi Chris, > >> > >> On 2023/10/18 02:24, Chris Morgan wrote: > >>> From: Chris Morgan > >>> > >>> Add

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-25 Thread Tom Rini
On Wed, Oct 25, 2023 at 09:57:44PM +0200, Heinrich Schuchardt wrote: > On 10/25/23 20:23, Simon Glass wrote: > > Hi Heinrich, > > > > On Tue, 24 Oct 2023 at 18:02, Simon Glass wrote: > > > > > > Hi Heinrich, > > > > > > On Mon, 23 Oct 2023 at 23:20, Heinrich Schuchardt > > > wrote: > > > > >

Re: Pull request efi-2024-01-rc2

2023-10-25 Thread Heinrich Schuchardt
On 10/25/23 20:57, Tom Rini wrote: On Wed, Oct 25, 2023 at 04:20:06AM +0200, Heinrich Schuchardt wrote: Dear Tom, The following changes since commit 5cab3515f8c9796015739c1750b8933291c816be: Merge tag 'u-boot-rockchip-20231024' of https://source.denx.de/u-boot/custodians/u-boot-rockchip

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-25 Thread Heinrich Schuchardt
On 10/25/23 20:23, Simon Glass wrote: Hi Heinrich, On Tue, 24 Oct 2023 at 18:02, Simon Glass wrote: Hi Heinrich, On Mon, 23 Oct 2023 at 23:20, Heinrich Schuchardt wrote: Forward and backward compatibility of Linux kernel device-trees is sometimes missing. One solution approach is to load

Re: Pull request efi-2024-01-rc2

2023-10-25 Thread Tom Rini
On Wed, Oct 25, 2023 at 04:20:06AM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit 5cab3515f8c9796015739c1750b8933291c816be: > > Merge tag 'u-boot-rockchip-20231024' of > https://source.denx.de/u-boot/custodians/u-boot-rockchip (2023-10-24 > 09:39:52

Re: [REGRESSION] imx: spl_imx_romapi: boot loops

2023-10-25 Thread Rasmus Villemoes
On 25/10/2023 18.01, Marcel Ziswiler wrote: > Hi Rasmus > > On Tue, 2023-10-24 at 16:32 +0200, Rasmus Villemoes wrote: >> What am I missing? > > Good question. Some more debugging revealed that we are missing 464 bytes at > the beginning of the buffer. Why > would that be? [slaps forehead]

Re: [PATCH] test/py: always use autostart on tpm2 selftests

2023-10-25 Thread Simon Glass
Hi Ilias, On Wed, 25 Oct 2023 at 07:25, Ilias Apalodimas wrote: > > commit 789ed2784256 ("test/py: replace 'tpm2 init, startup, selftest' > sequences") > changed some of the tpm2 init sequences to 'tpm2 autostart' instead of > calling 'tpm init', 'tpm startup TPM2_SU_CLEAR', 'tpm2 self_test

Re: quick question about TPM

2023-10-25 Thread Simon Glass
Hi Niek, On Tue, 24 Oct 2023 at 19:26, niek.nooij...@omron.com wrote: > > Hi Simon > > Driver model is enabled, so it's pretty weird it doesn't show up. > CONFIG_DM=y > CONFIG_SPL_DM=y > CONFIG_DM_WARN=y > > The TPM menu is there, yet somehow empty. > This is just after "make

Re: [PATCH v4 1/1] efi_loader: expose the device-tree file name

2023-10-25 Thread Simon Glass
Hi Heinrich, On Tue, 24 Oct 2023 at 18:02, Simon Glass wrote: > > Hi Heinrich, > > On Mon, 23 Oct 2023 at 23:20, Heinrich Schuchardt > wrote: > > > > Forward and backward compatibility of Linux kernel device-trees is > > sometimes missing. One solution approach is to load a kernel specific > >

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-25 Thread Tom Rini
On Wed, Oct 25, 2023 at 05:28:10PM +0200, Heinrich Schuchardt wrote: > On 25.10.23 16:28, Tom Rini wrote: > > On Wed, Oct 25, 2023 at 04:18:20PM +0200, Mark Kettenis wrote: > > > > Date: Tue, 24 Oct 2023 18:34:05 -0400 > > > > From: Tom Rini > > > > > > > > On Mon, Oct 23, 2023 at 05:31:19PM

Re: [PATCH v2 1/3] arm: dts: imx8mm: Sync with linux-next 20231019

2023-10-25 Thread Tim Harvey
On Thu, Oct 19, 2023 at 5:06 AM Fabio Estevam wrote: > > From: Fabio Estevam > > Sync imx8mm.dtsi with linux-next 20231019. > > The motivation for doing this sync was a bug when doing "ums 0 mmc 1" > on imx8mm-evk. It worked well for the first time, but after doing > a CTRL+C and launching the

Re: [REGRESSION] imx: spl_imx_romapi: boot loops

2023-10-25 Thread Marcel Ziswiler
Hi Rasmus On Tue, 2023-10-24 at 16:32 +0200, Rasmus Villemoes wrote: > On 24/10/2023 15.15, Marcel Ziswiler wrote: > > Hi Marcel > > tl;dr: can you try > > @@ -330,7 +335,7 @@ static int spl_romapi_load_image_stream(struct > spl_image_info *spl_image, > >     ss.base = phdr; >

Re: [PATCH 2/4] arm: dts: Add support for AM62x LP SK

2023-10-25 Thread Nishanth Menon
On 16:15-20231025, Nitin Yadav wrote: [...] > >> +#include "k3-am62x-sk-common-u-boot.dtsi" > >> + > >> +#include "k3-am62-lp-sk-binman.dtsi" > > > > Are you sure you don't need the dt phase properties for regulators for > > mmc

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-25 Thread Heinrich Schuchardt
On 25.10.23 16:28, Tom Rini wrote: On Wed, Oct 25, 2023 at 04:18:20PM +0200, Mark Kettenis wrote: Date: Tue, 24 Oct 2023 18:34:05 -0400 From: Tom Rini On Mon, Oct 23, 2023 at 05:31:19PM +0200, Mark Kettenis wrote: From: Simon Glass Date: Mon, 23 Oct 2023 00:04:14 -0700 Hi Caleb, On Sat,

Re: Fwd: New Defects reported by Coverity Scan for Das U-Boot

2023-10-25 Thread Tom Rini
On Wed, Oct 25, 2023 at 04:12:37PM +0100, Abdellatif El Khlifi wrote: > Hi Tom, > > > > > > > > > *** CID 464361: Control flow issues (DEADCODE) > > > >

Re: Fwd: New Defects reported by Coverity Scan for Das U-Boot

2023-10-25 Thread Abdellatif El Khlifi
Hi Tom, > > > > > > *** CID 464361: Control flow issues (DEADCODE) > > > /drivers/firmware/arm-ffa/arm-ffa-uclass.c: 148 in ffa_print_error_log() > > > 142 > > > 143 if (ffa_id <

Re: Fwd: New Defects reported by Coverity Scan for Das U-Boot

2023-10-25 Thread Tom Rini
On Fri, Oct 20, 2023 at 12:57:47PM +0100, Abdellatif El Khlifi wrote: > Hi Tom, > > > > > *** CID 464361: Control flow issues (DEADCODE) > > /drivers/firmware/arm-ffa/arm-ffa-uclass.c: 148

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-25 Thread Tom Rini
On Wed, Oct 25, 2023 at 04:18:20PM +0200, Mark Kettenis wrote: > > Date: Tue, 24 Oct 2023 18:34:05 -0400 > > From: Tom Rini > > > > On Mon, Oct 23, 2023 at 05:31:19PM +0200, Mark Kettenis wrote: > > > > From: Simon Glass > > > > Date: Mon, 23 Oct 2023 00:04:14 -0700 > > > > > > > > Hi Caleb, >

Re: [PATCH v14 4/8] bootm: Support boot measurement

2023-10-25 Thread Ilias Apalodimas
Hi Heinrich, [...] > >>> > >>> +config MEASURED_BOOT > >>> + bool "Measure boot images and configuration to TPM and event log" > >>> + depends on HASH && TPM_V2 > >>> + help > >>> + This option enables measurement of the boot process. Measurement > >>> + involves creating

Re: [PATCH] Kconfig: Remove all default n/no options

2023-10-25 Thread Tom Rini
On Wed, Oct 25, 2023 at 03:44:11PM +0200, Michal Simek wrote: > > > On 10/25/23 15:40, Tom Rini wrote: > > :n Wed, Oct 25, 2023 at 09:25:37AM +0200, Michal Simek wrote: > > > Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all > > > > > default n/no options") and again sync is

Re: [PATCH] Kconfig: Remove all default n/no options

2023-10-25 Thread Tom Rini
:n Wed, Oct 25, 2023 at 09:25:37AM +0200, Michal Simek wrote: > Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all > default n/no options") and again sync is required. > > default n/no doesn't need to be specified. It is default option anyway. > > Signed-off-by: Michal Simek

Re: [PATCH] Kconfig: Remove all default n/no options

2023-10-25 Thread Michal Simek
On 10/25/23 15:40, Tom Rini wrote: :n Wed, Oct 25, 2023 at 09:25:37AM +0200, Michal Simek wrote: Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all default n/no options") and again sync is required. default n/no doesn't need to be specified. It is default option anyway.

[PATCH v3] misc: i2c_eeprom: consider pagesize when writing to eeprom

2023-10-25 Thread Michel Alex
Calculate the maximum length of the buffer when writing across the page boundary. If the buffer length (len) exceeds the page boundary (pagesize), split it. Use this length instead of comparing the length with the pagesize, because if the write start address (offset) is not at the beginning of a

[PATCH v1 2/2] driver: power: regulator: add support for TPS65224 regulator

2023-10-25 Thread Bhargav Raviprakash
Added support for PMIC TPS65224 regulators. Includes driver for buck and ldo. Signed-off-by: Bhargav Raviprakash --- drivers/power/regulator/Kconfig | 10 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/tps65224_regulator.c | 472 +++

[PATCH v1 1/2] driver: power: add support for TPS65224

2023-10-25 Thread Bhargav Raviprakash
Added support for PMIC TPS65224. Includes driver for pmic, and disabling Watchdog. Signed-off-by: Bhargav Raviprakash --- drivers/power/pmic/Kconfig| 6 ++ drivers/power/pmic/Makefile | 1 + drivers/power/pmic/tps65224.c | 141 ++

[PATCH v1 0/2] TPS65224 PMIC driver

2023-10-25 Thread Bhargav Raviprakash
Add support for TPS65224 PMIC in U-boot. This includes driver for PMIC and regulator. The driver was tested on Ti's custom AM62A EVM using U-boot's pmic list, regulator list, regulator enable, regulator disable and regulator value commands. Regulator output voltages were verified. Logs from

Re: [PATCH v2 3/3] trace: Fix alignment logic in flyrecord header

2023-10-25 Thread Tom Rini
On Wed, Oct 25, 2023 at 09:33:03AM +0200, Michal Simek wrote: > > > On 10/24/23 20:03, Tom Rini wrote: > > On Tue, Oct 24, 2023 at 02:33:26PM +0200, Michal Simek wrote: > > > Hi Tom, > > > > > > On 9/25/23 16:33, Tom Rini wrote: > > > > On Mon, Sep 25, 2023 at 04:21:17PM +0200, Michal Simek

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-25 Thread Mark Kettenis
> Date: Tue, 24 Oct 2023 18:34:05 -0400 > From: Tom Rini > > On Mon, Oct 23, 2023 at 05:31:19PM +0200, Mark Kettenis wrote: > > > From: Simon Glass > > > Date: Mon, 23 Oct 2023 00:04:14 -0700 > > > > > > Hi Caleb, > > > > > > On Sat, 21 Oct 2023 at 01:43, Caleb Connolly > > > wrote: > > > >

Re: [PATCH] arm: init: add an option to use FDT from previous bootloader

2023-10-25 Thread Mark Kettenis
> From: Simon Glass > Date: Tue, 24 Oct 2023 12:34:39 -0700 > > > This mechanism of retrieving the DTB is also used on the apple M1 I > > think, and any other board where we're booting U-Boot as a drop-in for > > the kernel on arm64. > > I believe M1 is an open source project so perhaps they

Re: [PATCH v14 4/8] bootm: Support boot measurement

2023-10-25 Thread Heinrich Schuchardt
On 25.10.23 15:21, Ilias Apalodimas wrote: On Wed, 25 Oct 2023 at 16:08, Heinrich Schuchardt wrote: On 24.10.23 17:43, Eddie James wrote: Add a configuration option to measure the boot through the bootm function. Add the measurement state to the booti and bootz paths as well. Signed-off-by:

Re: [PATCH v2] misc: i2c_eeprom: consider pagesize when writing to eeprom

2023-10-25 Thread Tom Rini
On Wed, Oct 25, 2023 at 07:59:05AM +, Michel Alex wrote: > Calculate the maximum length of the buffer when writing > across the page boundary. If the buffer length (len) > exceeds the page boundary (pagesize), split it. Use this > length instead of comparing the length with the pagesize, >

Re: [PATCH v14 4/8] bootm: Support boot measurement

2023-10-25 Thread Eddie James
On 10/25/23 07:41, Ilias Apalodimas wrote: On Tue, 24 Oct 2023 at 18:44, Eddie James wrote: Add a configuration option to measure the boot through the bootm function. Add the measurement state to the booti and bootz paths as well. Signed-off-by: Eddie James Reviewed-by: Simon Glass ---

Re: [PATCH 8/8] clk/qcom: fix rcg divider value

2023-10-25 Thread Caleb Connolly
On 24/10/2023 21:23, Caleb Connolly wrote: > The RCG divider field takes a value of (2*h - 1) where h is the divisor. > This allows fractional dividers to be supported by calculating them at > compile time using a macro. > > However, the clk_rcg_set_rate_mnd() function was also performing the

Re: [PATCH v8 3/8] power: pmic: add the base MAX77663 PMIC support

2023-10-25 Thread Tom Rini
On Wed, Oct 25, 2023 at 09:10:12AM +0300, Svyatoslav Ryhel wrote: > вт, 24 жовт. 2023 р. о 22:18 Tom Rini пише: > > > > On Tue, Oct 24, 2023 at 10:41:05AM +0300, Svyatoslav Ryhel wrote: > > > > > Add support to bind the regulators/child nodes with the pmic. > > > Also adds the pmic i2c based

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-25 Thread Tom Rini
On Tue, Oct 24, 2023 at 07:47:44PM -0700, Simon Glass wrote: > Hi Tom, > > On Tue, 24 Oct 2023 at 17:44, Tom Rini wrote: > > > > On Wed, Oct 25, 2023 at 02:19:59AM +0200, Heinrich Schuchardt wrote: > > > > > > > > > Am 25. Oktober 2023 01:28:10 MESZ schrieb Simon Glass : > > > >Hi Tom, > > > > >

Re: [PATCH v2] misc: i2c_eeprom: consider pagesize when writing to eeprom

2023-10-25 Thread Lothar Waßmann
Hi, On Wed, 25 Oct 2023 07:59:05 + Michel Alex wrote: > Calculate the maximum length of the buffer when writing > across the page boundary. If the buffer length (len) > exceeds the page boundary (pagesize), split it. Use this > length instead of comparing the length with the pagesize, >

Re: [PATCH v14 4/8] bootm: Support boot measurement

2023-10-25 Thread Ilias Apalodimas
On Wed, 25 Oct 2023 at 16:08, Heinrich Schuchardt wrote: > > On 24.10.23 17:43, Eddie James wrote: > > Add a configuration option to measure the boot through the bootm > > function. Add the measurement state to the booti and bootz paths > > as well. > > > > Signed-off-by: Eddie James > >

Re: [PATCH 0/8] arm: mach-snapdragon: Qualcomm clock driver cleanup

2023-10-25 Thread Sumit Garg
On Wed, 25 Oct 2023 at 18:17, Caleb Connolly wrote: > > Hi Sumit, > > On 25/10/2023 13:10, Sumit Garg wrote: > > Hi Caleb, > > > > On Wed, 25 Oct 2023 at 01:54, Caleb Connolly > > wrote: > >> > >> This series begins making some headway towards cleaning up Qualcomm > >> platform support in

Re: [PATCH v14 4/8] bootm: Support boot measurement

2023-10-25 Thread Heinrich Schuchardt
On 24.10.23 17:43, Eddie James wrote: Add a configuration option to measure the boot through the bootm function. Add the measurement state to the booti and bootz paths as well. Signed-off-by: Eddie James Reviewed-by: Simon Glass --- Changes since v8: - Added a configuration option to select

Re: [PATCH 0/8] arm: mach-snapdragon: Qualcomm clock driver cleanup

2023-10-25 Thread Caleb Connolly
Hi Sumit, On 25/10/2023 13:10, Sumit Garg wrote: > Hi Caleb, > > On Wed, 25 Oct 2023 at 01:54, Caleb Connolly > wrote: >> >> This series begins making some headway towards cleaning up Qualcomm >> platform support in u-boot. The following is a rough overview of the >> changes: >> >> * Move the

Re: [REGRESSION] imx: spl_imx_romapi: boot loops

2023-10-25 Thread Marcel Ziswiler
Hi Fabio Thanks! On Wed, 2023-10-25 at 09:20 -0300, Fabio Estevam wrote: > Hi Marcel, > > On Tue, Oct 24, 2023 at 10:16 AM Marcel Ziswiler > wrote: > > > Yes, regular eMMC boot. Serial download also works for me (note this > > requires a patch still not merged > > upstream > > I tried the

Re: [PATCH v14 4/8] bootm: Support boot measurement

2023-10-25 Thread Ilias Apalodimas
On Tue, 24 Oct 2023 at 18:44, Eddie James wrote: > > Add a configuration option to measure the boot through the bootm > function. Add the measurement state to the booti and bootz paths > as well. > > Signed-off-by: Eddie James > Reviewed-by: Simon Glass > --- > Changes since v8: > - Added a

Re: [PATCH v14 0/8] tpm: Support boot measurements

2023-10-25 Thread Ilias Apalodimas
Thnaks Eddie, This works properly on EFI as well On Tue, 24 Oct 2023 at 18:44, Eddie James wrote: > > This series adds support for measuring the boot images more generically > than the existing EFI support. Several EFI functions have been moved to > the TPM layer. The series includes optional

Re: [PATCH v14 6/8] doc: Add measured boot documentation

2023-10-25 Thread Ilias Apalodimas
On Tue, 24 Oct 2023 at 18:44, Eddie James wrote: > > Briefly describe the feature and specify the requirements. > > Signed-off-by: Eddie James > Reviewed-by: Simon Glass > --- > Changes since v12: > - Add a bit of detail about OS usage and what pieces are measured > > doc/usage/index.rst

Re: [PATCH] Kconfig: Remove all default n/no options

2023-10-25 Thread Svyatoslav Ryhel
ср, 25 жовт. 2023 р. о 10:25 Michal Simek пише: > > Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all > default n/no options") and again sync is required. > > default n/no doesn't need to be specified. It is default option anyway. > > Signed-off-by: Michal Simek > --- > >

[PATCH v2] misc: i2c_eeprom: consider pagesize when writing to eeprom

2023-10-25 Thread Michel Alex
Calculate the maximum length of the buffer when writing across the page boundary. If the buffer length (len) exceeds the page boundary (pagesize), split it. Use this length instead of comparing the length with the pagesize, because if the write start address (offset) is not at the beginning of a

[PATCH] Kconfig: Remove all default n/no options

2023-10-25 Thread Michal Simek
Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all default n/no options") and again sync is required. default n/no doesn't need to be specified. It is default option anyway. Signed-off-by: Michal Simek --- arch/arm/mach-imx/mxs/Kconfig | 2 --

Re: [REGRESSION] imx: spl_imx_romapi: boot loops

2023-10-25 Thread Fabio Estevam
Hi Marcel, On Tue, Oct 24, 2023 at 10:16 AM Marcel Ziswiler wrote: > Yes, regular eMMC boot. Serial download also works for me (note this requires > a patch still not merged upstream I tried the top of tree U-Boot on the imx8mp-evk and I was not able to reproduce the error here. Below is the

Re: [PATCH v5 2/3] dt-bindings: mtd: binman-partition: Add binman compatibles

2023-10-25 Thread Rob Herring
On Wed, 25 Oct 2023 10:39:17 +1300, Simon Glass wrote: > Add two compatible for binman entries, as a starting point for the > schema. > > Note that, after discussion on v2, we decided to keep the existing > meaning of label so as not to require changes to existing userspace > software when

Re: [PATCH 0/8] arm: mach-snapdragon: Qualcomm clock driver cleanup

2023-10-25 Thread Sumit Garg
Hi Caleb, On Wed, 25 Oct 2023 at 01:54, Caleb Connolly wrote: > > This series begins making some headway towards cleaning up Qualcomm > platform support in u-boot. The following is a rough overview of the > changes: > > * Move the Qualcomm clock drivers out of mach-snapdragon and into clk/qcom >

Re: [PATCH] rockchip: ringneck-px30: enable i2c command

2023-10-25 Thread Heiko Stübner
Am Mittwoch, 25. Oktober 2023, 13:17:12 CEST schrieb Quentin Schulz: > From: Quentin Schulz > > This is a useful tool to check the presence of a device on a specific > i2c bus, so let's enable it. > > Cc: Quentin Schulz > Signed-off-by: Quentin Schulz Reviewed-by: Heiko Stuebner

[PATCH] rockchip: ringneck-px30: enable i2c command

2023-10-25 Thread Quentin Schulz
is not set # CONFIG_CMD_LOADS is not set CONFIG_CMD_MMC=y --- base-commit: 351da15f71e3d70dbc63e90781b403415452d864 change-id: 20231025-ringneck-i2c-cmd-6417b86bc9a8 Best regards, -- Quentin Schulz

Re: [PATCH 2/4] arm: dts: Add support for AM62x LP SK

2023-10-25 Thread Nitin Yadav
Hi Nishanth, On 27/09/23 17:22, Nishanth Menon wrote: > On 13:51-20230927, Nitin Yadav wrote: >> The AM62x LP SK board is similar to the AM62x SK board, >> but has some significant changes that requires different >> device tree. >> >> The differences are mainly: >> - AM62x SoC in the AMC package

Re: [PATCH 2/2] rockchip: ringneck-px30: enable SPL_BOARD_INIT

2023-10-25 Thread Heiko Stübner
Am Mittwoch, 25. Oktober 2023, 11:51:15 CEST schrieb Quentin Schulz: > From: Quentin Schulz > > Now that Ringneck requires some board-specific code (namely resetting > the MCU companion controller) to be run during SPL stage, let's enable > SPL_BOARD_INIT. > > Cc: Quentin Schulz >

Re: [PATCH 1/2] rockchip: ringneck-px30: always reset STM32 companion controller on boot

2023-10-25 Thread Heiko Stübner
Hi Quentin, Am Mittwoch, 25. Oktober 2023, 11:51:14 CEST schrieb Quentin Schulz: > From: Quentin Schulz > > It's happened that glitches on the STM32_RST and STM32_BOOT lines have > put the STM32 companion microcontroller into DFU mode making it not boot > its FW, rendering it useless for the

[PATCH 2/2] rockchip: ringneck-px30: enable SPL_BOARD_INIT

2023-10-25 Thread Quentin Schulz
From: Quentin Schulz Now that Ringneck requires some board-specific code (namely resetting the MCU companion controller) to be run during SPL stage, let's enable SPL_BOARD_INIT. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- configs/ringneck-px30_defconfig | 1 + 1 file changed, 1

[PATCH 1/2] rockchip: ringneck-px30: always reset STM32 companion controller on boot

2023-10-25 Thread Quentin Schulz
From: Quentin Schulz It's happened that glitches on the STM32_RST and STM32_BOOT lines have put the STM32 companion microcontroller into DFU mode making it not boot its FW, rendering it useless for the user. Considering that the STM32 companion microcontroller is always reset on a reboot or

  1   2   >