Re: [PATCH v5 0/9] Restore USB and add UMS support for STiH407-B2260

2025-02-10 Thread Mattijs Korpershoek
Hi Patrice, Marek, On lun., févr. 10, 2025 at 14:42, Marek Vasut wrote: > On 2/10/25 11:28 AM, Patrice CHOTARD wrote: >> >> Hi Marek > > Hi, > >> Any chance to get this series merged in next U-Boot tag 2025.04-rc2 ? > Gadget stuff is on Mattijs desk, please ping me in a few days if he > doesn'

Re: [PATCH v2] usb: gadget: f_mass_storage: Add schedule() in sleep_thread()

2025-02-10 Thread Mattijs Korpershoek
On lun., févr. 10, 2025 at 14:42, Marek Vasut wrote: > On 2/10/25 11:28 AM, Patrice CHOTARD wrote: >> Hi Marek > > Hi, > >> Any chance to get this patch merged in next U-Boot tag 2025.04-rc2 ? > Gadget stuff is on Mattijs desk, please ping me in a few days if he > doesn't pick it up, I'll do so

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

2025-02-10 Thread Heinrich Schuchardt
On 10.02.25 23:01, Tom Rini wrote: Hey all, It's release day and so here's v2025.04-rc2. As this is the -rc2 release, I've now also opened up the -next branch and will be stricter about what I apply myself, and what I see coming in for pull requests as well moving forward. Continuing on with wh

Re: [PATCH 0/3] arm: meson: extend sm calls to support Amlogic chip_id v1, v2

2025-02-10 Thread Viacheslav
Hi! 10/02/2025 20.50, Evgeny Bachinin wrote: The Amlogic Meson SoC secure monitor (TF-A) handles a call (0x8244) to retrieve a chip_id from eFuse OTP data [1]. Previously, this sm call (0x8244) was used to retrieve just unique SoC number [2] (a.k.a. SoC "serial" [3]), identifying partic

Re: [PATCH v1] arch: meson: sm: add retrieve SoC chipid

2025-02-10 Thread Viacheslav
Superseed by https://lore.kernel.org/u-boot/20250210-meson_chip_id_all_vers-v1-0-b98f8b688...@salutedevices.com/ 17/01/2025 13.41, Viacheslav Bocharov wrote: From: Nikita Maslo The Amlogic Meson SoC Secure Monitor implements a call to retrieve an unique SoC ID starting from the GX Family and

[PATCH v2 2/2] arch: arm: dts: k3-am642-phycore-som-binman: Add custMpk to overlays

2025-02-10 Thread Daniel Schultz
There are some device-tree overlays with missing entries for the keyfile. Add them to sign all images in the U-Boot FIT image. Signed-off-by: Daniel Schultz --- Changes: v2: Removed keyfile definitions which are already defined in k3-binman.dtsi arch/arm/dts/k3-am642-phycore-som-binman.dtsi |

[PATCH v2 1/2] arch: arm: dts: k3-am625-phycore-som-binman: Add custMpk to overlays

2025-02-10 Thread Daniel Schultz
There are some device-tree overlays with missing entries for the keyfile. Add them to sign all images in the U-Boot FIT image. Signed-off-by: Daniel Schultz --- Changes: v2: Removed keyfile definitions which are already defined in k3-binman.dtsi arch/arm/dts/k3-am625-phycore-som-binman.dtsi |

[PATCH 3/6] rockchip: Add DFU to boot from USB for Radxa ROCK 3B

2025-02-10 Thread FUKAUMI Naoki
Boot the Radxa ROCK 3B from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ rkflashtool l < mkimage-in-simple-bin.mkimage-rockchip-tpl $ rkflashtool L < mkimage-in-simple-bin.mkimage-u-boot-spl 1b. Download the TPL and SPL usin

[PATCH 6/6] rockchip: Add DFU to boot from USB for Radxa ROCK Pi S

2025-02-10 Thread FUKAUMI Naoki
Boot the Radxa ROCK Pi S from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ openssl rc4 -provider legacy -K 7c4e0304550509072d2c7b38170d1711 \ < mkimage-in-simple-bin.mkimage-rockchip-tpl | rkflashtool l $ openssl rc4

[PATCH 5/6] rockchip: Add DFU to boot from USB for Radxa ROCK Pi E v1/v3

2025-02-10 Thread FUKAUMI Naoki
Boot the Radxa ROCK Pi E v1/v3 from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ openssl rc4 -provider legacy -K 7c4e0304550509072d2c7b38170d1711 \ < mkimage-in-simple-bin.mkimage-u-boot-tpl | rkflashtool l $ openssl

[PATCH 4/6] rockchip: Add DFU to boot from USB for Radxa ZERO 3E/3W

2025-02-10 Thread FUKAUMI Naoki
Boot the Radxa ZERO 3E/3W from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ rkflashtool l < mkimage-in-simple-bin.mkimage-rockchip-tpl $ rkflashtool L < mkimage-in-simple-bin.mkimage-u-boot-spl 1b. Download the TPL and SPL u

[PATCH 1/6] rockchip: Add DFU to boot from USB for Radxa ROCK 5B

2025-02-10 Thread FUKAUMI Naoki
Boot the Radxa ROCK 5B from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ rkflashtool l < mkimage-in-simple-bin.mkimage-rockchip-tpl $ rkflashtool L < mkimage-in-simple-bin.mkimage-u-boot-spl 1b. Download the TPL and SPL usin

[PATCH 2/6] rockchip: Add DFU to boot from USB for Radxa ROCK 3A

2025-02-10 Thread FUKAUMI Naoki
Boot the Radxa ROCK 3A from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ rkflashtool l < mkimage-in-simple-bin.mkimage-rockchip-tpl $ rkflashtool L < mkimage-in-simple-bin.mkimage-u-boot-spl 1b. Download the TPL and SPL usin

[PATCH 0/6] rockchip: Add DFU to boot from USB for Radxa boards

2025-02-10 Thread FUKAUMI Naoki
This patch series adds the ability to boot from the USB OTG port (dr_mode = "otg") to the Radxa boards. Use rkflashtool[1] or rkusbboot[2] to download TPL and SPL from MASKROM mode, and dfu-util to download U-Boot from DFU mode. This patch series depends on patches[3] that add DFU to SPL. [1] ht

Re: Fwd: New Defects reported by Coverity Scan for Das U-Boot

2025-02-10 Thread Heiko Schocher
Hello Tom, On 10.02.25 23:26, Tom Rini wrote: Here's the latest report. -- Forwarded message - From: Date: Mon, Feb 10, 2025 at 4:12 PM Subject: New Defects reported by Coverity Scan for Das U-Boot To: Hi, Please find the latest report on new defect(s) introduced to Das U-B

Re: [PATCH 3/3] rockchip: Fix binman error

2025-02-10 Thread FUKAUMI Naoki
Hi Quentin, On 2/5/25 21:59, Quentin Schulz wrote: Hi Naoki, On 1/29/25 2:25 PM, FUKAUMI Naoki wrote: After adding the below configs, binman produces an error.   CONFIG_SPL_DFU   CONFIG_SPL_ENV_SUPPORT   CONFIG_SPL_USB_DWC3_GENERIC   CONFIG_SPL_USB_GADGET binman: Section '/binman/simple-bin-

[PATCH 4/7] rockchip: Add DFU to SPL for RK3568

2025-02-10 Thread FUKAUMI Naoki
Boot the RK3568 from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ rkflashtool l < mkimage-in-simple-bin.mkimage-rockchip-tpl $ rkflashtool L < mkimage-in-simple-bin.mkimage-u-boot-spl 1b. Download the TPL and SPL using rkusb

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

2025-02-10 Thread FUKAUMI Naoki
This patch series adds the ability to boot from the USB OTG port to the RK3588, RK3568, RK3566, RK3399, RK3328, and RK3308. Use rkflashtool[1] or rkusbboot[2] to download TPL and SPL from MASKROM mode, and dfu-util to download U-Boot from DFU mode. This patch series depends on patches[3] that fix

[PATCH 6/7] rockchip: Add DFU to SPL for RK3328

2025-02-10 Thread FUKAUMI Naoki
Boot the RK3328 from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ openssl rc4 -provider legacy -K 7c4e0304550509072d2c7b38170d1711 \ < mkimage-in-simple-bin.mkimage-rockchip-tpl | rkflashtool l $ openssl rc4 -provider

[PATCH 5/7] rockchip: Add DFU to SPL for RK3399

2025-02-10 Thread FUKAUMI Naoki
Boot the RK3399 from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ openssl rc4 -provider legacy -K 7c4e0304550509072d2c7b38170d1711 \ < mkimage-in-simple-bin.mkimage-rockchip-tpl | rkflashtool l $ openssl rc4 -provider

[PATCH 7/7] rockchip: Add DFU to SPL for RK3308

2025-02-10 Thread FUKAUMI Naoki
Boot the RK3308 from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ openssl rc4 -provider legacy -K 7c4e0304550509072d2c7b38170d1711 \ < mkimage-in-simple-bin.mkimage-rockchip-tpl | rkflashtool l $ openssl rc4 -provider

[PATCH 2/7] rockchip: Add DFU to SPL

2025-02-10 Thread FUKAUMI Naoki
Allows SPL to use DFU when SPL is booted from USB. Signed-off-by: FUKAUMI Naoki --- arch/arm/mach-rockchip/spl-boot-order.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-rockchip/spl-boot-order.c b/arch/arm/mach-rockchip/spl-boot-order.c index 3dce9b30898..2943c8bb494 10

[PATCH 1/7] rockchip: Change memory location of FIT and U-Boot proper

2025-02-10 Thread FUKAUMI Naoki
Place U-Boot at 8MiB in order to place FIT at 2MiB. Signed-off-by: Jonas Karlman Signed-off-by: FUKAUMI Naoki --- arch/arm/mach-rockchip/Kconfig| 6 +++--- arch/arm/mach-rockchip/rk3308/Kconfig | 3 --- arch/arm/mach-rockchip/rk3568/Kconfig | 3 --- arch/arm/mach-rockchip/rk3588/Kconfig

[PATCH 3/7] rockchip: Add DFU to SPL for RK3588

2025-02-10 Thread FUKAUMI Naoki
Boot the RK3588 from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ rkflashtool l < mkimage-in-simple-bin.mkimage-rockchip-tpl $ rkflashtool L < mkimage-in-simple-bin.mkimage-u-boot-spl 1b. Download the TPL and SPL using rkusb

Re: [PATCH 1/2] arch: arm: dts: k3-am625-phycore-som-binman: Add custMpk to all images

2025-02-10 Thread Wadim Egorov
Hi Daniel, Am 10.02.25 um 14:36 schrieb Daniel Schultz: There are some device-tree overlays and firmwares with missing entries for the keyfile. Add them to sign all images in the U-Boot FIT image. Signed-off-by: Daniel Schultz --- arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 49 ++

[PATCH v2 2/2] rockchip: Fix SPL link error for Radxa ROCK Pi 4

2025-02-10 Thread FUKAUMI Naoki
If CONFIG_EFI_CAPSULE_FIRMWARE_RAW, CONFIG_SPL_ENV_SUPPORT, and CONFIG_SPL_DFU are enabled, linking u-boot-spl will fail. LD spl/u-boot-spl ld.bfd: drivers/dfu/dfu.o: in function `dfu_init_env_entities': /home/radxa/u-boot/drivers/dfu/dfu.c:173:(.text.dfu_init_env_entities+0x24): undefined

[PATCH v2 1/2] rockchip: Fix TPL link error

2025-02-10 Thread FUKAUMI Naoki
Rockchip RK3399 targets build TPL. If CONFIG_SPL_USB_DWC3_GENERIC and CONFIG_SPL_USB_GADGET are enabled, linking u-boot-tpl will fail. LD tpl/u-boot-tpl ld.bfd: drivers/usb/dwc3/dwc3-generic.o: in function `dwc3_glue_bind_common': /home/radxa/u-boot/drivers/usb/dwc3/dwc3-generic.c:527:(.tex

Re: Security vulnerabilities report to Das-U-Boot

2025-02-10 Thread Gao Xiang
Hi Tom, On 2025/2/11 00:41, Tom Rini wrote: On Fri, Feb 07, 2025 at 09:53:01AM -0800, Jonathan Bar Or wrote: Thank you. So, I'm attaching my findings in a md file - see attachment. All of those could be avoided by using safe math, such as __builtin_mul_overflow and __builtin_add_overflow, whi

Re: [PATCH 4/4] board: Phytec: phycore_am62x: Increase size for Image in SPI

2025-02-10 Thread Wadim Egorov
Am 10.02.25 um 22:25 schrieb Daniel Schultz: Increase the maximum Image size from 23 MB to 26 MB by moving the initramfs start address up. This gives us a bigger ranger to provide kernel images which are not stripped down too much. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov ---

Re: [PATCH 3/4] board: Phytec: phycore_am64x: Increase size for Image in SPI

2025-02-10 Thread Wadim Egorov
Am 10.02.25 um 22:25 schrieb Daniel Schultz: Increase the maximum Image size from 23 MB to 26 MB by moving the initramfs start address up. This gives us a bigger ranger to provide kernel images which are not stripped down too much. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov ---

Re: [PATCH 2/4] configs: phycore_am62x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH

2025-02-10 Thread Wadim Egorov
Am 10.02.25 um 22:25 schrieb Daniel Schultz: Enable ENV_IS_IN_SPI_FLASH to read the environment from the SPI flash when booting from it. The oftree, kernel and ramdisk sizes are located in this environment and therefore required to boot an initramfs. Signed-off-by: Daniel Schultz Reviewed-by:

Re: [PATCH 1/4] configs: phycore_am64x_a53_defconfig: Enable ENV_IS_IN_SPI_FLASH

2025-02-10 Thread Wadim Egorov
Am 10.02.25 um 22:25 schrieb Daniel Schultz: Enable ENV_IS_IN_SPI_FLASH to read the environment from the SPI flash when booting from it. The oftree, kernel and ramdisk sizes are located in this environment and therefore required to boot an initramfs. Signed-off-by: Daniel Schultz Reviewed-by:

Re: [PATCH v2 2/3] board: phytec: phycore_am64x: Add support for 1 GB RAM variant and ECC

2025-02-10 Thread Wadim Egorov
Hi Dhruva, Am 05.02.25 um 12:55 schrieb Dhruva Gole: On Feb 05, 2025 at 05:30:12 +0100, Wadim Egorov wrote: Detect RAM size via EEPROM and adjust DDR size and banks accordingly. Include necessary fixups to handle ECC-enabled configurations. Signed-off-by: Wadim Egorov Tested-by: Daniel Schult

[PATCH v1] net: designware: Add npcm8xx sgmii pcs support

2025-02-10 Thread Jim Liu
The PCS exists only in GMAC1 and relates to SGMII interface and is used to control the SGMII PHY. Signed-off-by: Jim Liu --- arch/arm/include/asm/arch-npcm8xx/gmac.h | 18 drivers/net/designware.c | 27 2 files changed, 45 insertions(+)

Re: [PATCH] cmd: Fix potential memory leaks

2025-02-10 Thread Tom Rini
On Wed, Feb 05, 2025 at 07:00:25PM +0300, Maks Mishin wrote: > Dynamic memories, referenced by 'ptr' and 'res' is allocated > by calling function 'hexport_r' and lost when the function success returns. > > Signed-off-by: Maks Mishin This leads to run time failures such as: https://source.denx.

Re: [PATCH] common: Fix memory leak and incorrect comparison

2025-02-10 Thread Tom Rini
On Thu, Feb 06, 2025 at 04:48:09PM +0300, Maks Mishin wrote: > Changing the order of actions: the input argument is checked before > memory is allocated. > > The input argument `n` is of type `size_t` and cannot take > negative values, so the comparison has been fixed. > > Signed-off-by: Maks

Re: [PATCH v5 00/10] Introduce K3 remoteproc driver for M4 subsystem

2025-02-10 Thread Tom Rini
On Mon, Feb 10, 2025 at 04:43:31PM -0600, Judith Mendez wrote: > Hi Tom, > > On 2/10/25 2:29 PM, Judith Mendez wrote: > > Some K3 devices like am62x and am64x have a M4 processor in the MCU > > voltage domain. This patch series introduces remoteproc M4 driver which > > will be used to load firmwar

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

2025-02-10 Thread Tom Rini
On Mon, Feb 03, 2025 at 07:10:12PM +0300, Maks Mishin wrote: > For a variable `info.name` memory is allocated when calling the > `fit_image_setup_sig` function and is lost when the error code is returned. > > The situation is similar for the `region_prop` variable, > the memory for which is all

Re: [PATCH v5 00/10] Introduce K3 remoteproc driver for M4 subsystem

2025-02-10 Thread Judith Mendez
Hi Tom, On 2/10/25 2:29 PM, Judith Mendez wrote: Some K3 devices like am62x and am64x have a M4 processor in the MCU voltage domain. This patch series introduces remoteproc M4 driver which will be used to load firmware into and start the M4 remote core. This series also adds support for R5F cor

Re: (subset) [PATCH 0/8] Reverts and fixes for board failures

2025-02-10 Thread Tom Rini
On Mon, Feb 10, 2025 at 09:03:58PM +, Ilias Apalodimas wrote: > On Mon, 10 Feb 2025 at 20:38, Tom Rini wrote: > > > > On Sun, 01 Dec 2024 07:42:28 -0700, Simon Glass wrote: > > > > > This series collects together a set of reverts and fixes to get most of > > > the boards in the sjg lab running

Re: (subset) [PATCH 0/8] Reverts and fixes for board failures

2025-02-10 Thread Tom Rini
On Sun, 01 Dec 2024 07:42:28 -0700, Simon Glass wrote: > This series collects together a set of reverts and fixes to get most of > the boards in the sjg lab running again. > > Unfortunately three of them have developed a failure which requires more > diagnosis, as it may just be a hardware failur

Re: (subset) [PATCH 0/8] Reverts and fixes for board failures

2025-02-10 Thread Ilias Apalodimas
On Mon, 10 Feb 2025 at 20:38, Tom Rini wrote: > > On Sun, 01 Dec 2024 07:42:28 -0700, Simon Glass wrote: > > > This series collects together a set of reverts and fixes to get most of > > the boards in the sjg lab running again. > > > > Unfortunately three of them have developed a failure which req

Fwd: New Defects reported by Coverity Scan for Das U-Boot

2025-02-10 Thread Tom Rini
Here's the latest report. -- Forwarded message - From: Date: Mon, Feb 10, 2025 at 4:12 PM Subject: New Defects reported by Coverity Scan for Das U-Boot To: Hi, Please find the latest report on new defect(s) introduced to Das U-Boot found with Coverity Scan. 3 new defect(s) in

Re: [PATCH v2 14/35] rockchip: dts: Use the new binman template for the SPI image too

2025-02-10 Thread Jonas Karlman
Hi Simon, On 2025-02-09 22:14, Simon Glass wrote: > 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. > > Drop the filename to prevent another image bein

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

2025-02-10 Thread Tom Rini
Hey all, It's release day and so here's v2025.04-rc2. As this is the -rc2 release, I've now also opened up the -next branch and will be stricter about what I apply myself, and what I see coming in for pull requests as well moving forward. Continuing on with what I started after the -rc1 release,

Re: [PATCH v2 13/35] rockchip: dts: Un-indent the FIT template

2025-02-10 Thread Jonas Karlman
On 2025-02-09 22:14, Simon Glass wrote: > Fix the indentation on the template. This is done in a separate patch > so that it is easier to review. > > Signed-off-by: Simon Glass Reviewed-by: Jonas Karlman Regards, Jonas > --- > > (no changes since v1) > > arch/arm/dts/rockchip-u-boot.dtsi |

Re: [PATCH v2 12/35] rockchip: dts: Create a template for the FIT

2025-02-10 Thread Jonas Karlman
Hi Simon, On 2025-02-09 22:14, Simon Glass wrote: > Move the FIT description into a template so that it can (later) be used > in multiple places in the image. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > arch/arm/dts/rockchip-u-boot.dtsi | 57 ++--

Re: [PATCH v2 11/35] rockchip: dts: Add an fdtmap

2025-02-10 Thread Jonas Karlman
Hi Simon, On 2025-02-09 22:14, Simon Glass wrote: > Add an fdtmap so it is possible to look at the image with 'binman ls'. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > arch/arm/dts/rockchip-u-boot.dtsi | 4 > 1 file changed, 4 insertions(+) > > diff --git a/arch/ar

Re: [PATCH] Azure: Add missing "set -e" to docs job

2025-02-10 Thread Tom Rini
On Fri, 07 Feb 2025 13:12:50 -0600, Tom Rini wrote: > Without setting the shell flag to exit immediately when a command exists > with a non-zero status we can have the situation where the htmldocs > target fails with an error but the job will succeed due to infodocs > passing and being the last bu

Re: [PATCH] env: fat: Avoid writing to read-only location

2025-02-10 Thread Tom Rini
On Thu, 30 Jan 2025 13:36:46 +, Andre Przywara wrote: > The env_fat_get_dev_part() function mostly returns a fixed string, set > via some Kconfig variable. However when the first character is a colon, > that means that the boot device number is determined at runtime, and > patched in. This req

Re: [PATCH 0/2] Enable MCU ESM reset

2025-02-10 Thread Tom Rini
On Wed, 29 Jan 2025 17:44:01 -0600, Judith Mendez wrote: > This patch series enables ESM reset configuration in board_init_f > for am62x and am62px devices. > > This is necessary in order for error events to reset the system. > > This patches are tested using watchdog to reset the system via ESM

Re: [PATCH] include: env: phytec: Add optargs to K3 files

2025-02-10 Thread Tom Rini
On Wed, 29 Jan 2025 02:34:44 -0800, Daniel Schultz wrote: > Add the optargs variable so that we can set optional arguments while > booting. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] rtc: emul_rtc: Make emul_rtc_probe() static

2025-02-10 Thread Tom Rini
On Mon, 03 Feb 2025 10:18:57 +0100, Michal Simek wrote: > emul_rtc_probe() is not called from anywhere else that's why make it > static. Issue is reported by build with W=1. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v2 0/2] FIX: Re-enable MUX_MMIO on J721E/J7200

2025-02-10 Thread Tom Rini
On Sat, 01 Feb 2025 14:47:58 +0530, Siddharth Vadapalli wrote: > This series re-enables MUX_MMIO at U-Boot proper on J721E and J7200 > SoCs. The commits which introduced support for Hyperflash boot on both > of these SoCs disabled MUX_MMIO functionality at U-Boot proper, thereby > introducing a re

Re: [PATCH] mediatek: mt7981: enable ethernet switch auto-detction

2025-02-10 Thread Tom Rini
On Wed, 05 Feb 2025 09:24:37 +0800, Weijie Gao wrote: > This patch enables switch auto-detction for mt7981 as some new mt7981 > boards will use AN8855 ethernet switch. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v1] net: designware: support phy io micro voltage setting.

2025-02-10 Thread Tom Rini
On Wed, 05 Feb 2025 10:01:06 +0800, Michael Chang wrote: > Support phy io micro voltage setting for NPCM8XX rgmii > interface. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v2 1/3] arch: arm: dts: phyboard-electra-uboot.dtsi: Add bootph props to i2c

2025-02-10 Thread Tom Rini
On Wed, 05 Feb 2025 05:30:11 +0100, Wadim Egorov wrote: > Add bootph-all properties to I2C0 nodes to ensure the bus and EEPROM > are accessible across all stages. This enables reading the SoM > configuration at any point during the boot process. > > Applied to u-boot/master, thanks! -- Tom

[PATCH v5 04/10] board: ti: am62x: Add remoteproc specific env support

2025-02-10 Thread Judith Mendez
From: Hari Nagalla Add remoteproc specific env support for am62x device. If the remoteproc CMD is defined, include the K3 remoteproc environment. Also define rproc_fw_binaries which holds a list of remoteproc FW binaries for u-boot loading of remote cores. Signed-off-by: Hari Nagalla Signed-off

Re: [PATCH, RESEND] mediatek: mt7986: rename pinctrl to pio in mt7986-u-boot.dtsi

2025-02-10 Thread Tom Rini
On Thu, 06 Feb 2025 08:41:28 +0800, Weijie Gao wrote: > The change from pinctrl to pio was missing in mt7986-u-boot.dtsi and will > cause build failure. Now fix it. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] test/py: usb: Fix format string for fstype command

2025-02-10 Thread Tom Rini
On Wed, 05 Feb 2025 13:04:26 +, Andrew Goodbody wrote: > USB tests on ext partitions can fail with the following output > > test/py/tests/test_usb.py:245: in test_usb_part > 'fstype usb %d:%d' % i, part_id > E TypeError: not enough arguments for format string > > So add brackets around

Re: [PATCH] tools: mkenvimage: List -V parameter in help text

2025-02-10 Thread Tom Rini
On Wed, 05 Feb 2025 15:34:28 +0100, Marek Vasut wrote: > The -V version parameter is missing in the optional list of parameters > in help text. Add it. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 1/2] pinctrl: mediatek: mt7988: remove _base from reg-names

2025-02-10 Thread Tom Rini
On Thu, 06 Feb 2025 10:18:57 +0800, Weijie Gao wrote: > The reg-names in mt7988.dtsi have no _base suffix. Remove the suffix > will also make it match upstream linux format. > > Applied to u-boot/master, thanks! -- Tom

[PATCH v5 08/10] cmd: Enable CMD remoteproc by default for K3 ARCH

2025-02-10 Thread Judith Mendez
Enable CMD_REMOTEPROC by default if building for K3 ARCH so that it does not have to be defined in each board defconfig file. Signed-off-by: Judith Mendez --- Changes since v4: - Add patch --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 4c4ad9d

[PATCH v5 10/10] configs: am6*/j7*: Remove remoteproc configs

2025-02-10 Thread Judith Mendez
Now that remoteproc configs are enabled by default in Kconfig files, remove these configs which are no longer needed to be defined here in configs/. Signed-off-by: Judith Mendez --- Changes since v4: - Add patch --- configs/am62ax_evm_a53_defconfig | 4 configs/am62ax_evm_r5_defco

[PATCH v5 09/10] arm: mach-k3: Enable remoteproc drivers by default for K3 ARCH

2025-02-10 Thread Judith Mendez
Add remoteproc config options to enable remoteproc drivers by default as per what remotproc subsystem is supported on each SoC. Signed-off-by: Judith Mendez --- Changes since v4: - Add patch --- arch/arm/mach-k3/Kconfig | 24 1 file changed, 24 insertions(+) diff --git

[PATCH v5 07/10] spl: Enable SPL remoteproc by default for K3 ARCH

2025-02-10 Thread Judith Mendez
If building for v7R and K3 architecture, enable SPL remoteproc so that it does not have to be defined in each board defconfig file. Signed-off-by: Judith Mendez --- Changes since v4: - Add patch --- common/spl/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/common/spl/Kconfig b/commo

[PATCH v5 03/10] board: ti: am64x: Add remoteproc specific env support

2025-02-10 Thread Judith Mendez
From: Hari Nagalla Add remoteproc specific env support for am64x device. If the remoteproc CMD is defined, include the K3 remoteproc environment. Also define rproc_fw_binaries which holds a list of remoteproc FW binaries for u-boot loading of remote cores. Signed-off-by: Hari Nagalla Signed-off

[PATCH v5 02/10] remoteproc: k3-r5: Add support for R5F cores on AM64x SoCs

2025-02-10 Thread Judith Mendez
From: Hari Nagalla AM64x SoCs have two R5F clusters in the main power domain. Extend support for R5F remote proc driver on AM64x with compatible strings. Signed-off-by: Hari Nagalla Signed-off-by: Judith Mendez Reviewed-by: Daniel Schultz --- Changes since v4: - No change --- drivers/remotep

[PATCH v5 06/10] remoteproc: Enable ARM64 remoteproc driver by default for K3 ARCH

2025-02-10 Thread Judith Mendez
If SYS_K3_SPL_ATF is enabled, for K3 ARCH enable the remoteproc ARM64 driver by default so that it does not have to be defined in each board defconfig file. Signed-off-by: Judith Mendez --- Changes since v4: - Add patch --- drivers/remoteproc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -

[PATCH v5 05/10] board: ti: am62px: Add remoteproc specific env support

2025-02-10 Thread Judith Mendez
From: Hari Nagalla Add remoteproc specific env support for am62px device. If the remoteproc CMD is defined, include the K3 remoteproc environment. Also define rproc_fw_binaries which holds a list of remoteproc FW binaries for u-boot loading of remote cores. Signed-off-by: Hari Nagalla Signed-of

[PATCH v5 01/10] remoteproc: k3-m4: Introduce K3 remote proc driver for M4 subsystem

2025-02-10 Thread Judith Mendez
From: Hari Nagalla Some K3 devices like AM64, AM62 devices have a M4 processor in MCU voltage domain. Add a remote proc driver to support this subsystem to be able to load and boot the M4 core. Signed-off-by: Hari Nagalla [Ryan: Fix implicitly include warning] Signed-off-by: Ryan Eatmon [Judi

[PATCH v5 00/10] Introduce K3 remoteproc driver for M4 subsystem

2025-02-10 Thread Judith Mendez
Some K3 devices like am62x and am64x have a M4 processor in the MCU voltage domain. This patch series introduces remoteproc M4 driver which will be used to load firmware into and start the M4 remote core. This series also adds support for R5F cores on am64x SoCs in patch 2 and sets up environment

[PATCH v1] configs: starfive: use LwIP network stack and enable wget command

2025-02-10 Thread E Shattow
Use LwIP network stack and enable wget HTTP command. The tftpput command is not currently supported by LwIP network stack so remove it. Signed-off-by: E Shattow --- configs/starfive_visionfive2_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/starfive_visio

Re: [PATCH 06/12] rockchip: rk3399-gru: Include binman generated FIT in u-boot.rom image

2025-02-10 Thread Simon Glass
Hi Tom, On Mon, 10 Feb 2025 at 07:35, Tom Rini wrote: > > On Sun, Feb 09, 2025 at 01:14:29PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Sun, 9 Feb 2025 at 09:49, Tom Rini wrote: > > > > > > On Sun, Feb 09, 2025 at 07:27:37AM -0700, Simon Glass wrote: > > > > Hi Jonas, > > > > > > > > On Fr

Re: [PATCH 5/6] arch/arm/dts/rk3399-roc-pc-u-boot.dtsi: Prepare for SPL DFU

2025-02-10 Thread Quentin Schulz
Hi Arnaud, On 2/10/25 4:30 PM, Arnaud Patard wrote: [You don't often get email from arnaud.pat...@collabora.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] For SPL DFU booting, define u-boot,spl-boot-order and configure usb nodes for enabling the gadget in S

Re: [PATCH 4/6] include/configs/rk3399_common.h: define CFG_EXTRA_ENV_SETTINGS in XPL build

2025-02-10 Thread Quentin Schulz
Hi Arnaud, On 2/10/25 4:30 PM, Arnaud Patard wrote: [You don't often get email from arnaud.pat...@collabora.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] To use SPL DFU, some environment variables are needed so define CFG_EXTRA_ENV_SETTINGS for XPL builds.

[PATCH 1/3] arm: meson: unify type being used for socinfo

2025-02-10 Thread Evgeny Bachinin
socinfo_ API uses u32 type, hence let's use it everywhere for consistency. Signed-off-by: Evgeny Bachinin --- arch/arm/mach-meson/board-info.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-meson/board-info.c b/arch/arm/mach-meson/board-info.c index b

[PATCH 3/3] arch: arm: meson: support Amlogic chip_id v1 and v2

2025-02-10 Thread Evgeny Bachinin
Patch introduces: * chip_id API - useful for various things, but used now for device_id (did) generation as mentioned in [1] on our private board code. Our device_id is calculated by means of permutations of chip_id value. * new SoCs (a1, s4, etc) are usually coming with the support of chip_i

[PATCH 0/3] arm: meson: extend sm calls to support Amlogic chip_id v1, v2

2025-02-10 Thread Evgeny Bachinin
The Amlogic Meson SoC secure monitor (TF-A) handles a call (0x8244) to retrieve a chip_id from eFuse OTP data [1]. Previously, this sm call (0x8244) was used to retrieve just unique SoC number [2] (a.k.a. SoC "serial" [3]), identifying particular die. This SoC serial, stored in the eFuse,

[PATCH 2/3] arm: meson: sm: get rid of SM_CHIP_ID_SIZE

2025-02-10 Thread Evgeny Bachinin
SM_CHIP_ID_SIZE is used nowhere. Moreover, it specifies wrong chip_id size: Amlogic chip_id v1 and v2 is always 16 bytes long. Signed-off-by: Evgeny Bachinin --- arch/arm/mach-meson/sm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-meson/sm.c b/arch/arm/mach-meson/sm.c index

Re: [PATCH v2 01/24] net: ravb: Drop empty init callback

2025-02-10 Thread Peter Robinson
Marek, In the future if you're doing a large series like this please do a cover letter outlining what the series is trying to achieve. Peter On Sun, 9 Feb 2025 at 12:04, Marek Vasut wrote: > The init function does nothing, the bb_miiphy_init() already checks > whether the .init callback is ass

Re: [PATCH 0/6] roc-pc-rk3399: Add SPL_DFU support

2025-02-10 Thread Peter Robinson
On Mon, 10 Feb 2025 at 16:48, Arnaud Patard wrote: > This patch series aims at allowing to boot u-boot proper over DFU on > roc-pc-rk3399. > While the changes are pretty generic, I wanted to enable the device I've > tested. I may try later to test that on my pinebook pro. > > What I tried was to

Re: [PATCH 05/29] rockchip: Allow RAM init to happen in SPL on rk3399

2025-02-10 Thread Tom Rini
On Sun, Feb 09, 2025 at 07:26:38AM -0700, Simon Glass wrote: > Hi Jonas, > > On Wed, 5 Feb 2025 at 15:18, Jonas Karlman wrote: > > > > Hi Simon, > > > > On 2025-02-05 02:54, Simon Glass wrote: > > > TPL runs before VPL. The earliest updatable phase with VBE is SPL. We > > > want to be able to upd

Re: Git commit failed with mbedtls/framework

2025-02-10 Thread Tom Rini
On Mon, Jan 27, 2025 at 10:11:06AM +0800, ZHANG Yuntian wrote: > Hi Tom, > > On 2025/1/26 23:59, Tom Rini wrote: > > On Sun, Jan 26, 2025 at 03:13:46PM +0800, ZHANG Yuntian wrote: > > > Hi Tom, > > > > > > On 2025/1/25 02:23, Tom Rini wrote: > > > > On Fri, Jan 24, 2025 at 02:05:28PM +0800, ZHANG

Re: [PATCH] rockchip: nanopi-r4s: Enable second usb port and fix crash

2025-02-10 Thread Justin Klaassen
Hi all, For reference this is the same issue I was attempting to fix [1] back in April 2024. Since [2] was merged the issue has manifested as a crash whenever the usb system is initialized on nanopi-r4s boards. [1] https://lists.denx.de/pipermail/u-boot/2024-April/551383.html [2] https://source.

[PATCH 5/6] arch/arm/dts/rk3399-roc-pc-u-boot.dtsi: Prepare for SPL DFU

2025-02-10 Thread Arnaud Patard
For SPL DFU booting, define u-boot,spl-boot-order and configure usb nodes for enabling the gadget in SPL. Signed-off-by: Arnaud Patard --- arch/arm/dts/rk3399-roc-pc-u-boot.dtsi | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi b

[PATCH] efi: Make FDT extra space configurable

2025-02-10 Thread Pawel Kochanowski
From: Gabriel Nesteruk U-Boot currently reserves only 0x3000 bytes when copying the FDT in `copy_fdt()`, which may not be sufficient if additional nodes (such as FMAN firmware) are added later. This patch introduces a new `CONFIG_FDT_EXTRA_SPACE` Kconfig option to allow users to define the amoun

[PATCH 6/6] configs/roc-pc-rk3399_defconfig: Enable SPL DFU for roc-pc-rk3399

2025-02-10 Thread Arnaud Patard
Add needed configuration to enable SPL DFU. Signed-off-by: Arnaud Patard --- configs/roc-pc-rk3399_defconfig | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index 0ef86748778..a02deefbaf8 100644

[PATCH 4/6] include/configs/rk3399_common.h: define CFG_EXTRA_ENV_SETTINGS in XPL build

2025-02-10 Thread Arnaud Patard
To use SPL DFU, some environment variables are needed so define CFG_EXTRA_ENV_SETTINGS for XPL builds. Signed-off-by: Arnaud Patard --- include/configs/rk3399_common.h | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/include/configs/rk3399_common.h b/includ

[PATCH 3/6] arch/arm/mach-rockchip/rk3399/rk3399.c: Add gadget device to boot devices

2025-02-10 Thread Arnaud Patard
Define the device node used when booting over usb, allowing to use 'same-as-spl' boot entry. Signed-off-by: Arnaud Patard --- arch/arm/mach-rockchip/rk3399/rk3399.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.

[PATCH 2/6] arch/arm/mach-rockchip/spl-boot-order.c: Add DFU boot media

2025-02-10 Thread Arnaud Patard
Make it possible to boot over gadget. Signed-off-by: Arnaud Patard --- arch/arm/mach-rockchip/spl-boot-order.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-rockchip/spl-boot-order.c b/arch/arm/mach-rockchip/spl-boot-order.c index 3dce9b30898..7cc410d0ae7 100644 --- a/arc

[PATCH 1/6] drivers/Makefile: Fix TPL build with dwc3 generic

2025-02-10 Thread Arnaud Patard
When building TPL with DWC3 generic enabled, the following error is occuring: aarch64-linux-gnu-ld.bfd: drivers/usb/dwc3/dwc3-generic.o: in function `dwc3_glue_bind_common': .../drivers/usb/dwc3/dwc3-generic.c:527: undefined reference to `usb_get_dr_mode' .../drivers/usb/dwc3/dwc3-generic.c:527:(

[PATCH 0/6] roc-pc-rk3399: Add SPL_DFU support

2025-02-10 Thread Arnaud Patard
This patch series aims at allowing to boot u-boot proper over DFU on roc-pc-rk3399. While the changes are pretty generic, I wanted to enable the device I've tested. I may try later to test that on my pinebook pro. What I tried was to boot u-boot TPL+SPL with the device in maskrom mode, downloaded

Re: Security vulnerabilities report to Das-U-Boot

2025-02-10 Thread Tom Rini
On Fri, Feb 07, 2025 at 09:53:01AM -0800, Jonathan Bar Or wrote: > Thank you. > > So, I'm attaching my findings in a md file - see attachment. > All of those could be avoided by using safe math, such as > __builtin_mul_overflow and __builtin_add_overflow, which are used in some > modules in Das-U

Re: [PATCH 0/2] Qualcomm: fix sdcard support on SM8250

2025-02-10 Thread Caleb Connolly
forgot to add a link (b4 should pick it up though from headers) https://lore.kernel.org/u-boot/20250210-b4-clk-stub-v4-0-f1e7d845f...@linaro.org --- Caleb Connolly (2): power: regulator: add additional supported LDOs for pm8150l pinctrl: qcom: sm8250: fix pin count drivers/pinctrl

[PATCH 1/2] power: regulator: add additional supported LDOs for pm8150l

2025-02-10 Thread Caleb Connolly
Add the other LDOs that our rpmh driver can currently support. Some of these are used on the RB5 to power the sdcard. Signed-off-by: Caleb Connolly --- drivers/power/regulator/qcom-rpmh-regulator.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/power/regulator/qcom-rpmh-regul

[PATCH 2/2] pinctrl: qcom: sm8250: fix pin count

2025-02-10 Thread Caleb Connolly
The pin count wasn't updated when the special pins were added, as a result it was never possible to configure the special pins on SM8250 boards. Fix the pin count and allow the special pins to be configured. This fixes sdcard support on the RB5. Fixes: 58fa52042471 ("pinctr: qcom: sm8250: add spe

[PATCH 0/2] Qualcomm: fix sdcard support on SM8250

2025-02-10 Thread Caleb Connolly
Enable the missing regulators and fix pinctrl so that the sdcard works on the RB5 board and presumably other devices. This depends on the clk-stub patches since the MMC block itself references the rpmh vote-clock which we intend to stub. --- Caleb Connolly (2): power: regulator: add additio

[PATCH v4 3/3] clk: stub: add sm8150 compatible id

2025-02-10 Thread Caleb Connolly
From: Julius Lehmann Add support for sm8150 clock controller to clk stub driver. Signed-off-by: Julius Lehmann --- drivers/clk/clk-stub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk-stub.c b/drivers/clk/clk-stub.c index ea817031fa6c0cc1ea21000273b5651be5d05e65..5fbbb07

[PATCH v4 1/3] clk: add stub clock driver

2025-02-10 Thread Caleb Connolly
Add a stub clock driver which can be used to bind clock controllers which aren't required for the platform to boot, but which are needed for U-Boot drivers to work. In addition, add a NOP parent driver to allow for binding the parent nodes of the clock. Initially this driver supports a Qualcomm p

  1   2   >