Re: [PATCH v3 0/4] tpm: Start to tidy up TPM tests

2025-05-25 Thread Simon Glass
Hi Ilias, On Sat, 24 May 2025 at 15:23, Tom Rini wrote: > > On Sat, May 24, 2025 at 07:06:33AM -0600, Simon Glass wrote: > > > This series is a starting point only. It tries to provide some direction > > for how the TPM tests should be run on real hardware and on sandbox. > > > > For sandbox, thi

Re: [GIT PULL] u-boot-riscv/master

2025-05-25 Thread Mayuresh Chitale
On Thu, May 22, 2025 at 10:11 PM Yao Zi wrote: > > On Thu, May 22, 2025 at 12:28:18PM +0100, Conor Dooley wrote: > > On Wed, May 21, 2025 at 12:39:50PM -0600, Tom Rini wrote: > > > On Wed, 21 May 2025 17:50:03 +0800, Leo Liang wrote: > > > > > > > The following changes since commit > > > > a3e09b

Re: [PATCH 0/4] list.h/treewide: get rid of no-op prefetch()

2025-05-25 Thread Tom Rini
On Sun, May 25, 2025 at 10:07:56PM +0200, Rasmus Villemoes wrote: > On Thu, May 22 2025, Tom Rini wrote: > > > On Wed, May 07, 2025 at 02:12:42PM +0200, Rasmus Villemoes wrote: > > > >> While looking through list.h, I saw that the regular list_* helpers > >> (and one of the hlist_* ones) still co

[PULL] u-boot-usb/master

2025-05-25 Thread Marek Vasut
The following changes since commit df2ed552f0b05591090369a7fe7ddc92439dea5c: ext4fs: Fix: Read outside partition error (2025-05-23 10:42:49 -0600) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you to fetch changes up to 831a38483cf21b395bb0d9d7a34fb9

Re: Broken boards?

2025-05-25 Thread Tom Rini
On Sun, May 25, 2025 at 07:05:52PM +0100, Simon Glass wrote: > Hi Tom, > > On Sun, 25 May 2025 at 14:55, Tom Rini wrote: > > > > On Sun, May 25, 2025 at 09:46:03AM +0100, Simon Glass wrote: > > > > > Hi Tom, > > > > > > It seems that some of the boards in my lab are broken in your tree. > > > Hav

Re: [PATCH 0/4] list.h/treewide: get rid of no-op prefetch()

2025-05-25 Thread Rasmus Villemoes
On Thu, May 22 2025, Tom Rini wrote: > On Wed, May 07, 2025 at 02:12:42PM +0200, Rasmus Villemoes wrote: > >> While looking through list.h, I saw that the regular list_* helpers >> (and one of the hlist_* ones) still contain the prefetch() that was >> removed in linux 14 years ago. It doesn't do

Re: Broken boards?

2025-05-25 Thread Jonas Karlman
Hi Simon, On 2025-05-25 20:05, Simon Glass wrote: > Hi Tom, > > On Sun, 25 May 2025 at 14:55, Tom Rini wrote: >> >> On Sun, May 25, 2025 at 09:46:03AM +0100, Simon Glass wrote: >> >>> Hi Tom, >>> >>> It seems that some of the boards in my lab are broken in your tree. >>> Have you noticed that? >

Re: Pull request efi-2025-07-rc3-3

2025-05-25 Thread Tom Rini
On Sun, 25 May 2025 12:52:59 +0200, Heinrich Schuchardt wrote: > The following changes since commit df2ed552f0b05591090369a7fe7ddc92439dea5c: > >ext4fs: Fix: Read outside partition error (2025-05-23 10:42:49 -0600) > > are available in the Git repository at: > >https://source.denx.de/u-

Re: [PATCH 1/1] boot: BOOTMETH_DISTRO should select BOOTMETH_EFI_BOOTMGR

2025-05-25 Thread Simon Glass
Hi Heinrich, On Wed, 23 Apr 2025 at 14:02, Heinrich Schuchardt wrote: > > On 23.04.25 14:28, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 21 Apr 2025 at 03:43, Heinrich Schuchardt > > wrote: > >> > >> Distros expect the EFI boot manager to run. It falls back to launching > >> EFI\BOOT\BOO

Re: [PATCH v4 15/25] rockchip: rk3399: Adjust initial TPL-stack to match SPL

2025-05-25 Thread Simon Glass
Hi Jonas, On Sun, 25 May 2025 at 20:25, Jonas Karlman wrote: > > Hi Simon, > > On 2025-05-25 12:47, Simon Glass wrote: > > There doesn't seem to be a good reason to use a different value for TPL > > than SPL. Change the TPL value, since it allows a 256-byte bloblist to > > be safely located above

Re: [PATCH v4 24/25] rockchip: Relocate bloblist at the end of the SPL phase

2025-05-25 Thread Jonas Karlman
Hi Simon, On 2025-05-25 12:48, Simon Glass wrote: > Where the bloblist is located in internal memory and TF-A's BL31 blob > removes access to this memory, the best option seems to be to relocate > the bloblist just before running TF-A. > > Do this at the end of SPL. > > Signed-off-by: Simon Glas

Re: [PATCH v4 14/25] rockchip: Add symbols for spl_reloc

2025-05-25 Thread Jonas Karlman
Hi Simon, On 2025-05-25 12:47, Simon Glass wrote: > Add various symbols so that this feature works as intended. This allows > xPL to copy the relocating-jump code up to the top of memory, then use > it to decompress and start the next phase. > > Signed-off-by: Simon Glass > --- > > (no changes

Re: [PATCH v4 15/25] rockchip: rk3399: Adjust initial TPL-stack to match SPL

2025-05-25 Thread Jonas Karlman
Hi Simon, On 2025-05-25 12:47, Simon Glass wrote: > There doesn't seem to be a good reason to use a different value for TPL > than SPL. Change the TPL value, since it allows a 256-byte bloblist to > be safely located above the stack in all phases. As mentioned for prior versions of this, this com

Re: [PATCH v4 13/25] rockchip: Provide a VPL phase on rk3399

2025-05-25 Thread Jonas Karlman
Hi Simon, On 2025-05-25 12:47, Simon Glass wrote: > Add support for this new phase, which runs after TPL. It determines the > state of the machine, then selects which SPL image to use. Please mention that this new VPL phase is related to VBE. > SDRAM init is > then done in SPL, so that it is up

Re: [PATCH v4 11/25] rockchip: Add TPL alternatives

2025-05-25 Thread Jonas Karlman
Hi Simon, On 2025-05-25 12:47, Simon Glass wrote: > The TPL image must be built for each board we need to support. It is the > only part of the image which is board-specific. This is most likely only a must for VBE/VPL use, make it clear that these changes are related to VBE/VPL in the commit mes

u-boot sti7xxx

2025-05-25 Thread lappy singh
hello friend, i want help for u-boot sti7111 thanks-regards

Re: [PATCH v4 05/25] rockchip: dts: Add an fdtmap

2025-05-25 Thread Jonas Karlman
Hi Simon, On 2025-05-25 12:47, Simon Glass wrote: > Add an fdtmap so it is possible to look at the image with 'binman ls'. > > Signed-off-by: Simon Glass > Reviewed-by: Jonas Karlman > --- > > (no changes since v3) > > Changes in v3: > - Add blank lines before the node > > arch/arm/dts/rock

Re: QEMU & KVM broken for arm64

2025-05-25 Thread Simon Glass
HI Ilias, On Wed, 21 May 2025 at 10:08, Ilias Apalodimas wrote: > > Hi all, > > Starting from commit 53d5a221632e ("emulation: Use bloblist to hold > tables") I can't boot U-Boot with QEMU (version 8.2.2) & KVM anymore. > The command line to reproduce it is: > qemu-system-aarch64 -smp 2 -nograph

Re: Broken boards?

2025-05-25 Thread Simon Glass
Hi Tom, On Sun, 25 May 2025 at 14:55, Tom Rini wrote: > > On Sun, May 25, 2025 at 09:46:03AM +0100, Simon Glass wrote: > > > Hi Tom, > > > > It seems that some of the boards in my lab are broken in your tree. > > Have you noticed that? > > Your lab has never fully functioned in mainline, so no I'

Re: [PATCH v2 0/5] Create FPGA Partial Reconfiguration (fpga pr) command

2025-05-25 Thread Simon Glass
Hi Naresh, On Sat, 24 May 2025 at 21:37, Naresh Kumar Ravulapalli wrote: > > Partial Reconfiguration (pr) FPGA command is added to U-Boot console. > The "fpga pr" command supports multiple regions for partial > reconfiguration by specifying the region number. The implementation > of the command i

Re: [PATCH] rockchip: rk3328: Fix Synchronous Abort on usb start

2025-05-25 Thread Alex Shumsky
Oops, I forgot Reply-All and some messages missed list. Sorry about that. Jonas and I have found NULL pointer dereference in rockchip_usb2phy_clkout_ctl: https://github.com/u-boot/u-boot/blob/df2ed552f0b05591090369a7fe7ddc92439dea5c/drivers/phy/rockchip/phy-rockchip-inno-usb2.c#L177 Here rockchip

Re: [PATCH v2] cmd: bootmenu: permit to select bootmenu entry with a shortcut

2025-05-25 Thread Petr Štetiar
Christian Marangi [2025-05-25 15:43:58]: Hi, thanks for the quick fix! > Permit to select a bootmenu entry with a key shortcut. This is > especially useful in production or testing scenario to automate flashing > procedure or testing procedure. > > The boot entry are changed to append the shor

Re: Broken boards?

2025-05-25 Thread Tom Rini
On Sun, May 25, 2025 at 09:46:03AM +0100, Simon Glass wrote: > Hi Tom, > > It seems that some of the boards in my lab are broken in your tree. > Have you noticed that? Your lab has never fully functioned in mainline, so no I've not paid attention to it and don't use it. I figure it's part of the

[PATCH v2] cmd: bootmenu: permit to select bootmenu entry with a shortcut

2025-05-25 Thread Christian Marangi
Permit to select a bootmenu entry with a key shortcut. This is especially useful in production or testing scenario to automate flashing procedure or testing procedure. The boot entry are changed to append the shortcut key to it. Example: 1. Run default boot command. 2. Boot system via

Re: [PATCH 2/3] efi: Include device-path functions in the EFI API docs

2025-05-25 Thread Heinrich Schuchardt
Am 25. Mai 2025 12:52:58 MESZ schrieb Simon Glass : >Hi Heinrich, > >On Sun, 25 May 2025 at 10:18, Heinrich Schuchardt wrote: >> >> On 5/24/25 19:28, Simon Glass wrote: >> > Include these function so they can be browsed in the API docs. Exclude >> > END since it causes a warning, which becomes an

[PATCH] board: rzg2l: Update MAINTAINERS file

2025-05-25 Thread Marek Vasut
Un-orphan the RZ/G2L , keep the RZ/G2L maintained. Signed-off-by: Marek Vasut --- Cc: Nobuhiro Iwamatsu Cc: Paul Barker Cc: Tom Rini Cc: u-boot@lists.denx.de --- board/renesas/rzg2l/MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/renesas/rzg2l/MAINTAINE

Re: [PATCH] board: rzg2l: Drop myself to reviewer for RZ/G2L boards

2025-05-25 Thread Marek Vasut
On 5/19/25 3:32 PM, Paul Barker wrote: I still intend to review patches, and will be using my own email address going forward. Signed-off-by: Paul Barker Applied. Thank you for all your hard work !

Re: [PATCH] cmd: bootmenu: permit to select bootmenu entry with a shortcut

2025-05-25 Thread Christian Marangi
On Sun, May 25, 2025 at 01:02:13PM +, Petr Štetiar wrote: > Christian Marangi [2025-05-25 00:12:52]: > > Hi, > > thanks a lot for your upstreaming efforts! > > > Permit to select a bootmenu entry with a key shortcut. This is > > especially useful in production or testing scenario to aitomat

Re: [PATCH] cmd: bootmenu: permit to select bootmenu entry with a shortcut

2025-05-25 Thread Petr Štetiar
Christian Marangi [2025-05-25 00:12:52]: Hi, thanks a lot for your upstreaming efforts! > Permit to select a bootmenu entry with a key shortcut. This is > especially useful in production or testing scenario to aitomate flashing aitomate -> automate > 0 is always reserved for Exit to console.

[PATCH v4 00/25] VBE serial part H: Implement VBE on Rockchip RK3399

2025-05-25 Thread Simon Glass
This series completes the work to enable VBE on a suitable board. Most of it is rockchip-specific patches to support the VPL phase, i.e. the one which decides which boot patch to take (A, B or recovery). A good chunk of this series is adding an image for VBE, by creating a new Binman image. Future

[PATCH 1/4] clk: imx: add i.MX6UL clk driver

2025-05-25 Thread Michael Trimarchi
Add i.MX6UL clk driver for i.MX6UL CLK driver model usage Signed-off-by: Michael Trimarchi --- drivers/clk/imx/Kconfig | 8 ++ drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx6ul.c | 270 +++ 3 files changed, 279 insertions(+) create mode 100

[PATCH 4/4] configs/imx6ulz_smm_m2_defconfig: Enable clock framework

2025-05-25 Thread Michael Trimarchi
Allow to use clock framework for the m2 platform. This allow to have better performance to nand controller Signed-off-by: Michael Trimarchi --- configs/imx6ulz_smm_m2_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/imx6ulz_smm_m2_defconfig b/configs/imx6ulz_smm_m2_defco

[PATCH 3/4] mtd: nand: Add support for EDO mode 1-5 to IMX6ULL platform

2025-05-25 Thread Michael Trimarchi
The clock driver allow to burst the performance of the nand controller. Make changes to let it use the new clock driver Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/mxs_nand.c| 12 drivers/mtd/nand/raw/mxs_nand_dt.c | 2 +- 2 files changed, 13 insertions(+), 1 del

[PATCH 2/4] mtd: mxs_nand_dt: Move from clk_get/clk_enable to clk_bulk api

2025-05-25 Thread Michael Trimarchi
Make simple the clock registration and enable and allow later to add support for other platforms Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/mxs_nand_dt.c | 48 -- 1 file changed, 5 insertions(+), 43 deletions(-) diff --git a/drivers/mtd/nand/raw/mxs_n

[PATCH] doc: board: ti: Add missing firmware for BB-AI64

2025-05-25 Thread Peter Robinson
The details of the sysfw.itb from the R5 build that also needs to be copied as part of the target images is missing, but is included in the image formats a little further down, so add it to the instructions. Signed-off-by: Peter Robinson --- doc/board/beagle/j721e_beagleboneai64.rst | 1 + 1 fil

Re: [PATCH 3/3] efi: Rename END to EFI_DP_END

2025-05-25 Thread Heinrich Schuchardt
On 5/24/25 19:28, Simon Glass wrote: This exported symbol has a very generic name. Rename it to indicate that it relates to EFI and device-paths. Fix checkpatch warnings related to use of multiple assignments. Signed-off-by: Simon Glass Suggested-by: Heinrich Schuchardt Thank you for fixing

Re: [BUG] buildman fails to build with --in-tree

2025-05-25 Thread Simon Glass
Hi Heinrich, On Sun, 25 May 2025 at 11:51, Heinrich Schuchardt wrote: > > Hello Simon, > > buildman has parameter -i, --in-tree. But building with it fails: > > $ tools/buildman/buildman -i -k qemu-riscv32_spl > Building current source for 1 boards (1 thread, 8 jobs per thread) > riscv32: +

Re: [PATCH 2/3] efi: Include device-path functions in the EFI API docs

2025-05-25 Thread Simon Glass
Hi Heinrich, On Sun, 25 May 2025 at 10:18, Heinrich Schuchardt wrote: > > On 5/24/25 19:28, Simon Glass wrote: > > Include these function so they can be browsed in the API docs. Exclude > > END since it causes a warning, which becomes an error: > > > > ./include/efi_device_path.h:22: warning:

Pull request efi-2025-07-rc3-3

2025-05-25 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit df2ed552f0b05591090369a7fe7ddc92439dea5c: ext4fs: Fix: Read outside partition error (2025-05-23 10:42:49 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2025-07-rc3-3 for you to

[BUG] buildman fails to build with --in-tree

2025-05-25 Thread Heinrich Schuchardt
Hello Simon, buildman has parameter -i, --in-tree. But building with it fails: $ tools/buildman/buildman -i -k qemu-riscv32_spl Building current source for 1 boards (1 thread, 8 jobs per thread) riscv32: + qemu-riscv32_spl +make: *** No rule to make target 'qemu-riscv32_spl_defconfig'. St

[PATCH v4 24/25] rockchip: Relocate bloblist at the end of the SPL phase

2025-05-25 Thread Simon Glass
Where the bloblist is located in internal memory and TF-A's BL31 blob removes access to this memory, the best option seems to be to relocate the bloblist just before running TF-A. Do this at the end of SPL. Signed-off-by: Simon Glass Suggested-by: Raymond Mao --- (no changes since v3) Changes

[PATCH v4 25/25] bloblist: Allow using a different bloblist address

2025-05-25 Thread Simon Glass
Where the bloblist is located in internal memory and TF-A's BL31 blob removes access to this memory, the best option seems to be to relocate the bloblist just before running TF-A. We can do the relocation in board-specific code, but need an option to pick up the correct address within U-Boot prope

[PATCH v4 22/25] rockchip: Update binman image for new skip-at-start setup

2025-05-25 Thread Simon Glass
Now that the skip-at-start feature is properly used in Binman, drop the various workarounds in the image. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Split out the fixes for skip-at-start into a new patch arch/arm/dts/rockchip-vpl-u-boot.dtsi | 7 +++ 1 file chan

[PATCH v4 23/25] bloblist: Temporary hacks to get VBE going

2025-05-25 Thread Simon Glass
Do not apply. The primary issue with the patch is that U-Boot needs to set up a bloblist in the first phase where BLOBLIST is enabled. Subsequent phases can then use that bloblist. But the first phase of U-Boot cannot assume that one exists. While we wait for a final decision on the bloblist imp

[PATCH v4 21/25] vbe: Add a bootmeth driver for abrec

2025-05-25 Thread Simon Glass
Add a VBE-ABrec bootmeth so that the VBE state can be accessed. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add new patch with a bootmeth driver for abrec boot/vbe_abrec.c | 99 1 file changed, 99 insertions(+) diff -

[PATCH v4 17/25] rockchip: Add a generic-ddr3 rk3399 board

2025-05-25 Thread Simon Glass
This build-target is used to build an image which can run on multiple rk3399 boards, using VBE to boot. To use it, the TPL binary for a particular board must be placed into the first part of the image. The rest of the image (i.e. VPL, SPL and U-Boot) are largely generic and can work on any support

[PATCH v4 20/25] rockchip: Set the skip-at-start property correctly

2025-05-25 Thread Simon Glass
The rockchip image is written to the media at block 64, which is a 32K offset, so set the skip-at-start property to 0x8000 Update CONFIG_SPL_PAD_TO to point to the offset in the image, since Binman is dealing with the 'missing' 32K now. Signed-off-by: Simon Glass --- (no changes since v2) Chan

[PATCH v4 19/25] gitlab: Add a VBE board to the sjg lab

2025-05-25 Thread Simon Glass
Add a rockchip rk3399 board which runs Verified Boot for Embedded. Signed-off-by: Simon Glass --- Changes in v4: - Fix 'an' typo in commit subject .gitlab-ci.yml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7aadd5d8b73..cf8147fbfd5 100644 ---

[PATCH v4 18/25] rockchip: Add documentation for VBE

2025-05-25 Thread Simon Glass
Now that VBE is running at a basic level on rk3399, add mention of it in the documentation. Signed-off-by: Simon Glass --- (no changes since v1) doc/board/rockchip/rockchip.rst | 13 + 1 file changed, 13 insertions(+) diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockch

[PATCH 1/1] configs: raise SPL_SYS_MALLOC_SIZE to 8 MiB on RISC-V

2025-05-25 Thread Heinrich Schuchardt
On several RISC-V boards we have seen that 1 MiB is a insufficient value for CONFIG_SPL_SYS_MALLOC_SIZE. For instance qemu-riscv32_spl_defconfig fails booting because u-boot.itb exceeds 1 MiB. 8 MiB is a reasonable value that allows adding FPGA blobs or splash images to main U-boot. Reported-by:

[PATCH v4 16/25] rockchip: Allow SPL to set up SDRAM

2025-05-25 Thread Simon Glass
The current logic assumes that if TPL exists then it must be setting up the SDRAM. This is not true with VBE, so allow this to be controlled by whether CONFIG_TPL_RAM is enabled, or not. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/mach-rockchip/tpl.c | 10 ++ 1 file c

[PATCH v4 15/25] rockchip: rk3399: Adjust initial TPL-stack to match SPL

2025-05-25 Thread Simon Glass
There doesn't seem to be a good reason to use a different value for TPL than SPL. Change the TPL value, since it allows a 256-byte bloblist to be safely located above the stack in all phases. Note that for most boards, SDRAM init happens in TPL so the SPL stack ends up in DRAM, at address CONFIG_S

[PATCH v4 13/25] rockchip: Provide a VPL phase on rk3399

2025-05-25 Thread Simon Glass
Add support for this new phase, which runs after TPL. It determines the state of the machine, then selects which SPL image to use. SDRAM init is then done in SPL, so that it is updatable. Signed-off-by: Simon Glass --- Changes in v4: - Add a value for SPL_STACK_R_ADDR Changes in v2: - Rewrite h

[PATCH v4 11/25] rockchip: Add TPL alternatives

2025-05-25 Thread Simon Glass
The TPL image must be built for each board we need to support. It is the only part of the image which is board-specific. This helps to save space and reduce the size of TPL, so that it can fit within the internal 192K IRAM of the RK3399 SoC. As with other phases, the TPL devicetree is run through

[PATCH v4 12/25] rockchip: Update rk3399 bootph-tags for VPL

2025-05-25 Thread Simon Glass
When VPL is in use, memory init happens in SPL, so there is no need to include the DMC device before that. Adjust the tags to save space. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Only enable MMC when VPM is in use. arch/arm/dts/rk3399-u-boot.dtsi | 11 ++-

[PATCH v4 10/25] rockchip: Add a VPL image

2025-05-25 Thread Simon Glass
The VPL image is immutable and has a single VPL binary plus a devicetree for each board we need to support. The devicetree is run through fdtgrep to remove unwanted nodes and properties and reduce its size. Signed-off-by: Simon Glass --- Changes in v4: - Use FIT_ARCH instead of ARCH - Use fit_t

[PATCH v4 09/25] rockchip: Add a template for SPL

2025-05-25 Thread Simon Glass
The SPL phase has a single SPL binary plus a devicetree for each board we need to support. The devicetree is run through fdtgrep to remove unwanted nodes and properties and reduce its size. While it would be nicer to just have a single FIT holding both the SPL and U-Boot images, there may not be

[PATCH v4 08/25] rockchip: Add SPL into the main FIT

2025-05-25 Thread Simon Glass
VBE may want to load the SPL image from the same FIT as contains U-Boot, if there is enough memory, so add it. Signed-off-by: Simon Glass --- Changes in v4: - Use FIT_ARCH instead of ARCH Changes in v2: - Move VPL things into a separate file arch/arm/dts/rockchip-vpl-u-boot.dtsi | 29

[PATCH v4 07/25] rockchip: Provide a bootstd configuration

2025-05-25 Thread Simon Glass
Add bootstd information for VBE. Put it in a separate file to avoid cluttering the main one. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add a comment about the offsets Changes in v2: - Move VPL things into a separate file arch/arm/dts/rockchip-u-boot.dtsi | 4

[PATCH v4 04/25] rockchip: Allow RAM init to happen in SPL on rk3399

2025-05-25 Thread Simon Glass
TPL runs before VPL. The earliest updatable phase with VBE is SPL. We want to be able to update the RAM-init code in the field. So when VPL is being used, init the RAM later, in SPL. Signed-off-by: Simon Glass --- (no changes since v1) drivers/ram/rockchip/sdram_rk3399.c | 6 -- 1 file ch

[PATCH v4 06/25] rockchip: dts: Specify the phase in the image

2025-05-25 Thread Simon Glass
Add 'u-boot' as the phase for the images intended for use with U-Boot proper. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/rockchip-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/rockchip-u-boot.dtsi b/arch/arm/dts/rockchip-u-boot.dtsi in

[PATCH v4 05/25] rockchip: dts: Add an fdtmap

2025-05-25 Thread Simon Glass
Add an fdtmap so it is possible to look at the image with 'binman ls'. Signed-off-by: Simon Glass Reviewed-by: Jonas Karlman --- (no changes since v3) Changes in v3: - Add blank lines before the node arch/arm/dts/rockchip-u-boot.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a

[PATCH v4 03/25] vbe: Show the margin when using SPL_RELOC

2025-05-25 Thread Simon Glass
Collect information about the memory-margin in each phase which uses this feature. Update the 'vbe state' command to show it. Signed-off-by: Simon Glass --- (no changes since v1) cmd/vbe.c | 8 ++-- common/spl/spl_reloc.c | 12 include/vbe.h | 3 +++ 3

[PATCH v4 02/25] spl: Allow VBE to handle xPL size

2025-05-25 Thread Simon Glass
When VBE is in use, the size of each phase is obtained by reading it from a FIT. Avoid using binman symbols unless necessary, i.e. in TPL. Signed-off-by: Simon Glass --- (no changes since v1) common/spl/spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/spl/spl.c b/common/spl/s

[PATCH v4 01/25] spl: Adjust xPL symbols

2025-05-25 Thread Simon Glass
Update for the new xPL naming, which was missed in a previous patch which purported to do this. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- (no changes since v1) common/spl/spl_reloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/spl_reloc.c b/common

Re: [PATCH 2/3] efi: Include device-path functions in the EFI API docs

2025-05-25 Thread Heinrich Schuchardt
On 5/24/25 19:28, Simon Glass wrote: Include these function so they can be browsed in the API docs. Exclude END since it causes a warning, which becomes an error: ./include/efi_device_path.h:22: warning: cannot understand function prototype: 'const struct efi_device_path END; ' Signe

Re: [PATCH 1/3] efi_loader: Separate device path into its own header

2025-05-25 Thread Heinrich Schuchardt
On 5/24/25 19:28, Simon Glass wrote: These functions are useful for the EFI app. As a first step towards making these available outside lib/efi_loader, create a separate header file and include it where needed. Add proper comments to the functions, since many are missing at present. Signed-off-b

Broken boards?

2025-05-25 Thread Simon Glass
Hi Tom, It seems that some of the boards in my lab are broken in your tree. Have you noticed that? Regards, Simon

Bloblist request

2025-05-25 Thread Simon Glass
Hi Tom, Bloblist is IMO a bit of a mess, with 2-3 maintainers who don't agree on the direction. You have requested that I: - implement a handoff protocol for x86 in the spec - do the same in the code - convert x86 boards to use OF_BLOBLIST - remove BLOBLIST_FIXED I also want to enable VBE, which