Re: [PATCH 2/2] tpm: get tpm event log from bloblist

2024-12-14 Thread Ilias Apalodimas
On Sat, 14 Dec 2024 at 00:56, Raymond Mao wrote: > > Get tpm event log from bloblist instead of FDT when bloblist is > enabled and valid from previous boot stage. > > Note: > This patch depends on: > [PATCH 1/2] bloblist: Introduce BLOBLIST_PRIOR_STAGE options > https://lore.kernel.org/u-boot/2024

Re: [PATCH 1/2] bloblist: add api to get blob with size

2024-12-14 Thread Ilias Apalodimas
On Sat, 14 Dec 2024 at 00:55, Raymond Mao wrote: > > bloblist_find function only returns the pointer of blob data, > which is fine for those self-describing data like FDT. > But as a common scenario, an interface is needed to retrieve both > the pointer and the size of the blob data. > > Signed-of

Re: [PATCH v2 1/3] trace: add support for 'trace wipe'

2024-12-14 Thread Ilias Apalodimas
On Fri, 13 Dec 2024 at 14:46, Jerome Forissier wrote: > > Implement a 'trace wipe' command to delete the currently accumulated > trace data. This comes handy when someone needs to trace a particular > command. For example: > > => trace pause; trace wipe > => trace resume; dhcp; trace pause >

[PATCH v8 2/2] doc: spacemit: bananapi_f3: document Banana Pi F3 board

2024-12-14 Thread Huan Zhou
From: Kongyang Liu Add document for Banana Pi F3 board which based on SpacemiT's K1 SoC. Signed-off-by: Kongyang Liu Signed-off-by: Huan Zhou Tested-by: Marcel Ziswiler Reviewed-by: Yixun Lan --- doc/board/index.rst| 1 + doc/board/spacemit/bananapi-f3.rst | 106 ++

[PATCH v8 1/2] riscv: spacemit: bananapi_f3: initial support added

2024-12-14 Thread Huan Zhou
From: Kongyang Liu Add basic support for SpacemiT's Banana Pi F3 board. Update the k1.dtsi align with mainline. Note that the device tree files follow the mainline Linux source[1]. Links: https://patches.linaro.org/project/linux-serial/patch/20240730-k1-01-basic-dt-v5-8-98263aae8...@gentoo.org/

[PATCH v8 0/2] riscv: spacemit: add support for bananapi-f3

2024-12-14 Thread Huan Zhou
introduces fundamental support for the Banana Pi F3 board, encompassing UART, CPU, and PLIC support. This ensures that U-Boot can operate in serial console mode. Changes in v8: - Rename spacemit to SpacemiT in doc. - Update doc. - Link to v7: https://lore.kernel.org/r/20241214-pickup-bpif3-v7-0

Re: [PATCH v7 2/2] doc: spacemit: bananapi_f3: document Banana Pi F3 board

2024-12-14 Thread Huan Zhou
On Sat, Dec 14, 2024 at 10:31:40PM +0100, Heinrich Schuchardt wrote: > Am 14. Dezember 2024 08:30:22 MEZ schrieb Huan Zhou : > >From: Kongyang Liu > > > >Add document for Banana Pi F3 board which based on SpacemiT's K1 SoC. > > > >Signed-off-by: Kongyang Liu > >Signed-off-by: Huan Zhou > >Tested

Pull request doc-2025-01-rc5

2024-12-14 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 88bd5701efdc48048e030d91c2633048f0f753a0: Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-usb (2024-12-12 09:50:25 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git

Re: [PATCH 0/2] scripts/spelling.txt: add GPL-2.0+

2024-12-14 Thread Heinrich Schuchardt
On 12/15/24 03:37, Heinrich Schuchardt wrote: The correct SPDX identifier for the 'GNU General Public License v2.0 or later' is GPL-2.0-or-later. Checkpatch.pl uses the misspelled words from spelling.txt both as keys of a hash and as part of a regular expression. For usage in the regular express

[PATCH 1/2] scripts/checkpatch.pl: allow special characters in spelling.txt

2024-12-14 Thread Heinrich Schuchardt
Checkpatch.pl uses the misspelled words from spelling.txt both as keys of a hash and as part of a regular expression. For usage in the regular expression special characters like the plus sign need to be escaped. Escape special characters in the list of misspelled words. Signed-off-by: Heinrich Sc

[PATCH 2/2] scripts/spelling.txt: add GPL-2.0+

2024-12-14 Thread Heinrich Schuchardt
The correct SPDX identifier for the 'GNU General Public License v2.0 or later' is GPL-2.0-or-later. Link: https://spdx.org/licenses/GPL-2.0-or-later.html Signed-off-by: Heinrich Schuchardt --- scripts/spelling.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/spelling.txt b/scripts

[PATCH 0/2] scripts/spelling.txt: add GPL-2.0+

2024-12-14 Thread Heinrich Schuchardt
The correct SPDX identifier for the 'GNU General Public License v2.0 or later' is GPL-2.0-or-later. Checkpatch.pl uses the misspelled words from spelling.txt both as keys of a hash and as part of a regular expression. For usage in the regular expression special characters like the plus sign need t

Re: [PATCH v3 5/5] rockchip: Add support for Radxa ROCK 5C

2024-12-14 Thread FUKAUMI Naoki
Hi Quentin, Thank you very much for your review! On 12/13/24 22:11, Quentin Schulz wrote: Hi Naoki, On 12/11/24 4:39 AM, FUKAUMI Naoki wrote: Radxa ROCK 5C[1] is a Rockchip RK3588S2 based single board computer. [1] https://radxa.com/products/rock5/5c Signed-off-by: FUKAUMI Naoki --- Change

Re: [PATCH] board: freescale: Replace invalid usage of sprintf by strcat

2024-12-14 Thread Peng Fan
On Wed, Jul 10, 2024 at 11:37:35PM +0200, Francois Berder wrote: >buf was used as destination and as parameter to sprintf >which triggers an undefined behaviour. >This commit removes this usage of sprintf and uses strcat >to append strings to buf variable. > >Signed-off-by: Francois Berder Review

Re: [PATCH 0/5] board: sl28: various fixes

2024-12-14 Thread Peng Fan (OSS)
From: Peng Fan On Fri, 13 Dec 2024 11:23:16 +0100, Michael Walle wrote: > Give the sl28 board some love and fix various issues. Most of them > were due to the transition to the upstream device trees. > > Michael Walle (5): > board: sl28: fix linking with disabled watchdog > board: sl28: inc

Re: [PATCH] configs: ls1028a: Fix bootefi issue on Layerscape ls1028ardb platform

2024-12-14 Thread Peng Fan (OSS)
From: Peng Fan On Sun, 13 Oct 2024 15:24:35 +0800, Wei Ming Chen wrote: > Without this patch, there will be error indicating that > "Cannot use 64 bit addresses with SDMA", and the booting > process will stuck. > > please see full boot log below > > U-Boot 2022.04-g18185931 (Sep 11 2024 - 13:1

Re: [PATCH] board: freescale: Replace invalid usage of sprintf by strcat

2024-12-14 Thread Peng Fan (OSS)
From: Peng Fan On Wed, 10 Jul 2024 23:37:35 +0200, Francois Berder wrote: > buf was used as destination and as parameter to sprintf > which triggers an undefined behaviour. > This commit removes this usage of sprintf and uses strcat > to append strings to buf variable. > > Applied, thanks! [

Re: [PATCH] FSL DDR: Errata A009942 clears board cpo_sample

2024-12-14 Thread Peng Fan
Joakim, On Thu, Sep 19, 2024 at 04:00:16PM +0200, Joakim Tjernlund wrote: >LSB in debug_28 register is cleared here so >previous setting by errata A009942 is lost. >Save and restore LSB in debug_28 > >Signed-off-by: Joakim Tjernlund >--- > drivers/ddr/fsl/fsl_ddr_gen4.c | 4 > 1 file changed,

Re: [PATCH] arm: imx: Remove arch_env_get_location to fix env lockdown

2024-12-14 Thread Peng Fan
s/imx/layerscape/ On Thu, Nov 07, 2024 at 01:50:44PM +0100, Abdelrahman Ibrahem wrote: >This patch resolves an issue encountered with Layerscape SoCs, where >attempts to restrict write access to environment variables to enforce >secureboot are ineffective when using the CONFIG_ENV_IS_NOWHERE >conf

[PATCH] pinctrl: renesas: Convert to IS_ENABLED() macro

2024-12-14 Thread Marek Vasut
Use the IS_ENABLED() macro to reduce amount of #ifdef use in the driver and improve code coverage. With IS_ENABLED() macro, the code is compiled and then optimized out, which prevents bitrot. In case no PFC table matches the SoC in use, do not probe the driver and instead exit with -ENODEV. This s

[PATCH] arm64: dts: renesas: Deduplicate extalr_clk bootph-all

2024-12-14 Thread Marek Vasut
Most R-Car Gen3 and Gen4 systems require extalr_clk very early in the boot process. Currently the extalr_clk { bootph-all } DT property to indicate this clock should be available early is set in each SoC U-Boot DT extras file. Deduplicate this assignment to new common r8a779x-rcar64-u-boot.dtsi fil

[PATCH] arm64: dts: renesas: Drop OF_UPSTREAM conversion remnant

2024-12-14 Thread Marek Vasut
This DTC_FLAGS assignment is no longer necessary as all R-Car Gen2/Gen3/Gen4 platforms have been converted to OF_UPSTREAM and matching DTC_FLAGS assignment is present in dts/upstream/src/arm64/Makefile . Drop the remnant. Signed-off-by: Marek Vasut --- Cc: Nobuhiro Iwamatsu Cc: Paul Barker Cc:

[PATCH] arm64: renesas: Align configuration headers

2024-12-14 Thread Marek Vasut
Align R-Car Gen2/Gen3/Gen4 configuration header file to look basically the same way across these three SoC generations. There are subtle difference between the remaining bits in those files across SoC generations, but the common bits are now aligned. There is not much left in those headers either,

[PATCH 3/3] arm64: renesas: Convert boards over to is_cortex_a() functions

2024-12-14 Thread Marek Vasut
Use generic is_cortex_a() functions instead of open-coded midr_el1 read. No functional change. Signed-off-by: Marek Vasut --- Cc: Biju Das Cc: Chris Paterson Cc: Lad Prabhakar Cc: Nobuhiro Iwamatsu Cc: Paul Barker Cc: Tom Rini Cc: u-boot@lists.denx.de --- board/hoperun/hihope-rzg2/hihope-r

[PATCH 1/3] arm64: Convert core type check macros into inline functions

2024-12-14 Thread Marek Vasut
Turn the core type check macros into inline functions to perform better type checking on them. The inline functions get optimized out in case they are not used. Indent the MIDR_PARTNUM_CORTEX_An macros in preparation for addition of future three-digit cores and use MIDR_PARTNUM_SHIFT in MIDR_PARTNU

[PATCH 2/3] arm64: Add MIDR entries for Cortex-A57 and Cortex-A76

2024-12-14 Thread Marek Vasut
Add MIDR entries for Cortex-A57 and Cortex-A76 cores. Those are used on R-Car Gen3 and Gen4 SoCs respectively. Signed-off-by: Marek Vasut --- Cc: Biju Das Cc: Chris Paterson Cc: Lad Prabhakar Cc: Nobuhiro Iwamatsu Cc: Paul Barker Cc: Tom Rini Cc: u-boot@lists.denx.de --- arch/arm/include/a

Re: [PATCH] doc: cosmetic: fwu_updates: Fix formatting

2024-12-14 Thread Heinrich Schuchardt
Am 13. Dezember 2024 11:20:24 MEZ schrieb Leonard Anderweit : >Remove one of the double colon so ..code-block is used for formatting. > >Signed-off-by: Leonard Anderweit Reviewed-by: Heinrich Schuchardt >--- > doc/develop/uefi/fwu_updates.rst | 4 ++-- > 1 file changed, 2 insertions(+), 2 delet

Re: [PATCH v7 2/2] doc: spacemit: bananapi_f3: document Banana Pi F3 board

2024-12-14 Thread Heinrich Schuchardt
Am 14. Dezember 2024 08:30:22 MEZ schrieb Huan Zhou : >From: Kongyang Liu > >Add document for Banana Pi F3 board which based on SpacemiT's K1 SoC. > >Signed-off-by: Kongyang Liu >Signed-off-by: Huan Zhou >Tested-by: Marcel Ziswiler >Reviewed-by: Yixun Lan >--- > doc/board/index.rst

Re: [PATCH 5/5] gitlab: Add a StarFive VisionFive2 to the sjg lab

2024-12-14 Thread Heinrich Schuchardt
Am 14. Dezember 2024 19:20:24 MEZ schrieb Simon Glass : >I have one of these boards loaded with Ubuntu 24.10 (64-bit). Add an >entry for it so that it can be used for testing. > >Signed-off-by: Simon Glass >--- > > .gitlab-ci.yml | 5 + > 1 file changed, 5 insertions(+) > >diff --git a/.gitlab-

[PATCH 3/5] buildman: Drop unused OUTPUT_FILE constant

2024-12-14 Thread Simon Glass
This is not actually used but its presence suggests that it is the filename for the board database. Drop it to avoid confusion. Signed-off-by: Simon Glass --- tools/buildman/boards.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/buildman/boards.py b/tools/buildman/boards.py index 9e

[PATCH 5/5] gitlab: Add a StarFive VisionFive2 to the sjg lab

2024-12-14 Thread Simon Glass
I have one of these boards loaded with Ubuntu 24.10 (64-bit). Add an entry for it so that it can be used for testing. Signed-off-by: Simon Glass --- .gitlab-ci.yml | 5 + 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f379c11a1ba..33ec4b2e417 100644 ---

[PATCH 4/5] buildman: Record an error if a toolchain is missing

2024-12-14 Thread Simon Glass
Buildman has always treated the lack of a toolchain as an infrastructure problem rather than a build failure. However the logic for this is not correct, since it does not write a 'done' file in this case. As a result, one of two things can happen. 1. If a previous build ran in the same (output)

[PATCH 2/5] test/py: Handle u-boot-test-getrole failure

2024-12-14 Thread Simon Glass
This script can fail if there is no toolchain available for the board. At present this is not handled very nicely, in that only the error output is reported. It is much more useful to see everything, so combine stdout and stderr and report them both. Signed-off-by: Simon Glass --- test/py/conft

[PATCH 0/5] gitlab: Fixes to get StarFive VisionFive2 into the sjg lab

2024-12-14 Thread Simon Glass
This board fought valiantly against attempts to add it to my lab. After several hours of debugging, I found problems in the Labgrid integration (not included here), test.py and buildman This series fixes these and the board now seems to be reliable enough. Note that the board fails test_dm_compat

[PATCH 1/5] test/py: Provide the correct U_BOOT_SOURCE_DIR to getrole

2024-12-14 Thread Simon Glass
The u-boot-test-getrole script runs before the normal environment variables have been set up. This is unavoidable since the script is providing necessary information to test.py This means that U_BOOT_SOURCE_DIR is not set in the environment. As a result, Labgrid uses its default source path, conf

Re: [PATCH v3] toradex: tdx-cfg-block: rework modules pid4 handling

2024-12-14 Thread Tom Rini
On Mon, Nov 25, 2024 at 05:49:10PM +, Vitor Soares wrote: > From: Vitor Soares > > The module pid4 currently corresponds to the index of the toradex_module > array. If a new pid4 is introduced that does not follow the sequence of > the previous entries, it will create a gap in the array. >

Re: [PATCH v2] arm: mach-k3: am62a7: Provide a way to obtain boot device for non SPLs

2024-12-14 Thread Tom Rini
On Thu, 31 Oct 2024 09:21:03 -0700, Garrett Giordano wrote: > Introduce get_boot_device() to obtain the booting device. Make it also > available for non SPL builds so u-boot can also know the device it > is booting from. > > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH v2 0/2] Add phyCORE AM62Ax

2024-12-14 Thread Tom Rini
On Mon, 18 Nov 2024 15:16:04 -0800, Garrett Giordano wrote: > This patch set adds the phyCORE AM62Ax board support and documenation to > u-boot. > > The phyCORE-AM62Ax is a SoM (System on Module) featuring TI's AM62Ax SoC. It > can > be used in combination with different carrier boards. This mod

Re: [PATCH] watchdog: rti: support SPL (or re-start)

2024-12-14 Thread Stefan Roese
Hi Alexander, On 10.12.24 13:45, Sverdlin, Alexander wrote: Hi Stefan! On Fri, 2024-11-08 at 22:15 +0100, A. Sverdlin wrote: From: Alexander Sverdlin If the RTI watchdog has been enabled in SPL, enabling it in U-Boot proper fails because it can only be enabled once in HW and never stopped. T

Re: [PATCH 1/3] sunxi: board: simplify early PMIC setup conditions

2024-12-14 Thread Leon Anavi
Hi Andre, On 14.12.24 г. 4:19 ч., Andre Przywara wrote: On Thu, 12 Dec 2024 11:19:06 +0200 Leon Anavi wrote: Hi Leon, On 11.12.24 г. 23:53 ч., Andre Przywara wrote: On Mon, 9 Dec 2024 23:08:19 +0200 Leon Anavi wrote: Hi Leon, thanks for the report! Commit ffb0294 from 12 November 2023