Re: [PATCH] riscv: dts: binman.dtsi: Drop filename property for proper U-Boot

2025-05-07 Thread Leo Liang
On Sat, Apr 26, 2025 at 05:26:02PM +, Yao Zi wrote: > Drop filename property for proper U-Boot entry since binman takes > "u-boot-nodtb.bin" as the default filename for u-boot-nodtb entries. > > This follows efe9c12322b ("riscv: dts: binman.dtsi: Switch to > u-boot-nodtb entry for proper U-Boo

Re: [PATCH v3 1/4] disk: part: implement generic function part_get_info_by_uuid()

2025-05-07 Thread Varadarajan Narayanan
On Wed, May 07, 2025 at 01:47:40PM +0200, Casey Connolly wrote: > Hi Varadarajan, > > On 5/7/25 13:28, Varadarajan Narayanan wrote: > > Add function to search for a partition by UUID as partition > > names may not be unique. > > > > Signed-off-by: Varadarajan Narayanan > > --- > > disk/part.c

Re: [PATCH v6 1/9] spl: Kconfig: allow K3 devices to use falcon mode

2025-05-07 Thread Raghavendra, Vignesh
On 5/8/2025 8:42 AM, Anshul Dalal wrote: > On Wed May 7, 2025 at 11:36 PM IST, Andrew Davis wrote: >> On 5/6/25 10:33 PM, Anshul Dalal wrote: >>> On Tue May 6, 2025 at 8:03 PM IST, Andrew Davis wrote: On 4/28/25 9:12 AM, Anshul Dalal wrote: > Falcon mode was disabled for TI_SECURE_DEVIC

Re: [PATCH 0/7] rockchip: Add boot from USB OTG port

2025-05-07 Thread Kever Yang
Hi Arnaud, On 2025/5/7 23:31, Arnaud Patard wrote: Hi, On Tue, 2025-05-06 at 15:53 +0800, Kever Yang wrote: Hi Naoki, On 2025/2/11 13:33, FUKAUMI Naoki wrote: This patch series adds the ability to boot from the USB OTG port to the RK3588, RK3568, RK3566, RK3399, RK3328, and RK3308. Use rkfl

Re: [PATCH v4] board: rockchip: add Xunlong Orange Pi 5 Max

2025-05-07 Thread Kever Yang
On 2025/4/23 23:36, Ilya Katsnelson wrote: The 5 Max is another board in the Orange Pi 5 family. It's overall similar to the 5 Plus, but in a smaller form factor, which leads to some I/O being reshuffled, but nothing relevant to u-boot. So, just reuse the config for the 5 Plus and adjust the

Re: [PATCH v2 2/4] rockchip: Add support for RAM boot from maskrom mode

2025-05-07 Thread Kever Yang
Hi Jonas,     Thanks for your patch, and the ramboot with usb download do help bootloader developers. On 2025/4/5 23:38, Jonas Karlman wrote: The BootROM in Rockchip SoCs will enter maskrom mode when boot firmware cannot be found in nand/spi/mmc storage. In maskrom mode the USB OTG port can

Re: [PATCH 2/2] net: gmac_rockchip: Add RMII support for rk3288

2025-05-07 Thread Kever Yang
On 2025/4/16 19:45, Christoph Fritz wrote: Add RMII-specific handling to rk3288_gmac_fix_mac_speed() so that it properly sets the RMII clock (2.5 MHz vs. 25 MHz) and speed bits (10 Mbps vs. 100 Mbps). Also define a new rk3288_gmac_set_to_rmii() function to set the PHY interface field and RMII_M

Re: [PATCH 1/2] rockchip: rk3288: grf: Unify speed/flowctrl fields for clarity

2025-05-07 Thread Kever Yang
On 2025/4/16 19:44, Christoph Fritz wrote: Update GMAC speed and flow control fields in GRF_SOC_CON1 to use RK3288_GMAC_* prefix, ensuring a consistent naming convention. It also shifts each mask/bit definition to match the actual hardware bits, which makes future usage easier. Signed-off-by:

Re: [PATCH v6 1/9] spl: Kconfig: allow K3 devices to use falcon mode

2025-05-07 Thread Anshul Dalal
On Wed May 7, 2025 at 11:36 PM IST, Andrew Davis wrote: > On 5/6/25 10:33 PM, Anshul Dalal wrote: >> On Tue May 6, 2025 at 8:03 PM IST, Andrew Davis wrote: >>> On 4/28/25 9:12 AM, Anshul Dalal wrote: Falcon mode was disabled for TI_SECURE_DEVICE at commit e95b9b4437bc ("ti_armv7_common: D

Re: [PATCH v2] board: rockchip: Add LCKFB TaishanPi RK3566 Board

2025-05-07 Thread Kever Yang
On 2025/4/15 15:36, Jiehui He wrote: The LCKFB TaishanPi is a single-board computer based on the RK3566 SoC. Specification: - 1/2 Gib RAM - Optinal EMMC - SD-Card - HDMI / MIPI CSI / MIPI DSI - USB 2.0 Host (Type-A) - USB 2.0 Host / OTG (Type-C) - No Ethernet This patch adds U-Boot support fo

Re: [PATCH v2 1/4] rockchip: Move TEXT_BASE to 8 MiB offset from start of DRAM

2025-05-07 Thread Kever Yang
On 2025/4/5 23:38, Jonas Karlman wrote: Drop SoC specific TEXT_BASE and use a common TEXT_BASE for all SoCs. Move the common TEXT_BASE to 8 MiB offset from start of DRAM to help support RAM boot from maskrom introduced in next patch. RAM boot from maskrom mode will expect the FIT payload to b

Re: [PATCH 4/4] board: rockchip: Add ArmSoM Sige5

2025-05-07 Thread Kever Yang
On 2025/4/23 05:12, Jonas Karlman wrote: ArmSoM-Sige5 adopts the second-generation 8nm high-performance AIOT platform Rockchip RK3576, with a 6 TOPS computing power NPU and support for up to 16GB of large memory. It supports 4K video encoding and decoding, offers rich interfaces including dual

Re: [PATCH 3/4] board: rockchip: Add minimal generic RK3576 board

2025-05-07 Thread Kever Yang
On 2025/4/23 05:12, Jonas Karlman wrote: Add a minimal generic RK3576 board that only have eMMC and SDMMC enabled. This defconfig can be used to boot from eMMC or SD-card on most RK3576 boards that follow reference board design. eMMC and SD-card boot tested on: - ArmSoM Sige5 - Toybrick TB-RK3

Re: [PATCH 2/4] rockchip: rk3576: Implement checkboard() to print SoC variant

2025-05-07 Thread Kever Yang
On 2025/4/23 05:12, Jonas Karlman wrote: Implement checkboard() to print current SoC model used by a board when U-Boot proper is running. U-Boot 2025.04 (Apr 22 2025 - 20:43:17 +) Model: Generic RK3576 SoC: RK3576 DRAM: 8 GiB Information about the SoC model and variant is

Re: [PATCH 1/4] rockchip: rk3576: Add rng node to u-boot.dtsi

2025-05-07 Thread Kever Yang
On 2025/4/23 05:12, Jonas Karlman wrote: The RK3576 SoC contains a RKRNG block that can be used to generate random numbers using the rockchip_rng driver. => rng list RNG #0 - rng@2a41 => rng : 36 dd ab 98 ec fb fe d1 cf 36 b3 e1 9b 3d 00 90 66...=.. 001

[PATCH] board: sama5d27_wlsom1_ek: Get RAM size and base from devicetree

2025-05-07 Thread Fabio Estevam
From: Fabio Estevam Instead of using defines for the RAM size and base address, retrieve these information from the devicetree. This aligns with the sama5d27_som1_ek board in commit 73c1589f025d9 ("board: sama5d27_som1_ek: Get dram size and base from device tree"). While at it, remove a spuriou

Re: [PATCH 1/1] arm: cpu: armv7m: add required .type name, %function directive

2025-05-07 Thread Johannes Krottmayer
Hi Tom! On 5/8/25 00:51, Tom Rini wrote: > On Wed, May 07, 2025 at 07:07:03PM +, Johannes Krottmayer wrote: >> Hi Tom! >> >> Okay, STT_FUNC is an alternative spelling for %function, didn't >> know that before. So my question is deprecated. >> >> Sorry, for wasting your time. >> >> BTW, I will

[PATCH 3/3] doc: pytest: Document the test_efi_loader test

2025-05-07 Thread Tom Rini
Add this test to the documentation. We need to add a code-block annotation to the example and indent it correctly. We also need to document the do_test_efi_helloworld_net function and that in turn means changing the documentation to test_efi_helloworld_net_http and test_efi_helloworld_net_tftp to r

[PATCH 2/3] doc: pytest: Document the test_bootstage test

2025-05-07 Thread Tom Rini
Add this test to the documentation. We need to move the import to follow the main comment so that it renders correctly, and add a code-block annotation to the example and indent it correctly. Next, neither of the functions had comments themselves, so document them now. Signed-off-by: Tom Rini ---

[PATCH 1/3] doc: pytest: Document the test_net test

2025-05-07 Thread Tom Rini
Add this test to the documentation. While the diff appears large at first, the only changes within the test are to move the imports to follow the pydoc comment and then to code-block and indent the example configuration. Signed-off-by: Tom Rini --- Cc: Heinrich Schuchardt Cc: Simon Glass --- d

[PATCH 0/3] Document more pytests

2025-05-07 Thread Tom Rini
Hey all, As a follow-up to my previous series about adding pytests to the documentation, this small series adds and updates the tests which I had been enabling in my labs. Making the existing examples easier to find will hopefully make it easier for other labs to enable them. -- Tom

Re: [PATCH 1/1] arm: cpu: armv7m: add required .type name, %function directive

2025-05-07 Thread Tom Rini
On Wed, May 07, 2025 at 07:07:03PM +, Johannes Krottmayer wrote: > Hi Tom! > > Okay, STT_FUNC is an alternative spelling for %function, didn't > know that before. So my question is deprecated. > > Sorry, for wasting your time. > > BTW, I will add the required macros and also try to add the V

U-Boot support for wolfTPM and firmware update for SLB9672/SLB9673

2025-05-07 Thread David Garske
patch.diff Description: Binary data

[PATCH v2 4/4] test: test_net_boot: Add more comments

2025-05-07 Thread Tom Rini
Some of the functions were missing pydoc comments. Add them so they will be included in the documentation. Reported-by: Heinrich Schuchardt Signed-off-by: Tom Rini --- Cc: Heinrich Schuchardt Cc: Simon Glass --- test/py/tests/test_net_boot.py | 14 ++ 1 file changed, 14 insertions

[PATCH v2 3/4] doc: pytest: Document the test_net_boot test

2025-05-07 Thread Tom Rini
Add the test_net_boot.py test to the generated documentation. While most of this was already commented correctly for inclusion the biggest problem was examples of code without a code-block notation. This in turn broke parsing. Add the missing notations. We also must have the comment prior to any im

[PATCH v2 1/4] doc: Start improving our pytest documentation

2025-05-07 Thread Tom Rini
Begin the work of documenting all of our pytests. To do this, we should have a directory under develop for it as there will be a large number of new files. As the current document is referenced externally in a number of locations, add the sphinx_reredirects module so that we can redirect from the o

[PATCH v2 2/4] doc: pytest: Framework for documenting tests and document test_000_version

2025-05-07 Thread Tom Rini
In order to easily document pytests, we need to include the autodoc extension. We also need to make sure that for building the docs, CI includes pytest and that we have PYTHONPATH configured such that it will find all of the tests and related files. Finally, we need to have our comments in the test

[PATCH v2 0/4] Start improving pytest documentation

2025-05-07 Thread Tom Rini
Hey all, This is a follow-up to the RFC I posted a few months back. Aside from rebasing, the only real change here is in the last patch where I document the functions in test_net_boot.py that Heinrich noted weren't documented before. Link: https://lore.kernel.org/all/20250225205003.2640910-1-tr..

Re: [PATCH 1/1] arm: cpu: armv7m: add required .type name, %function directive

2025-05-07 Thread Johannes Krottmayer
Hello Tom, Patrick and Patrice! For the ARMv7-M architecture depended code and for the boards as example from STMicroelectronics: There are a few missing but 'maybe' required initialization steps which I haven't seen yet in the U-Boot code: 1) AHB (Advanced High-performance Bus) According the T

Re: [PATCH 1/1] arm: cpu: armv7m: add required .type name, %function directive

2025-05-07 Thread Johannes Krottmayer
Hi Tom! Okay, STT_FUNC is an alternative spelling for %function, didn't know that before. So my question is deprecated. Sorry, for wasting your time. BTW, I will add the required macros and also try to add the VFP support. But I think it's better in two different patches. First patch with the EN

Re: [PATCH] riscv: set the width of the physical address/size data type based on arch

2025-05-07 Thread Sughosh Ganu
On Wed, 7 May 2025 at 21:18, Tom Rini wrote: > > On Wed, May 07, 2025 at 03:11:38PM +0530, Sughosh Ganu wrote: > > On Wed, 7 May 2025 at 13:19, Sughosh Ganu wrote: > > > > > > On Tue, 6 May 2025 at 16:35, Heinrich Schuchardt > > > wrote: > > > > > > > > > > > > > > > > Sughosh Ganu schrieb am D

Re: [PATCH 1/1] arm: cpu: armv7m: add required .type name, %function directive

2025-05-07 Thread Johannes Krottmayer
Hi Tom! Thanks for the quick response! On 5/7/25 18:55, Tom Rini wrote: > On Wed, May 07, 2025 at 06:07:54AM +, Johannes Krottmayer wrote: > >> Since GNU binutils version 2.44, assembly functions must include >> the assembler directive .type name, %function. If not a call to >> these functio

Re: [PATCH v6 1/9] spl: Kconfig: allow K3 devices to use falcon mode

2025-05-07 Thread Andrew Davis
On 5/6/25 10:33 PM, Anshul Dalal wrote: On Tue May 6, 2025 at 8:03 PM IST, Andrew Davis wrote: On 4/28/25 9:12 AM, Anshul Dalal wrote: Falcon mode was disabled for TI_SECURE_DEVICE at commit e95b9b4437bc ("ti_armv7_common: Disable Falcon Mode on HS devices") for older 32-bit HS devices and can

Re: [PATCH v2 4/7] arm: dts: k3-{j721s2/j784s4}-binman: Pack HSM firmware inside tispl.bin

2025-05-07 Thread Beleswar Prasad Padhi
On 5/7/2025 3:09 PM, Anshul Dalal wrote: On Tue May 6, 2025 at 4:11 PM IST, Beleswar Padhi wrote: Pack the HSM firmware in tispl.bin fit image so that it can be unloaded and used by R5 SPL to boot the HSM core. By default, point to the firmware for HS-SE device type. This needs to be changed t

Re: [PATCH 2/3] efi_loader: fix dtbdump output color and format

2025-05-07 Thread Heinrich Schuchardt
Am 7. Mai 2025 16:46:18 MESZ schrieb Adriano Cordova : >Imitate in dtbdump what initrddump does for color, >newlines and input handling. The output parsing in >the CI is strict and with the current output the CI >is not recongnizing the prompt '=>'. > >Signed-off-by: Adriano Cordova >--- > lib/efi

Re: [PATCH V3] tiny-printf: Handle formatting of %p with an extra Kconfig

2025-05-07 Thread Tom Rini
On Wed, Apr 30, 2025 at 12:35:48PM +0200, Christoph Niedermaier wrote: > The formatting with %pa / %pap behaves like %x, which results in an > incorrect value being output. To improve this, a new fine-tuning > Kconfig SPL_USE_TINY_PRINTF_POINTER_SUPPORT for pointer formatting > has been added. If

Adding Device Tree Overlays for MIPI-CSI2 Camera and libcamera to u-boot in a buildroot or Yocto Build

2025-05-07 Thread u-boot
Hi, Does anyone have any advice on how to add DTOs needed by libcamera to a u-boot in a buildroot or Yocto build or on whether it's more appropriate to add them as part of u-boot or as another part of the build? We'd like to add Kieran's DTOs https://git.uk.ideasonboard.com/camera/dt-overlay

Re: [PATCH v3 2/4] scsi: Implement get_blk() function

2025-05-07 Thread Tom Rini
On Wed, May 07, 2025 at 01:57:11PM +0200, Casey Connolly wrote: > > > On 5/7/25 13:28, Varadarajan Narayanan wrote: > > Add a function to obtain the block device for SCSI. > > > > Signed-off-by: Varadarajan Narayanan > > --- > > v3: * s/scsi_get_blk/scsi_get_blk_by_uuid > > * s/partition_n

Re: [PATCH 1/1] arm: cpu: armv7m: add required .type name, %function directive

2025-05-07 Thread Tom Rini
On Wed, May 07, 2025 at 06:07:54AM +, Johannes Krottmayer wrote: > Since GNU binutils version 2.44, assembly functions must include > the assembler directive .type name, %function. If not a call to > these functions fails with the error message 'Unknown destination > type (ARM/Thumb)' and the

Re: [PATCH v2 0/7] Add support to boot TI K3 HSM M4 core

2025-05-07 Thread Andrew Davis
On 5/7/25 5:28 AM, Beleswar Prasad Padhi wrote: Hi Andrew, On 06/05/25 23:42, Andrew Davis wrote: On 5/6/25 12:19 PM, Tom Rini wrote: On Tue, May 06, 2025 at 10:47:57PM +0530, Kumar, Udit wrote: On 5/6/2025 8:38 PM, Andrew Davis wrote: On 5/6/25 9:51 AM, Beleswar Prasad Padhi wrote: Hi And

Re: [PATCH 1/3] include: env: phytec: k3_net: Remove net_apply_extensions

2025-05-07 Thread Tom Rini
On Mon, 28 Apr 2025 07:49:02 -0700, Daniel Schultz wrote: > Extensions are now handled by the board-code. Remove this non-existing > function to proper boot from network. > > Applied to u-boot/master, thanks! [1/3] include: env: phytec: k3_net: Remove net_apply_extensions commit: e75070a

Re: [PATCH v2 1/3] Bring in linux/limits.h

2025-05-07 Thread Tom Rini
On Wed, May 07, 2025 at 09:23:23AM -0600, Tom Rini wrote: > On Wed, May 07, 2025 at 10:47:13AM +0200, Simon Glass wrote: > > Hi Tom, > > > > On Fri, 18 Apr 2025 at 15:39, Tom Rini wrote: > > > > > > On Fri, Apr 18, 2025 at 04:59:13AM -0600, Simon Glass wrote: > > > > > > > From: Simon Glass > >

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

2025-05-07 Thread Tom Rini
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 anything, but makes the > macros harder to re

Re: [PATCH 1/3] efi_loader: initrddump: use efi_uintn_t in printx

2025-05-07 Thread Adriano Cordova Fedeli
On Wed, 7 May 2025 at 11:03, Heinrich Schuchardt wrote: > Am 7. Mai 2025 16:46:17 MESZ schrieb Adriano Cordova : > >Use efi_uintn_t so that it also works in 32-bits. > > > >Signed-off-by: Adriano Cordova > >--- > > lib/efi_loader/initrddump.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 delet

Re: [PATCH] common: add config for board_init() call

2025-05-07 Thread Tom Rini
On Wed, May 07, 2025 at 01:23:42PM +0100, Ben Dooks wrote: > Add CONFIG_BOARD_INIT to specifu if the board_init() needs calling > during initcall phase, and default it to 'y' for the relevant > architectures which probably need it. > > This allows anyone with a board that doesn't need it to just

Re: [PATCH] riscv: set the width of the physical address/size data type based on arch

2025-05-07 Thread Tom Rini
On Wed, May 07, 2025 at 03:11:38PM +0530, Sughosh Ganu wrote: > On Wed, 7 May 2025 at 13:19, Sughosh Ganu wrote: > > > > On Tue, 6 May 2025 at 16:35, Heinrich Schuchardt > > wrote: > > > > > > > > > > > > Sughosh Ganu schrieb am Di., 6. Mai 2025, 12:50: > > >> > > >> On Tue, 6 May 2025 at 15:19,

[PATCH 1/3] efi_loader: initrddump: use efi_uintn_t in printx

2025-05-07 Thread Adriano Cordova
Use efi_uintn_t so that it also works in 32-bits. Signed-off-by: Adriano Cordova --- lib/efi_loader/initrddump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/initrddump.c b/lib/efi_loader/initrddump.c index 615119043d1..8d08f7c5cd5 100644 --- a/lib/efi_l

Re: [PATCH 0/7] rockchip: Add boot from USB OTG port

2025-05-07 Thread Arnaud Patard
Hi, On Tue, 2025-05-06 at 15:53 +0800, Kever Yang wrote: > Hi Naoki, > > On 2025/2/11 13:33, FUKAUMI Naoki wrote: > > This patch series adds the ability to boot from the USB OTG port to > > the RK3588, RK3568, RK3566, RK3399, RK3328, and RK3308. > > > > Use rkflashtool[1] or rkusbboot[2] > > Do

Re: [PATCH 1/3] efi_loader: initrddump: use efi_uintn_t in printx

2025-05-07 Thread Heinrich Schuchardt
Am 7. Mai 2025 16:46:17 MESZ schrieb Adriano Cordova : >Use efi_uintn_t so that it also works in 32-bits. > >Signed-off-by: Adriano Cordova >--- > lib/efi_loader/initrddump.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/lib/efi_loader/initrddump.c b/lib/efi_loader/ini

Re: [PATCH 1/7] board: phytec: phycore_am62x: Update environment for fitboot

2025-05-07 Thread Tom Rini
On Mon, Apr 28, 2025 at 03:45:25PM +0200, Wadim Egorov wrote: > From: Nathan Morrisson > > Add fit_addr_r to the environment to allow us to boot from a FIT image. > > Signed-off-by: Nathan Morrisson > Signed-off-by: Wadim Egorov > --- > board/phytec/phycore_am62x/phycore_am62x.env | 1 + > 1

Re: [PATCH v2 1/3] Bring in linux/limits.h

2025-05-07 Thread Tom Rini
On Wed, May 07, 2025 at 10:47:13AM +0200, Simon Glass wrote: > Hi Tom, > > On Fri, 18 Apr 2025 at 15:39, Tom Rini wrote: > > > > On Fri, Apr 18, 2025 at 04:59:13AM -0600, Simon Glass wrote: > > > > > From: Simon Glass > > > > > > Add part of this file from Linux v6.14 so we can include it from t

Re: [PATCH v2 4/7] arm: dts: k3-{j721s2/j784s4}-binman: Pack HSM firmware inside tispl.bin

2025-05-07 Thread Andrew Davis
On 5/7/25 9:56 AM, Beleswar Prasad Padhi wrote: On 5/7/2025 3:09 PM, Anshul Dalal wrote: On Tue May 6, 2025 at 4:11 PM IST, Beleswar Padhi wrote: Pack the HSM firmware in tispl.bin fit image so that it can be unloaded and used by R5 SPL to boot the HSM core. By default, point to the firmware f

Re: [PATCH 3/3] test/py/test_efi_fit: test fdt and initrd

2025-05-07 Thread Heinrich Schuchardt
Am 7. Mai 2025 16:46:19 MESZ schrieb Adriano Cordova : >Signed-off-by: Adriano Cordova Please, provide a commit message. >--- > test/py/tests/test_efi_fit.py | 156 +++--- > 1 file changed, 124 insertions(+), 32 deletions(-) > >diff --git a/test/py/tests/test_efi_fi

[PATCH 0/3] efi_loader: test EFI booting FIT images with initrd and dtb

2025-05-07 Thread Adriano Cordova
Test booting a FIT image with an EFI kernel and either a dtb or an initrd. For this, some changes to dtbdump and initrddump are needed. test_efi_fit creates a test image as follows: - helloworld.efi as first "kernel" binary - dtbdump.efi as second "kernel" binary - initrddump.efi as third "kernel"

[PATCH 3/3] test/py/test_efi_fit: test fdt and initrd

2025-05-07 Thread Adriano Cordova
Signed-off-by: Adriano Cordova --- test/py/tests/test_efi_fit.py | 156 +++--- 1 file changed, 124 insertions(+), 32 deletions(-) diff --git a/test/py/tests/test_efi_fit.py b/test/py/tests/test_efi_fit.py index 5f352e7efff..63ee8e6cef2 100644 --- a/test/py/tests/test_

[PATCH 2/3] efi_loader: fix dtbdump output color and format

2025-05-07 Thread Adriano Cordova
Imitate in dtbdump what initrddump does for color, newlines and input handling. The output parsing in the CI is strict and with the current output the CI is not recongnizing the prompt '=>'. Signed-off-by: Adriano Cordova --- lib/efi_loader/dtbdump.c | 86 ++--

Re: Odroid n2+ usb broken on reboot

2025-05-07 Thread Wayne Schroeder
It's hard for me to quantify if usb works in u-boot as I'm not loading off of any usb storage devices. It certainly never lets me use the keyboard to abort auto boot, and never has. On reboot, to reliably get it to work, I have to do a usb reset and sleep some amount of time before doing distro b

[PATCH v3 4/4] configs: qcs9100: Enable env in SCSI

2025-05-07 Thread Varadarajan Narayanan
Enable CONFIG_ENV_IS_IN_SCSI to store environment variables in SCSI. Set env variables partition UUID as seen in qcs9100 based boards. Signed-off-by: Varadarajan Narayanan --- v3: s/CONFIG_SCSI_ENV_PART/CONFIG_SCSI_ENV_PART_UUID --- configs/qcs9100_defconfig | 5 - 1 file changed, 4 insertio

Re: Odroid n2+ usb broken on reboot

2025-05-07 Thread Anand Moon
Hi Wayne, On Wed, 7 May 2025 at 17:31, Neil Armstrong via groups.io wrote: > > On 05/05/2025 15:12, Wayne Schroeder wrote: > > If I add the usb reset command, it works reliably at reboot, but it > > does not work on a fresh power-up with that change. > > OK this means there's a dangling resource,

Re: [PATCH v3 4/4] configs: qcs9100: Enable env in SCSI

2025-05-07 Thread Casey Connolly
Hi Varadarajan, On 5/7/25 13:28, Varadarajan Narayanan wrote: Enable CONFIG_ENV_IS_IN_SCSI to store environment variables in SCSI. Set env variables partition UUID as seen in qcs9100 based boards. Signed-off-by: Varadarajan Narayanan --- v3: s/CONFIG_SCSI_ENV_PART/CONFIG_SCSI_ENV_PART_UUID ---

Re: [PATCH v3 2/4] scsi: Implement get_blk() function

2025-05-07 Thread Casey Connolly
On 5/7/25 13:28, Varadarajan Narayanan wrote: Add a function to obtain the block device for SCSI. Signed-off-by: Varadarajan Narayanan --- v3: * s/scsi_get_blk/scsi_get_blk_by_uuid * s/partition_name/uuid --- drivers/scsi/scsi-uclass.c | 30 ++ include/scs

Re: [PATCH v3 1/4] disk: part: implement generic function part_get_info_by_uuid()

2025-05-07 Thread Casey Connolly
Hi Varadarajan, On 5/7/25 13:28, Varadarajan Narayanan wrote: Add function to search for a partition by UUID as partition names may not be unique. Signed-off-by: Varadarajan Narayanan --- disk/part.c| 37 + include/part.h | 20 2

[PATCH] common: add config for board_init() call

2025-05-07 Thread Ben Dooks
Add CONFIG_BOARD_INIT to specifu if the board_init() needs calling during initcall phase, and default it to 'y' for the relevant architectures which probably need it. This allows anyone with a board that doesn't need it to just remove it from the initcall list w/o an empty code block in the board

[PATCH 1/4] linux/list.h: drop use of prefetch()

2025-05-07 Thread Rasmus Villemoes
The use of prefetch() in these list helpers was dropped back in 2011 in linux (e66eed651fd1 ("list: remove prefetching from regular list iterators")). No arch in U-Boot defines any actual prefetch(), and as the referenced commit says, it's usually not a win anyway. Whole-sale sync of list.h is not

[PATCH 2/4] treewide: drop no-op prefetch() calls

2025-05-07 Thread Rasmus Villemoes
These all end up using the no-op prefetch() defined in linux/list.h, because the only possible real implementation is in arch/mips/include/asm/processor.h, which is behing CONFIG_CPU_HAS_PREFETCH which is nowhere defined. In order to be able to drop that fallback definition from list.h, first remo

[PATCH 4/4] linux/list.h: drop fallback definition of prefetch()

2025-05-07 Thread Rasmus Villemoes
None of the list helpers use prefetch() anymore, and no C code relies on getting this definition from list.h. In any case, such an arch/cpu specific thing does not belong in a header that just consists of cpp helper macros. Signed-off-by: Rasmus Villemoes --- include/linux/list.h | 5 - 1 fi

[PATCH 3/4] mips: drop unused prefetch code and logic

2025-05-07 Thread Rasmus Villemoes
AFAICT, CONFIG_CPU_HAS_PREFETCH has never existed as a proper Kconfig symbol in U-Boot, nor has any board include file ever defined it. Signed-off-by: Rasmus Villemoes --- arch/mips/include/asm/processor.h | 16 1 file changed, 16 deletions(-) diff --git a/arch/mips/include/asm

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

2025-05-07 Thread Rasmus Villemoes
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 anything, but makes the macros harder to read, so get rid of it, and the fallback, no-op definition that they relied o

Re: [PATCH RFT v3 0/3] fastboot: add support for generic block flashing

2025-05-07 Thread Neil Armstrong
On 07/05/2025 12:02, Mattijs Korpershoek wrote: Hi Neil, Thank you for the series. On mar., mai 06, 2025 at 18:10, neil.armstr...@linaro.org wrote: This serie permits using any block device as target for fastboot by moving the generic block logic into a common set of helpers and also use them

Re: Odroid n2+ usb broken on reboot

2025-05-07 Thread neil . armstrong
On 05/05/2025 15:12, Wayne Schroeder wrote: If I add the usb reset command, it works reliably at reboot, but it does not work on a fresh power-up with that change. OK this means there's a dangling resource, Does USB always work within U-Boot or it breaks U-Boot and Linux in those cases ? On

[PATCH v3 3/4] env: Add support for storing env variables in SCSI devices

2025-05-07 Thread Varadarajan Narayanan
Allow SCSI to be able to store environment variables. Signed-off-by: Varadarajan Narayanan --- v3: s/SCSI_ENV_PART/SCSI_ENV_PART_UUID --- env/Kconfig| 15 +- env/Makefile | 1 + env/env.c | 3 ++ env/scsi.c | 115 +++

[PATCH v3 1/4] disk: part: implement generic function part_get_info_by_uuid()

2025-05-07 Thread Varadarajan Narayanan
Add function to search for a partition by UUID as partition names may not be unique. Signed-off-by: Varadarajan Narayanan --- disk/part.c| 37 + include/part.h | 20 2 files changed, 57 insertions(+) diff --git a/disk/part.c b/disk/pa

[PATCH v3 2/4] scsi: Implement get_blk() function

2025-05-07 Thread Varadarajan Narayanan
Add a function to obtain the block device for SCSI. Signed-off-by: Varadarajan Narayanan --- v3: * s/scsi_get_blk/scsi_get_blk_by_uuid * s/partition_name/uuid --- drivers/scsi/scsi-uclass.c | 30 ++ include/scsi.h | 10 ++ 2 files changed, 40 i

[PATCH v3 0/4] Enable env in SCSI

2025-05-07 Thread Varadarajan Narayanan
The qcs9100 based Ride platforms have UFS as their primary storage. Hence add support to U-Boot env framework to be able to save and retrieve the environment from UFS. The environment will be saved/retrieved from the partition specified in the config option CONFIG_SCSI_ENV_PART. Also add an API to

[PATCH 1/3] cyclic: make cyclic_unregister() idempotent

2025-05-07 Thread Rasmus Villemoes
Make cyclic_unregister() safe to call with an already unregistered, or possibly never registered, struct cyclic_info. This is similar to how the various timer APIs in the linux kernel work (they all allow calling delete/cancel/... on an inactive timer object). This means callers don't have to sepa

[PATCH 3/3] cyclic: document new guarantees for cyclic_(un)register

2025-05-07 Thread Rasmus Villemoes
Signed-off-by: Rasmus Villemoes --- doc/develop/cyclic.rst | 13 + 1 file changed, 13 insertions(+) diff --git a/doc/develop/cyclic.rst b/doc/develop/cyclic.rst index 6f1da6f0d9b..a99b17052f5 100644 --- a/doc/develop/cyclic.rst +++ b/doc/develop/cyclic.rst @@ -54,3 +54,16 @@ responsi

[PATCH 2/3] cyclic: make cyclic_register safe to call on already-registered info

2025-05-07 Thread Rasmus Villemoes
Now that cyclic_unregister() is safe to call on a not-registered cyclic_info, we can make cyclic_register() behave like the mod_timer() and hrtimer_start() APIs in linux, in that they don't distinguish between whether the timer was already enabled or not; from the point of the call it is, with what

[PATCH 0/3] make cyclic_(un)register idempotent

2025-05-07 Thread Rasmus Villemoes
Three small patches I've been meaning to send for a while; I really believe (as I now learnt Thomas Gleixner also does) this is the way timer frameworks should behave. Rasmus Villemoes (3): cyclic: make cyclic_unregister() idempotent cyclic: make cyclic_register safe to call on already-registe

Re: [PATCH v2 1/5] boot/image-android: Workaround kernel/ramdisk invalid addr

2025-05-07 Thread Mattijs Korpershoek
Hi Neil, On lun., mai 05, 2025 at 14:22, Neil Armstrong wrote: > On 05/05/2025 11:17, George Chan via B4 Relay wrote: >> From: George Chan >> >> Some androidboot image have invalid kernel/ramdisk load addr, >> force to ignore those value and use loadaddr instead. >> >> Suggested-by: Casey Co

Re: [PATCH RFT v3 0/3] fastboot: add support for generic block flashing

2025-05-07 Thread Mattijs Korpershoek
Hi Neil, Thank you for the series. On mar., mai 06, 2025 at 18:10, neil.armstr...@linaro.org wrote: > This serie permits using any block device as target > for fastboot by moving the generic block logic into > a common set of helpers and also use them as generic > backend. > > The erase logic ha

Re: [PATCH RFT v3 1/3] fastboot: blk: introduce fastboot block flashing support

2025-05-07 Thread Mattijs Korpershoek
Hi Neil, Thank you for the patch. On mar., mai 06, 2025 at 18:10, neil.armstr...@linaro.org wrote: > From: Dmitrii Merkurev > > Introduce fastboot block flashing functions and helpers > to be shared with the MMC implementation. > > The write logic comes from the mmc implementation, while > the

Re: [PATCH v2 0/7] Add support to boot TI K3 HSM M4 core

2025-05-07 Thread Beleswar Prasad Padhi
Hi Andrew, On 06/05/25 23:42, Andrew Davis wrote: > On 5/6/25 12:19 PM, Tom Rini wrote: >> On Tue, May 06, 2025 at 10:47:57PM +0530, Kumar, Udit wrote: >>> >>> On 5/6/2025 8:38 PM, Andrew Davis wrote: On 5/6/25 9:51 AM, Beleswar Prasad Padhi wrote: > Hi Andrew, > > On 5/6/2025 4:3

Re: [PATCH RFT v3 2/3] fastboot: blk: switch emmc to use the block helpers

2025-05-07 Thread Mattijs Korpershoek
Hi Neil, Thank you for the patch. On mar., mai 06, 2025 at 18:10, neil.armstr...@linaro.org wrote: > From: Dmitrii Merkurev > > Switch the mmc backend to this new shared block helpers, > reducing block logic and only leaving MMC specific logic. > > Signed-off-by: Dmitrii Merkurev > Signed-off-

Re: [PATCH] riscv: set the width of the physical address/size data type based on arch

2025-05-07 Thread Sughosh Ganu
On Wed, 7 May 2025 at 13:19, Sughosh Ganu wrote: > > On Tue, 6 May 2025 at 16:35, Heinrich Schuchardt > wrote: > > > > > > > > Sughosh Ganu schrieb am Di., 6. Mai 2025, 12:50: > >> > >> On Tue, 6 May 2025 at 15:19, Heinrich Schuchardt > >> wrote: > >> > > >> > On 5/6/25 11:24, Sughosh Ganu wrot

Re: [PATCH v2 4/7] arm: dts: k3-{j721s2/j784s4}-binman: Pack HSM firmware inside tispl.bin

2025-05-07 Thread Anshul Dalal
On Tue May 6, 2025 at 4:11 PM IST, Beleswar Padhi wrote: > Pack the HSM firmware in tispl.bin fit image so that it can be unloaded > and used by R5 SPL to boot the HSM core. By default, point to the > firmware for HS-SE device type. This needs to be changed to point to > appropriate firmware when u

Re: [PATCH v2 0/4] Qualcomm: expand capsule update support

2025-05-07 Thread Sumit Garg
Hi Ilias, Thanks for your response. On Tue, May 06, 2025 at 04:26:03PM +0300, Ilias Apalodimas wrote: > Hi Sumit > > On Tue, 6 May 2025 at 15:37, Sumit Garg wrote: > > > > + Heinrich > > > > On Tue, May 06, 2025 at 01:33:33PM +0200, Casey Connolly wrote: > > > > > > > > > On 5/6/25 09:13, Sumit

Re: [PATCH v2 1/3] Bring in linux/limits.h

2025-05-07 Thread Simon Glass
Hi Tom, On Fri, 18 Apr 2025 at 15:39, Tom Rini wrote: > > On Fri, Apr 18, 2025 at 04:59:13AM -0600, Simon Glass wrote: > > > From: Simon Glass > > > > Add part of this file from Linux v6.14 so we can include it from the > > linux/overflow.h file. Drop the relevant section from kernel.h > > > > T

[RFC PATCH v2 5/5] configs: imxrt1170-evk_defconfig: include FlexSPI driver and flash chip support

2025-05-07 Thread Jonathan Currier
Signed-off-by: Jonathan Currier --- configs/imxrt1170-evk_defconfig | 15 +++ 1 file changed, 15 insertions(+) diff --git a/configs/imxrt1170-evk_defconfig b/configs/imxrt1170-evk_defconfig index 32107fa9d52..a57c35bf686 100644 --- a/configs/imxrt1170-evk_defconfig +++ b/configs/imxr

[RFC PATCH v2 2/5] spi: fspi: Add imxrt1170 device data

2025-05-07 Thread Jonathan Currier
Add the device specific driver data, and the clock configuration. Signed-off-by: Jonathan Currier --- drivers/clk/imx/clk-imxrt1170.c | 9 + drivers/spi/nxp_fspi.c | 10 ++ 2 files changed, 19 insertions(+) diff --git a/drivers/clk/imx/clk-imxrt1170.c b/drivers/clk/imx

[RFC PATCH v2 4/5] spi: fspi: dev_dbg() call assumes fdt_addr_t always a long long

2025-05-07 Thread Jonathan Currier
On 32-bit systems, e.g. i.mxrt-1170 fdt_addr_t may only be 32-bit. Cast to a "long long" for garbage avoidance. Signed-off-by: Jonathan Currier --- drivers/spi/nxp_fspi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/nxp_fspi.c b/drivers/spi/nxp_fspi.c index 9

[RFC PATCH v2 3/5] ARM: dts: imx: Add flexspi (fspi) to imxrt1170 and it's evk.

2025-05-07 Thread Jonathan Currier
Signed-off-by: Jonathan Currier --- arch/arm/dts/imxrt1170-evk.dts | 28 + arch/arm/dts/imxrt1170.dtsi | 13 ++ include/dt-bindings/clock/imxrt1170-clock.h | 4 ++- 3 files changed, 44 insertions(+), 1 deletion(-) diff --git a/arch/arm/dt

[RFC PATCH v2 1/5] spi: fspi: involve lut_num for struct nxp_fspi_devtype_data

2025-05-07 Thread Jonathan Currier
The flexspi on different SoCs may have different number of LUTs. So involve lut_num in nxp_fspi_devtype_data to make distinguish. This patch prepare for the adding of imx8ulp. Fixes: ef89fd56bdfc ("arm64: dts: imx8ulp: add flexspi node") Cc: sta...@kernel.org Signed-off-by: Haibo Chen Reviewed-by

[RFC PATCH v2 0/5] Add FlexSPI support for i.MX RT1170

2025-05-07 Thread Jonathan Currier
The nxp_fspi driver is missing some per-device quirks that are needed for imxrt1170 support. Fortunately, linux (where the driver originated) has since added support for these qirks. This series cherry-picks the linux commit, then adds the imxrt1170 usage of the quirks. I believe Jesse Taube is

Re: [PATCH v4 0/6] watchdog: at91sam9_wdt driver enhancement

2025-05-07 Thread Eugen Hristev
On 5/6/25 16:02, Zixun LI wrote: > Hi Eugen, > > On Tue, May 6, 2025 at 1:20 PM Eugen Hristev wrote: >> >> Since you sent the patches apparently there were some changes in the >> tree, and now smartweb_defconfig fails. >> Could you please check and maybe resend ? >> I was ready to apply these

Re: [PATCH] riscv: set the width of the physical address/size data type based on arch

2025-05-07 Thread Sughosh Ganu
On Tue, 6 May 2025 at 16:35, Heinrich Schuchardt wrote: > > > > Sughosh Ganu schrieb am Di., 6. Mai 2025, 12:50: >> >> On Tue, 6 May 2025 at 15:19, Heinrich Schuchardt >> wrote: >> > >> > On 5/6/25 11:24, Sughosh Ganu wrote: >> > > U-Boot has support for both the 32-bit and 64-bit RiscV platform

Re: [PATCH v2 1/5] boot/image-android: Workaround kernel/ramdisk invalid addr

2025-05-07 Thread Mattijs Korpershoek
Hi George, Thank you for the patch. I really prefer this solution to the one proposed in v1. I have tested this on Khadas VIM3 board (using khadas-vim3_android_defconfig) I have a couple of small remarks below. On lun., mai 05, 2025 at 17:17, George Chan via B4 Relay wrote: > From: George Ch

[PATCH v3 2/3] sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs

2025-05-07 Thread Varadarajan Narayanan
Implement request_arg() sysreset_op for QCOM SoCs that use PSCI to reset to EDL (Emergency Download) mode. Signed-off-by: Varadarajan Narayanan --- v3: * Move argument handling to a separate function and pass the arguments to the actual handler to process * Drop Qcom specific SYSRESET_E

[PATCH v3 3/3] configs: qcs9100_defconfig: Enable SYSRESET

2025-05-07 Thread Varadarajan Narayanan
Move to SYSRESET for implementing the reset command. Reviewed-by: Sumit Garg Signed-off-by: Varadarajan Narayanan --- v2: Add 'Reviewed-by: Sumit Garg' --- configs/qcs9100_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/qcs9100_defconfig b/configs/qcs9100_defconfig index

[PATCH v3 1/3] drivers: sysreset: Add sysreset op that can take arguments

2025-05-07 Thread Varadarajan Narayanan
Add a 'request_arg' op to struct sysreset_ops to enable sysreset drivers to receive arguments given to the 'reset' command. Process the request_arg() op before the usual request() op. Signed-off-by: Varadarajan Narayanan --- drivers/sysreset/sysreset-uclass.c | 32 ++

[PATCH v3 0/3] Implement reset to EDL for qcs9100

2025-05-07 Thread Varadarajan Narayanan
Using the 'reboot edl' command in Linux, the platform can reboot to the Emergency Download mode. Implement the same for U-Boot. v3: * Introduce a sysreset op that will pass down the 'reset' command arguments to registered handlers * Handle 'reset to edl' alone in qcom-psci driver v2: *

  1   2   >