Re: [PATCH v3 11/12] configs: pinetab2-rk3566: Enable video and USB keyboard

2025-04-18 Thread Dang Huynh
Hi Jonas, On Tue, Apr 15, 2025 at 05:52:55PM +0200, Jonas Karlman wrote: > On 2025-04-15 15:29, Dang Huynh wrote: > > On Sun, Apr 13, 2025 at 05:26:03PM +0200, Jonas Karlman wrote: > >> Hi, > >> > >> On 2025-04-12 16:27, Dang Huynh wrote: > >>> Now that we have VOP2 support, let's enable it and su

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

2025-04-18 Thread Jonathan Currier
Add the device specific driver data, the device tree entry, and the clock configuration. Signed-off-by: Jonathan Currier --- arch/arm/dts/imxrt1170-evk.dts | 28 + arch/arm/dts/imxrt1170.dtsi | 13 ++ drivers/clk/imx/clk-imxrt1170.c

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

2025-04-18 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 1/3] spi: fspi: involve lut_num for struct nxp_fspi_devtype_data

2025-04-18 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 0/3] Add FlexSPI support for i.MX RT1170

2025-04-18 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 v2 2/3] sunxi: add "fake" FEL pin support

2025-04-18 Thread Yixun Lan
Hi On 13:28 Fri 18 Apr , Quentin Schulz wrote: > Hi Andre, > > On 4/17/25 2:05 AM, Andre Przywara wrote: > > Some boards with Allwinner SoCs feature a "FEL" key, sometimes also > > labelled "uboot", which triggers the BootROM FEL mode, when pressed upon > > power-on or reset. This allows to a

[PATCH V2 1/9] board: beagle: beagley-ai: Add pattern match for MAINTAINERS

2025-04-18 Thread Nishanth Menon
just use beagley_ai as pattern match for the files and folders involved. Signed-off-by: Nishanth Menon --- Changes Since v1: - None V1: https://lore.kernel.org/r/20250411225717.3117370-2...@ti.com board/beagle/beagley-ai/MAINTAINERS | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) dif

[PATCH V2 8/9] configs: am67a_beagley_ai_a53: Enable additional features

2025-04-18 Thread Nishanth Menon
Enable basic EFI debug features, switch over to stdboot, enable GPIO, LED and PMIC used on this platform. And enable UHS mode support for SD cards in U-Boot. Unlike other BeagleBoard products, BeagleY-AI does not have alternative onboard non-volatile memories, so capsule support does not make sens

[PATCH V2 0/9] board: beagle: beagley-ai: Cleanups and stdboot

2025-04-18 Thread Nishanth Menon
Spin 2 of the series. Just happened to get a BeagleY-AI at desk and happened to test master branch (7dd49a9264a6 drivers: scsi: Add 'erase' support), noticed a few issues which were rather easy to solve.. so, here we go: Current series is based off: master 71f497a6d390 ("Revert "power-domain: Add

[PATCH V2 3/9] beagle: beagley-ai: env: Set up the boot devices and boot methods

2025-04-18 Thread Nishanth Menon
We just have a single MMC on BeagleY-AI. So drop all other boot options, In the meanwhile, we also will use efiboot and standard boot methods consistent with other K3 Beagle products. Signed-off-by: Nishanth Menon --- Changes Since v1: - None V1: https://lore.kernel.org/r/20250411225717.3117370

[PATCH V2 6/9] configs: am67a_beagley_ai*: Use saveddefconfig

2025-04-18 Thread Nishanth Menon
Drop using j722s_evm defconfig since the evm has numerous features that we do not need on BeagleY-AI platform. As new peripherals get added to EVM support, we end up having to cleanup after in beagle configurations. Instead of doing that, just split up BeagleY's configuration independently out. N

[PATCH V2 2/9] arch: arm: dts: k3-am67a-beagley-ai-u-boot: Mark main_gpio1 as bootph-all

2025-04-18 Thread Nishanth Menon
main_gpio1 controls the voltage for the SDcard from 3.3v to 1.8v. This is required for proper operation of SDcard through various boot stages. Fixes the following seen in the boot log: failed to set vqmmc-voltage to 3.3V Signed-off-by: Nishanth Menon --- Changes Since v1: - None V1: https://lor

[PATCH V2 7/9] configs:am67a_beagley_ai*: Drop un-necessary config options

2025-04-18 Thread Nishanth Menon
Drop SPI, EMMC, GPIO expanders that come with EVM etc. Signed-off-by: Nishanth Menon --- Changes Since v1: - None V1: https://lore.kernel.org/r/20250411225717.3117370-8...@ti.com configs/am67a_beagley_ai_a53_defconfig | 8 configs/am67a_beagley_ai_r5_defconfig | 23 -

[PATCH V2 5/9] beagle: beagley-ai: env: Enable DFU env options

2025-04-18 Thread Nishanth Menon
We just have sd/mmc, so set things up for the same Signed-off-by: Nishanth Menon --- Changes Since v1: - None V1: https://lore.kernel.org/r/20250411225717.3117370-6...@ti.com board/beagle/beagley-ai/beagley-ai.env | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/beagle/beagley-ai/be

[PATCH V2 9/9] doc: beagle: Add BeagleY-AI documentation

2025-04-18 Thread Nishanth Menon
Document the BeagleY-AI usage, build and basic debug hints Signed-off-by: Nishanth Menon --- Changes Since v1: - Included the manual partitioning option suggested by Andrew V1: https://lore.kernel.org/r/20250411225717.3117370-10...@ti.com doc/board/beagle/am67a_beagley_ai.rst | 244 +++

[PATCH V2 4/9] beagle: beagley-ai: env: Setup scripts for LED control

2025-04-18 Thread Nishanth Menon
Most of the users of BeagleY-AI are headless OR do not use serial port. In such cases, it is very useful for the device to provide some level of indication to know what state their board is at. Unfortunately, with a single LED (ignoring the :heartbeat), the options are limited. This is a precursor

Re: [PATCH 0/9] board: beagle: beagley-ai: Cleanups and

2025-04-18 Thread Nishanth Menon
On 18:05-20250417, Jon Humphreys wrote: > Nishanth Menon writes: > > > Just happened to get a BeagleY-AI at desk and happened to test master > > branch (7dd49a9264a6 drivers: scsi: Add 'erase' support), noticed a few > > issues which were rather easy to solve.. so, here we go: > > > > Bootlog: ht

Re: [PATCH 8/9] configs: am67a_beagley_ai_a53: Enable additional features

2025-04-18 Thread Nishanth Menon
On 18:03-20250417, Jon Humphreys wrote: > Nishanth Menon writes: > > > Enable basic efi capsule features, switch over to stdboot, enable > > GPIO, LED and PMIC used on this platform. And enable UHS mode support > > for SD cards in U-Boot. > > > > Nishanth, I would update the description to be "E

CM5 with random delays on boot

2025-04-18 Thread Tholag
Hello everyone! A random delay in bootup bugs me or my RPI CM5 for a few weeks. My best guess for now is that U-Boot triggers some process in rp1, the shdc-controller or the mmc.But I don’t know how to diagnose any further, so I send the details I can provide below. Maybe someone can help? Thanks

[PATCH] tools: Fix memory and descriptor leak

2025-04-18 Thread ant . v . moryakov
From: Maks Mishin Signed-off-by: Maks Mishin Signed-off-by: Anton Moryakov --- tools/zynqmpbif.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tools/zynqmpbif.c b/tools/zynqmpbif.c index 82ce0ac1a52..33c68eac9f3 100644 --- a/tools/zynqmpbif.c +++ b/tools/zy

Re: [PATCH] tools: Fix memory and file descriptor leaks in read_full_file()

2025-04-18 Thread Tom Rini
On Fri, Apr 18, 2025 at 08:19:47PM +0300, ant.v.morya...@gmail.com wrote: > From: Maks Mishin > > Fixes potential memory and file descriptor leaks in the read_full_file() > function. If malloc succeeds but read() fails, the buffer was not freed, > and the file descriptor was not closed. This pat

[PATCH] tools: Fix potential memory leak in aisimage.c

2025-04-18 Thread ant . v . moryakov
From: Maks Mishin The 'line' variable is dynamically allocated by getline() function during config file parsing but wasn't being freed before function exit, causing memory leak. This was detected by static analysis. Add missing free() call before closing the file descriptor to prevent memory lea

[PATCH] tools: Fix memory and file descriptor leaks in read_full_file()

2025-04-18 Thread ant . v . moryakov
From: Maks Mishin Fixes potential memory and file descriptor leaks in the read_full_file() function. If malloc succeeds but read() fails, the buffer was not freed, and the file descriptor was not closed. This patch ensures both resources are properly released using a common exit point. Signed-of

Re: [PATCH v2 2/2] binman: etype: u_boot_spl_pubkey_dtb: provide more explicit error for key-name-hint with path

2025-04-18 Thread Simon Glass
On Fri, 18 Apr 2025 at 05:26, Quentin Schulz wrote: > > From: Quentin Schulz > > key-name-hint property in u-boot-spl-pubkey-dtb binman entry may contain > a path instead of a filename due to user mistake. > > Because we currently assume it is a filename instead of a path, binman > will find the

Re: [PATCH v2 1/2] binman: etype: fit: raise ValueError if key-name-hint is a path

2025-04-18 Thread Simon Glass
On Fri, 18 Apr 2025 at 05:26, Quentin Schulz wrote: > > From: Quentin Schulz > > mkimage doesn't fail if it cannot find the public key but it prints to > stderr. Considering that btool.run() discards stderr, it means binman > happily returns an unsigned FIT and doesn't tell you something went > w

Re: [PATCH] Revert "power-domain: Add refcounting"

2025-04-18 Thread Simon Glass
Hi Miquel, On Fri, 18 Apr 2025 at 01:10, Miquel Raynal wrote: > > Hi Tom, > > On 17/04/2025 at 13:53:11 +02, Wadim Egorov wrote: > > > Unfortunately this change breaks boot on K3 platform. > > U-Boot will hang after: > > > > U-Boot SPL 2025.04-01050-ga40fc5afaec0 (Apr 14 2025 - 07:31:32 +)

Re: [PATCH] Revert "power-domain: Add refcounting"

2025-04-18 Thread Tom Rini
On Thu, 17 Apr 2025 13:53:11 +0200, Wadim Egorov wrote: > Unfortunately this change breaks boot on K3 platform. > U-Boot will hang after: > > U-Boot SPL 2025.04-01050-ga40fc5afaec0 (Apr 14 2025 - 07:31:32 +) > SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.7--v09.02.07 (Kool Koala)') > > This

Re: imx8mp: pci enumeration fails with current HEAD

2025-04-18 Thread Heiko Schocher
Hello Miquel, On 17.04.25 17:20, Miquel Raynal wrote: On 17/04/2025 at 16:46:13 +02, Heiko Schocher wrote: Hello Miquel, On 17.04.25 16:37, Heiko Schocher wrote: Hi Miquel, I have here an imx8mp based board for which I just prepare mainlining. pci enumeration works fine with U-Boot 2025.04

Re: [PATCH 0/2] mmc: omap_hsmmc: Restore the init_stream sequence

2025-04-18 Thread Peng Fan
Hi Mathieu, On Thu, Apr 10, 2025 at 11:00:19AM +0200, Mathieu Othacehe wrote: >Hello, > >Back in 2019, the init_stream sequence was disabled with db52e19ced because: > > This is not required. The MMC core sends CMD0 right after the > initialization and it serves the same purpose. > >That is wron

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-04-18 Thread Simon Glass
Hi Tom, On Mon, 14 Apr 2025 at 14:34, Tom Rini wrote: > > On Mon, Apr 14, 2025 at 01:34:10PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 7 Apr 2025 at 08:31, Tom Rini wrote: > > > > > > On Mon, Apr 07, 2025 at 12:35:15PM +1200, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Mon,

[PATCH v3 3/4] mmc: am654_sdhci: Add am654_sdhci_set_control_reg

2025-04-18 Thread Judith Mendez
This patch adds am654_sdhci_set_control_reg to am654_sdhci. This is required to fix UHS_MODE_SELECT for TI K3 boards. If any of HIGH_SPEED_ENA, V1P8_SIGNAL_ENA, UHS_MODE_SELECT are set, then data will be launched on the pos-edge of the clock. Since K3 SoCs did not meet timing requirements for Hi

[PATCH v3 02/22] emulation: fdt: Allow using U-Boot's device tree with QEMU

2025-04-18 Thread Simon Glass
At present it is impossible to change the qemu_arm64 defconfig to obtain a devicetree from the U-Boot build. This is necessary for FIT validation, for example, where the signature node must be compiled into U-Boot. A proposed change to QEMU to allow device tree additions has been blocked for seve

[PATCH v2 1/8] arm: at91: remove at91_wdt struct in spl

2025-04-18 Thread Zixun LI
at91_wdt struct is only used by spl, remove this reference to allow at91_wdt_t removal. Signed-off-by: Zixun LI --- arch/arm/mach-at91/spl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-at91/spl.c b/arch/arm/mach-at91/spl.c index 5feb8f735511a45dd37ee04bb

Re: [PATCH] stm32mp: Add nvram driver

2025-04-18 Thread Patrick DELAUNAY
Hi, On 4/11/25 18:03, Patrice Chotard wrote: From: Simeon Marijon TAMP backup registers will be exposed as nvmem cells. Each registers ([0..127] for STM32MP2, [0..31] for STM32MP1) could be exposed as nvmem cells under the nvram node in device tree Signed-off-by: Simeon Marijon Signed-off-b

Re: [REGRESSION] Re: [PATCH v2 16/24] clk: imx: Convert clock-osc-* back to osc_*

2025-04-18 Thread Adam Ford
On Thu, Apr 17, 2025 at 6:31 AM Marek Vasut wrote: > > On 4/17/25 12:51 PM, Adam Ford wrote: > > On Thu, Apr 17, 2025 at 2:24 AM Marek Vasut wrote: > >> > >> On 4/17/25 1:58 AM, Fabio Estevam wrote: > >>> On Wed, Apr 16, 2025 at 8:47 PM Marek Vasut wrote: > >>> > You are not supposed to use

imx8mp: pci enumeration fails with current HEAD

2025-04-18 Thread Heiko Schocher
Hi Miquel, I have here an imx8mp based board for which I just prepare mainlining. pci enumeration works fine with U-Boot 2025.04 u-boot=> pci enum PCIE-0: Link up (Gen1-x1, Bus0) u-boot=> and tftp through the ethernet interface works fine. Using current HEAD * 5b4ae0f3f04 - (origin/master, o

[PATCH v6 01/17] arch: introduce initjmp() and Kconfig symbol HAVE_INITJMP

2025-04-18 Thread Jerome Forissier
Add the HAVE_INIJMP symbol to 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 t

[PATCH] tools: image-host: Fix potential memory leak

2025-04-18 Thread ant . v . moryakov
From: Maks Mishin Signed-off-by: Maks Mishin --- tools/image-host.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/image-host.c b/tools/image-host.c index 4a24dee8..6b17b810 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@ -1024,10 +1024,13 @@ static

[PATCH 3/3] booti: Allow ignoring SYS_BOOTM_LEN with the booti command

2025-04-18 Thread Simon Glass
The booti command does not use the CONFIG_SYS_BOOTM_LEN value and instead sets a maximum decompression-buffer size of 10x the size of the compressed data. Add this as an option in bootm_load_os() so that booting without the command-line works in the same way as the 'booti' command. Link: https:/

Re: [PATCH] tools: Fix memory and descriptor leak

2025-04-18 Thread Quentin Schulz
Hi, On 4/18/25 10:19 AM, ant.v.morya...@gmail.com wrote: From: Maks Mishin Signed-off-by: Maks Mishin Same remark as for the first patch in this series, are you Maks? If no, we need your Signed-off-by too. --- tools/zynqmpbif.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(

Re: [PATCH] configs: am65x_evm_a53: convert to a standard boot flow

2025-04-18 Thread Tom Rini
On Fri, 11 Apr 2025 17:48:39 -0500, Bryan Brattlof wrote: > Rather than maintaining custom hush scripting to boot the SDK, migrate > to a 'standard boot' method which simplifies maintenance and enables > multiple distributions to use this evaluation module. > > Applied to u-boot/master, thanks!

Re: [PATCH v1] arm: mach-k3: am62px: Fix MCU_CLKOUT0 parent clock mux

2025-04-18 Thread Tom Rini
On Tue, 08 Apr 2025 18:12:11 +0200, Parth Pancholi wrote: > CU_CLKOUT0 can be driven by two input clocks: a 25 MHz and a 50 MHz source. > Currently, the 25 MHz option is not selectable due to an incorrect mux > configuration where the 50 MHz clock is duplicated in the parent list. > > This patch

[PATCH v6 14/17] cmd: add spawn and wait commands

2025-04-18 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

Re: [PATCH 0/3] booti: Remove the SYS_BOOTM_LEN limit for booti

2025-04-18 Thread Tom Rini
On Fri, Apr 18, 2025 at 06:50:59AM -0600, Simon Glass wrote: > This series restores the original behaviour of extlinux booting linux > 'Image' files, which is to ignore CONFIG_SYS_BOOTM_LEN and instead uses > a limit of 10x the compressed size. > > It also adds RISC-V support, since it uses a sim

Re: [PATCH v2 1/3] buildman: allow specifying configuration fragments

2025-04-18 Thread Heinrich Schuchardt
Quentin Schulz schrieb am Fr., 18. Apr. 2025, 16:33: > Hi Heinrich, > > On 4/18/25 4:17 PM, Heinrich Schuchardt wrote: > > Quentin Schulz schrieb am Fr., 18. Apr. 2025, > > 15:52: > > > >> Hi Simon, > >> > >> On 4/18/25 1:39 PM, Simon Glass wrote: > >>> Hi Quentin, > >>> > >>> On Fri, 18 Apr 202

[PATCH v3 1/4] mmc: am654_sdhci: Add MMC_HS_52 to timing data

2025-04-18 Thread Judith Mendez
This patch adds MMC_HS_52 to the timing data structure. Previously, this bus mode tap settings were not populated and were instead populated for MMC_HS which is a different bus mode up to 26MHz. Since we intended these settings according to the device data sheet[0] for MMC_HS_52 up to 52MHz, popul

[PATCH v6 07/17] uthread: add uthread_mutex

2025-04-18 Thread Jerome Forissier
Add struct uthread_mutex and uthread_mutex_lock(), uthread_mutex_trylock(), uthread_mutex_unlock() to protect shared data structures from concurrent modifications. Signed-off-by: Jerome Forissier --- Changes in v6: - uthread_mutex_trylock(): return -EBUSY instead of EBUSY include/uthread.h | 6

Re: [PATCH v2] clk: fixed-rate: Use "clock-output-names" to name fixed clocks

2025-04-18 Thread Marek Vasut
On 4/17/25 7:11 PM, Fabio Estevam wrote: From: Fabio Estevam Currently, fixed-rate clocks in U-Boot are named based on their devicetree node names. For example, given the following node: osc_24m: clock-osc-24m { compatible = "fixed-clock"; #clock-cells = <0>; clock-freq

Re: [REGRESSION] Re: [PATCH v2 16/24] clk: imx: Convert clock-osc-* back to osc_*

2025-04-18 Thread Marek Vasut
On 4/17/25 2:34 PM, Adam Ford wrote: On Thu, Apr 17, 2025 at 6:31 AM Marek Vasut wrote: On 4/17/25 12:51 PM, Adam Ford wrote: On Thu, Apr 17, 2025 at 2:24 AM Marek Vasut wrote: On 4/17/25 1:58 AM, Fabio Estevam wrote: On Wed, Apr 16, 2025 at 8:47 PM Marek Vasut wrote: You are not suppo

[PATCH v6 05/17] test: lib: add initjmp() test

2025-04-18 Thread Jerome Forissier
Test the initjmp() function when HAVE_INITJMP is set. Use the test as an example in the API documentation. Signed-off-by: Jerome Forissier Reviewed-by: Ilias Apalodimas --- Changes in v6: - Remove trailing whitespace in doc/api/setjmp.rst doc/api/setjmp.rst | 10 +++ test/lib/Makefile |

Re: [PATCH v2 1/3] buildman: allow specifying configuration fragments

2025-04-18 Thread Quentin Schulz
Hi Heinrich, On 4/18/25 4:17 PM, Heinrich Schuchardt wrote: Quentin Schulz schrieb am Fr., 18. Apr. 2025, 15:52: Hi Simon, On 4/18/25 1:39 PM, Simon Glass wrote: Hi Quentin, On Fri, 18 Apr 2025 at 05:27, Quentin Schulz wrote: Hi Heinrich, On 4/17/25 12:40 AM, Heinrich Schuchardt wrote

Re: [PATCH] scripts: Fix potential null-deref

2025-04-18 Thread Tom Rini
On Fri, Apr 18, 2025 at 03:51:42PM +0200, Quentin Schulz wrote: > Hi Maks(?) > > On 4/18/25 10:19 AM, ant.v.morya...@gmail.com wrote: > > From: Maks Mishin > > > > Signed-off-by: Maks Mishin > > This seems to differ from the sender. Are you Maks? If not, you need to add > your Signed-off-by to

[PATCH v6 00/17] Uthreads

2025-04-18 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 [2]. setjmp() and longjm

Re: [PATCH] Revert "power-domain: Add refcounting"

2025-04-18 Thread Miquel Raynal
Hi Tom, On 17/04/2025 at 13:53:11 +02, Wadim Egorov wrote: > Unfortunately this change breaks boot on K3 platform. > U-Boot will hang after: > > U-Boot SPL 2025.04-01050-ga40fc5afaec0 (Apr 14 2025 - 07:31:32 +) > SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.7--v09.02.07 (Kool Koala)') > > Th

Re: [PATCH v2 1/3] buildman: allow specifying configuration fragments

2025-04-18 Thread Heinrich Schuchardt
Quentin Schulz schrieb am Fr., 18. Apr. 2025, 15:52: > Hi Simon, > > On 4/18/25 1:39 PM, Simon Glass wrote: > > Hi Quentin, > > > > On Fri, 18 Apr 2025 at 05:27, Quentin Schulz > wrote: > >> > >> Hi Heinrich, > >> > >> On 4/17/25 12:40 AM, Heinrich Schuchardt wrote: > >>> Currently we are no abl

[PATCH v6 02/17] arm: add initjmp()

2025-04-18 Thread Jerome Forissier
Implement initjmp() for Arm. 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() to a particular function pointer (ra

[PATCH v6 17/17] configs: qemu: enable UTHREAD and CMD_SPAWN in various defconfigs

2025-04-18 Thread Jerome Forissier
Enable UTHREAD and CMD_SPAWN on supported QEMU platforms for testing purposes. Signed-off-by: Jerome Forissier --- (no changes since v1) configs/imx93_11x11_evk_defconfig| 2 ++ configs/qemu-riscv32_defconfig | 3 +++ configs/qemu-riscv32_smode_defconfig | 3 +++ configs/qemu-riscv64

[PATCH v6 16/17] MAINTAINERS: add UTHREAD

2025-04-18 Thread Jerome Forissier
Add myself as the maintainer for the UTHREAD framework, the spawn/wait commands and the associated tests. Signed-off-by: Jerome Forissier Acked-by: Ilias Apalodimas --- Changes in v6: - Order files in alphabetical order MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/

[PATCH v6 15/17] test: cmd: add test for spawn and wait commands

2025-04-18 Thread Jerome Forissier
Test the spawn and wait commands. Signed-off-by: Jerome Forissier Acked-by: Ilias Apalodimas --- (no changes since v1) test/cmd/Makefile | 1 + test/cmd/spawn.c | 32 2 files changed, 33 insertions(+) create mode 100644 test/cmd/spawn.c diff --git a/test/c

[PATCH v6 13/17] dm: usb: initialize and scan multiple buses simultaneously with uthread

2025-04-18 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 v6 12/17] dm: usb: move bus initialization into new static function usb_init_bus()

2025-04-18 Thread Jerome Forissier
To prepare for the introduction of threads in the USB initialization sequence, move code out of usb_init() into a new helper function: usb_init_bus() and count the number of USB controllers initialized successfully by using the DM device_active() function. Signed-off-by: Jerome Forissier --- (no

[PATCH v6 11/17] test: lib: add uthread_mutex test

2025-04-18 Thread Jerome Forissier
Add a test for uthread mutexes. Signed-off-by: Jerome Forissier --- Changes in v6: - Rename static function lib_uthread_mutex() to uthread_mutex() so that the test now shows as ut_lib_uthread_mutex in the test log rather than ut_lib_lib_uthread_mutex. - uthread_mutex_trylock() now returns -EBUSY

[PATCH v6 09/17] lib: time: hook uthread_schedule() into udelay()

2025-04-18 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. There is no delay in the scheduling loop because tests have shown that such a delay can have a detrimental effect on

[PATCH v6 10/17] test: lib: add uthread test

2025-04-18 Thread Jerome Forissier
Add a thread framework test to the lib tests. Update the API documentation to use the test as an example. Signed-off-by: Jerome Forissier Acked-by: Ilias Apalodimas --- Changes in v6: - Rename static function lib_uthread() to uthread() so that the test now shows as ut_lib_uthread in the test lo

[PATCH v6 08/17] cyclic: invoke uthread_schedule() from schedule()

2025-04-18 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 Reviewed-by: Ilias Apalodimas Reviewed-by: Stefan Roese --- (no chang

[PATCH v6 06/17] uthread: add cooperative multi-tasking interface

2025-04-18 Thread Jerome Forissier
Add a 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 sta

[PATCH v6 03/17] riscv: add initjmp()

2025-04-18 Thread Jerome Forissier
Implement initjmp() for RISC-V, 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() to a particular function pointer

[PATCH v6 04/17] sandbox: add initjmp()

2025-04-18 Thread Jerome Forissier
Add initjm[() to sandbox, 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() to a particular function pointer (rathe

Re: [PATCH] tools: Fix potential memory leak in aisimage.c

2025-04-18 Thread Quentin Schulz
Hi, On 4/18/25 10:19 AM, ant.v.morya...@gmail.com wrote: From: Maks Mishin We don't really like empty commit logs, could you please provide some information on what this fixes and how? e.g. here you could say something along the lines of: line gets realloc'ed in getline() so we need to f

Re: [PATCH 0/3] booti: Remove the SYS_BOOTM_LEN limit for booti

2025-04-18 Thread Tom Rini
On Fri, Apr 18, 2025 at 07:46:59AM -0600, Simon Glass wrote: > Hi Tom, > > On Fri, 18 Apr 2025 at 07:33, Tom Rini wrote: > > > > On Fri, Apr 18, 2025 at 06:50:59AM -0600, Simon Glass wrote: > > > > > This series restores the original behaviour of extlinux booting linux > > > 'Image' files, which

Re: [PATCH 0/3] booti: Remove the SYS_BOOTM_LEN limit for booti

2025-04-18 Thread Simon Glass
Hi Tom, On Fri, 18 Apr 2025 at 07:33, Tom Rini wrote: > > On Fri, Apr 18, 2025 at 06:50:59AM -0600, Simon Glass wrote: > > > This series restores the original behaviour of extlinux booting linux > > 'Image' files, which is to ignore CONFIG_SYS_BOOTM_LEN and instead uses > > a limit of 10x the com

Re: [PATCH v2 3/3] ext4: Add a few overflow checks in the writing code

2025-04-18 Thread Tom Rini
On Fri, Apr 18, 2025 at 04:59:15AM -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. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Use Li

Re: [PATCH 1/1] Dockerfile: use QEMU 9.2.3

2025-04-18 Thread Tom Rini
On Fri, Apr 18, 2025 at 04:57:43AM +0200, Heinrich Schuchardt wrote: > The RISC-V emulation has develop quite a bit since 8.2.0. > Let's update the QEMU version. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH] tools: image-host: Fix potential memory leak

2025-04-18 Thread Quentin Schulz
Hi, On 4/18/25 10:30 AM, ant.v.morya...@gmail.com wrote: From: Maks Mishin Signed-off-by: Maks Mishin --- tools/image-host.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/image-host.c b/tools/image-host.c index 4a24dee8..453cd38f 100644 --- a/tools/image-

Re: [PATCH v2 1/3] buildman: allow specifying configuration fragments

2025-04-18 Thread Quentin Schulz
Hi Simon, On 4/18/25 1:39 PM, Simon Glass wrote: Hi Quentin, On Fri, 18 Apr 2025 at 05:27, Quentin Schulz wrote: Hi Heinrich, On 4/17/25 12:40 AM, Heinrich Schuchardt wrote: Currently we are no able to build with configuration fragments in our CI. With this patch buildman gets a new argume

Re: [PATCH] tools: image-host: Fix potential memory leak

2025-04-18 Thread Quentin Schulz
Hi, On 4/18/25 10:19 AM, ant.v.morya...@gmail.com wrote: From: Maks Mishin Signed-off-by: Maks Mishin --- tools/image-host.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/image-host.c b/tools/image-host.c index 4a24dee8..6b17b810 100644 --- a/tools/image-

Re: [PATCH] scripts: Fix potential null-deref

2025-04-18 Thread Quentin Schulz
Hi Maks(?) On 4/18/25 10:19 AM, ant.v.morya...@gmail.com wrote: From: Maks Mishin Signed-off-by: Maks Mishin This seems to differ from the sender. Are you Maks? If not, you need to add your Signed-off-by to fulfill the DCO requirements. --- scripts/kconfig/menu.c | 6 -- 1 file c

Re: [PATCH v4 3/3] doc/buildman: describe using fragments

2025-04-18 Thread Tom Rini
On Fri, Apr 18, 2025 at 06:31:37AM +0200, Heinrich Schuchardt wrote: > Describe the new --fragments parameter > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

u-boot@lists.denx.de

2025-04-18 Thread Yao Zi
On Sun, Mar 30, 2025 at 06:24:21PM +0200, Heinrich Schuchardt wrote: > Since commit f98cd471f06b ("clk: clk-composite: Resolve parent clock by > name") the StarFive VisionFive 2 board fails to boot. > > Before that patch the SPL debug UART showed warnings like: > > clk_register: failed to get

Re: [PATCH v2 2/3] Bring in linux/overflow.h

2025-04-18 Thread Tom Rini
On Fri, Apr 18, 2025 at 04:59:14AM -0600, Simon Glass wrote: > From: Simon Glass > > Add this file from Linux v6.14 so we can use it to add overflow checks, > rather than using compiler built-ins directly. > > Signed-off-by: Simon Glass > Suggested-by: Tom Rini Reviewed-by: Tom Rini -- To

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

2025-04-18 Thread Tom Rini
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 > > The top of the file is omitted since it defines things used in mbedos >

[PATCH 3/3] board: dragonboard410c: Enable support for KASLR in Linux

2025-04-18 Thread Stephan Gerhold
When booting Linux, there is currently the following warning in the console when using the default dragonboard410c_defconfig: [0.00] KASLR disabled due to lack of seed Fix this by enabling DM_RNG and RNG_MSM in the defconfig to generate the KASLR seed: [0.00] KASLR enabled S

Re: (subset) [PATCH v2 1/3] usb: gadget: atmel: Add SAM9X60 support

2025-04-18 Thread Eugen Hristev
On 4/10/25 11:49, Mattijs Korpershoek wrote: > Hi, > > On Mon, 31 Mar 2025 18:26:07 +0200, Zixun LI wrote: >> Compared to SAM9X5 the only difference is the DPRAM memory from the >> USB High Speed Device Port (UDPHS) hardware block was increased, >> so we can reuse the same endpoint data. >> >>

[PATCH 1/3] boot: Add a function to check if a linux Image is supported

2025-04-18 Thread Simon Glass
Move this logic into a function so we can give it a sensible name. Signed-off-by: Simon Glass --- boot/bootm.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/boot/bootm.c b/boot/bootm.c index 0e63dd4adf3..2ed78295ead 100644 --- a/boot/bootm.c +++ b/boot/

[PATCH 2/3] bootm: Add RISC-V support in booti_is_supported()

2025-04-18 Thread Simon Glass
RISC-V uses a similar linux 'Image' format to ARM64, so add support for it in bootm_load_os() Signed-off-by: Simon Glass --- boot/bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/bootm.c b/boot/bootm.c index 2ed78295ead..7be5ec796fc 100644 --- a/boot/bootm.c +++

[PATCH 0/3] booti: Remove the SYS_BOOTM_LEN limit for booti

2025-04-18 Thread Simon Glass
This series restores the original behaviour of extlinux booting linux 'Image' files, which is to ignore CONFIG_SYS_BOOTM_LEN and instead uses a limit of 10x the compressed size. It also adds RISC-V support, since it uses a similar format to ARM64. Future work should integrate the code in 'booti'

Re: [PATCH v4 1/3] buildman: allow specifying configuration fragments

2025-04-18 Thread Simon Glass
On Thu, 17 Apr 2025 at 22:31, Heinrich Schuchardt wrote: > > Currently we are no able to build with configuration fragments in our CI. > With this patch buildman gets a new argument --fragments for passing a > comma separated list of configuration fragments to add to the board > defconfigs, e.g. >

Re: [PATCH v2 1/3] buildman: allow specifying configuration fragments

2025-04-18 Thread Simon Glass
Hi Quentin, On Fri, 18 Apr 2025 at 05:27, Quentin Schulz wrote: > > Hi Heinrich, > > On 4/17/25 12:40 AM, Heinrich Schuchardt wrote: > > Currently we are no able to build with configuration fragments in our CI. > > With this patch buildman gets a new argument --fragments for passing a > > comma s

Re: [PATCH v4 2/3] buildman: unit test for configuration fragments

2025-04-18 Thread Simon Glass
Hi Heinrich, On Thu, 17 Apr 2025 at 22:31, Heinrich Schuchardt wrote: > > Check that configuration fragments provided to buildman as comma > separated list are passed on to the make command of the builder. common-separated and below too > > In the %_defconfig: target of scripts/kconfig/Makefi

Re: [PATCH v4 3/3] doc/buildman: describe using fragments

2025-04-18 Thread Simon Glass
On Thu, 17 Apr 2025 at 22:31, Heinrich Schuchardt wrote: > > Describe the new --fragments parameter > > Signed-off-by: Heinrich Schuchardt > --- > v4: > Describe the invocation of merge_config.sh > v3: > no change > v2: > new patch > --- > tools/buildman/buildman.rst | 28

Re: [PATCH v2 1/3] buildman: allow specifying configuration fragments

2025-04-18 Thread Quentin Schulz
Hi Heinrich, On 4/17/25 12:40 AM, Heinrich Schuchardt wrote: Currently we are no able to build with configuration fragments in our CI. With this patch buildman gets a new argument --fragments for passing a comma separated list of configuration fragments to add to the board defconfigs, e.g.

[PATCH v2 2/2] binman: etype: u_boot_spl_pubkey_dtb: provide more explicit error for key-name-hint with path

2025-04-18 Thread Quentin Schulz
From: Quentin Schulz key-name-hint property in u-boot-spl-pubkey-dtb binman entry may contain a path instead of a filename due to user mistake. Because we currently assume it is a filename instead of a path, binman will find the full path to the key based on that path, and return the dirname of

Re: [PATCH] clk: fixed-rate: Use "clock-output-names" to name fixed clocks

2025-04-18 Thread Quentin Schulz
Hi Fabio, On 4/17/25 2:31 PM, Fabio Estevam wrote: From: Fabio Estevam Currently, fixed-rate clocks in U-Boot are named based on their devicetree node names. For example, given the following node: osc_24m: clock-osc-24m { compatible = "fixed-clock"; #clock-cells = <0>;

Re: [PATCH v2 2/3] sunxi: add "fake" FEL pin support

2025-04-18 Thread Quentin Schulz
Hi Andre, On 4/17/25 2:05 AM, Andre Przywara wrote: Some boards with Allwinner SoCs feature a "FEL" key, sometimes also labelled "uboot", which triggers the BootROM FEL mode, when pressed upon power-on or reset. This allows to access the SoC's memory via USB OTG, and to upload and execute code.

[PATCH v2 1/2] binman: etype: fit: raise ValueError if key-name-hint is a path

2025-04-18 Thread Quentin Schulz
From: Quentin Schulz mkimage doesn't fail if it cannot find the public key but it prints to stderr. Considering that btool.run() discards stderr, it means binman happily returns an unsigned FIT and doesn't tell you something went wrong. Binman will actually find the file if there's a path in the

[PATCH v2 0/2] binman: properly error out if path provided to key-name-hint in signature nodes

2025-04-18 Thread Quentin Schulz
I misunderstood the documentation and put the signing key in a keys/ directory while setting key-name-hint property in the signature node and u-boot-spl-pubkey-dtb to a path. mkimage doesn't fail if it cannot find the public key when signing a FIT but returns something on stderr to notify the user

Re: [PATCH] tools: Fix handle leak in mmap_fdt function

2025-04-18 Thread Yao Zi
On Fri, Apr 18, 2025 at 11:15:23AM +0300, ant.v.morya...@gmail.com wrote: > From: Maks Mishin > > The handle 'ptr' is created at fit_common.c:91 by calling > function 'mmap' and lost at fit_common.c:127: > Added call of free for `ptr` if ptr != MAP_FAILED. First, why do you free() a mmapped me

[PATCH v2 3/3] ext4: Add a few overflow checks in the writing code

2025-04-18 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. Signed-off-by: Simon Glass --- Changes in v2: - Use Linux macros instead of gcc built-ins fs/ext4/ext4_write.c | 25 +-

[PATCH v2 2/3] Bring in linux/overflow.h

2025-04-18 Thread Simon Glass
From: Simon Glass Add this file from Linux v6.14 so we can use it to add overflow checks, rather than using compiler built-ins directly. Signed-off-by: Simon Glass Suggested-by: Tom Rini --- Changes in v2: - Add new patch to bring in linux/overflow.h include/linux/overflow.h | 443 +

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

2025-04-18 Thread Simon Glass
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 The top of the file is omitted since it defines things used in mbedos and we get an error on SIZE_MAX. Signed-off-by: Simon Glass --- Error is:

  1   2   >