Re: [PATCH] arm64: Fix page permissions for platforms running at EL2

2025-04-04 Thread Simon Glass
Hi Ilias, On Wed, 19 Mar 2025 at 08:22, Ilias Apalodimas wrote: > > We currently set both and print both PXN and UXN bits when removing > execution for pages. This happens even in the existing per platform > definitions of 'struct mm_region'. > > That's not entirely correct though. For stage-1 tr

[PATCH v1 06/11] arch: arm: meson: bootloader write support

2025-04-04 Thread Arseniy Krasnov
BootROM of Amlogic SoCs that use ADNL/Optimus protocols needs special layout of "bootloader" partition. So let's implement functions that support bootloader writing on such SoCs. This is prerequisite for ADNL/Optimus implementation. We place such functions to 'arch/arm/mach-meson', because this co

Re: [PATCH v4 12/14] cmd: add spawn and wait commands

2025-04-04 Thread Jerome Forissier
Hi Mattijs, On 3/31/25 09:54, Mattijs Korpershoek wrote: > Hi Jerome, > > Thank you for the patch. > > On mar., mars 18, 2025 at 11:46, Jerome Forissier > wrote: > > [...] > >> >> obj-$(CONFIG_HUSH_SELECTABLE) += cli.o >> >> +obj-$(CONFIG_CMD_SPAWN) += spawn.o >> + >> obj-$(CONFIG_ARM)

Re: [PATCH 3/3] configs: phycore_am62x_a53_defconfig: Enable gpio

2025-04-04 Thread Mattijs Korpershoek
Hi Daniel, Thank you for the patch. On jeu., mars 27, 2025 at 22:58, Daniel Schultz wrote: > The AM62x uses the DA8XX (DaVinci) GPIO controller. Enable > CONFIG_DA8XX_GPIO to support GPIO access from the Cortex-A53. > > Also enable the 'gpio' command to allow users to interact > with GPIOs from

Re: [PATCH 3/6] test: Add a test for strim()

2025-04-04 Thread Simon Glass
Hi Tom, On Wed, 19 Mar 2025 at 15:24, Tom Rini wrote: > > On Wed, Mar 19, 2025 at 12:59:05PM +0100, Simon Glass wrote: > > > This function trims whitespace from the start and end of a string. Add a > > test for it. > > > > Signed-off-by: Simon Glass > > --- > > > > test/lib/string.c | 31 ++

[PATCH] log: Add helpers for calling log_msg_ret() et al

2025-04-04 Thread Simon Glass
Logging of function return-values is used very frequently in U-Boot now. Add a few helper macros to make it less verbose to use. It turns out that the log_ret() variants are not so useful, since it is not obviously where the error is coming from. So only the log_msg_ret() variants are worthy of th

[PATCH v6 00/12] Add imx8mp video support

2025-04-04 Thread Miquel Raynal
In order to display a boot picture or an error message, the i.MX8MP display pipeline must be enabled. The SoC has support for various interfaces (LVDS, HDMI, DSI). The one supported in this series is the standard 4-lane LVDS output. The minimal setup is thus composed of: * An LCD InterFace (LCDIF)

Re: [PATCH] binman: Fill in most of the imx8mimage and imx8mcst tests

2025-04-04 Thread Fabio Estevam
Hi Leonard, On Mon, Mar 31, 2025 at 11:43 AM Leonard Anderweit wrote: > The error looks like binman is never building the missing tools. > Run something like: > ./tools/binman/binman tool -f missing > before the binman tests. > > This test setup uses .gitlab-ci.yml, right? Yes, I think so. Car

Re: [PATCH 3/3] scsi: sync cache on write

2025-04-04 Thread Caleb Connolly
On 3/25/25 16:18, neil.armstr...@linaro.org wrote: On 25/03/2025 14:49, Caleb Connolly wrote: On 3/25/25 14:33, Neil Armstrong wrote: On 25/03/2025 14:02, Caleb Connolly wrote: We don't have a mechanism to safely shutdown block devices prior to a baord reset or driver removal. Prevent dat

Re: [PATCH v4 1/5] rpi: Add myself to the list of maintainers

2025-04-04 Thread Christopher Obbard
Hi Simon, On Thu, 2024-12-19 at 17:34 -0700, Simon Glass wrote: > Add my own name to the list, since existing maintainers are fairly > busy. > > Signed-off-by: Simon Glass I think it would be useful to have another maintainer here. Of course, my opinion means very little here though ;-). > ---

[PATCH 12/17] bootstd: Tweak scanning with labels

2025-04-04 Thread Simon Glass
The current implementation of labels uses the ordering of the media devices to start its scan but then uses the ordering of the (child) bootdev devices to iterate from then on. This is inconsistent and can miss some bootdevs. Update bootdev_next_label() so that it uses the ordering of the bootdev

Re: [PATCH v5 43/46] acpi: Add a checksum to the DMAR table

2025-04-04 Thread Heinrich Schuchardt
On 15.03.25 15:26, Simon Glass wrote: This table lacks a correct checksum at present, so fix it. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to add a checksum to the DMAR table lib/acpi/acpi_table.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 19/24] clk: clk-divider: Use struct udevice instead of struct device

2025-04-04 Thread Marek Vasut
Use U-Boot specific struct udevice instead of Linux compatibility struct device in clk-divider clock registration. Signed-off-by: Marek Vasut --- Cc: Adam Ford Cc: Christoph Niedermaier Cc: Dong Aisheng Cc: Fabio Estevam Cc: Hou Zhiqiang Cc: Michael Trimarchi Cc: Peng Fan Cc: Tim Harvey C

[PATCH 19/52] expo: Provide access to the current menu item

2025-04-04 Thread Simon Glass
Add functions to allow a caller to find out the current menu item and to select a different one. Update the event handling so that an attempt to change the current item (e.g. by pressing the up-arrow key) is reported to the caller, since this may be used to cancel an autoboot timeout. Signed-off-

Re: [PATCH 00/34] sunxi: clock refactoring and Allwinner A523 support

2025-04-04 Thread Yixun Lan
hi Andre: On 11:35 Sun 23 Mar , Andre Przywara wrote: > This series introduces support for the Allwinner A523 SoC family. The > same die is used in different packages: the A523, A527, T527, and H728: > they connect a different set of peripherals to the pins, or enable extra > goodies like an N

[PATCH 1/1] efi_loader: stop network in EXIT_BOOT_SERVICES

2025-04-04 Thread Heinrich Schuchardt
It has been reported that memory corruption can occurred because network packages where received after EXIT_BOOT_SERVICES. See the thread starting at [1]. We try to remove all drivers when EXIT_BOOT_SERVICES is called. But * Some network drivers don't call their own stop method when removed. * So

Re: [PATCH v5 40/46] boot: Support IO UARTs for earlycon and console

2025-04-04 Thread Simon Glass
Hi Tom, On Thu, 3 Apr 2025 at 03:29, Tom Rini wrote: > > On Sat, Mar 15, 2025 at 02:26:00PM +, Simon Glass wrote: > > Update the string to take account of UARTs which are connected on I/O > > ports, as on x86. > > > > Fix a typo in an error message in the same command, while we are here. > >

Re: [PATCH v5 00/29] pxe: Precursor series for supporting read_all() in extlinux / PXE

2025-04-04 Thread Tom Rini
On Fri, Apr 04, 2025 at 11:32:12PM +0200, Jonas Karlman wrote: > Hi Simon, > > On 2025-04-04 00:30, Simon Glass wrote: > > Hi Jonas, > > > > On Fri, 4 Apr 2025 at 09:57, Jonas Karlman wrote: > >> > >> Hi Tom and Simon, > >> > >> On 2025-03-19 00:21, Tom Rini wrote: > >>> On Wed, 05 Mar 2025 17:2

[PATCH v2 01/24] clk: Add clk_resolve_parent_clk()

2025-04-04 Thread Marek Vasut
Add clk_resolve_parent_clk() to resolve parent clock udevice name based on clock-names DT property. This is used in SoC clock drivers to look up the clock name in clock tables, which matches a clock name in DT clock-names property, and convert it into udevice name which is used by U-Boot clock fram

[PATCH 2/7] arm: at91: wdt: Rename regval in priv data to mr

2025-04-04 Thread Zixun LI
Use the name "mr" since we are referring to timer mode register. Signed-off-by: Zixun LI --- arch/arm/mach-at91/include/mach/at91_wdt.h | 2 +- drivers/watchdog/at91sam9_wdt.c| 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-at91/include/mach/

Re: [PATCH v2 1/3] riscv: image: Add new image type for RV64

2025-04-04 Thread Yao Zi
On Fri, Apr 04, 2025 at 02:48:55PM +, Mayuresh Chitale wrote: > Similar to ARM and X86, introduce a new image type which allows u-boot > to distinguish between images built for 32-bit vs 64-bit Risc-V CPUs. > > Signed-off-by: Mayuresh Chitale > Reviewed-by: Maxim Moskalets > --- > boot/imag

Re: [PATCH 1/2] imx8qxp: Do not use CONFIG_XPL_BUILD in device tree

2025-04-04 Thread Tom Rini
On Mon, Mar 17, 2025 at 12:10:04PM +0100, Quentin Schulz wrote: > Hi Fabio, > > On 3/15/25 12:58 PM, Fabio Estevam wrote: > > Hi Hendrik, > > > > On Fri, Mar 14, 2025 at 5:09 PM Hendrik Donner wrote: > > > > > > In c9713c155127 the device tree was moved > > > from CONFIG_SPL to CONFIG_SPL_BUILD

Re: [PATCH] board: libre-computer: check interface before comparing it in set_dfu_alt_info()

2025-04-04 Thread Neil Armstrong
Hi, On Thu, 03 Apr 2025 18:03:21 +0200, Neil Armstrong wrote: > When set_dfu_alt_info() is called, interface can be NULL when called for > the EFI capsule, so check it before calling it with strcmp(). > > Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-amlogic (u-boot-amlogi

[PATCH v2 1/2] board: atmel: sama5d2_wlsom1_ek: Fix spurious serial output

2025-04-04 Thread Fabio Estevam
From: Fabio Estevam Currently, there are always some spurious characters showing up right before SPL banner is shown: RomBOOT ���=�� U-Boot SPL 2025.04-rc5-00023-g9ed4e2c45f25 (Apr 03 2025 - 23:23:17 -0300) Trying to boot from MMC1 ... The reason for the spurious characters is that the UA

Re: [PATCH] tiny-printf: Add support for upper case hex values

2025-04-04 Thread Michael Walle
Hi, > > I wouldn't mind printing the pointer for %p[mMI], but %pa prints the > > *content* of the pointer which is really confusing. I.e. in > > pinctrl-single.c the reg value pairs are printed like > > > > dev_dbg(dev, "reg/val %pa/0x%08x\n", ®, val); > > > > with reg being a pointer to a phy

Re: U-Boot interferes with initrd binary — Revert "efi: Correct smbios-table installation" ?

2025-04-04 Thread Michael Brown
On 03/04/2025 23:41, Simon Glass wrote: On Fri, 4 Apr 2025 at 08:18, Christian Kohlschütter wrote: On 3. Apr 2025, at 19:54, Simon Glass wrote: 4. DMA traffic could then write over the malloc() region I'm not seeing where the Ethernet device's stop() is called. The dwmac_meson8b driver does

Re: [PATCH v3 4/4] board/BuR/zynq: initial commit

2025-04-04 Thread Bernhard Messerklinger
> From: Bernhard Messerklinger > > Changes in v3: > - Split spi_flash and qspi controller node in device tree for the usage > of bootph-all > - Merge binman descriptions into one zynq-binman-brcp1 > - Add links instead of manually including u-boot.dtsi files > - Remove empty MAC addresses nodes f

[GIT PULL] Please pull u-boot-amlogic-20250404 into master

2025-04-04 Thread Neil Armstrong
025-04-03 07:31:28 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-amlogic.git tags/u-boot-amlogic-20250404 for you to fetch changes up to c5fd2c7ac7fa4835339ea09ead2884794314c9d8: board: libre-computer: check interface before comparing it in s

[PATCH v1 10/11] usb: gadget: amlogic: implement Optimus protocol

2025-04-04 Thread Arseniy Krasnov
From: Vladimir Mitrofanov Add Amlogic's Optimus protocol support for USB transport. Signed-off-by: Vladimir Mitrofanov Signed-off-by: Arseniy Krasnov --- cmd/Kconfig | 7 + cmd/meson/Makefile| 1 + cmd/meson/optimus.c

[PATCH v8 08/19] sandbox: add SCMI clock control permissions to sandbox

2025-04-04 Thread Alice Guo (OSS)
From: Alice Guo This patch is used to add SCMI clock control permissions to sandbox for testing. Signed-off-by: Alice Guo --- arch/sandbox/include/asm/scmi_test.h | 2 ++ drivers/firmware/scmi/sandbox-scmi_agent.c | 56 -- 2 files changed, 55 insertions(+), 3

Re: [RFC PATCH] cmd: fwu: Dump custom fields from mdata structure

2025-04-04 Thread Sughosh Ganu
On Wed, 5 Jun 2024 at 20:25, Michal Simek wrote: > > The commit cb9ae40a16f0 ("tools: mkfwumdata: add logic to append vendor > data to the FWU metadata") added support for adding vendor data to mdata > structure but it is not visible anywhere that's why extend fwu command to > dump it. > > Signed-

[PATCH v1 07/11] arm: meson: a1: add A1_SYSCTRL_SEC_STICKY_REG2

2025-04-04 Thread Arseniy Krasnov
This register is used by ADNL protocol, to check boot source of current U-boot instance. Signed-off-by: Arseniy Krasnov --- arch/arm/include/asm/arch-meson/a1.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/include/asm/arch-meson/a1.h b/arch/arm/include/asm/arch-meson/a1.h

Re: [PATCH 10/18] video: annotate switch/case fall-through

2025-04-04 Thread Tom Rini
On Thu, Mar 27, 2025 at 03:33:05PM +, Andre Przywara wrote: > The generic DM video code uses an implicit switch/case fallthrough to > provide fallback code paths when certain colour depths are not enabled. > > Add our "fallthrough;" statement-like macro to the video_fill() function > to avoid

Re: [PATCH v1] regulator: qcom-rpmh-regulator: add support for pmm8654 regulators

2025-04-04 Thread Caleb Connolly
On Mon, 24 Mar 2025 17:00:30 +0530, Varadarajan Narayanan wrote: > Add the PMC8380 regulator data found on the Qualcomm SA8775P platform. > The tables are imported from the Linux driver. > > Applied, thanks! [1/1] regulator: qcom-rpmh-regulator: add support for pmm8654 regulators https

[PATCH v2 05/10] test/py: Rework test_efi_bootmgr to not use virt-make-fs

2025-04-04 Thread Tom Rini
The problem with using "virt-make-fs" to make a filesystem image is that it is extremely slow. Switch to using the fs_helper functions we have instead from the filesystem tests as these can add files to images and are significantly faster and still do not require root access. Signed-off-by: Tom Ri

[PATCH v6 0/3] Static initcalls

2025-04-04 Thread Jerome Forissier
This series replaces the dynamic initcalls (with function pointers) with static calls, and gets rid of initcall_run_list(), init_sequence_f, init_sequence_f_r and init_sequence_r. This makes the code simpler and the binary slighlty smaller: -2281 bytes/-0.21 % with LTO enabled and -510 bytes/-0.05

[PATCH v6 2/3] common: board: make initcalls static

2025-04-04 Thread Jerome Forissier
Change board_init_f(), board_init_f_r() and board_init_r() to make static calls instead of iterating over the init_sequence_f, init_sequence_f_r and init_sequence_r arrays, respectively. This makes the code a simpler (and even more so when initcall_run_list() is later removed) and it reduces the bi

[PATCH v2 3/3] booti/bootm: riscv: Verify image arch type

2025-04-04 Thread Mayuresh Chitale
Unlike ARM and X86, booting 32-bit images on 64-bit CPUs is currently not supported for Risc-V. Hence, for bootm, disallow booting a FIT or a legacy image that was built for an arch type which is different than the current arch and for booti, set the arch type to be the same as the current arch. S

Re: U-Boot interferes with initrd binary — Revert "efi: Correct smbios-table installation" ?

2025-04-04 Thread neil . armstrong
Hi, On 31/03/2025 18:49, Christian Kohlschütter wrote: Hi all, After upgrading some rather old U-Boot/IPXE setup on two aarch64 boards (Amlogic S922X-based ODROID N2+ and RK3399-based NanoPi R4S), I noticed strange errors in the initrd phase of my Linux kernel — usually something like "Illega

Re: [PATCH] board: atmel: sama5d2_wlsom1_ek: Fix spurious serial output

2025-04-04 Thread Eugen Hristev
On 4/4/25 05:36, Fabio Estevam wrote: > From: Fabio Estevam > > Currently, there are always some spurious characters showing up > right before SPL banner is shown: > > RomBOOT > ���=�� > U-Boot SPL 2025.04-rc5-00023-g9ed4e2c45f25 (Apr 03 2025 - 23:23:17 -0300) > Trying to boot from MMC1 >

Re: [PATCH v6 12/12] video: imx: Add LCDIF driver

2025-04-04 Thread Miquel Raynal
Hi Adam, > since there are three instances of this LCDIF, when most other boards > have just one, do you know what happens if someone's device tree has > all three enabled? Is the video mirrored, or does it just go to one of > the instances? IIRC they are not connected to the same outputs, there

[PATCH] cmd: optee: fix hello subcommand argument check

2025-04-04 Thread Vincent Stehlé
When the `optee hello' subcommand is called, the do_optee_hello_world_ta() function passes a NULL pointer to the strcmp() function while verifying its input argument, which results in the following crash: => optee hello "Synchronous Abort" handler, esr 0x9610, far 0x0 Fix this by verifyin

Re: [PATCH] cmd: optee: fix hello subcommand argument check

2025-04-04 Thread Jerome Forissier
On 4/4/25 14:53, Vincent Stehlé wrote: > When the `optee hello' subcommand is called, the do_optee_hello_world_ta() > function passes a NULL pointer to the strcmp() function while verifying its > input argument, which results in the following crash: > > => optee hello > "Synchronous Abort"

[PATCH v2 2/2] board: atmel: sama5d2_wlsom1_ek: Remove UART pinctrl initialization

2025-04-04 Thread Fabio Estevam
From: Fabio Estevam The UART0 pinctrl initialization is already done by DM via CONFIG_PINCTRL_AT91PIO4=y. Remove the unnecessary UART0 pinctrl initialization done in board code. Signed-off-by: Fabio Estevam --- Changes since v1: - Newly introduced. board/atmel/sama5d27_wlsom1_ek/sama5d27_wls

Re: [PATCH] doc: build: docker: Fix code-block formatting

2025-04-04 Thread Quentin Schulz
Hi Leonard, On 4/1/25 11:49 AM, Leonard Anderweit wrote: Remove double : before code-block. While at it, use code-block for all Why? https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#literal-blocks is valid. We could think about changing the default highlighting langu

Re: [PATCH v2 3/3] rockchip: rock64-rk3328_defconfig: enable HDMI output and USB keyboard

2025-04-04 Thread Vasily Khoruzhick
On Sun, Mar 30, 2025 at 4:45 AM Jonas Karlman wrote: > > Hi Vasily, > > On 2025-03-23 23:50, Vasily Khoruzhick wrote: > > Enable HDMI output and USB keyboard on Rock64 board > > > > Signed-off-by: Vasily Khoruzhick > > --- > > v2: no change > > > > configs/rock64-rk3328_defconfig | 10 ++

Re: [PATCH 2/4] fastboot: blk: add block device flashing configuration

2025-04-04 Thread neil . armstrong
Hi, On 26/11/2024 00:41, Dmitrii Merkurev wrote: Hey Neil. Will do it by the end of the year. Only tested it with a virtio-block though. Ping, did you find time to resubmit a new version of this patchset ? Thanks, Neil On Thu, Nov 21, 2024 at 12:44 PM mailto:neil.armstr...@linaro.org>> wr

[PATCH v2 1/3] riscv: image: Add new image type for RV64

2025-04-04 Thread Mayuresh Chitale
Similar to ARM and X86, introduce a new image type which allows u-boot to distinguish between images built for 32-bit vs 64-bit Risc-V CPUs. Signed-off-by: Mayuresh Chitale Reviewed-by: Maxim Moskalets --- boot/image.c| 3 ++- include/image.h | 3 ++- 2 files changed, 4 insertions(+), 2 del

[PATCH] mbedtls: remove incorrect attribute type checker

2025-04-04 Thread Raymond Mao
S/MIME Capabilities (OID: 1.2.840.113549.1.9.15) attributes are expected to be algorithms but neither data nor MS Inderect Data, thus the checker for data type is incorrect. This patch fixes a capsule authentication failure with PKCS#7 message that contains S/MIME capabilities, which formed by the

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-04-04 Thread Raymond Mao
Hi Tom and Simon, On Fri, 28 Mar 2025 at 21:00, Raymond Mao wrote: > > Hi Tom and Simon, > > On Fri, 28 Mar 2025 at 20:02, Tom Rini wrote: > > > > On Fri, Mar 28, 2025 at 11:38:14PM +, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 28 Mar 2025 at 10:18, Tom Rini wrote: > > > > > > > >

Re: [PATCH] tiny-printf: Add support for upper case hex values

2025-04-04 Thread Tom Rini
On Fri, Apr 04, 2025 at 10:33:25AM +0200, Michael Walle wrote: > Hi, > > > > I wouldn't mind printing the pointer for %p[mMI], but %pa prints the > > > *content* of the pointer which is really confusing. I.e. in > > > pinctrl-single.c the reg value pairs are printed like > > > > > > dev_dbg(dev

Re: SMBIOS tables missing on 2025.04-rc5 on qemu-x86

2025-04-04 Thread Tom Rini
On Fri, Apr 04, 2025 at 03:10:29PM +0200, Niklas Sombert wrote: > Hi all, > > I've written a small EFI bootloader and I'm testing it on QEMU with OVMF and > with u-boot (with the qemu-x86_defconfig as -bios in QEMU). > > On upgrading from 2025.01 to 2025.04-rc5, I've noticed that the SMBIOS > ta

[PATCH v2 0/3] Risc-V 32 bit/64 bit images

2025-04-04 Thread Mayuresh Chitale
This series adds support for building different images for 32-bit vs 64-bit Risc-V CPUs and also for verifying the target arch of an image before booting it. Change in v2: - Rebase to latest master branch - Improve comment in image.h - Set arch type in booti for all modes Changes from RFC: - Reba

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-04-04 Thread Raymond Mao
Hi Tom and Simon, On Fri, 4 Apr 2025 at 10:48, Raymond Mao wrote: > > Hi Tom and Simon, > > On Fri, 28 Mar 2025 at 21:00, Raymond Mao wrote: > > > > Hi Tom and Simon, > > > > On Fri, 28 Mar 2025 at 20:02, Tom Rini wrote: > > > > > > On Fri, Mar 28, 2025 at 11:38:14PM +, Simon Glass wrote: >

[PATCH v2 2/3] riscv: Select appropriate image type

2025-04-04 Thread Mayuresh Chitale
Select between the 32-bit or 64-bit arch type for the image headers depending on how the build is configured. Signed-off-by: Mayuresh Chitale --- arch/riscv/dts/binman.dtsi | 14 ++ arch/riscv/include/asm/u-boot.h | 4 2 files changed, 14 insertions(+), 4 deletions(-) dif

Re: U-Boot interferes with initrd binary — Revert "efi: Correct smbios-table installation" ?

2025-04-04 Thread neil . armstrong
Hi Christian On 04/04/2025 00:41, Simon Glass wrote: Hi Christian, On Fri, 4 Apr 2025 at 08:18, Christian Kohlschütter wrote: +Tom Rini (actually adding Tom to the conversation) On 3. Apr 2025, at 19:54, Simon Glass wrote: +Tom Rini in case this affects the release Hi Christian, On Fri

[PATCH] x86: emulation: Disable bloblist for now

2025-04-04 Thread Tom Rini
As reported by Niklas Sombert, enabling bloblist on these platforms means that we currently don't pass SMBIOS tables on to later stages. For the v2025.04 release, disable bloblists as that is sufficient to restore functionality and we will address the underlying problem for the next release. Link:

SMBIOS tables missing on 2025.04-rc5 on qemu-x86

2025-04-04 Thread Niklas Sombert
Hi all, I've written a small EFI bootloader and I'm testing it on QEMU with OVMF and with u-boot (with the qemu-x86_defconfig as -bios in QEMU). On upgrading from 2025.01 to 2025.04-rc5, I've noticed that the SMBIOS tables that are passed via the SMBIOS EFI config table are completely blank

[PATCH v6 3/3] initcall: remove initcall_run_list()

2025-04-04 Thread Jerome Forissier
Now that all initcalls have been converted to static calls, remove initcall_run_list(). Signed-off-by: Jerome Forissier --- include/initcall.h | 24 --- lib/Makefile | 1 - lib/initcall.c | 102 - 3 files changed, 127 deletions(-)

[PATCH 14/34] dt-bindings: add Allwinner A523 CCU bindings

2025-04-04 Thread Andre Przywara
This adds the latest version of the clock DT binding headers for the Allwinner A523 family of SoCs. Those headers have already been merged into the maintainer's trees, and appeared in linux-next, but have not made it just yet into the official kernel repository. Signed-off-by: Andre Przywara ---

Re: U-Boot interferes with initrd binary — Revert "efi: Correct smbios-table installation" ?

2025-04-04 Thread Christian Kohlschütter
Hi Simon, > On 1. Apr 2025, at 17:51, Simon Glass wrote: >> >> but I don't know precisely what these various functions are supposed to >> do, and I can't find any path that leads from any of these to eth_halt(). >> >> Is it possible that U-Boot is failing to call eth_halt() in response to >> Ex

Re: [PATCH v2 0/7] membuff: Add tests and update to support a flag for empty/full

2025-04-04 Thread Tom Rini
On Tue, 18 Mar 2025 16:20:41 +0100, Simon Glass wrote: > The membuff implementation curently has no tests. It also assumes that > head and tail can never correspond unless the buffer is empty. > > This series provides a compile-time flag to support a 'full' flag. It > also adds some tests of the

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-04-04 Thread Simon Glass
Hi Raymond, On Sat, 5 Apr 2025 at 03:49, Raymond Mao wrote: > > Hi Tom and Simon, > > On Fri, 28 Mar 2025 at 21:00, Raymond Mao wrote: > > > > Hi Tom and Simon, > > > > On Fri, 28 Mar 2025 at 20:02, Tom Rini wrote: > > > > > > On Fri, Mar 28, 2025 at 11:38:14PM +, Simon Glass wrote: > > > >

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-04-04 Thread Simon Glass
Hi Tom, On Fri, 4 Apr 2025 at 11:51, Tom Rini wrote: > > On Fri, Apr 04, 2025 at 11:41:08AM +1300, Simon Glass wrote: > > Hi Tom, > > > > On Fri, 4 Apr 2025 at 10:52, Tom Rini wrote: > > > > > > On Fri, Apr 04, 2025 at 09:40:29AM +1300, Simon Glass wrote: > > > > Hi Raymond, > > > > > > > > On F

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-04-04 Thread Tom Rini
On Sat, Apr 05, 2025 at 06:40:08AM +1300, Simon Glass wrote: > Hi Raymond, > > On Sat, 5 Apr 2025 at 03:49, Raymond Mao wrote: > > > > Hi Tom and Simon, > > > > On Fri, 28 Mar 2025 at 21:00, Raymond Mao wrote: > > > > > > Hi Tom and Simon, > > > > > > On Fri, 28 Mar 2025 at 20:02, Tom Rini wrot

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-04-04 Thread Tom Rini
On Sat, Apr 05, 2025 at 06:39:39AM +1300, Simon Glass wrote: > Hi Tom, > > On Fri, 4 Apr 2025 at 11:51, Tom Rini wrote: > > > > On Fri, Apr 04, 2025 at 11:41:08AM +1300, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 4 Apr 2025 at 10:52, Tom Rini wrote: > > > > > > > > On Fri, Apr 04, 2025

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-04-04 Thread Raymond Mao
Hi Simon, On Fri, 4 Apr 2025 at 13:40, Simon Glass wrote: > > Hi Raymond, > > On Sat, 5 Apr 2025 at 03:49, Raymond Mao wrote: > > > > Hi Tom and Simon, > > > > On Fri, 28 Mar 2025 at 21:00, Raymond Mao wrote: > > > > > > Hi Tom and Simon, > > > > > > On Fri, 28 Mar 2025 at 20:02, Tom Rini wrot

[PATCH V2 2/5] cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU

2025-04-04 Thread Adam Ford
Much of the data that is display by imx8_cpu.c is also displayed from arch/arm/mach-imx/cpu.c, except the temperature grade and active temperature are only displayed when SoC is an i.MX9. Since IMX9 now implies IMX_TMU, change this to check for IMX_THERMAL or IMX_TMU in the same way it's done in ma

Re: [GIT PULL] Please pull u-boot-amlogic-20250404 into master

2025-04-04 Thread Tom Rini
On Fri, 04 Apr 2025 10:40:31 +0200, Neil Armstrong wrote: > Here's a last minute fix for the libre-computer boards fixing the capsule > update feature. > > Thanks, > Neil > > The following changes since commit 82b69fc4224432d5aefa7ca750d950374cbc7fb2: > >Merge tag 'efi-2025-04-rc6' of > h

[PATCH 11/13] video: Allow console output to be silenced

2025-04-04 Thread Simon Glass
When using expo we want to be able to control the information on the display and avoid other messages (such as USB scanning) appearing. Add a 'quiet' flag for the console, to help with this. The test is a little messy since stdio is still using the original vidconsole create on start-up. So take

[PATCH v8 14/19] binman: add a new entry type for packing DDR PHY firmware images

2025-04-04 Thread Alice Guo (OSS)
From: Alice Guo i.MX95 needs to combine DDR PHY firmware images and their byte counts together, so add a new entry type nxp-header-ddrfw for this requirement. Signed-off-by: Alice Guo --- tools/binman/entries.rst | 10 ++ tools/binman/etype/nxp_header_ddrfw.py| 29

Re: [PATCH] tiny-printf: Add support for upper case hex values

2025-04-04 Thread Quentin Schulz
Hi Marek, On 3/20/25 12:49 PM, Marek Vasut wrote: On 3/20/25 11:23 AM, Christoph Niedermaier wrote: If tiny printf is used with 0x%08X (upper case X) the output is always 0x. It could be confusing if upper case instead of lower case is used intentionally or accidentally because the actu

Re: [PATCH v2 00/56] expo: Various features and improvements

2025-04-04 Thread Simon Glass
Hi Tom, On Mon, 31 Mar 2025 at 03:47, Tom Rini wrote: > > On Fri, Mar 28, 2025 at 07:05:47AM -0600, Simon Glass wrote: > > > This series collects together some new features for expo to make it more > > useful for boot menus: > > > > - measurement and display of multi-line text objects > > - inter

Re: [PATCH] ARM: socfpga: Drop incorrect imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION*

2025-04-04 Thread Tom Rini
On Tue, Mar 18, 2025 at 03:11:44AM +, Chee, Tien Fong wrote: > Hi Tony, > > > -Original Message- > > From: Tom Rini > > Sent: Saturday, March 15, 2025 9:29 AM > > To: u-boot@lists.denx.de > > Cc: Chee, Tien Fong > > Subject: [PATCH] ARM: socfpga: Drop incorrect imply > > SYS_MMCSD_RA

Re: [PATCH v4 00/47] x86: Improve operation under QEMU

2025-04-04 Thread Simon Glass
Hi Tom, On Tue, 18 Mar 2025 at 00:05, Tom Rini wrote: > > [cc list trimmed and adding Rasmus] > > On Sat, Mar 15, 2025 at 02:38:29PM +, Simon Glass wrote: > > Hi Tom, > > > > On Sat, 15 Mar 2025 at 13:57, Tom Rini wrote: > > > > > > On Sat, Mar 15, 2025 at 12:54:25PM +, Simon Glass wrote

[PATCH v6 1/3] arm: asm/system.h: mrc and mcr need .arm if __thumb2__ is not set

2025-04-04 Thread Jerome Forissier
The mcr and msr instructions are available in Thumb mode only if Thumb2 is supported. Therefore, if __thumb2__ is not set, make sure we switch to ARM mode by inserting a .arm directive in the inline assembly. Fixes LTO link errors with kirkwood platforms, triggered by a later commit: tools/build

[PATCH v2 09/24] clk: imx: gate2: Use struct udevice instead of struct device

2025-04-04 Thread Marek Vasut
Use U-Boot specific struct udevice instead of Linux compatibility struct device in gate2 clock registration. Signed-off-by: Marek Vasut --- Cc: Adam Ford Cc: Christoph Niedermaier Cc: Dong Aisheng Cc: Fabio Estevam Cc: Hou Zhiqiang Cc: Michael Trimarchi Cc: Peng Fan Cc: Tim Harvey Cc: Tom

[PATCH 08/34] sunxi: clock: H6: remove struct sunxi_prcm_reg

2025-04-04 Thread Andre Przywara
With the SPL clock code and the DRAM init routine we converted all users of the H6 class "struct sunxi_prcm_reg" over to use #define'd register offsets now. Drop the whole definition of this struct now, since it's not needed anymore, for all H6 and H616 boards. This removes the entire fragile and

[PATCH v2 1/3] usb: gadget: atmel: Add SAM9X60 support

2025-04-04 Thread Zixun LI
Compared to SAM9X5 the only difference is the DPRAM memory from the USB High Speed Device Port (UDPHS) hardware block was increased, so we can reuse the same endpoint data. Also add compatible "microchip,sam9x60-udc". Signed-off-by: Zixun LI --- arch/arm/mach-at91/include/mach/atmel_usba_udc.h

[PATCH] pinctrl: qcom: handle reserved ranges

2025-04-04 Thread neil . armstrong
From: Caleb Connolly Some Qualcomm boards feature reserved ranges of pins which are protected by firmware. Attempting to read or write any registers associated with these pins results the board resetting. Add support for parsing these ranges from devicetree and ensure that the pinctrl and GPIO d

Re: [PATCH] log: Add helpers for calling log_msg_ret() et al

2025-04-04 Thread Quentin Schulz
Hi Simon, On 4/3/25 7:57 PM, Simon Glass wrote: Hi Tom, On Wed, 2 Apr 2025 at 06:19, Tom Rini wrote: On Wed, Apr 02, 2025 at 04:48:35AM +1300, Simon Glass wrote: Hi Tom, On Mon, 31 Mar 2025 at 03:45, Tom Rini wrote: On Fri, Mar 28, 2025 at 04:44:53AM -0600, Simon Glass wrote: Hi Tom,

Re: [PATCH] video: ti: am335x: Fix tilcdc clock names.

2025-04-04 Thread Tom Rini
On Tue, 11 Mar 2025 23:57:09 -0700, Sukrut Bellary wrote: > The commit 211b3d726378 ("arm: dts: am3x: Non-functional changes sync > with v6.3-rc6") changed the tilcdc clock names. > Fix the tilcdc driver to use the new clock names. > > Applied to u-boot/next, thanks! [1/1] video: ti: am335x: F

Re: [PATCH 2/2] CI: Build missing binman tools before binman tests

2025-04-04 Thread Leonard Anderweit
Hi Fabio, Am Dienstag, dem 01.04.2025 um 08:12 -0300 schrieb Fabio Estevam: > Hi Leonard, > > On Tue, Apr 1, 2025 at 5:46 AM Leonard Anderweit > wrote: > > > > The CI image does not ship with all tools required for the binman > > tests. > > Have binman build the missing tools. > > > > Signed-o

Re: [PATCH 6/6] lib: Provide a signed version of simple_itoa()

2025-04-04 Thread Tom Rini
On Thu, Mar 20, 2025 at 03:43:17AM +, Simon Glass wrote: > Hi Tom, > > On Wed, 19 Mar 2025 at 16:36, Tom Rini wrote: > > > > On Wed, Mar 19, 2025 at 03:04:00PM +, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 19 Mar 2025 at 15:20, Tom Rini wrote: > > > > > > > > On Wed, Mar 19, 20

[PATCH v3 03/10] arm: dts: am62a: allow booting from eMMC

2025-04-04 Thread Anshul Dalal
The bootph-all property in u-boot enables driver initialization prior to relocation, this is necessary to use the device as boot media. sdhci0 is the phandle for eMMC on am62a, so this change allows us to use eMMC as a boot media. Signed-off-by: Anshul Dalal --- arch/arm/dts/k3-am62a7-sk-u-boot

[PATCH 08/13] video: truetype: Support a limit on the width of a line

2025-04-04 Thread Simon Glass
Expo needs to be able to word-wrap lines so that they are displayed as the user expects. Add a limit on the width of each line and support this in the measurement algorithm. Add a log category to truetype while we are here. Signed-off-by: Simon Glass --- boot/scene.c | 2

Re: [PATCH 00/13] video: Enhancements related to truetype and console

2025-04-04 Thread Tom Rini
On Thu, Apr 03, 2025 at 08:19:03AM +1300, Simon Glass wrote: > Hi Tom, > > On Thu, 3 Apr 2025 at 04:00, Tom Rini wrote: > > > > On Wed, Apr 02, 2025 at 01:08:56PM +1300, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 2 Apr 2025 at 10:41, Tom Rini wrote: > > > > > > > > On Wed, Apr 02, 2025

Re: [PATCH] fdt: Allow OF_HAS_PRIOR_STAGE to be disabled in defconfig

2025-04-04 Thread Tom Rini
On Fri, Apr 04, 2025 at 06:53:49AM +1300, Simon Glass wrote: > At present it is impossible to change the qemu_arm64 defconfig to > obtain a devicetree from the U-Boot build. > > This is necessary for FIT validation, for example, where the signature > node must be compiled into U-Boot. > > A prop

[PATCH 03/34] sunxi: H616: dram: remove usage of struct sunxi_ccm_reg

2025-04-04 Thread Andre Przywara
The Allwinner H616 DRAM initialisation code uses a complex C struct, modelling the clock device's register frame. For this SoC, the struct contains 127 registers, but the DRAM code only uses four of them. Since we want to get rid of this struct, drop the usage of the struct in the H616 DRAM code,

[PATCH v2 05/24] clk: imx: Pass struct udevice into imx_clk_mux*()

2025-04-04 Thread Marek Vasut
Pass struct udevice * into imx_clk_mux*() functions, so the clock core would have access to parent struct udevice *. Signed-off-by: Marek Vasut --- Cc: Adam Ford Cc: Christoph Niedermaier Cc: Dong Aisheng Cc: Fabio Estevam Cc: Hou Zhiqiang Cc: Michael Trimarchi Cc: Peng Fan Cc: Tim Harvey

Re: [PATCH v2] config: falcon: move CFG_SYS_SPI_* to Kconfig

2025-04-04 Thread Tom Rini
On Tue, 11 Mar 2025 10:14:12 +0530, Anshul Dalal wrote: > CFG_SYS_SPI_* are used in falcon boot to specify the offsets and size of > the respective payloads. This patch moves them to Kconfig keeping the > values consistent for each of the affected boards. > > Applied to u-boot/next, thanks! [1

[PATCH v2 1/3] clk: rockchip: rk3328: use HDMIPHY PLL as a clock parent for VOP_DCLK

2025-04-04 Thread Vasily Khoruzhick
The only video mode that currently works on rk3328 in u-boot is 1080p, because it uses GPLL for VOP_DCLK clock parent. Linux driver uses HDMIPHY PLL as a clock parent for VOP_DCLK, since using GPLL or CPLL is not feasible due these PLL being used as a clock parent for other devices. It would be cu

Re: [PATCH v5 38/46] boot: Consider non-bootable partitions

2025-04-04 Thread Tom Rini
On Sat, Mar 15, 2025 at 02:25:58PM +, Simon Glass wrote: > Any 'bootable' flag in a DOS partition causes boostd to only scan > bootable partitions for that media. This can mean that extlinux.conf > files on the root disk are missed. > > Put this logic behind a flag and update the documentatio

Re: [PATCH v3 00/11] fs: exfat: Add exfat port based on exfat-fuse

2025-04-04 Thread Tom Rini
On Mon, 17 Mar 2025 04:12:39 +0100, Marek Vasut wrote: > Import exfat-fuse libexfat, add U-Boot filesystem layer porting glue > code and wire exfat support into generic filesystem support code. This > adds exfat support to U-Boot. > > Fill in generic filesystem interface for mkdir and rm commands

[PATCH] firmware: scmi: smt: Interrupt communication enable

2025-04-04 Thread Alice Guo (OSS)
From: Viorel Suman i.MX95 System Manager uses interrupt driven communication which requires the caller to set Bit[0] of channel flags to 1. When transmission completes and the previous general purpose interrupt has been processed by the other core, i.MX95 System Manager will set General Purpose I

[PATCH v2 2/3] efi_loader: binary_run: register an initrd

2025-04-04 Thread Adriano Cordova
Add support to install an initrd when running an EFI binary with efi_binary_run Signed-off-by: Adriano Cordova --- Changes in v2: - Change EFI_RESERVED_MEMORY_TYPE for EFI_LOADER_DATA for dp_initrd boot/bootm_os.c | 3 ++- cmd/bootefi.c| 2 +- include/efi_loader.

Re: [PATCH v2 5/6] dt-bindings: clock: drop NUM_CLOCKS define for EN7581

2025-04-04 Thread Tom Rini
On Wed, Apr 02, 2025 at 12:42:54PM +0530, Sumit Garg wrote: > Sorry for jumping in late in this thread as it is still using my old > Linaro email ID which should be disabled by now. > > On Tue, Apr 01, 2025 at 12:02:17PM -0600, Tom Rini wrote: > > On Tue, Apr 01, 2025 at 07:28:36PM +0200, Krzyszto

[PATCH v8 13/19] imx: Kconfig: IMX8_ROMAPI is not configured for i.MX95

2025-04-04 Thread Alice Guo (OSS)
From: Alice Guo i.MX95 only supports low power boot, which means A55 is kicked by M33. There is no ROM runs on A55 in such case so that deselect IMX8_ROMAPI for i.MX95. Signed-off-by: Alice Guo --- arch/arm/mach-imx/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ar

RE: [resend v2 10/13] cmd: Enabled Kconfig and Makefile for DWI3C cmd support

2025-04-04 Thread Maniyam, Dinesh
> -Original Message- > From: Tom Rini > Sent: Saturday, 15 March 2025 12:54 am > To: Maniyam, Dinesh > Cc: u-boot@lists.denx.de; Marek ; Simon > ; Simon Glass ; Dario > Binacchi ; Ilias Apalodimas > ; Heinrich Schuchardt ; > Jerome Forissier ; Mattijs Korpershoek > ; Ibai Erkiaga ; > M

Re: [PATCH v4 12/14] cmd: add spawn and wait commands

2025-04-04 Thread Mattijs Korpershoek
Hi Jerome, Thank you for the patch. On mar., mars 18, 2025 at 11:46, Jerome Forissier wrote: [...] > > obj-$(CONFIG_HUSH_SELECTABLE) += cli.o > > +obj-$(CONFIG_CMD_SPAWN) += spawn.o > + > obj-$(CONFIG_ARM) += arm/ > obj-$(CONFIG_RISCV) += riscv/ > obj-$(CONFIG_SANDBOX) += sandbox/ > d

  1   2   >