Re: [PATCH v2 0/2] Change DRAM message and add RAM doc

2025-04-09 Thread Tom Rini
On Wed, 19 Mar 2025 19:33:25 +0530, Neha Malcom Francis wrote: > This short series is an ongoing effort to make RAM utilization clearer for > easier debugging and understanding of code. Intention is for users to quickly > be able to identify the CONFIGs needed to modify for their RAM usecase. > >

Re: Rate of innovation in the project (Was: Re: Rate of change in the project)

2025-04-09 Thread Tom Rini
On Mon, Apr 07, 2025 at 10:45:24PM +1200, Simon Glass wrote: > Hi Tom, > > On Mon, 7 Apr 2025 at 10:53, Tom Rini wrote: > > > > On Mon, Apr 07, 2025 at 09:15:42AM +1200, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 4 Apr 2025 at 03:27, Tom Rini wrote: > > > > > > > > On Thu, Apr 03, 2025

[PATCH v2 26/30] phy: rockchip-inno-usb2: Add support for clkout_ctl_phy

2025-04-09 Thread Jonas Karlman
The 480m clk is controlled using regs in the PHY address space and not in the USB GRF address space on e.g. RK3528 and RK3506. Add a clkout_ctl_phy usb2phy_reg to handle enable/disable of the 480m clk on these SoCs. Signed-off-by: Jonas Karlman --- v2: New patch --- drivers/phy/rockchip/phy-roc

Re: [PATCH v4 06/10] rockchip: binman: Use the FIT template in the SPI image

2025-04-09 Thread Quentin Schulz
Hi Jonas, Simon, On 3/29/25 4:06 PM, Jonas Karlman wrote: From: Simon Glass At present simple-bin-spi relies on the u-boot.itb file created by the simple-bin image. Use the template to avoid this, since Binman may change to process images in parallel in the future. Signed-off-by: Simon Glass

[PATCH v3 5/8] doc: add DeepComputing FML13V01 documentation

2025-04-09 Thread Heinrich Schuchardt
Describe building U-Boot for the board and booting. Carve out common information for JH7110 boards into an include. Signed-off-by: Heinrich Schuchardt --- v3: rebased v2: carve out common information for JH7110 boards into an include --- doc/board/starfive/deepcomputing_fml13v01

Re: [EXT] [PATCH] crypto: fsl - Fix RNG generation for lengths greater than 16 bytes

2025-04-09 Thread Horia Geanta
On 4/9/2025 9:19 AM, Gaurav Jain wrote: > Hi Pawel > >> From: Paweł Kochanowski >> >> Hi Gaurav, >> >> What we see is that the jr_enqueue() called by run_descriptor_jr() swaps the >> endianness of the descriptor in place (by modifying the data pointed by >> desc_add): >> >> /* The descrip

Re: [PATCH 00/13] board: dragonboard410c: Various fixes and cleanup

2025-04-09 Thread Caleb Connolly
On 4/7/25 18:59, Stephan Gerhold wrote: The DB410c U-Boot port has not been updated much lately. This series includes various fixes and cleanup to bring it back into better shape. I've also added myself as new maintainer (and Sam as reviewer), since Ramon has not been active on the U-Boot mail

Re: [PATCH v4 08/10] rockchip: binman: Use the skip-at-start prop in simple-bin image

2025-04-09 Thread Quentin Schulz
Hi Simon, On 4/9/25 3:22 PM, Simon Glass wrote: Hi Quentin, On Wed, 9 Apr 2025 at 04:57, Quentin Schulz wrote: Hi Jonas, Simon, On 3/29/25 4:06 PM, Jonas Karlman wrote: From: Simon Glass The simple-bin image is normally written to MMC media at block 64, which is a 32K offset from start o

Re: [PATCH v4 08/10] rockchip: binman: Use the skip-at-start prop in simple-bin image

2025-04-09 Thread Simon Glass
Hi Quentin, On Wed, 9 Apr 2025 at 07:32, Quentin Schulz wrote: > > Hi Simon, > > On 4/9/25 3:22 PM, Simon Glass wrote: > > Hi Quentin, > > > > On Wed, 9 Apr 2025 at 04:57, Quentin Schulz > > wrote: > >> > >> Hi Jonas, Simon, > >> > >> On 3/29/25 4:06 PM, Jonas Karlman wrote: > >>> From: Simon G

[PATCH v2] common: Add CONFIG_SKIP_RELOCATE

2025-04-09 Thread Jesse Taube
Add a check for CONFIG_SKIP_RELOCATE in reserve_uboot to skip the relocation of the U-Boot image. CONFIG_SKIP_RELOCATE skips relocation of U-Boot to the end of RAM allowing for systems that have extremely limited RAM to run U-Boot. Signed-off-by: Jesse Taube Reviewed-by: Tom Rini Reviewed-by: Ca

[PATCH] arm: mach-k3: am62ax: fix MCU_CLKOUT0 parent clock mux

2025-04-09 Thread Bryan Brattlof
quot;clkout0_ctrl_out0"), DEV_CLK(157, 21, "hsdiv4_16fft_main_2_hsdivout1_clk"), - DEV_CLK(157, 22, "hsdiv4_16fft_main_2_hsdivout1_clk"), + DEV_CLK(157, 22, "hsdiv4_16fft_main_2_hsdivout1_clk10"), DEV_CLK(157, 24, "sam62_pll_ctrl_wrap_main_0_chip_div1_clk_c

Re: Issue with booting FIT image using Yocto with raspberry pi cm4

2025-04-09 Thread Andreas Enbacka
Hello Christopher, Thanks for your suggestion, I tried to apply the patches (last one I had some issues with, as it did not apply directly on scarthgap branch). Still has similar boot issues with the fitImage (inflate error -3). Some questions: - Is the default uboot load and entry address 0x000

Re: [PATCH] RFC: ext4: Add a few overflow checks in the writing code

2025-04-09 Thread Tom Rini
On Wed, Apr 09, 2025 at 03:02:37PM -0600, Simon Glass wrote: > From: Simon Glass > > Some memory allocations make use of data from the disk, so add some > overflow checks. > > Adjust LOG2_BLOCK_SIZE() so it is easier to read. > > Note: This is a trial to help figure out the best way to deal wi

Re: [PATCH 05/18] net/net: fix switch/case fallthrough annotations

2025-04-09 Thread Tom Rini
On Wed, Apr 09, 2025 at 11:41:37AM +0100, Andre Przywara wrote: > On Tue, 8 Apr 2025 19:46:46 -0600 > Tom Rini wrote: > > Hi Tom, > > > On Wed, Apr 09, 2025 at 12:53:47AM +0100, Andre Przywara wrote: > > > On Tue, 8 Apr 2025 16:29:18 -0600 > > > Tom Rini wrote: > > > > > > Hi Tom, > > > > > >

Re: [PATCH v4 09/10] rockchip: binman: Support use of crc32 for SPL_FIT_SIGNATURE

2025-04-09 Thread Jonas Karlman
Hi Quentin, On 2025-04-09 13:06, Quentin Schulz wrote: > Hi Jonas, > > On 3/29/25 4:06 PM, Jonas Karlman wrote: >> Use of SHA256 checksum validation on ARMv7 SoCs can be very time >> consuming compared to ARMv8 SoCs with Crypto Extensions. >> >> Add support for use of the crc32 hash algo when SHA

[PATCH RFC 2/4] lib: rsa: use FIT_ALGO_PROP constant instead of "algo" in FIT

2025-04-09 Thread Quentin Schulz
From: Quentin Schulz Some FIT image properties have their string represented in include/image.h via constants. FIT_ALGO_PROP does exist and would fit the bill so let's use it instead of using a hardcoded string. Signed-off-by: Quentin Schulz --- lib/rsa/rsa-verify.c | 2 +- 1 file changed, 1 i

Re: [PATCH v4 09/10] rockchip: binman: Support use of crc32 for SPL_FIT_SIGNATURE

2025-04-09 Thread Quentin Schulz
Hi Jonas, On 4/9/25 5:38 PM, Jonas Karlman wrote: Hi Quentin, On 2025-04-09 13:06, Quentin Schulz wrote: Hi Jonas, On 3/29/25 4:06 PM, Jonas Karlman wrote: Use of SHA256 checksum validation on ARMv7 SoCs can be very time consuming compared to ARMv8 SoCs with Crypto Extensions. Add support f

Re: [PATCH v4 07/10] rockchip: binman: Include a compatible string in each configuration

2025-04-09 Thread Simon Glass
Hi Quentin, On Wed, 9 Apr 2025 at 04:03, Quentin Schulz wrote: > > Hi Jonas, Simon, > > On 3/29/25 4:06 PM, Jonas Karlman wrote: > > From: Simon Glass > > > > Provide a compatible string in the config nodes that U-Boot can use to > > help decide which configuration to use. > > > > Can you tell u

Re: [PATCH 2/2] riscv: Provide __image_copy_{start_end} symbols in linkerscript

2025-04-09 Thread Simon Glass
Hi Yao, On Tue, 8 Apr 2025 at 03:32, Yao Zi wrote: > > On Mon, Apr 07, 2025 at 01:10:32PM +0200, Jonas Karlman wrote: > > Hi, > > > > On 2025-04-07 05:37, Yao Zi wrote: > > > Binman looks for __image_copy_start to determine the base address of an > > > entry if elf-base-sym isn't specified, which

Re: [PATCH 0/5] patman: Separate gitutil fully

2025-04-09 Thread Simon Glass
Hi Tom, On Tue, 8 Apr 2025 at 16:13, Tom Rini wrote: > > On Mon, Apr 07, 2025 at 10:51:42PM +1200, Simon Glass wrote: > > > > > The gitutil module uses Patman's settings module, which is not allowed > > as it is supposed to be a separate package. This series ties up this > > dependency. > > > > T

Re: [PATCH v4 08/10] rockchip: binman: Use the skip-at-start prop in simple-bin image

2025-04-09 Thread Quentin Schulz
Hi Simon, On 4/9/25 3:33 PM, Simon Glass wrote: Hi Quentin, On Wed, 9 Apr 2025 at 07:32, Quentin Schulz wrote: Hi Simon, On 4/9/25 3:22 PM, Simon Glass wrote: Hi Quentin, On Wed, 9 Apr 2025 at 04:57, Quentin Schulz wrote: Hi Jonas, Simon, On 3/29/25 4:06 PM, Jonas Karlman wrote: From

[PATCH] boot: Add missing code for bootz_run()

2025-04-09 Thread Simon Glass
The bootz method is special in that it uses its own implementation of several of the bootm states. The existing do_bootz() function calls bootz_run() but first does a few other things. These are missing in the direct call to bootz_run(). I probably missed this because bootz_start() sets up its own

Re: [PATCH 5/5] configs: dragonboard820: updates

2025-04-09 Thread Caleb Connolly
On 4/7/25 19:56, Jorge Ramirez-Ortiz wrote: Configure GPIO and CLK_STUBS CLK_STUBS is required for MMC initialization Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Neil Armstrong Reviewed-by: Caleb Connolly > --- configs/dragonboard820c_defconfig | 2 ++ 1 file changed, 2 insertions

Re: [PATCH v4 08/10] rockchip: binman: Use the skip-at-start prop in simple-bin image

2025-04-09 Thread Jonas Karlman
Hi Quentin, On 2025-04-09 12:57, Quentin Schulz wrote: > Hi Jonas, Simon, > > On 3/29/25 4:06 PM, Jonas Karlman wrote: >> From: Simon Glass >> >> The simple-bin image is normally written to MMC media at block 64, which >> is a 32K offset from start of storage media. >> >> Set the skip-at-start p

[PATCH RFC 3/4] boot/fit: declare (and use) new constant for conf's compatible prop

2025-04-09 Thread Quentin Schulz
From: Quentin Schulz Fit conf node may have a compatible property[1] which stores the root compatible of the first blob in the fdt property of the node. This can be used to automatically select the proper conf node based on the compatible from the running U-Boot (matching the former's compatible

Re: [PATCH 0/5] patman: Separate gitutil fully

2025-04-09 Thread Tom Rini
On Wed, Apr 09, 2025 at 07:04:48AM -0600, Simon Glass wrote: > Hi Tom, > > On Tue, 8 Apr 2025 at 16:13, Tom Rini wrote: > > > > On Mon, Apr 07, 2025 at 10:51:42PM +1200, Simon Glass wrote: > > > > > > > > The gitutil module uses Patman's settings module, which is not allowed > > > as it is suppos

[PATCH RFC 4/4] boot/fit: print all configuration node compatibles

2025-04-09 Thread Quentin Schulz
From: Quentin Schulz Fit conf node may have a compatible property[1] which stores the compatible of the first blob in the fdt property of the node. This can be used to automatically select the proper conf node based on the compatible from the running U-Boot (matching the former's compatible with

Re: [PATCH v4 07/10] rockchip: binman: Include a compatible string in each configuration

2025-04-09 Thread Quentin Schulz
e image type that is also not shown by dumpimage. This is something that can be improved in a different series. I've sent something for this compatible conf node property: https://lore.kernel.org/u-boot/20250409-fit-compat-v1-0-56df89ef4...@cherry.de/T/#t But indeed, seems like we'

[PATCH RFC 1/4] boot/fit: use constants for property strings

2025-04-09 Thread Quentin Schulz
From: Quentin Schulz Some properties have their string represented in include/image.h via constants, so let's use those constants instead of using a hardcoded string. Signed-off-by: Quentin Schulz --- boot/common_fit.c | 4 ++-- boot/image-fit.c | 2 +- 2 files changed, 3 insertions(+), 3 del

[PATCH 0/2] arm64: versal2: Read an eeprom

2025-04-09 Thread Padmarao Begari
Read an eeprom after relocation if multi dtb's are disabled. Padmarao Begari (2): arm64: versal2: Remove dtb reselect and multi dtb board: amd: Read an eeprom after relocation board/amd/versal2/board.c | 3 +++ configs/amd_versal2_virt_defconfig | 2 -- 2 files changed, 3 insertions

[PATCH] board: xilinx: Store board info data in data section

2025-04-09 Thread Padmarao Begari
Line 171 in README is describing that before relocation no code should use global variable because global variables are placed to BSS section which is initialized to 0 after relocation. In the case of ZynqMP, where DTB reselection is enabled, the EEPROM is read again after relocation. This prevent

Re: [PATCH 4/5] clk: stub: add qcom,glink-smd-rpm

2025-04-09 Thread Caleb Connolly
On 4/7/25 19:56, Jorge Ramirez-Ortiz wrote: Add support for the resource power manager clocks over SMD/GLINK to be stubbed. Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Sumit Garg Reviewed-by: Neil Armstrong Reviewed-by: Caleb Connolly Thanks!> --- drivers/clk/clk-stub.c | 2 +-

Re: [PATCH v4 09/10] rockchip: binman: Support use of crc32 for SPL_FIT_SIGNATURE

2025-04-09 Thread Simon Glass
Hi Quentin, On Wed, 9 Apr 2025 at 10:11, Quentin Schulz wrote: > > Hi Jonas, > > On 4/9/25 5:38 PM, Jonas Karlman wrote: > > Hi Quentin, > > > > On 2025-04-09 13:06, Quentin Schulz wrote: > >> Hi Jonas, > >> > >> On 3/29/25 4:06 PM, Jonas Karlman wrote: > >>> Use of SHA256 checksum validation on

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

2025-04-09 Thread Tom Rini
On Wed, Apr 09, 2025 at 02:33:08PM +0200, Michael Walle wrote: > Hi, > > > >> The formatting with %pa / %pap behaves like %x, which results in an > > >> incorrect value being output. To improve this, a new fine-tuning > > >> Kconfig XPL_USE_TINY_PRINTF_POINTER_SUPPORT for pointer formatting > > >>

Re: [PATCH v2 1/2] net-lwip: wget: add LMB and buffer checks

2025-04-09 Thread Jerome Forissier
On 4/9/25 16:17, Heinrich Schuchardt wrote: > On 09.04.25 14:20, Jerome Forissier wrote: >> Legacy NET wget invokes a store_block() function which performs buffer >> validation (LMB, address wrapping). Do the same with NET_LWIP. >> >> Signed-off-by: Jerome Forissier >> Suggested-by: Sughosh Gan

Re: [PATCH v1] configs: set SPL_TEXT_BASE by default for k3 platforms

2025-04-09 Thread Tom Rini
On Wed, Apr 09, 2025 at 06:17:37PM +0530, Anshul Dalal wrote: > SPL_TEXT_BASE is used as the load address for the main domain SPL on k3 > platforms. > > Since the config value is the same for every board, this patch sets the > value 0x8008 as default for all ARCH_K3 and deletes the instances

Re: [PATCH 0/5] patman: Separate gitutil fully

2025-04-09 Thread Simon Glass
Hi Tom, On Wed, 9 Apr 2025 at 07:04, Simon Glass wrote: > > Hi Tom, > > On Tue, 8 Apr 2025 at 16:13, Tom Rini wrote: > > > > On Mon, Apr 07, 2025 at 10:51:42PM +1200, Simon Glass wrote: > > > > > > > > The gitutil module uses Patman's settings module, which is not allowed > > > as it is supposed

Re: [PATCH 33/34] sunxi: A523: add DT files from Linux v3 branch

2025-04-09 Thread Yixun Lan
Hi Andre, On 11:35 Sun 23 Mar , Andre Przywara wrote: > This imports the (preliminary) devicetree files for the boards with the > new Allwinner A523/T527/H728 SoCs, including the basic SoC .dtsi. > > Those files have been reviewed and confirmed, but have not been merged > into the official ke

Re: [PATCH v4 07/10] rockchip: binman: Include a compatible string in each configuration

2025-04-09 Thread Jonas Karlman
Hi Quentin, On 2025-04-09 12:02, Quentin Schulz wrote: > Hi Jonas, Simon, > > On 3/29/25 4:06 PM, Jonas Karlman wrote: >> From: Simon Glass >> >> Provide a compatible string in the config nodes that U-Boot can use to >> help decide which configuration to use. >> > > Can you tell us more about t

Re: [PATCH 12/13] board: dragonboard410c: Use button_cmd instead of custom code

2025-04-09 Thread Neil Armstrong
On 07/04/2025 18:59, Stephan Gerhold wrote: Simplify the board code by using the new BUTTON_CMD functionality, instead of implementing this separately using C code. This allows disabling or customizing this functionality if wanted. Signed-off-by: Stephan Gerhold --- board/qualcomm/dragonboard

Re: [PATCH] boot: Add missing code for bootz_run()

2025-04-09 Thread Svyatoslav Ryhel
ср, 9 квіт. 2025 р. о 18:57 Simon Glass пише: > > The bootz method is special in that it uses its own implementation of > several of the bootm states. > > The existing do_bootz() function calls bootz_run() but first does a few > other things. These are missing in the direct call to bootz_run(). I

Re: [PATCH V2] tiny-printf: Improve %X formatting

2025-04-09 Thread Tom Rini
On Thu, 20 Mar 2025 20:01:47 +0100, 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 > actual value is not output. To avo

Re: [PATCH] pinctrl: qcom: handle reserved ranges

2025-04-09 Thread Alexey Minnekhanov
On 4/1/25 10:46, Neil Armstrong via groups.io wrote: 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

Re: (subset) [PATCH 00/18] Annotate switch/case fallthrough cases

2025-04-09 Thread Tom Rini
On Thu, 27 Mar 2025 15:32:55 +, Andre Przywara wrote: > C's implicit fallthrough behaviour in switch/case statements can lead to > subtle bugs. Quite some while ago many compilers introduced warnings in > those cases, requiring intentional fallthrough's to be annotated. > > So far we were not

Re: [PATCH 0/5] acpi: simplify updating ACPI table header checksum

2025-04-09 Thread Tom Rini
On Sat, 22 Mar 2025 00:21:15 +0100, Heinrich Schuchardt wrote: > Introduce a new function to update ACPI table headers. > This allows to simplify the existing code. > > Heinrich Schuchardt (5): > acpi: new function acpi_update_checksum() > acpi: simplify updating header checksum > x86/acpi:

Re: [PATCH 1/3] arm: gic-v3: Scan for subnodes

2025-04-09 Thread Tom Rini
On Thu, 20 Mar 2025 13:51:56 +0100, Patrick Rudolph wrote: > According to the binding [1] the ITS node should be a subnode of the > GICv3 node. Since the ITS node has it's own driver, manually probe for > possible subnodes after binding since dm_scan_fdt() is not recursive. > > 1: > https://www.

Re: [PATCH] ata: ahci: remove bad free

2025-04-09 Thread Tom Rini
On Mon, 24 Mar 2025 09:34:06 +0100, Vincent Stehlé wrote: > In the case of a memory allocation error, the ahci_port_start() function > tries to free the `pp' pointer. > This pointer was not dynamically allocated but does in fact point to an > element of the port[] array member of the struct ahci_u

Re: [PATCH] CI: Disable evb-ast2600

2025-04-09 Thread Tom Rini
On Wed, 09 Apr 2025 18:31:21 -0600, Tom Rini wrote: > Currently, this platform is failing in CI due to seemingly platform > specific reasons. For now, remove it from CI until the maintainers have > a chance to look in to it. > > Applied to u-boot/master, thanks! [1/1] CI: Disable evb-ast2600

[PATCH] CI: Disable evb-ast2600

2025-04-09 Thread Tom Rini
Currently, this platform is failing in CI due to seemingly platform specific reasons. For now, remove it from CI until the maintainers have a chance to look in to it. Signed-off-by: Tom Rini --- While it's poor form to apply changes quickly after posting, this has been reported by 3 separate cust

Re: [PATCH 2/2] qcom_defconfig: Disable MMC HS200 mode support

2025-04-09 Thread Sumit Garg
On Tue, Apr 08, 2025 at 02:13:55PM +0200, Caleb Connolly wrote: > > > On 4/8/25 06:29, Sumit Garg wrote: > > On Mon, Apr 07, 2025 at 04:30:44PM +0200, Caleb Connolly wrote: > > > > > > > > > On 4/7/25 15:28, Sumit Garg wrote: > > > > From: Sumit Garg > > > > > > > > Currently the msm_sdhci do

Re: [PATCH v2 1/2] net-lwip: wget: add LMB and buffer checks

2025-04-09 Thread Heinrich Schuchardt
On 09.04.25 14:20, Jerome Forissier wrote: Legacy NET wget invokes a store_block() function which performs buffer validation (LMB, address wrapping). Do the same with NET_LWIP. Signed-off-by: Jerome Forissier Suggested-by: Sughosh Ganu --- net/lwip/wget.c | 49 +++

Re: [PATCH] net: dhcpv6: remove excluded middle expression

2025-04-09 Thread Jerome Forissier
Hi Bryan, On 4/8/25 23:57, Bryan Brattlof wrote: > !A || (A && B) is equivalent to !A || B > > Drop the middle expression from the statement > > Signed-off-by: Bryan Brattlof > --- > net/dhcpv6.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/net/dhcpv6.c b/net/dh

[PATCH v2 0/2] NET_LWIP LMB fixes

2025-04-09 Thread Jerome Forissier
Two small patches fixing issues with tftp and wget when the network stack is NET_LWIP and LMB is enabled. Changes in v2: - The wget patch adds a call to altcp_abort(). Otherwise the transfer continues and we try to write later blocks which makes no sense if one has been rejected already. Thanks Su

Re: [PATCH v2] common: Add CONFIG_SKIP_RELOCATE

2025-04-09 Thread Fabio Estevam
On Wed, Apr 9, 2025 at 3:17 PM Jesse Taube wrote: > > Add a check for CONFIG_SKIP_RELOCATE in reserve_uboot to skip the > relocation of the U-Boot image. > CONFIG_SKIP_RELOCATE skips relocation of U-Boot to the end of RAM > allowing for systems that have extremely limited RAM to run U-Boot. > > Si

Community meeting April 8th 2025 (was: Re: [ANN] U-Boot v2025.04 released)

2025-04-09 Thread Caleb Connolly
Hi Everyone, On 4/8/25 00:00, Tom Rini wrote: Hey all, It's release day and here's v2025.04. We had some last minute issues reported, but then also resolved. I want to thank everyone that's contributed to this release, not just in terms of code, but documentation, testing and otherwise ensurin

RE: [PATCH v2 4/8] board: starfive: spl: support DeepComputing FML13V01

2025-04-09 Thread Hal Feng
> On 31.03.25 15:24, Heinrich Schuchardt wrote: > > On the DeepComputing Framework motherboard (FML13V01) choose the > matching FIT configuration. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > rebased > --- > board/starfive/visionfive2/spl.c | 5 - > 1 file changed, 4 insertion

RE: [EXT] [PATCH] crypto: fsl - Fix RNG generation for lengths greater than 16 bytes

2025-04-09 Thread Gaurav Jain
Hi Pawel > -Original Message- > From: Paweł Kochanowski > Sent: Tuesday, April 8, 2025 4:30 PM > To: Gaurav Jain ; u-boot@lists.denx.de > Cc: Priyanka Jain ; Gabriel Nesteruk > ; Pankaj Gupta ; Horia Geanta > > Subject: RE: [EXT] [PATCH] crypto: fsl - Fix RNG generation for lengths > gr

RE: [PATCH v2 3/8] board: starfive: DeepComputing FML13V01 fdt selection

2025-04-09 Thread Hal Feng
> On 31.03.25 15:24, Heinrich Schuchardt wrote: > > We support all JH7110 boards with starfive_visionfive2_defconfig. > The relevant device-tree is selected at runtime based on EEPROM data. > > Support setting $fdtfile to the file name of the DeepComputing Framework > motherboard (FML13V01) devic

[PATCH 1/2] arm64: versal2: Remove dtb reselect and multi dtb

2025-04-09 Thread Padmarao Begari
Presently the multi dtb's are not using on versal Gen 2 platform, so remove CONFIG_DTB_RESELECT and CONFIG_MULTI_DTB_FIT from defconfig. Signed-off-by: Padmarao Begari --- configs/amd_versal2_virt_defconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/configs/amd_versal2_virt_defconfig

Re: [PATCH v4 09/10] rockchip: binman: Support use of crc32 for SPL_FIT_SIGNATURE

2025-04-09 Thread Quentin Schulz
Hi Simon, On 4/9/25 6:35 PM, Simon Glass wrote: Hi Quentin, On Wed, 9 Apr 2025 at 10:11, Quentin Schulz wrote: Hi Jonas, On 4/9/25 5:38 PM, Jonas Karlman wrote: Hi Quentin, On 2025-04-09 13:06, Quentin Schulz wrote: Hi Jonas, On 3/29/25 4:06 PM, Jonas Karlman wrote: Use of SHA256 check

[PATCH 0/6] Qualcomm: cleanup OF_LIVE fixup and fix RB1/2

2025-04-09 Thread Caleb Connolly
clude/event.h| 9 lib/of_live.c | 3 +++ 9 files changed, 41 insertions(+), 40 deletions(-) --- base-commit: e4ffc6a323586d700d88c73c319c25c740aedb49 change-id: 20250409-livetree-fixup-0d7451cc3af3 Caleb Connolly

[PATCH 4/6] clk/qcom: qcm2290: show clock name in set_rate()

2025-04-09 Thread Caleb Connolly
The device name is always clk_qcom... Not very useful. Signed-off-by: Caleb Connolly --- drivers/clk/qcom/clock-qcm2290.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/clock-qcm2290.c b/drivers/clk/qcom/clock-qcm2290.c index 1326b770c3ebd723120de4b6657aafa

[PATCH 5/6] mach-snapdragon: of_fixup: set dr_mode for RB1/2 boards

2025-04-09 Thread Caleb Connolly
The RB1 and RB2 have a single USB controller which is manually muxed between a type-c port and an internal USB hub via a DIP switch. OTG is supported in Linux, but the DWC3 driver in U-Boot can only handle a single mode, and defaults to peripheral mode. We did hack around this on the RB2, but the

[PATCH 1/6] event: signal when livetree has been built

2025-04-09 Thread Caleb Connolly
OF_LIVE offers a variety of benefits, one of them being that the live tree can be modified without caring about the underlying FDT. This is particularly valuable for working around U-Boot limitations like lacking USB superspeed support on Qualcomm platforms, no runtime OTG, or peripherals like the

[PATCH 6/6] pinctrl: qcom: qcm2290: fix off by 1 in pin_count

2025-04-09 Thread Caleb Connolly
There are 134 pins not 133, oops! This fixes the sdcard on the RB1 as the pins now all get configured correctly. Fixes: 0ecb8cfcb930 ("pinctrl: qcom: add qcm2290 pinctrl driver") Signed-off-by: Caleb Connolly --- drivers/pinctrl/qcom/pinctrl-qcm2290.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 2/6] mach-snapdragon: use EVT_OF_LIVE_INIT to apply DT fixups

2025-04-09 Thread Caleb Connolly
This will now apply fixups prior to devices being bound, which makes it possible to enable/disable devices and adjust more properties that might be read before devices probe. Signed-off-by: Caleb Connolly --- arch/arm/mach-snapdragon/board.c | 1 - arch/arm/mach-snapdragon/of_fixup.c | 7

RE: [PATCH v3 4/8] board: starfive: spl: support DeepComputing FML13V01

2025-04-09 Thread Hal Feng
> On 09.04.25 15:19, Heinrich Schuchardt wrote: > > On the DeepComputing Framework motherboard (FML13V01) choose the > matching FIT configuration. > > Signed-off-by: Heinrich Schuchardt > --- > v3: > no change > v2: > rebased > --- > board/starfive/visionfive2/spl.c | 5 - > 1 f

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

2025-04-09 Thread Michael Walle
Hi, > >> The formatting with %pa / %pap behaves like %x, which results in an > >> incorrect value being output. To improve this, a new fine-tuning > >> Kconfig XPL_USE_TINY_PRINTF_POINTER_SUPPORT for pointer formatting > >> has been added. If it is enabled, the output of %pa / %pap should > >> be

Re: [PATCH v4 0/3] EFI Capsule update explicitly sets dfu_alt_info

2025-04-09 Thread Michal Simek
Hi, st 26. 2. 2025 v 23:36 odesílatel Jonathan Humphreys napsal: > > For capsule update, explicitly set the dfu_alt_info environment variable > before the DFU operation, and then restore it to the original value. > Previously, the dfu_alt_info environment variable was set with the > set_dfu_alt_i

Re: [PATCH 1/2] arm: dts: Add override for RB1

2025-04-09 Thread Caleb Connolly
naged to get everything cleaned up. sdcard seems to work on my RB1 with these patches on top of qcom-next and the u-boot specific DTS hacks are removed. USB phy init seems to fail for me, but the board I'm testing on is some super early DVT so I'm hoping it's a silicon issue.

Re: [PATCH] hmibsc_defconfig: disable DM_USB_GADGET

2025-04-09 Thread Caleb Connolly
On Wed, 02 Apr 2025 16:28:03 +0200, Caleb Connolly wrote: > As with the db410c this breaks linking as it conflicts with the USB > controller used by these platforms. > > This fixes building after DM_USB_GADGET was enabled by default for > mach-snapdragon. > > > [...] Applied, thanks! [1/1] h

[PATCH v2 1/2] net-lwip: wget: add LMB and buffer checks

2025-04-09 Thread Jerome Forissier
Legacy NET wget invokes a store_block() function which performs buffer validation (LMB, address wrapping). Do the same with NET_LWIP. Signed-off-by: Jerome Forissier Suggested-by: Sughosh Ganu --- net/lwip/wget.c | 49 + 1 file changed, 41 inserti

Re: [PATCH v2] net: dhcp6: Send DHCPv6 using multicast MAC

2025-04-09 Thread Jerome Forissier
Hi Sean, On 3/24/25 21:48, seanedm...@linux.microsoft.com wrote: > From: Sean Edmond > > In IPv6, the broadcast MAC address is not used. Instead, it should use > the multicast address (see RFC RFC2464). > > Add IPV6_ALL_NODE_ETH_ADDR macro for clarity. > > Signed-off-by: Sean Edmond > --- >

[PATCH v1] configs: set SPL_TEXT_BASE by default for k3 platforms

2025-04-09 Thread Anshul Dalal
SPL_TEXT_BASE is used as the load address for the main domain SPL on k3 platforms. Since the config value is the same for every board, this patch sets the value 0x8008 as default for all ARCH_K3 and deletes the instances of SPL_TEXT_BASE in individual defconfigs. Signed-off-by: Anshul Dalal

[PATCH v2 07/30] arm64: dts: rockchip: Add SARADC node for RK3528

2025-04-09 Thread Jonas Karlman
Add a device tree node for the SARADC controller used by RK3528. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20250304201642.831218-4-jo...@kwiboo.se Signed-off-by: Heiko Stuebner [ upstream commit: 6e58302c84ce90aadbecd41efe1f69098a6f91e5 ] (cherry picked from commit 8ba64ba5c

[PATCH] mips: octeon: remove unused middle expression

2025-04-09 Thread Bryan Brattlof
d_abs(sfp_info, sfp_info->mod_abs_data); sfp_info = sfp_info->next_iface_sfp; } --- base-commit: 9d9fbdab0e9664bff147109cc89ad2786f6ecd83 change-id: 20250409-octeon-middle-expressions-db40bef5578a Best regards, -- Bryan Brattlof

Re: [PATCH 0/6] usb: host: ehci-msm: Clean up and fix crashes

2025-04-09 Thread Caleb Connolly
On 4/7/25 11:54, Stephan Gerhold wrote: The ehci-msm driver has several subtle issues and stale code. Most of them are minor and do not cause issues during normal usage. The last patch is the most critical, it fixes a reported crash when stopping/re-configuring USB, which has been around for a

[PATCH RFC 0/4] fit: print conf node compatibles + use property string constants

2025-04-09 Thread Quentin Schulz
(+), 5 deletions(-) --- base-commit: 341cafc31e4c6941a1b05feb18d18c99ffaebcc1 change-id: 20250409-fit-compat-ebe94f690b08 Best regards, -- Quentin Schulz

[PATCH 3/6] mach-snapdragon: of_fixup: skip disabled USB nodes

2025-04-09 Thread Caleb Connolly
There's no need to waste time fixing up nodes that aren't used on this device. Skip them. Signed-off-by: Caleb Connolly --- arch/arm/mach-snapdragon/of_fixup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-snapdragon/of_fixup.c b/arch/arm/mach-snapdragon/of_fixup.c index

Re: [PATCH v4 09/10] rockchip: binman: Support use of crc32 for SPL_FIT_SIGNATURE

2025-04-09 Thread Jonas Karlman
Hi Quentin, On 2025-04-09 18:11, Quentin Schulz wrote: > Hi Jonas, > > On 4/9/25 5:38 PM, Jonas Karlman wrote: >> Hi Quentin, >> >> On 2025-04-09 13:06, Quentin Schulz wrote: >>> Hi Jonas, >>> >>> On 3/29/25 4:06 PM, Jonas Karlman wrote: Use of SHA256 checksum validation on ARMv7 SoCs can be

[PATCH 2/2] board: amd: Read an eeprom after relocation

2025-04-09 Thread Padmarao Begari
Read an eeprom after relocation which also shows information from eeprom wired via nvmem aliases. When DTB reselection is enabled eeprom is read before relocation too but information is not showed. The issue about two i2c reads in this case will be address separately. Signed-off-by: Padmarao Bega

[PATCH] RFC: ext4: Add a few overflow checks in the writing code

2025-04-09 Thread Simon Glass
From: Simon Glass Some memory allocations make use of data from the disk, so add some overflow checks. Adjust LOG2_BLOCK_SIZE() so it is easier to read. Note: This is a trial to help figure out the best way to deal with these sorts of things. Feedback welcome. Signed-off-by: Simon Glass ---

Re: [PATCH 10/14] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3308

2025-04-09 Thread Kever Yang
On 2025/1/29 20:42, Quentin Schulz wrote: From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang Thanks, - Kever --- drivers/pinctrl/rockchip/pinctrl-rk3308.c | 2 +- 1 fi

Re: [PATCH v4 0/3] EFI Capsule update explicitly sets dfu_alt_info

2025-04-09 Thread Jon Humphreys
Michal Simek writes: > Hi, > > st 26. 2. 2025 v 23:36 odesílatel Jonathan Humphreys > napsal: >> >> For capsule update, explicitly set the dfu_alt_info environment variable >> before the DFU operation, and then restore it to the original value. >> Previously, the dfu_alt_info environment variabl

Re: [PATCH] mach-k3: common_fdt: Fix Label Issue

2025-04-09 Thread Daniel Schultz
On 4/7/25 10:26, Neha Malcom Francis wrote: Hi Udit On 07/04/25 13:51, Kumar, Udit wrote: Hi Daniel. Thanks for patch On 4/7/2025 11:37 AM, Daniel Schultz wrote: Labels are not allowed before declarations. Add a semicolon after the label to introduce an empty statement. This will fix follo

[PATCH v3 2/8] riscv: dts: jh7110: add DeepComputing FML13V01 device-tree

2025-04-09 Thread Heinrich Schuchardt
Add the u-boot device-tree include needed to support the DeepComputing Framework motherboard (FML13V01). Signed-off-by: Heinrich Schuchardt Reviewed-by: Sumit Garg Reviewed-by: Hal Feng --- v3: no change v2: no change --- arch/riscv/dts/jh7110-deepcomputing-fml13v01-u-boot.dtsi

[PATCH v3 4/8] board: starfive: spl: support DeepComputing FML13V01

2025-04-09 Thread Heinrich Schuchardt
On the DeepComputing Framework motherboard (FML13V01) choose the matching FIT configuration. Signed-off-by: Heinrich Schuchardt --- v3: no change v2: rebased --- board/starfive/visionfive2/spl.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board/starfiv

[PATCH v3 0/8] board: starfive: DeepComputing FML13V01

2025-04-09 Thread Heinrich Schuchardt
We use starfive_visionfive2_defconfig for supporting JH7110 based boards. The DeepComputing Framework motherboard is a new JH7110 device with upstream kernel support since v6.13. Add support and documentation for the board. This patches are prerequisite: [PATCH 1/1] riscv: dts: jh7110: add bootp

[PATCH v3 3/8] board: starfive: DeepComputing FML13V01 fdt selection

2025-04-09 Thread Heinrich Schuchardt
We support all JH7110 boards with starfive_visionfive2_defconfig. The relevant device-tree is selected at runtime based on EEPROM data. Support setting $fdtfile to the file name of the DeepComputing Framework motherboard (FML13V01) device-tree. Signed-off-by: Heinrich Schuchardt Reviewed-by: Hal

[PATCH 2/5] board: st: common: fix dfu alt buffer clearing

2025-04-09 Thread Vincent Stehlé
The set_dfu_alt_info() function calls the ALLOC_CACHE_ALIGN_BUFFER() macro to declare a `buf' variable pointer into an array allocated on the stack. It then calls the memset() function to clear the useable portion of the array using the idiomatic expression `sizeof(buf)'. While this would indeed w

[PATCH v3 7/8] doc: starfive: use jh7110_common.rst

2025-04-09 Thread Heinrich Schuchardt
To avoid duplicate maintenance just include jh7110_common.rst to describe the usage of the different boot sources. Signed-off-by: Heinrich Schuchardt --- v3: no change v2: new patch --- doc/board/starfive/milk-v_mars.rst | 12 + doc/board/starfive/pine64_star64.rst | 18

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

2025-04-09 Thread neil . armstrong
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-by: Neil Armstrong --- drivers/fastboot/fb_mmc.c | 210 +++--- 1 file ch

Re: Issue with booting FIT image using Yocto with raspberry pi cm4

2025-04-09 Thread Christopher Obbard
Hi Andreas, Can you please try with this series from Simon? https://lore.kernel.org/u-boot/20241220003447.2913443-1-...@chromium.org/ It solved booting mainline kernel on CM4 for me (albeit not with FIT images). Thanks, Chris On Tue, 8 Apr 2025 at 19:23, Andreas Enbacka wrote: > > Hello every

[PATCH RESEND] firmware: scmi: support to manage SCMI protocol drivers with a linker-genetated array

2025-04-09 Thread Alice Guo (OSS)
From: Alice Guo U_BOOT_SCMI_PROTO_DRIVER macro is used to add a SCMI protocol driver to scmi_proto_driver list. scmi_proto_driver_get() function can be used to match a SCMI protocol id and its driver. Signed-off-by: Alice Guo --- drivers/firmware/scmi/scmi_agent-uclass.c | 16

Re: [PATCH v4 01/10] rockchip: binman: Correct the OS prop for U-Boot

2025-04-09 Thread Quentin Schulz
Hi Jonas, Simon, On 3/29/25 4:06 PM, Jonas Karlman wrote: From: Simon Glass The U-Boot image is currently being identified as an invalid OS in spl_fit_image_get_os() due to case sensitive compare. Use the correct lower-case value to fix this. Fixes: e0c0efff2a02 ("rockchip: Support building

Re: [PATCH v4 02/10] rockchip: binman: Factor out arch and compression

2025-04-09 Thread Quentin Schulz
Hi Jonas, Simon, On 3/29/25 4:06 PM, Jonas Karlman wrote: From: Simon Glass Declare arch and compression at the top of the file to avoid needing ifdefs in every usage. Add a few comments to help with the remaining #ifdefs. Signed-off-by: Simon Glass Signed-off-by: Jonas Karlman --- Changes

Re: [PATCH v4 07/10] rockchip: binman: Include a compatible string in each configuration

2025-04-09 Thread Quentin Schulz
Hi Jonas, Simon, On 3/29/25 4:06 PM, Jonas Karlman wrote: From: Simon Glass Provide a compatible string in the config nodes that U-Boot can use to help decide which configuration to use. Can you tell us more about this? I don't think mkimage -l/dumpimage -l actually provide that informatio

[PATCH v3 8/8] doc: jh7110: describe debug UART

2025-04-09 Thread Heinrich Schuchardt
Provide the settings for using the debug UART in SPL. Signed-off-by: Heinrich Schuchardt --- v3: no change v2: new patch --- doc/board/starfive/jh7110_common.rst | 14 ++ 1 file changed, 14 insertions(+) diff --git a/doc/board/starfive/jh7110_common.rst b/doc/board/

Re: [PATCH v4 03/10] rockchip: binman: Add an fdtmap

2025-04-09 Thread Quentin Schulz
Hi Jonas, Simon, On 3/29/25 4:06 PM, Jonas Karlman wrote: From: Simon Glass Add an fdtmap so it is possible to look at the image with 'binman ls'. Signed-off-by: Simon Glass Signed-off-by: Jonas Karlman Reviewed-by: Quentin Schulz Thanks! Quentin

Re: [PATCH v4 04/10] rockchip: binman: Create a template for the FIT

2025-04-09 Thread Quentin Schulz
Hi Jonas, Simon, On 3/29/25 4:06 PM, Jonas Karlman wrote: [...] -#if defined(CONFIG_ARM64) || defined(CONFIG_SPL_OPTEE_IMAGE) +#ifdef HAS_FIT fit { type = "blob"; filename = "u-boot.itb"; Use the template for the SPI here already

  1   2   >