[PATCH v3 2/3] doc: phytec: update imx8m docs for optee builds

2025-09-07 Thread Yannic Moog
OP-TEE configs are enabled by default, change the doc to no longer declare OP-TEE as optional. Further, phycore-imx8mm and imx8mm-phygate-tauri-l use different build instructions, so dissolve the common file for building OP-TEE. Signed-off-by: Yannic Moog --- board/phytec/phycore_imx8mm/MAINTAIN

[PATCH v3 3/3] doc: phytec: imx8m: Style and firmware update

2025-09-07 Thread Yannic Moog
Use single make command for compiling blobs and U-Boot. Update the imx firmware version. Signed-off-by: Yannic Moog --- doc/board/phytec/imx8mm-phygate-tauri-l.rst | 27 ++ doc/board/phytec/phycore-imx8mm.rst | 28 ++ doc/board/phytec/phycore-imx8m

[PATCH v3 0/3] PHYTEC imx8m boards: enable OP-TEE as default

2025-09-07 Thread Yannic Moog
OPTEE config was unset by default and the doc for the boards was not quite accurate as TEE configs must be enabled first in order to be able to build with OP-TEE support. This series enables the config by default, i.e. when wanting to build without OP-TEE now, configs need to be modified. Update an

[PATCH v3 1/3] phytec-imx8m boards: enable OP-TEE for KASLR

2025-09-07 Thread Yannic Moog
Enable OP-TEE config and RNG by default. Set OP-TEE load address to end of 1GiB RAM for phycore-imx8mp and phycore-imx8mm as the boards support a 1GiB RAM variant (although not yet upstreamed for phycore-imx8mm). The imx8mm-phygate-tauri-l board only supports 2GiB, so the default at the end of 2GiB

Re: [PATCH v5] disk: efi_loader: Improve disk image detection in efi_bootmgr

2025-09-07 Thread Ilias Apalodimas
Hi Javier, Heinrich On Fri, 5 Sept 2025 at 20:24, Javier Tia wrote: > > Enhances the process for identifying disk images within the EFI boot > manager. Utilize part_driver_lookup_type() to verify the validity of a > downloaded file as a disk image, rather than depending on file > extensions. > >

回复: [PATCH v4 1/2] binman: add a new entry type to support .bin file generation for the i.MX95 platform

2025-09-07 Thread Alice Guo (OSS)
> -邮件原件- > 发件人: Fabio Estevam > 发送时间: 2025年9月6日 5:53 > 收件人: Alice Guo (OSS) > 抄送: Tom Rini ; Simon Glass ; Alper > Nebi Yasak ; Stefano Babic > ; dl-uboot-imx ; Alice Guo > ; Marek Vasut ; > thar...@gateworks.com; u-boot@lists.denx.de > 主题: Re: [PATCH v4 1/2] binman: add a new entry type

[PULL] u-boot-sh/master

2025-09-07 Thread Marek Vasut
Trivial last minute fix ups. The following changes since commit 328747974a0620d0996113fe2b3906b06e96de00: Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-samsung (2025-09-05 08:15:16 -0600) are available in the Git repository at: https://source.denx.de/u-boot/cust

[PATCH] serial: sh: Handle HSCIF RX FIFO overflow

2025-09-07 Thread Marek Vasut
The HSCIF RX FIFO may overflow when data are streaming from remote end into the HSCIF while U-Boot is still starting up. In that case, HSFSR bit RDF is set, but HSFDR field R is zero. This confuses .tstc callback into considering RX FIFO to be empty, which leads to .getc to be never invoked, even w

Re: [PATCH v2 2/7] video: simple_panel: add support for "panel-lvds" display

2025-09-07 Thread Yannick FERTRE
Hi Raphael, Thanks for the patch. Reviewed-by: Yannick Fertre Le 03/09/2025 à 14:25, Raphael Gallais-Pou a écrit : Add the compatible "panel-lvds" for simple-panel driver in U-Boot. In Linux this compatible is managed by the driver drivers/gpu/drm/panel/panel-lvds.c but in U-Boot the specific

Re: [PATCH v1] board: ti: am33xx: Fix serial_getc comparision in spl_start_uboot()

2025-09-07 Thread Kory Maincent
On Fri, 5 Sep 2025 16:15:34 +0530 Sidharth Seela wrote: > Fixes issue of uninterruptible SPL boot to OS, in falcon mode. > Correct order of logical AND operation is (serial_tstc() && ( serial_getc() == > 'c')), which fixes (serial_tstc() && serial_getc == 'c'). This seems weird. == precede in t

Re: [PATCH 2/2] ti: Do not remove ft_board_setup for CONFIG_NO_NET

2025-09-07 Thread Tom Rini
On Thu, Sep 04, 2025 at 01:19:26PM +, Maarten Brock wrote: > From: Tom Rini > > > On Mon, Sep 01, 2025 at 04:06:10PM +, Maarten Brock wrote: > > > > > Even when CONFIG_NO_NET is selected there is still need for a > > > definition of ft_board_setup(). Thus move the checks for > > > CONFIG_

Re: [PATCH v3 1/5] Image size checks: Move all configs in one place

2025-09-07 Thread Philip Oberfichtner
On Wed, Sep 03, 2025 at 02:50:49PM +0200, Marek Vasut wrote: > On 9/3/25 12:56 PM, Philip Oberfichtner wrote: > > How image size limiting works in U-Boot should be easier to grasp if we > > have all related options in one place. > > > > Signed-off-by: Philip Oberfichtner > > --- > > Kconfig

Re: [PATCH] phy: Reset init count on phy exit failure

2025-09-07 Thread Marek Vasut
On 9/7/25 9:18 AM, Siddharth Vadapalli wrote: Hi, diff --git a/drivers/phy/phy-uclass.c b/drivers/phy/phy-uclass.c index 714be123856..f8d4fb3b41b 100644 --- a/drivers/phy/phy-uclass.c +++ b/drivers/phy/phy-uclass.c @@ -274,7 +274,7 @@ int generic_phy_exit(struct phy *phy) { struct phy

[PATCH v1] doc: board: ti: am335x_evm: Add documentation

2025-09-07 Thread Sidharth Seela
Link: https://lore.kernel.org/u-boot/20250829191830.GZ124814@bill-the-cat/ Add documentation for config changes required to enable Falcon SD-FAT boot. Signed-off-by: Sidharth Seela Cc: Tom Rini --- diff --git a/doc/board/ti/am335x_evm.rst b/doc/board/ti/am335x_evm.rst index 7a3125d705b..587d3

Re: [GIT PULL] Please pull u-boot-imx-next-20250905a

2025-09-07 Thread Tom Rini
On Fri, 05 Sep 2025 10:27:08 -0300, Fabio Estevam wrote: > Please pull from u-boot-imx/next, thanks. > > The following changes since commit e31947724f69faaa6b0ccd2539052781358b0572: > > Merge patch series "memtest performance improvements" (2025-09-02 14:11:45 > -0600) > > are available in t

[PATCH 1/3] cmd: mtd: add markbad command support

2025-09-07 Thread Mikhail Kshevetskiy
Some nand flashes (like spi-nand one) are registered with mtd subsystem only, thus nand command can't be used to work with such flashes. As result some functionality is missing. This patch implements 'nand markbad' functionality for mtd command. Signed-off-by: Mikhail Kshevetskiy --- cmd/Kconfi

Re: [PATCH 11/11] imx: kontron-sl-mx6ul: Switch to OF_UPSTREAM

2025-09-07 Thread Fabio Estevam
On Mon, Aug 25, 2025 at 10:55 AM Frieder Schrempf wrote: > > From: Frieder Schrempf > > Use the upstream devicetrees instead of the local ones. > > Signed-off-by: Frieder Schrempf There was a build failure because the in-tree DTBs were not removed from the Makefile. I fixed it and applied for

[PATCH] configs/coreboot_defconfig: Set X86_LOAD_FROM_32_BIT to use own GDT

2025-09-07 Thread Benjamin Doron
From: Benjamin Doron It appears that coreboot's GDT has changed recently, as the latest U-Boot builds throw general protection faults early in the entrypoint (arch/x86/cpu/start.S) while attempting to setup the segments. When this config symbol is unset, U-Boot relies on the GDT loaded by start1

[PATCH RFC 1/9] tools: mkimage: Add Amlogic Boot Image type

2025-09-07 Thread Ferass El Hafidi
From: Jonas Karlman Add support for creating an Amlogic Boot Image that pass CHK in BL1 on Amlogic AArch64 SoCs. Images can optionally be signed for secure boot scenario, however creation of signed images has not been implemented. Example of how to use it: # Create an amlogic boot image too

[PATCH RFC 9/9] doc: board: amlogic: add u-boot-spl documentation

2025-09-07 Thread Ferass El Hafidi
Add building and usage instructions for SPL. Signed-off-by: Ferass El Hafidi --- doc/board/amlogic/index.rst | 1 + doc/board/amlogic/pre-generated-fip.rst | 9 doc/board/amlogic/spl.rst | 77 + 3 files changed, 87 insertions(+) d

[PATCH RFC 8/9] board: amlogic: add kconfig fragments for SPL

2025-09-07 Thread Ferass El Hafidi
Add kconfig fragments for building SPL binaries for: · ODROID-C2 · Videostrong KII Pro · Libre Computer LePotato (1 GB and 2 GB variants) Signed-off-by: Ferass El Hafidi --- board/amlogic/p200/spl-odroid-c2.config | 37 ++ board/amlogic/p200/spl-videostrong-kii-p

[PATCH RFC 7/9] arm: dts: meson-gx-u-boot: add binman configuration for U-Boot SPL

2025-09-07 Thread Ferass El Hafidi
Add binman configuration to meson-gx-u-boot.dtsi to automate building bootable images using amlimage. Signed-off-by: Ferass El Hafidi --- arch/arm/dts/meson-gx-u-boot.dtsi | 142 ++ 1 file changed, 142 insertions(+) diff --git a/arch/arm/dts/meson-gx-u-boot.d

[PATCH RFC 6/9] arm: meson: spl: add support for SPL DRAM init

2025-09-07 Thread Ferass El Hafidi
Supports both GXBB and GXL SoCs. Signed-off-by: Ferass El Hafidi --- arch/arm/include/asm/arch-meson/dram-gx.h | 341 + arch/arm/include/asm/arch-meson/dram-gxbb.h| 168 + arch/arm/include/asm/arch-meson/dram-gxl.h | 193 ++ arch/arm/inclu

[PATCH RFC 2/9] mmc: meson_gx_mmc: add minimal non-DM driver

2025-09-07 Thread Ferass El Hafidi
Add a minimal non-DM MMC driver for use in size-constrained environments. Signed-off-by: Ferass El Hafidi --- arch/arm/include/asm/arch-meson/gx.h | 5 +++ drivers/mmc/meson_gx_mmc.c | 75 +++- 2 files changed, 79 insertions(+), 1 deletion(-) diff --gi

[PATCH RFC 5/9] arm: meson: initial u-boot SPL support for GX SoCs

2025-09-07 Thread Ferass El Hafidi
Add initial boilerplate for U-Boot SPL support on Amlogic. Signed-off-by: Ferass El Hafidi --- arch/arm/include/asm/arch-meson/clock-gx.h | 1 + arch/arm/include/asm/arch-meson/gx.h | 36 arch/arm/mach-meson/Kconfig| 42 - arch/arm/mach-meson/Makefile

[PATCH RFC 4/9] serial: serial_meson: add minimal non-DM driver

2025-09-07 Thread Ferass El Hafidi
It is very limited and minimal, only implements putc/puts. This minimal driver is intended to be used in SPL, and other size-constrained situations. Signed-off-by: Ferass El Hafidi --- drivers/serial/serial.c | 2 + drivers/serial/serial_meson.c | 112

[PATCH RFC 3/9] mmc: meson_gx_mmc: don't bail if there is no clock driver

2025-09-07 Thread Ferass El Hafidi
The clock driver is too big for U-Boot SPL at the moment. In the meantime, continue mmc init even if it is not present. Signed-off-by: Ferass El Hafidi --- drivers/mmc/meson_gx_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc

[PATCH RFC 0/9] initial U-Boot SPL support on Amlogic GX SoCs

2025-09-07 Thread Ferass El Hafidi
This RFC/RFT patch series adds support for U-Boot SPL booting on Amlogic GX SoCs, replacing the historical "bl2.bin" binary that runs as BL2 on these boards. Boards tested: - Libre Computer LaFrite (S805X, 512 MB) - Libre Computer LePotato (S905X, 1 GB) - Videostrong KII Pro (S905) - Xiaomi Mi

[PATCH v2 1/4] clang-format: Add configuration file

2025-09-07 Thread Javier Tia
Introduce .clang-format configuration file to U-Boot, providing significant improvements over the existing scripts/Lindent approach for C code formatting. Benefits of clang-format over scripts/Lindent: - More comprehensive formatting rules: While Lindent relies on the basic 'indent' tool with l

RE: [RFC 02/10] riscv: dts: starfive: Add VisionFive 2 Lite board device tree

2025-09-07 Thread Hal Feng
> On 03.09.25 19:07, Sumit Garg wrote: > On Tue, Sep 02, 2025 at 01:03:09PM -0700, E Shattow wrote: > > Hi Hal, > > > > On 8/28/25 23:09, Hal Feng wrote: > > > VisionFive 2 Lite is a mini SBC based on the StarFive JH7110S SoC. > > > > > > Board features: > > > - JH7110S SoC > > > - 2/4/8 GiB LPDDR4

RE: [PATCH 2/2] mmc: adi_sdhci: Update headers

2025-09-07 Thread Peng Fan
> Subject: [PATCH 2/2] mmc: adi_sdhci: Update headers > > As part of the header dependency cleanup between 2025.07 and > 2025.10, an implicit route to obtain SZ_128M from linux/sizes.h was > removed. This adds an explicit reference to linux/sizes.h to fix build > failures for this driver. > > Sig

Re: [PATCH v3 4/5] Image size checks: Deduplicate Makefile

2025-09-07 Thread Philip Oberfichtner
On Thu, Sep 04, 2025 at 05:03:24PM +0200, Marek Vasut wrote: > On 9/4/25 10:30 AM, Philip Oberfichtner wrote: > > On Wed, Sep 03, 2025 at 03:02:20PM +0200, Marek Vasut wrote: > > > On 9/3/25 12:56 PM, Philip Oberfichtner wrote: > > > > Deduplicate some redundancies within the SIZE_CHECK code in the

[PATCH -next v6 07/10] arm: armv8: mmu: add mmu_unmap_reserved_mem

2025-09-07 Thread Anshul Dalal
For armv8, U-Boot uses a static map defined as 'mem_map' for configuring the MMU's page tables, done by mmu_setup. Though this works well for simpler platforms, it makes creating runtime carveouts by modifying the static array at runtime exceedingly complex like in mach-snapdragon/board.c. Creati

Re: [PATCH] tools: imx8image: Make imx8image_check_params() static

2025-09-07 Thread Fabio Estevam
On Tue, Aug 12, 2025 at 3:23 AM Ilias Apalodimas wrote: > > We are trying to enable -Wmissing-prototypes and this functiion is only > used locally. Mark it as static. > > Signed-off-by: Ilias Apalodimas Applied to next, thanks.

Re: [PATCH v2 1/7] ofnode: support panel-timings in ofnode_decode_display_timing

2025-09-07 Thread Yannick FERTRE
Sorry, bad  answer on this patch: Reviewed-by: Yannick Fertre Le 04/09/2025 à 08:59, Yannick FERTRE a écrit : Hi Raphael, Thanks for the patch. Acked-by: Yannick Fertre Le 03/09/2025 à 14:25, Raphael Gallais-Pou a écrit : The "Display Timings" in panel-common.yaml can be provided by 2 prop

[PATCH -next v6 08/10] spl: split spl_board_fixups to arch/board specific

2025-09-07 Thread Anshul Dalal
The current spl_board_fixups API allows for modification of spl_image before the SPL jumps to it. This can be used to modify the DT for the next boot stage, however the current API only allows either the machine arch or the board to use it. This limits the utility of the API as there might be cert

Re: [PATCH v2 1/2] phytec-imx8m boards: enable OP-TEE for KASLR

2025-09-07 Thread Teresa Remmet
Am Freitag, dem 05.09.2025 um 09:42 -0300 schrieb Fabio Estevam: > Hi Teresa and Yannic, > > On Fri, Sep 5, 2025 at 9:37 AM Teresa Remmet > wrote: > > > I am still not sure if the end of 1GB is the best solution but > > please > > use that for phyCORE-i.MX8M Mini. I plan to send support for the

[PATCH -next v6 0/9] Add support for dynamic MMU configuration

2025-09-07 Thread Anshul Dalal
Hi all, In U-Boot, TI only provides a single memory map for all k3 platforms, this does not scale for devices where atf and optee lie outside the range 0x8000 - 0x8008 and 0x9e78 - 0xa000 respectively. There are also issues for devices with < 2GiB of memory (eg am62SiP with 512MiB

Re: [PATCH] phy: Reset init count on phy exit failure

2025-09-07 Thread Siddharth Vadapalli
On Sun, Sep 07, 2025 at 01:00:44AM +0200, Marek Vasut wrote: Hello Marek, > In case the PHY exit callback reports failure, reset init_count to 0 anyway, > so the next attempt at PHY initialization might try to reinitialize the PHY > and restore it to normal operation. > > Signed-off-by: Marek Va