Re: [PATCH v3 03/15] arm: mach-k3: j721s2: Update SoC auto-gen data to enable Ethernet boot

2025-02-25 Thread Neha Malcom Francis
Hi Chintan On 25/02/25 17:18, Chintan Vankar wrote: > Update dev-data and clk-data generated using ksswtool-autogen to include The tool is not publicly available as of now so you can remove the name and mention that it is auto-generated instead. > CPSW device which is required for Ethernet Boot,

[PATCH v6 2/7] dts: ipq9574-rdp433-u-boot: add override dtsi

2025-02-25 Thread Varadarajan Narayanan
Add initial support for the IPQ9574 MMC based RDP platforms. Define memory layout statically. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v5: Add 'Reviewed-by: Caleb Connolly' v3: Fix comments and give additional details No code change v2: Use upstream and override

Re: [PATCH v5 3/7] clk/qcom: add initial clock driver for ipq9574

2025-02-25 Thread Varadarajan Narayanan
On Tue, Feb 25, 2025 at 11:42:43AM +, Caleb Connolly wrote: [ . . . ] > > +static int ipq9574_enable(struct clk *clk) > > +{ > > + struct msm_clk_priv *priv = dev_get_priv(clk->dev); > > + > > + debug("%s: clk %s\n", __func__, ipq9574_clks[clk->id].name); > > + > > + switch (clk->id) {

Halting auto-boot process in the U-Boot shell https://lore.kernel.org/u-boot/20220614060203.33600-1-heinrich.schucha...@canonical.com/

2025-02-25 Thread Kummari, Prasad
[AMD Official Use Only - AMD Internal Distribution Only] Hi Heinrich, Regarding below commit. commit 68edbed454b863dbcd197e19e1ab26a0a05c7d85 Author: Heinrich Schuchardt AuthorDate: Tue Jun 14 08:02:03 2022 +0200 Commit: Heinrich Schuchardt CommitDate: Sun Jun 19 15:53:09 2022 +0200

[PATCH v6 7/7] configs: add qcom_ipq9574_mmc_defconfig

2025-02-25 Thread Varadarajan Narayanan
Introduce a defconfig for the Qualcomm IPQ9574 SoC based RDPs. Presently supports eMMC. Per the flash memory layout, U-Boot size cannot exceed 756KB. With this defconfig, u-boot.mbn size is ~480KB. Reviewed-by: Sumit Garg Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v5:

[PATCH v6 6/7] mmc: msm_sdhci: Reset clocks before reconfiguration

2025-02-25 Thread Varadarajan Narayanan
U-Boot has to reconfigure the clocks that were set in the boot loaders. However, in IPQ9574, the clocks have to be reset before they can be reconfigured. Hence add code to do the relevant resets. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- drivers/mmc/msm_sdhci.c | 10 +

[PATCH v6 4/7] pinctrl: qcom: Handle get_function_mux failure

2025-02-25 Thread Varadarajan Narayanan
Presently, get_function_mux returns an unsigned int and cannot differentiate between failure and correct function value. Change its return type to int and check for failure in the caller. Additionally, updated drivers/pinctrl/qcom/pinctrl-*.c to accommodate the above return type change. Only compi

[PATCH v6 5/7] pinctrl: qcom: Add ipq9574 pinctrl driver

2025-02-25 Thread Varadarajan Narayanan
Add pinctrl driver for the TLMM block found in the ipq9574 SoC. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v5: Add 'Reviewed-by: Caleb Connolly' Remove 'special_pins_start' struct msm_pinctrl_data ipq9574_data --- drivers/pinctrl/qcom/Kconfig | 7 + dri

[PATCH v6 3/7] clk/qcom: add initial clock driver for ipq9574

2025-02-25 Thread Varadarajan Narayanan
Add initial set of clocks and resets for enabling U-Boot on ipq9574 based RDP platforms. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v6: Use qcom_gate_clk_en(priv, clk->id) instead of switch case for each clock individually v3: Use gate clk framework v2: Combined d

[PATCH v6 0/7] Add initial support for IPQ9574 based boards

2025-02-25 Thread Varadarajan Narayanan
These patches introduce the initial support code needed for the QTI IPQ9574 SoC and RDP433 board. SoC : Qualcomm IPQ9574 RAM : 2GB DDR4 Flash : eMMC 8GB WiFi: 1 x 2.4GHz, 1 x 5GHz, 1 x 6GHz Thanks Varada v6: Use qcom_gate_clk_en(priv, clk->id) instea

[PATCH v6 1/7] doc: board/qualcomm: document RDP building/flashing

2025-02-25 Thread Varadarajan Narayanan
Introducing basic support for Qualcomm IPQxxx based RDPs. Document the build and flashing steps. Reviewed-by: Caleb Connolly Signed-off-by: Varadarajan Narayanan --- v5: Add 'Reviewed-by: Caleb Connolly' --- doc/board/qualcomm/rdp.rst | 55 ++ 1 file changed,

[PATCH 5/5] arm: dts: k3-am62p: Update DDR Configurations

2025-02-25 Thread Santhosh Kumar K
Update the DDR Configurations for AM62Px SK according to the SysConfig DDR Configuration tool for AM64x, AM625, AM623, AM62Ax, AM62Px v0.10.02. Signed-off-by: Santhosh Kumar K --- arch/arm/dts/k3-am62p-ddr-lp4-50-1600.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff

[PATCH 4/5] arm: dts: k3-am62a: Update DDR Configurations

2025-02-25 Thread Santhosh Kumar K
Update the DDR Configurations for AM62Ax SK according to the SysConfig DDR Configuration tool for AM64x, AM625, AM623, AM62Ax, AM62Px v0.10.02. Signed-off-by: Santhosh Kumar K --- arch/arm/dts/k3-am62a-ddr-1866mhz-32bit.dtsi | 50 ++-- 1 file changed, 26 insertions(+), 24 deletio

[PATCH 2/5] arm: dts: k3-am62x: Update DDR Configurations

2025-02-25 Thread Santhosh Kumar K
Update the DDR Configurations for AM62x SK according to the SysConfig DDR Configuration tool for AM64x, AM625, AM623, AM62Ax, AM62Px v0.10.02. Signed-off-by: Santhosh Kumar K --- arch/arm/dts/k3-am62x-sk-ddr4-1600MTs.dtsi | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff

[PATCH 3/5] arm: dts: k3-am62-lp: Update DDR Configurations

2025-02-25 Thread Santhosh Kumar K
Update the DDR Configurations for AM62x LP SK according to the SysConfig DDR Configuration tool for AM64x, AM625, AM623, AM62Ax, AM62Px v0.10.02. Signed-off-by: Santhosh Kumar K --- arch/arm/dts/k3-am62-lp4-50-800-800.dtsi | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) d

[PATCH 1/5] arm: dts: k3-am64: Update DDR Configurations

2025-02-25 Thread Santhosh Kumar K
Update the DDR Configurations for AM64x EVM according to the SysConfig DDR Configuration tool for AM64x, AM625, AM623, AM62Ax, AM62Px v0.10.02. Signed-off-by: Santhosh Kumar K --- arch/arm/dts/k3-am64-evm-ddr4-1600MTs.dtsi | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) d

[PATCH 0/5] Update DDR Configurations

2025-02-25 Thread Santhosh Kumar K
This series is to update the DDR configurations of AM64x EVM, AM62x SK, AM62x LP SK, AM62Ax SK and AM62Px SK boards according to the SysConfig DDR Configuration tool for AM64x, AM625, AM623, AM62Ax, AM62Px v0.10.02. Test logs: https://gist.github.com/santhosh21/43723900f3615e4cf98da57ed9618cf9 Si

Re: [RFC PATCH 0/2 v1] Propagate bootph* property to all parent nodes

2025-02-25 Thread Moteen Shah
On 17/02/25 20:32, Quentin Schulz wrote: Hi Moteen, On 2/12/25 10:18 AM, Moteen Shah wrote: [You don't often get email from m-s...@ti.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] In the U-Boot pre-relocation stage, if the parent node lacks bootph* prop

RE: [resend v2 00/19] Add Cadence NAND Driver support

2025-02-25 Thread Maniyam, Dinesh
> -Original Message- > From: Michael Nazzareno Trimarchi > Sent: Saturday, 25 January 2025 6:40 pm > To: Maniyam, Dinesh > Cc: u-boot@lists.denx.de; Marek ; Simon > ; Tom Rini ; Dario > Binacchi ; Johan Jonker > ; Michal Simek ; Arseniy > Krasnov ; Alexander Dahl ; > William Zhang ; Igo

RE: [resend v2 00/19] Add Cadence NAND Driver support

2025-02-25 Thread Maniyam, Dinesh
Hi @Michael Trimarchi, May I get the result of the CI test, hope you already run the test ? Please share the link of the CI test that you run with the patchset. Let me know if I can help to speed up the review process. Thanks Dinesh > -Original Message- > From: Maniyam, Dinesh > Sent: Th

Re: [PATCH v2 28/28] test: Add a test for booting Ubuntu 24.04

2025-02-25 Thread Simon Glass
Hi Tom, On Tue, 25 Feb 2025 at 06:59, Tom Rini wrote: > > On Mon, Feb 24, 2025 at 10:54:13AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Fri, 21 Feb 2025 at 09:06, Tom Rini wrote: > > > > > > On Fri, Feb 21, 2025 at 06:57:34AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Thu

Re: xPL Proposal

2025-02-25 Thread Simon Glass
Hi Tom, On Tue, 25 Feb 2025 at 14:51, Tom Rini wrote: > > On Tue, Feb 25, 2025 at 02:33:17PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 25 Feb 2025 at 07:02, Tom Rini wrote: > > > > > > On Mon, Feb 24, 2025 at 04:38:50PM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Mon

RE: Pull request: SoCFPGA changes for u-boot-socfpga-next-20250225

2025-02-25 Thread Chee, Tien Fong
Dear Tom, -Original Message- From: Tom Rini Sent: Wednesday, February 26, 2025 2:00 AM To: Chee, Tien Fong Cc: Yuslaimi, Alif Zakuan ; Meng, Tingting ; Ng, Boon Khai ; Hea, Kok Kiang ; u-boot@lists.denx.de Subject: Re: Pull request: SoCFPGA changes for u-boot-socfpga-next-20250225

Re: [PATCH 0/7] binman: Check code-coverage requirements

2025-02-25 Thread Simon Glass
Hi Tom, On Tue, 25 Feb 2025 at 14:31, Tom Rini wrote: > > On Tue, Feb 25, 2025 at 02:26:39PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 25 Feb 2025 at 14:06, Tom Rini wrote: > > > > > > On Tue, Feb 25, 2025 at 01:06:25PM -0700, Simon Glass wrote: > > > > > > > This series adds a cover

Re: [PATCH 00/12] Support to run U-Boot on sc7180 Trogdor Chromebooks

2025-02-25 Thread Stephen Boyd
Quoting Caleb Connolly (2025-02-24 06:30:43) > > > >> > >> you might have some luck booting pmOS, we build depthcharge compatible > >> images for trogdor > >> > >> https://images.postmarketos.org/bpo/edge/google-trogdor/ > >> > >> There's also a generic ARM64 EFI image that should work. You may nee

Re: xPL Proposal

2025-02-25 Thread Tom Rini
On Tue, Feb 25, 2025 at 02:33:17PM -0700, Simon Glass wrote: > Hi Tom, > > On Tue, 25 Feb 2025 at 07:02, Tom Rini wrote: > > > > On Mon, Feb 24, 2025 at 04:38:50PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Mon, 24 Feb 2025 at 09:00, Tom Rini wrote: > > > > > > > > On Fri, Feb 21, 20

Re: [PATCH 0/7] binman: Check code-coverage requirements

2025-02-25 Thread Tom Rini
On Tue, Feb 25, 2025 at 02:44:12PM -0700, Simon Glass wrote: > Hi Tom, > > On Tue, 25 Feb 2025 at 14:31, Tom Rini wrote: > > > > On Tue, Feb 25, 2025 at 02:26:39PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Tue, 25 Feb 2025 at 14:06, Tom Rini wrote: > > > > > > > > On Tue, Feb 25, 20

Re: xPL Proposal

2025-02-25 Thread Simon Glass
Hi Tom, On Tue, 25 Feb 2025 at 07:02, Tom Rini wrote: > > On Mon, Feb 24, 2025 at 04:38:50PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 24 Feb 2025 at 09:00, Tom Rini wrote: > > > > > > On Fri, Feb 21, 2025 at 07:07:06PM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Fri

Re: [PATCH 0/7] binman: Check code-coverage requirements

2025-02-25 Thread Tom Rini
On Tue, Feb 25, 2025 at 02:26:39PM -0700, Simon Glass wrote: > Hi Tom, > > On Tue, 25 Feb 2025 at 14:06, Tom Rini wrote: > > > > On Tue, Feb 25, 2025 at 01:06:25PM -0700, Simon Glass wrote: > > > > > This series adds a cover-coverage check to CI for Binman. The iMX8 tests > > > are still not comp

Re: [PATCH 3/3] binman: cst: Build from source

2025-02-25 Thread Simon Glass
Hi Leonard, On Tue, 25 Feb 2025 at 05:11, Leonard Anderweit wrote: > > Build the imx code singing tool from source instead of relying on the > distro to provide the tool. > Use the debian/unstable branch because the default branch is outdated. > The binary is supposed to be build with docker, wor

Re: [EXTERNAL] Re: [RFC PATCH 1/2 v1] arch: arm: Kconfig: Add config to use subnode's bootph property for binding drivers

2025-02-25 Thread Simon Glass
Hi Moteen, On Thu, 13 Feb 2025 at 22:05, Moteen Shah wrote: > > > On 13/02/25 19:31, Simon Glass wrote: > > Hi Moteen, On Wed, 12 Feb 2025 at 02: 18, Moteen Shah > > wrote: > > Add a new config when set will traverse > > through all the subnodes of > a given node scanning for bootph-all > > prop

Re: [PATCH 2/3] binman: build_from_git: Add optional make path inside git repo

2025-02-25 Thread Simon Glass
Hi Leonard, On Tue, 25 Feb 2025 at 05:11, Leonard Anderweit wrote: > > Add optional argument make_path to build_from git. The new argument > allows specifying the path to a Makefile in case it is not in the root > of the git repo. > > Signed-off-by: Leonard Anderweit > --- > tools/binman/bintoo

Re: [PATCH 1/3] binman: build_from_git: Add argument specifying branch

2025-02-25 Thread Simon Glass
On Tue, 25 Feb 2025 at 05:11, Leonard Anderweit wrote: > > Add optional argument git_branch to build_from_git. The new argument > allows specifying which branch of the repo to use. > > Signed-off-by: Leonard Anderweit > --- > tools/binman/bintool.py | 10 -- > 1 file changed, 8 insertion

Re: [PATCH 0/7] binman: Check code-coverage requirements

2025-02-25 Thread Simon Glass
Hi Tom, On Tue, 25 Feb 2025 at 14:06, Tom Rini wrote: > > On Tue, Feb 25, 2025 at 01:06:25PM -0700, Simon Glass wrote: > > > This series adds a cover-coverage check to CI for Binman. The iMX8 tests > > are still not completed, so a work-around is included for those. > > > > A few fixes are includ

Re: [PATCH 0/7] binman: Check code-coverage requirements

2025-02-25 Thread Tom Rini
On Tue, Feb 25, 2025 at 01:06:25PM -0700, Simon Glass wrote: > This series adds a cover-coverage check to CI for Binman. The iMX8 tests > are still not completed, so a work-around is included for those. > > A few fixes are included for some other problems. > > > Jiaxun Yang (1): > binman: Wor

[PATCH RFC] doc: Include pytests directly in documentation

2025-02-25 Thread Tom Rini
As there is support within the Sphinx framework to take Python docstrings and generate documentation from it, we can make use of that to more clearly and consistently document our pytests and how to configure them. To do this we: - Add PYTHONPATH to DOC_TARGETS so that modules will be found, have C

Re: Security vulnerabilities report to Das-U-Boot

2025-02-25 Thread Jonathan Bar Or
Awesome, thanks for the update! On Tue, Feb 25, 2025, 9:59 AM Tom Rini wrote: > On Sat, Feb 22, 2025 at 12:47:45PM -0800, Jonathan Bar Or wrote: > > > Hello Tom and team, > > > > Looks like all of the issues were fixed and merged - am I correct? > > I intend to make a public disclosure March 19t

[PATCH 1/7] binman: Exclude dist-packages and site-packages

2025-02-25 Thread Simon Glass
Newer versions of the python3-coverage tool require a directory separator before and after the directory name. Add this so that system package are not included in the coverage report. Signed-off-by: Simon Glass --- tools/u_boot_pylib/test_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH 0/7] binman: Check code-coverage requirements

2025-02-25 Thread Simon Glass
This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those. A few fixes are included for some other problems. Jiaxun Yang (1): binman: Workaround lz4 cli padding in test cases Simon Glass (6): binman: Exclude dist

[PATCH 6/7] binman: Workaround missing test coverage

2025-02-25 Thread Simon Glass
The iMX8 entry-types don't have proper test coverage. Add a work-around to skip this for now. Signed-off-by: Simon Glass --- tools/binman/main.py| 8 +++- tools/u_boot_pylib/test_util.py | 16 +++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/tool

[PATCH 5/7] binman: Workaround lz4 cli padding in test cases

2025-02-25 Thread Simon Glass
From: Jiaxun Yang Newer lz4 util is not happy with any padding at end of file, it would abort with error message like: Stream followed by undecodable data at position 43. Workaround by skipping testCompUtilPadding test case and manually strip padding in testCompressSectionSize test case. Signe

[PATCH 7/7] CI: Run code-coverage test for Binman

2025-02-25 Thread Simon Glass
Binman includes a good set of tests covering all of its functionality. This includes a code-coverage test. However to date the code-coverage test has not been checked automatically by CI, relying on people to run 'binman test -T' themselves. Plug the gap to avoid bugs creeping in future. Signed-

[PATCH 4/7] binman: Drop algo check in CheckSetHashValue()

2025-02-25 Thread Simon Glass
The CheckAddHashValue() function is always called before this one, so the algorithm check is never used. Replace it with an assert to avoid a coverage error. Signed-off-by: Simon Glass --- tools/binman/state.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/binman/s

[PATCH 3/7] binman: fit: Drop unused code

2025-02-25 Thread Simon Glass
The key-name-hint case is not tested so is presumably not used. Drop it. Signed-off-by: Simon Glass --- tools/binman/etype/fit.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index b5afbda41b5..4c8ffa9a52e 100644 --- a/tools/binman/e

[PATCH 2/7] binman: Drop GetRootSkipAtStart()

2025-02-25 Thread Simon Glass
This method is not called anymore, so drop it. Signed-off-by: Simon Glass --- tools/binman/etype/section.py | 17 - 1 file changed, 17 deletions(-) diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py index 5c371397ffb..1d50bb47753 100644 --- a/tools/binma

Re: [ANN] U-Boot v2025.04-rc3 released

2025-02-25 Thread Tom Rini
On Tue, Feb 25, 2025 at 10:41:21AM -0600, Tom Rini wrote: > Hey all, > > Well, oops. I tagged and pushed things, and wrote this all out > yesterday. And forgot to hit send. My fault. So it's the day after the > release, and I tagged it all yesterday but here's the email for > v2025.04-rc3. The -n

Re: [PATCH 0/2] Remove "saveenv" functionality from am57xx evms

2025-02-25 Thread Tom Rini
On Sat, 08 Feb 2025 10:09:36 +0530, Anurag Dutta wrote: > Previously saved environment introduce discrepancies and may lead to > incompatibilities without default settings. This series removes the saved > environment functionality on am57xx evms so that the default configuration > is always loaded

Re: Pull request: SoCFPGA changes for u-boot-socfpga-next-20250225

2025-02-25 Thread Tom Rini
wing changes since commit dc0ee458f1afae4cb5c8a7b2c875bb24ffdf71ca: > > Prepare v2025.04-rc3 (2025-02-24 16:53:59 -0600) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-socfpga.git > tags/u-boot-socfpga-next-20250225 >

Re: Security vulnerabilities report to Das-U-Boot

2025-02-25 Thread Tom Rini
On Sat, Feb 22, 2025 at 12:47:45PM -0800, Jonathan Bar Or wrote: > Hello Tom and team, > > Looks like all of the issues were fixed and merged - am I correct? > I intend to make a public disclosure March 19th, is that okay? Yes, I've merged all of the patches I'm aware of at this point. > > Bes

[PATCH] lib: rsa: add NULL check for 'algo' in

2025-02-25 Thread Anton Moryakov
- Check return value of fdt_getprop for NULL. - Return -EFAULT if 'algo' property is missing. - Prevent NULL pointer dereference in strcmp." Triggers found by static analyzer Svace. Signed-off-by: Anton Moryakov --- lib/rsa/rsa-verify.c | 5 + 1 file changed, 5 insertions(+) diff --git a/

[PATCH v2 00/14] Uthreads

2025-02-25 Thread Jerome Forissier
This series introduces threads and uses them to improve the performance of the USB bus scanning code and to implement background jobs in the shell via two new commands: 'spawn' and 'wait'. The threading framework is called 'uthread' and is inspired from the barebox threads [1]. setjmp() and longjm

[ANN] U-Boot v2025.04-rc3 released

2025-02-25 Thread Tom Rini
Hey all, Well, oops. I tagged and pushed things, and wrote this all out yesterday. And forgot to hit send. My fault. So it's the day after the release, and I tagged it all yesterday but here's the email for v2025.04-rc3. The -next branch has been open for two weeks now and I'll merge this in there

[PATCH v2 14/14] test: dm: add test for spawn and wait commands

2025-02-25 Thread Jerome Forissier
Test the spawn and wait commands. Signed-off-by: Jerome Forissier --- test/cmd/Makefile | 1 + test/cmd/spawn.c | 33 + 2 files changed, 34 insertions(+) create mode 100644 test/cmd/spawn.c diff --git a/test/cmd/Makefile b/test/cmd/Makefile index d8a5e77402d..

[PATCH v2 13/14] cmd: add spawn and wait commands

2025-02-25 Thread Jerome Forissier
Add a spawn command which runs another command in the background, as well as a wait command to suspend the shell until one or more background jobs have completed. The job_id environment variable is set by spawn and wait accepts optional job ids, so that one can selectively wait on any job. Example

[PATCH v2 12/14] dm: usb: initialize and scan multiple buses simultaneously with uthread

2025-02-25 Thread Jerome Forissier
Use the uthread framework to initialize and scan USB buses in parallel for better performance. The console output is slightly modified with a final per-bus report of the number of devices found, common to UTHREAD and !UTHREAD. The USB tests are updated accordingly. Tested on two platforms: 1. arm

[PATCH v2 11/14] dm: usb: move bus initialization into new static function usb_init_bus()

2025-02-25 Thread Jerome Forissier
To prepare for the introduction of coroutines in the USB initialization sequence, move code out of usb_init() into a new helper function: usb_init_bus(). No functional change. Signed-off-by: Jerome Forissier --- drivers/usb/host/usb-uclass.c | 88 +++ 1 file chang

[PATCH v2 10/14] test: lib: add uthread test

2025-02-25 Thread Jerome Forissier
Add a uhread framework test to the lib tests. Signed-off-by: Jerome Forissier --- test/lib/Makefile | 1 + test/lib/uthread.c | 68 ++ 2 files changed, 69 insertions(+) create mode 100644 test/lib/uthread.c diff --git a/test/lib/Makefile b/test/lib

[PATCH v2 08/14] lib: time: hook uthread_schedule() into udelay()

2025-02-25 Thread Jerome Forissier
Introduce a uthread scheduling loop into udelay() when CONFIG_UTHREAD is enabled. This means that any uthread calling into udelay() may yield to uthread and be scheduled again later. While not strictly necessary since uthread_schedule() is already called by schedule(), tests show that it is desira

[PATCH v2 09/14] doc: develop: add documentation for uthreads

2025-02-25 Thread Jerome Forissier
Add documentation for the uthread framework. Signed-off-by: Jerome Forissier --- doc/develop/index.rst | 1 + doc/develop/uthread.rst | 136 2 files changed, 137 insertions(+) create mode 100644 doc/develop/uthread.rst diff --git a/doc/develop/index

[PATCH v2 07/14] cyclic: invoke uthread_schedule() from schedule()

2025-02-25 Thread Jerome Forissier
Make the schedule() call from the CYCLIC framework a uthread scheduling point too. This makes sense since schedule() is called from a lot of places where uthread_schedule() needs to be called. Signed-off-by: Jerome Forissier --- common/cyclic.c | 3 +++ include/u-boot/schedule.h | 3 ++

[PATCH v2 05/14] test: lib: add initjmp() test

2025-02-25 Thread Jerome Forissier
Test the initjmp() function when HAVE_INITJMP is set. Signed-off-by: Jerome Forissier --- test/lib/Makefile | 1 + test/lib/initjmp.c | 72 ++ 2 files changed, 73 insertions(+) create mode 100644 test/lib/initjmp.c diff --git a/test/lib/Makefile b/

[PATCH v2 06/14] uthread: add cooperative multi-tasking interface

2025-02-25 Thread Jerome Forissier
Add an new internal API called uthread (Kconfig symbol: UTHREAD) which provides cooperative multi-tasking. The goal is to be able to improve the performance of some parts of U-Boot by overlapping lengthy operations, and also implement background jobs in the U-Boot shell. Each uthread has its own st

[PATCH v2 03/14] riscv: add initjmp()

2025-02-25 Thread Jerome Forissier
Implement initjmp() for RISC-V. Signed-off-by: Jerome Forissier --- arch/Kconfig| 1 + arch/riscv/include/asm/setjmp.h | 1 + arch/riscv/lib/setjmp.S | 10 ++ 3 files changed, 12 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 57695fada8d..b745

[PATCH v2 04/14] sandbox: add initjmp()

2025-02-25 Thread Jerome Forissier
Add ininijmp() to sandbox. The implementation is taken verbatim from barebox [1]. It is quite complex because contrary to U-Boot platform code we don't know how the system's C library implements the jump buffer, so we can't just write the function and stack pointers into it. FIXME: this patch shou

[PATCH v2 02/14] arm: add initjmp()

2025-02-25 Thread Jerome Forissier
Implement initjmp() for Arm. Signed-off-by: Jerome Forissier --- arch/Kconfig | 1 + arch/arm/include/asm/setjmp.h | 1 + arch/arm/lib/setjmp.S | 11 +++ arch/arm/lib/setjmp_aarch64.S | 9 + 4 files changed, 22 insertions(+) diff --git a/arch/Kconfig

[PATCH v2 01/14] arch: introduce symbol HAVE_INITJMP

2025-02-25 Thread Jerome Forissier
HAVE_INIJMP will be set by architectures that support initjmp(), a non-standard extension to setjmp()/longjmp() allowing to initialize a jump buffer with a function pointer and a stack pointer. This will be useful to later introduce threads. With this new function it becomes possible to longjmp() t

Re: [PATCH v3 2/2] env: mmc: Clean up env_mmc_load() ifdeffery

2025-02-25 Thread Mattijs Korpershoek
Hi Marek, Thank you for the patch. On ven., févr. 21, 2025 at 19:47, Marek Vasut wrote: > Rename the variants of env_mmc_load() for redundant and non-redundant > environment to env_mmc_load_redundant() and env_mmc_load_singular() > respectively and convert the env_mmc_load() implementation to u

Re: [PATCH v3 1/2] env: mmc: Make redundant env in both eMMC boot partitions consider DT properties

2025-02-25 Thread Mattijs Korpershoek
Hi Marek, Thank you for the patch. On ven., févr. 21, 2025 at 19:47, Marek Vasut wrote: > Introduce a new function mmc_env_is_redundant_in_both_boot_hwparts() > which replaces IS_ENABLED(ENV_MMC_HWPART_REDUND) and internally does > almost the same check as the macro which assigned ENV_MMC_HWPAR

Re: [PATCH v1] led: fix next coverity scan error

2025-02-25 Thread Tom Rini
On Tue, Feb 25, 2025 at 12:29:29PM +0100, Heiko Schocher wrote: > Hello Quentin, > > On 25.02.25 12:13, Quentin Schulz wrote: > > Hi Heiko, > > > > On 2/25/25 10:49 AM, Heiko Schocher wrote: > > > Tom reported the following covervity scan error: > > > > > > *** CID 542488:  Control flow issues 

Re: [PATCH v3 13/15] board: ti: j722s: evm: Enable cache for J722s

2025-02-25 Thread Sverdlin, Alexander
On Tue, 2025-02-25 at 17:19 +0530, Chintan Vankar wrote: > Enable cache for J722s to optimize performance of CPU to access data from > memory. > > Signed-off-by: Chintan Vankar Reviewed-by: Alexander Sverdlin > --- > > This patch is newly introduced in this series. > >  board/ti/j722s/evm.c

[PATCH v2] spl: return header size to spl_load in os boot

2025-02-25 Thread Anshul Dalal
During linux build process the header size is computed including the BSS whereas it's removed when creating the uncompressed image. Therefore the size of the uncompressed image on filesystem will be smaller than the size specified in the header. This causes issues when loading the kernel image fro

Re: [PATCH v3 00/44] x86: Improve operation under QEMU

2025-02-25 Thread Tom Rini
On Mon, Feb 24, 2025 at 04:05:49PM -0700, Simon Glass wrote: > U-Boot can start and boot an OS in both qemu-x86 and qemu-x86_64 but it > is not perfect. > > With both builds, executing the VESA ROM causes an intermittent hang, at > least on some AMD CPUs. > > With qemu-x86_64 kvm cannot be used

Re: xPL Proposal

2025-02-25 Thread Tom Rini
On Mon, Feb 24, 2025 at 04:38:50PM -0700, Simon Glass wrote: > Hi Tom, > > On Mon, 24 Feb 2025 at 09:00, Tom Rini wrote: > > > > On Fri, Feb 21, 2025 at 07:07:06PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 21 Feb 2025 at 18:06, Tom Rini wrote: > > > > > > > > On Fri, Feb 21, 20

Re: [PATCH v2 28/28] test: Add a test for booting Ubuntu 24.04

2025-02-25 Thread Tom Rini
On Mon, Feb 24, 2025 at 10:54:13AM -0700, Simon Glass wrote: > Hi Tom, > > On Fri, 21 Feb 2025 at 09:06, Tom Rini wrote: > > > > On Fri, Feb 21, 2025 at 06:57:34AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 20 Feb 2025 at 07:53, Tom Rini wrote: > > > > > > > > On Thu, Feb 20, 20

[PATCH] lib: ecdsa: fix prevent memory leak in ecdsa_add_verify_data

2025-02-25 Thread Anton Moryakov
- Ensure `free_ctx` is called in both error and success paths. - Fix memory leak in `ctx.signature` when `do_add` fails." Triggers found by static analyzer Svace. Signed-off-by: Anton Moryakov --- lib/ecdsa/ecdsa-libcrypto.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --gi

Re: [PATCH v3 05/15] net: ti: Kconfig: Enable SPL_SYSCON config for CPSW

2025-02-25 Thread Sverdlin, Alexander
On Tue, 2025-02-25 at 17:18 +0530, Chintan Vankar wrote: > TI's Ethernet switch needs system controllers enabled in R5SPL stage while > booting via Ethernet. Enable SPL_SYSCON config for > CONFIG_TI_AM65_CPSW_NUSS. > > Signed-off-by: Chintan Vankar Reviewed-by: Alexander Sverdlin > --- > > Th

Re: [PATCH v3 3/4] board: starfive: spl: strip off 'starfive/' prefix

2025-02-25 Thread E Shattow
On 2/24/25 02:13, Heinrich Schuchardt wrote: > On 2/23/25 15:18, E Shattow wrote: >> >> On 2/23/25 04:55, Heinrich Schuchardt wrote: >>> On 2/23/25 02:33, E Shattow wrote: On 2/21/25 01:58, Heinrich Schuchardt wrote: > The configuration descriptions generated by binman contain

Re: [PATCH 11/17] makefile: Fix symbol typo in binary_size_check

2025-02-25 Thread Simon Glass
Hi Sam, On Mon, 24 Feb 2025 at 02:17, Heinrich Schuchardt wrote: > > On 2/24/25 06:55, Sam Edwards wrote: > > The start-of-image marker symbol is `__image_copy_start`; by searching > > for `_image_copy_start` instead, this check can accidentally match > > `_image_copy_start_ofs`. > > _image_copy_

Re: [PATCH 04/12] coreboot: Move coreboot logic out of x86 to a generic place

2025-02-25 Thread Simon Glass
Hi, On Mon, 24 Feb 2025 at 08:16, Caleb Connolly wrote: > > > > On 2/22/25 01:17, Stephen Boyd wrote: > > Quoting Tom Rini (2025-02-20 17:06:58) > >> On Thu, Feb 20, 2025 at 12:58:46PM -0800, Stephen Boyd wrote: > >> > >>> Lay the groundwork to run U-Boot as a payload on ARM coreboot based > >>>

Re: [PATCH 07/32] scripts: Update build-efi to support arm64

2025-02-25 Thread Simon Glass
Hi Heinrich, On Sat, 15 Feb 2025 at 05:05, Simon Glass wrote: > > Hi Heinrich, > > On Sun, 9 Feb 2025 at 12:05, Heinrich Schuchardt wrote: > > > > Am 3. Februar 2025 18:42:00 MEZ schrieb Simon Glass : > > >Provide a -A flag to select ARM instead of x86. For now, only the app > > >is supported an

[PATCH 2/3] binman: build_from_git: Add optional make path inside git repo

2025-02-25 Thread Leonard Anderweit
Add optional argument make_path to build_from git. The new argument allows specifying the path to a Makefile in case it is not in the root of the git repo. Signed-off-by: Leonard Anderweit --- tools/binman/bintool.py | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/to

[PATCH 1/3] binman: build_from_git: Add argument specifying branch

2025-02-25 Thread Leonard Anderweit
Add optional argument git_branch to build_from_git. The new argument allows specifying which branch of the repo to use. Signed-off-by: Leonard Anderweit --- tools/binman/bintool.py | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/binman/bintool.py b/tools/binm

[PATCH 3/3] binman: cst: Build from source

2025-02-25 Thread Leonard Anderweit
Build the imx code singing tool from source instead of relying on the distro to provide the tool. Use the debian/unstable branch because the default branch is outdated. The binary is supposed to be build with docker, work around that by selecting the correct Makefile directly. Signed-off-by: Leona

[PATCH v3 15/15] configs: j722s_evm_a53: Enable configs required for Ethernet boot

2025-02-25 Thread Chintan Vankar
Enable configs required to support Ethernet boot for J722s. Signed-off-by: Chintan Vankar --- This patch is newly introduced in this series. configs/j722s_evm_a53_ethboot_defconfig | 13 + 1 file changed, 13 insertions(+) create mode 100644 configs/j722s_evm_a53_ethboot_defconfig

[PATCH v3 13/15] board: ti: j722s: evm: Enable cache for J722s

2025-02-25 Thread Chintan Vankar
Enable cache for J722s to optimize performance of CPU to access data from memory. Signed-off-by: Chintan Vankar --- This patch is newly introduced in this series. board/ti/j722s/evm.c | 8 1 file changed, 8 insertions(+) diff --git a/board/ti/j722s/evm.c b/board/ti/j722s/evm.c index

[PATCH v3 14/15] configs: j722s_evm_r5: Add configs to enable Ethboot in R5SPL

2025-02-25 Thread Chintan Vankar
Add configs to enable Ethernet boot in R5SPL, also disable not required configs to avoid memory limitation. Signed-off-by: Chintan Vankar --- This patch is newly introduced in this series. configs/j722s_evm_r5_ethboot_defconfig | 30 ++ 1 file changed, 30 insertions(+)

[PATCH v3 06/15] configs: am68: Add configs for enabling Ethboot in R5SPL

2025-02-25 Thread Chintan Vankar
Add configs for enabling Ethernet boot in R5SPL, also disable not required configs to avoid memory limitation. Signed-off-by: Chintan Vankar --- Link to v2: https://lore.kernel.org/r/20250219104831.2315464-7-c-van...@ti.com/ Changes from v2 to v3: - Removed not required config options from the

Re: Need help with booting from SPI Flash

2025-02-25 Thread Matwey V. Kornilov
пн, 24 февр. 2025 г. в 18:09, Quentin Schulz : > > Hi Matwey, > > On 2/24/25 3:37 PM, Matwey V. Kornilov wrote: > > пн, 24 февр. 2025 г. в 13:54, Quentin Schulz : > >> > >> Hi Matwey, > >> > >> On 2/24/25 10:57 AM, Matwey V. Kornilov wrote: > >>> Hi, > >>> > >>> I have an Allwinner based board with

[PATCH v3 12/15] arch: arm: mach-k3: r5: j722s: Update SoC autogenerated data to enable Ethernet boot

2025-02-25 Thread Chintan Vankar
In order to enable Ethernet boot using CPSW, update dev-data and clk-data for J722s. Signed-off-by: Chintan Vankar --- This patch is newly introduced in this series. arch/arm/mach-k3/r5/j722s/clk-data.c | 50 ++-- arch/arm/mach-k3/r5/j722s/dev-data.c | 34 +-

[PATCH v3 10/15] configs: am62p: Add configs for enabling ETHBOOT in R5SPL

2025-02-25 Thread Chintan Vankar
From: Andreas Dannenberg Add configs for enabling ETHBOOT in R5SPL, also disable not required configs to avoid memory limitation. Signed-off-by: Andreas Dannenberg Signed-off-by: Chintan Vankar --- Link to v2: https://lore.kernel.org/r/20250219104831.2315464-12-c-van...@ti.com/ Changes from

[PATCH v3 11/15] configs: am62p: Enable configs required for Ethboot

2025-02-25 Thread Chintan Vankar
Enable config options needed to support Ethernet boot on AM62p SK. Signed-off-by: Chintan Vankar --- Link to v2: https://lore.kernel.org/r/20250219104831.2315464-13-c-van...@ti.com/ Changes from v2 to v3: - No changes, configs/am62px_evm_a53_ethboot_defconfig | 13 + 1 file change

[PATCH v3 09/15] board: ti: am62px: evm: Enable cache for AM62p

2025-02-25 Thread Chintan Vankar
From: Andreas Dannenberg Enable cache for AM62p to optimize performance of CPU to access data from memory. Reviewed-by: Alexander Sverdlin Signed-off-by: Andreas Dannenberg Signed-off-by: Chintan Vankar --- Link to v2: https://lore.kernel.org/r/20250219104831.2315464-11-c-van...@ti.com/ Cha

[PATCH v3 08/15] arm: mach-k3: am62p: Update SoC auto-gen data to enable CPSW boot

2025-02-25 Thread Chintan Vankar
From: Andreas Dannenberg Update dev-data and clk-data for AM62p to enable Ethernet boot using CPSW. Signed-off-by: Andreas Dannenberg Signed-off-by: Chintan Vankar --- Link to v2: https://lore.kernel.org/r/20250219104831.2315464-10-c-van...@ti.com/ Changes from v2 to v3: - No changes. arch

[PATCH v3 07/15] configs: am68: Enable configs required for Ethernet boot

2025-02-25 Thread Chintan Vankar
Enable config options needed to support Ethernet boot on AM68-SK. Signed-off-by: Chintan Vankar --- Link to v2: https://lore.kernel.org/r/20250219104831.2315464-8-c-van...@ti.com/ Changes from v2 to v3: - No changes. configs/am68_sk_a72_ethboot_defconfig | 14 ++ 1 file changed, 1

[PATCH v3 01/15] net: ti: am65-cpsw-nuss: Define bind method for CPSW driver

2025-02-25 Thread Chintan Vankar
CPSW driver is defined as UCLASS_MISC driver which needs to be probed explicitly. Define bind method for CPSW driver to scan and bind ethernet-ports with UCLASS_ETH driver which will eventually probe CPSW driver and avoids probing CPSW driver explicitly. Signed-off-by: Chintan Vankar --- Link to

[PATCH v3 03/15] arm: mach-k3: j721s2: Update SoC auto-gen data to enable Ethernet boot

2025-02-25 Thread Chintan Vankar
Update dev-data and clk-data generated using ksswtool-autogen to include CPSW device which is required for Ethernet Boot, also use ARRAY_SIZE() MACRO to avoid hard-coding array size. Reviewed-by: Bryan Brattlof Signed-off-by: Chintan Vankar --- Link to v2: https://lore.kernel.org/r/202502191048

[PATCH v3 04/15] arm: mach-k3: j721s2_spl: Alias Ethernet boot to CPGMAC

2025-02-25 Thread Chintan Vankar
This is required to enable spl_net boot on AM68-SK. Signed-off-by: Chintan Vankar --- Link to v2: https://lore.kernel.org/r/20250219104831.2315464-6-c-van...@ti.com/ Changes from v2 to v3: - No changes. arch/arm/mach-k3/include/mach/j721s2_spl.h | 1 + 1 file changed, 1 insertion(+) diff --g

[PATCH v3 00/15] Add support for Ethboot for AM68-SK, AM62p-SK

2025-02-25 Thread Chintan Vankar
Hello All, This series enables ethernet boot support for AM68-SK, AM62p-SK and J722s_EVM. It is based on commit '5061eab96acd6' of origin/master branch of U-Boot. Link to v2: https://lore.kernel.org/r/20250219104831.2315464-1-c-van...@ti.com/ Changes from v2 to v3: - Removed [PATCH v2 01/13] sin

[PATCH v3 02/15] arm: mach-k3: am62x: am625_init: Remove explicit probing of CPSW driver

2025-02-25 Thread Chintan Vankar
Bind method of am65_cpsw_nuss driver will ensure binding of it's child driver am65_cpsw_nuss_ports, and there is no need to call CPSW driver explicitly. Remove explicit probing of CPSW driver for AM62x. Signed-off-by: Chintan Vankar --- Link to v2: https://lore.kernel.org/r/20250219104831.231546

[PATCH v3 05/15] net: ti: Kconfig: Enable SPL_SYSCON config for CPSW

2025-02-25 Thread Chintan Vankar
TI's Ethernet switch needs system controllers enabled in R5SPL stage while booting via Ethernet. Enable SPL_SYSCON config for CONFIG_TI_AM65_CPSW_NUSS. Signed-off-by: Chintan Vankar --- This patch is new in this series. drivers/net/ti/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a

  1   2   >