Re: [PATCH 2/4] arm: dts: k3-binman: Add template for packing HSM firmware

2025-04-27 Thread Beleswar Prasad Padhi
Hi Andrew, On 24/04/25 21:25, Andrew Davis wrote: > On 4/24/25 12:21 AM, Beleswar Prasad Padhi wrote: >> Hi Andrew, >> >> On 22/04/25 20:04, Andrew Davis wrote: >>> On 4/22/25 4:54 AM, Beleswar Padhi wrote: The HSM M4 core needs to be booted at R5 SPL stage so that it can be used for fur

Re: [PATCH v5 9/9] doc: ti: am62: add falcon mode documentation

2025-04-27 Thread Anshul Dalal
On Fri Apr 25, 2025 at 11:35 PM IST, Tom Rini wrote: > On Fri, Apr 25, 2025 at 08:26:40PM +0530, Anshul Dalal wrote: >> This patch adds user documentation for falcon boot for am62 platforms. >> The main section is added to am62x_sk.rst and other documents just >> include the section. Steps to build

Re: [PATCH v2] mtd: mtdpart: Support MTDPART_SIZ_FULL in fixed-partitions

2025-04-27 Thread Mike Looijmans
Gentle ping, anything blocking this? On 08-04-2025 12:31, Michael Nazzareno Trimarchi wrote: Hi On Tue, Apr 8, 2025 at 7:46 AM Mike Looijmans mailto:mike.looijm...@topic.nl>> wrote: Flash partitions may specify MTDPART_SIZ_FULL (=0) as the size of the partition to indicate "the remainder of th

[PATCH v2 1/1] Dockerfile: use QEMU 10.0.0

2025-04-27 Thread Heinrich Schuchardt
The RISC-V emulation has develop quite a bit since 8.2.0. Let's update the QEMU version. Signed-off-by: Heinrich Schuchardt --- v2: Update to QEMU 10.0.0 instead of 9.2.3 --- tools/docker/Dockerfile | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/docker/Do

Re: [PATCH] efi_loader: bootbin: do not load an initrd if none is provided

2025-04-27 Thread Weizhao Ouyang
On Sun, Apr 27, 2025 at 07:45:26PM -0400, Adriano Cordova wrote: > Do not try to create an initrd device path nor try to register > an initrd with the EFI_LOAD_FILE2_PROTOCOL if none is provided. > > Handle initrd installation in efi_binary_run_dp with > efi_install_initrd, imitating what is done

[PATCH v2 5/5] siemens: imx8qxp: remove unused config file

2025-04-27 Thread Heiko Schocher
include/configs/giedi.h is not longer used after siemens imx8qxp cleanup series, so remove it. Signed-off-by: Heiko Schocher --- Changes in v2: - patch siemens: imx8qxp: remove unused config file new in v2 include/configs/giedi.h | 16 1 file changed, 16 deletions(-) delet

[PATCH v2 3/5] siemens: capricorn: defconfig updates

2025-04-27 Thread Heiko Schocher
From: Walter Schweizer add ahab command as secure boot is used on this boards, and enable watchdog, so U-Boot triggers it. Signed-off-by: Walter Schweizer for respelling commit subject and message: Signed-off-by: Heiko Schocher --- Changes in v2: - respelled commit subject and message as su

[PATCH v2 4/5] arm: imx8qxp: capricorn: move env offset settings

2025-04-27 Thread Heiko Schocher
move the ENV_OFFSET settings from common config settings file configs/imx8qxp_capricorn.config to defconfig file for the cxg3 board, as other imx8qxp based boards from siemens has the environment on other offsets. Signed-off-by: Heiko Schocher --- Changes in v2: - new patch arm: imx8qxp: capric

[PATCH v2 2/5] siemens: capricorn: enable text based default environment

2025-04-27 Thread Heiko Schocher
From: Walter Schweizer enable text based default U-Boot Environment by enabling CONFIG_ENV_SOURCE_FILE and adding default environment file: board/siemens/capricorn/capricorn_cxg3.env Signed-off-by: Heiko Schocher Signed-off-by: Walter Schweizer --- Changes in v2: - removed ipaddr and serve

[PATCH v2 1/5] imx8qxp: capricorn defconfig: collect common Kconfig options

2025-04-27 Thread Heiko Schocher
Siemens have some defconfigs for different hardware versions, all based on mainline cxg3 board. For easier updating the downstream defconfigs, move common settings into new file. configs/imx8qxp_capricorn.config Signed-off-by: Heiko Schocher Signed-off-by: Walter Schweizer --- Changes in v2:

[PATCH v2 0/5] Updates for the siemens cxg3 for 2025.07

2025-04-27 Thread Heiko Schocher
some small updates for the cxg3 board: - collect common Kconfig options in an include file, which makes syncing downstream defconfig files easier - Move the U-Boot Environment setttings in a txt file - minor defconfig updates - remove now unused file include/configs/giedi.h - base is now 62e

[PATCH] riscv: insn-def.h: Fix header guard

2025-04-27 Thread Mayuresh Chitale
Fix the erroneous header guard for insn-def.h to reflect the correct header name. Fixes: bfc8ca3f7f6 ("riscv: Add support for defining instructions") Signed-off-by: Mayuresh Chitale --- arch/riscv/include/asm/insn-def.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ar

Re: [PATCH 1/2] Makefile: Strip leading spaces when preprocessing generated_defconfig

2025-04-27 Thread Yao Zi
On Sun, Apr 27, 2025 at 10:16:27AM -0600, Tom Rini wrote: > On Sun, Apr 27, 2025 at 03:46:56PM +, Yao Zi wrote: > > On Sun, Apr 27, 2025 at 05:19:04PM +0200, Heinrich Schuchardt wrote: > > > Am 27. April 2025 16:50:10 MESZ schrieb Yao Zi : > > > >Clang's preprocessor may emit extra spaces for l

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

2025-04-27 Thread Adriano Córdova
Hi Weizhao, Thank you for spotting this. I sent a patch, which you can also find here on top of master: https://github.com/0n41rd4/u-boot/tree/efi_initrd Best, Adriano El dom, 27 abr 2025 a las 5:08, Weizhao Ouyang () escribió: > On Wed, Mar 19, 2025 at 11:45:00AM -0300, Adriano Cordova wrote:

RE: [PATCH] mmc: cv1800b: Fix build without MMC_SUPPORTS_TUNING

2025-04-27 Thread Peng Fan
> Subject: [PATCH] mmc: cv1800b: Fix build without > MMC_SUPPORTS_TUNING > > That's how it looks like without CONFIG_MMC_SUPPORTS_TUNING > before the > patch: > > aarch64-buildroot-linux-gnu-ld.bfd: drivers/mmc/cv1800b_sdhci.o: in > function `cv1800b_execute_tuning': > drivers/mmc/cv1800b_sdhci.c

Re: [PATCH] clk: imx: Pass CCM udevice into clk_register_composite()

2025-04-27 Thread Fabio Estevam
Hi Marek, On Sun, Apr 27, 2025 at 12:40 PM Marek Vasut wrote: > > Pass the clock controller udevice into clk_register_composite(), > so it can be passed further to any registered composite clocks > and used for look up of parent clock referenced in DT "clocks" > and "clock-names" properties by ph

[PATCH] efi_loader: bootbin: do not load an initrd if none is provided

2025-04-27 Thread Adriano Cordova
Do not try to create an initrd device path nor try to register an initrd with the EFI_LOAD_FILE2_PROTOCOL if none is provided. Handle initrd installation in efi_binary_run_dp with efi_install_initrd, imitating what is done for the fdt. Fixes: 36835a9105c ("efi_loader: binary_run: register an init

[PATCH] Add HOST_ARCH detection for armv5tel and armv6l

2025-04-27 Thread Ben Wolsieffer
Since 7506c15, HOST_ARCH is now used by the EFI loader even when CONFIG_SANDBOX is disabled. When cross-compiling, the Makefile defines HOST_ARCH based on the cross-compiler prefix, but this definition fails to cover some common compiler prefixes. When cross-compiling U-Boot in nixpkgs, we use CROS

[PATCH] mmc: cv1800b: Fix build without MMC_SUPPORTS_TUNING

2025-04-27 Thread Alexander Sverdlin
That's how it looks like without CONFIG_MMC_SUPPORTS_TUNING before the patch: aarch64-buildroot-linux-gnu-ld.bfd: drivers/mmc/cv1800b_sdhci.o: in function `cv1800b_execute_tuning': drivers/mmc/cv1800b_sdhci.c:47:(.text.cv1800b_execute_tuning+0x50): undefined reference to `mmc_send_tuning' Signe

Re: [PATCH 1/2] Makefile: Strip leading spaces when preprocessing generated_defconfig

2025-04-27 Thread Yao Zi
On Sun, Apr 27, 2025 at 05:19:04PM +0200, Heinrich Schuchardt wrote: > Am 27. April 2025 16:50:10 MESZ schrieb Yao Zi : > >Clang's preprocessor may emit extra spaces for lines starting with '#'. > >Lines with these extra characters cannot be handled by Kconfig and will > >be ignored with warnings l

Re: [PATCH 1/2] Makefile: Strip leading spaces when preprocessing generated_defconfig

2025-04-27 Thread Tom Rini
On Sun, Apr 27, 2025 at 03:46:56PM +, Yao Zi wrote: > On Sun, Apr 27, 2025 at 05:19:04PM +0200, Heinrich Schuchardt wrote: > > Am 27. April 2025 16:50:10 MESZ schrieb Yao Zi : > > >Clang's preprocessor may emit extra spaces for lines starting with '#'. > > >Lines with these extra characters can

[PATCH] clk: imx: Pass CCM udevice into clk_register_composite()

2025-04-27 Thread Marek Vasut
Pass the clock controller udevice into clk_register_composite(), so it can be passed further to any registered composite clocks and used for look up of parent clock referenced in DT "clocks" and "clock-names" properties by phandle and name pair. Use the clock controller udevice in imx8m_clk_mux_se

Re: [PATCH 1/2] Makefile: Strip leading spaces when preprocessing generated_defconfig

2025-04-27 Thread Heinrich Schuchardt
Am 27. April 2025 16:50:10 MESZ schrieb Yao Zi : >Clang's preprocessor may emit extra spaces for lines starting with '#'. >Lines with these extra characters cannot be handled by Kconfig and will >be ignored with warnings like, > Do you have an example for reprocing the issue? Is there an understa

[PATCH 2/2] riscv: Access gd with inline assembly when building with LTO or Clang

2025-04-27 Thread Yao Zi
Similar to AArch64's case, Clang may wrongly fold accesses to gd pointer which is defined with register qualifier into constants, breaking various components. This patch defines gd as a macro when building with Clang or LTO, which expands to get_gd() that accesses gp pointer in assembly, making RI

[PATCH 1/2] Makefile: Strip leading spaces when preprocessing generated_defconfig

2025-04-27 Thread Yao Zi
Clang's preprocessor may emit extra spaces for lines starting with '#'. Lines with these extra characters cannot be handled by Kconfig and will be ignored with warnings like, unexpected data: # CONFIG_OF_BOARD_FIXUP is not set Those options that is expected to be assigned explicitly with

[PATCH 0/2] Clang compatibility improvements for RISC-V

2025-04-27 Thread Yao Zi
Originally reported by Nathaniel Hourt[1], U-Boot fails to boot on JH7110 platforms (starfive_visionfive2_defconfig) when building with Clang. This series fixes configuration generation with Clang's preprocessor and add an alternative codepath for RISC-V to access gd to workaround misoptimization

[PATCH 2/3] boot/bootmeth-android.c: Reuse fastboot memory block for unzip kernel

2025-04-27 Thread George Chan via B4 Relay
From: George Chan Some androidboot images have gzipped kernel so we need to reuse extra mem block for holding gzipped boot.img, and let loadaddr to hold unzipped kernel data. Here we choose fastboot memory for reuse and avoid dramatically increase memory footprint. Signed-off-by: George Chan --

Re: [PATCH v2] board: starfive: visionfive2: Order board detection logic to match config

2025-04-27 Thread Tom Rini
On Sat, 26 Apr 2025 23:02:52 -0700, E Shattow wrote: > Fixup previous merge resolution of this series. Intent is to ease code > readability and logic to match ordering in CONFIG_OF_LIST > > - Remove "starfive/" string math > - Remove redundant local cache of calls to get_*_from_eeprom() > - Match

[PATCH 3/3] mach-snapdragon: Add support to append string to kernel cmdline

2025-04-27 Thread George Chan via B4 Relay
From: George Chan Add support for blindly appending string to bootargs env_param and let boot process take care of it. Signed-off-by: George Chan --- arch/arm/mach-snapdragon/Kconfig | 11 + arch/arm/mach-snapdragon/board.c | 97 2 files changed, 10

[PATCH 1/3] boot/image-android.c: Workaround androidboot kernel/ramdisk addr

2025-04-27 Thread George Chan via B4 Relay
From: George Chan Some vendor bootloader ignored kernel/ramdisk addr and use their own addr. Even those addr are pointing to out-of-reach memory block at 0, and available address start at 0x8000. So we also need to use our own available addr for loadaddr. Signed-off-by: George Chan --- bo

[PATCH 0/3] u-boot chain-loading LineageOS bootimg

2025-04-27 Thread George Chan via B4 Relay
+ boot/bootmeth_android.c | 12 + boot/image-android.c | 10 + 4 files changed, 130 insertions(+) --- base-commit: 5a0a93a768487e55ebe50a34cc90d751bf99cc56 change-id: 20250427-android-boot-ecbb768cda72 Best regards, -- George Chan

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

2025-04-27 Thread Weizhao Ouyang
On Wed, Mar 19, 2025 at 11:45:00AM -0300, Adriano Cordova wrote: > Add support to install an initrd when running an EFI binary > with efi_binary_run > > Signed-off-by: Adriano Cordova Hi Adriano, Recently I bumped U-Boot version on my Debian kit then it crashed while booting linux kernel: GRUB

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

2025-04-27 Thread E Shattow
Hi, Tom! On 4/26/25 07:14, Tom Rini wrote: > On Fri, Apr 25, 2025 at 06:13:38PM -0700, E Shattow wrote: >> The outcome of that merge went a bit weird for >> board/starfive/visionfive2/spl.c >> >> On 4/25/25 16:43, Tom Rini wrote: >>> On Fri, 25 Apr 2025 18:07:54 +0800, Leo Liang wrote: >>> Th

[v3 PATCH 1/4] arm: dts: k3-j784s4-r5-evm: Add the PMIC ESM node

2025-04-27 Thread Udit Kumar
From: Neha Malcom Francis Add the PMIC ESM node which is responsible for triggering the PMIC reset. Signed-off-by: Neha Malcom Francis Signed-off-by: Andrew Halaney --- arch/arm/dts/k3-j784s4-r5-evm.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/k3-j784s4-r5-evm.d

[v3 PATCH 2/4] arm: dts: k3-am69-r5-evm: Add the PMIC ESM node

2025-04-27 Thread Udit Kumar
From: Andrew Halaney Add the PMIC ESM node which is responsible for triggering the PMIC reset. Suggested-by: Udit Kumar Signed-off-by: Andrew Halaney --- arch/arm/dts/k3-am69-r5-sk.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/k3-am69-r5-sk.dts b/arch/arm/dts/k3-

[v3 PATCH 4/4] configs: j784s4_evm_r5: Enable ESM related configs

2025-04-27 Thread Udit Kumar
From: Andrew Halaney Like other TI platforms, let's enable the ESM. This allows the ESM to be programmed during boot, and the PMIC associated with the ESM output, enabling blocks like the RTI watchdogs to actually cause the system to reset. Signed-off-by: Andrew Halaney Signed-off-by: Udit Kuma

[v3 PATCH 3/4] board: ti: j784s4: Initialize the ESM & PMIC ESM

2025-04-27 Thread Udit Kumar
From: Keerthy Initialize the ESM & PMIC ESM. This allows things like the watchdog to reset the board when tripped. Signed-off-by: Keerthy Signed-off-by: Neha Malcom Francis Signed-off-by: Andrew Halaney --- board/ti/j784s4/evm.c | 24 1 file changed, 24 insertions(+)

[v3 PATCH 0/4] k3-j784s4*: Enable ESMs and related PMIC

2025-04-27 Thread Udit Kumar
This series enables the ESMs and the associated PMIC. Programming these bits is a requirement to make the watchdog actually reset the board. Series supports WDT reset on all TI platforms based upon J784S4 SOC including cut down (J742S2). Bootlogs for reset AM69: https://gist.github.com/uditkum