RE: [PATCH v11 3/7] usb: onboard-hub: add support for Microchip USB5744

2024-11-11 Thread Abbarapu, Venkatesh
Hi, > -Original Message- > From: Marek Vasut > Sent: Tuesday, November 12, 2024 11:28 AM > To: Abbarapu, Venkatesh ; u-boot@lists.denx.de > Cc: Simek, Michal ; fabrice.gasn...@foss.st.com; git > (AMD-Xilinx) > Subject: Re: [PATCH v11 3/7] usb: onboard-hub: add support for Microchip > USB

Re: [PATCH v11 3/7] usb: onboard-hub: add support for Microchip USB5744

2024-11-11 Thread Marek Vasut
On 11/12/24 6:07 AM, Venkatesh Yadav Abbarapu wrote: Add support for the Microchip USB5744 USB3.0 and USB2.0 Hub. The usb5744 driver trigger hub reset signal after soft reset. The usb5744 hub need to reset after the phy initialization, which toggles the gpio. Also update the usb2514 hub_data with

[PATCH v11 7/7] arm64: zynqmp: Update the usb5744 hub node as per binding

2024-11-11 Thread Venkatesh Yadav Abbarapu
Updating the usb5744 hub node as per the latest upstream DT binding https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ tree/Documentation/devicetree/bindings/usb/microchip,usb5744.yaml?h=v6.8.8 Signed-off-by: Venkatesh Yadav Abbarapu Acked-by: Michal Simek --- arch/arm/dts/zynqmp

[PATCH v11 4/7] usb: onboard-hub: Add i2c initialization for usb5744 hub

2024-11-11 Thread Venkatesh Yadav Abbarapu
Add i2c initialization hook and set usb5744 platform data with function having required i2c initialization sequence. Apart from the USB command attach, prevent the hub from suspend. when the “USB Attach with SMBUS (0xAA56)” command is issued to the hub, the hub is getting enumerated and then it pu

[PATCH v11 5/7] usb: onboard-hub: Bail out if peer hub is already probed

2024-11-11 Thread Venkatesh Yadav Abbarapu
The .bind function is implemented to bind the correct "half" of the hub that the driver wants to bind, and returning -ENODEV for the other "half". Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common/usb_onboard_hub.c | 21 + 1 file changed, 21 inserti

[PATCH v11 6/7] configs: zynqmp_kria: Enable the USB onboard hub

2024-11-11 Thread Venkatesh Yadav Abbarapu
USB host support on ZYNQMP KRIA SOM needs onboard USB hub driver for handling reset GPIO and for i2c initialization sequence. Signed-off-by: Venkatesh Yadav Abbarapu Acked-by: Michal Simek --- configs/xilinx_zynqmp_kria_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --g

[PATCH v11 3/7] usb: onboard-hub: add support for Microchip USB5744

2024-11-11 Thread Venkatesh Yadav Abbarapu
Add support for the Microchip USB5744 USB3.0 and USB2.0 Hub. The usb5744 driver trigger hub reset signal after soft reset. The usb5744 hub need to reset after the phy initialization, which toggles the gpio. Also update the usb2514 hub_data with the reset delay as 1us. Signed-off-by: Venkatesh Yada

[PATCH v11 2/7] usb: onboard-hub: Fix the return values of regulator APIs

2024-11-11 Thread Venkatesh Yadav Abbarapu
Don't error out if there is no vdd regulator supply, as these are optional properties. Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common/usb_onboard_hub.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/common/usb_onboard_hub.c b/common

[PATCH v11 1/7] usb: onboard-hub: Add reset-gpio support

2024-11-11 Thread Venkatesh Yadav Abbarapu
As part of the reset, sets the direction of the pin to output before toggling the pin. Delay of millisecond is added in between low and high to meet the setup and hold time requirement of the reset. Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common/usb_onboard_hub.c |

[PATCH v11 0/7] Add the USB5744 hub driver as per new DT binding

2024-11-11 Thread Venkatesh Yadav Abbarapu
Add the usb5744/usb2744 hub driver which does the reset gpio toggling and the i2c initialization sequence. Tested the USB5744/USB2744 usb hub for usb0, usb1 with the DT nodes on KR260 board. Changes in v2: - Added the power_on_reset_us variable, for post-reset time. - Removed the DM_REGULATOR ifd

Re: [PATCH] tools: imx8image: Add missing break for CMD_DCD_SKIP

2024-11-11 Thread Heiko Schocher
Hello Fabio, On 12.11.24 03:38, Fabio Estevam wrote: From: Fabio Estevam The CMD_DCD_SKIP case misses a break statement. Add it. Fixes: 254c00803b63 ("tools: imx8image: add possibility to skip dcd") Addresses-Coverity-ID: 514648: Control flow issues (MISSING_BREAK) Signed-off-by: Fabio Estev

[PATCH v3 06/15] efi_api: add definitions for HTTP and IP4_CONFIG2 protocols

2024-11-11 Thread Adriano Cordova
Add EFI definitions for EFI_IP4_CONFIG2_PROTOCOL, EFI_HTTP_SERVICE_BINDING_PROTOCOL, and EFI_HTTP_PROTOCOL. According to UEFI spec 2.10. Signed-off-by: Adriano Cordova --- (no changes since v2) include/efi_api.h | 203 ++ 1 file changed, 203 insertio

[PATCH v2 7/7] net/lwip: wget: integrate struct wget_info into wget code

2024-11-11 Thread Adriano Cordova
Each wget request now fills the struct wget_info. Also, the efi bootdevice is now set conditionally to the set_bootdevice variable in wget_info and a buffer size check is performed if check_buffer_size is set. Signed-off-by: Adriano Cordova --- Changes in v2: - wget_info is now a pointer - wget_

[PATCH v2 0/7] wget: Expose wget to applications

2024-11-11 Thread Adriano Cordova
Currently the wget command is focused on downloading the next boot stage. This series proposes to set wget as a general purpose HTTP request interface. This series splits the wget code from the wget command and exposes wget HTTP requests for applications to use. This comes in preparation for an efi

Re: [PATCH v4 03/13] dt-bindings: Remove StarFive JH7110 clock and reset definitions

2024-11-11 Thread Hal Feng
On 11/11/2024 6:52 PM, Heinrich Schuchardt wrote: > On 11/11/24 03:07, Hal Feng wrote: >> As JH7110 switch to use OF_UPSTREAM dt-bindings, >> remove the redundant clock and reset definitions. >> >> Signed-off-by: Hal Feng > > After merging patches 1-3 I get: > >   CC  env/common.o > drivers/

[PATCH] spl: increase SPL_SYS_MALLOC_SIZE when using BIOSEMU on RISC-V

2024-11-11 Thread Yuri Zaporozhets
If BIOSEMU is compiled for RISC-V (SiFive Unmatched board) and the function dm_pci_run_vga_bios() is executed, U-Boot stops with error message saying that the SPL malloc pool is too small. So increase the default pool size when both BIOSEMU and RISCV parameters are set. Signed-off-by: Yuri Zaporoz

[PATCH v3 15/15] efi_selftest: add test for IPv4 Config2 protocol

2024-11-11 Thread Adriano Cordova
Add a test for the EFI_IP4_CONFIG2_PROTOCOL. The test sets the ip policy to static, adds an ip address, and then reads the current ip address and checks for it to be the same as the one that was set. Signed-off-by: Adriano Cordova --- (no changes since v2) lib/efi_selftest/Makefile

Re: [PATCH v4 01/13] dts: starfive: Switch to using upstream DT

2024-11-11 Thread Hal Feng
On 11/11/2024 5:56 PM, Heinrich Schuchardt wrote: > On 11/11/24 03:07, Hal Feng wrote: >> Enable OF_UPSTREAM to use upstream DT and add starfive/ prefix to >> the DEFAULT_DEVICE_TREE. Rename jh7110-starfive-visionfive-2-u-boot.dtsi >> to jh7110-starfive-visionfive-2-v1.3b-u-boot.dtsi and set >> the

[PATCH v3 14/15] efi_selftest: add test for HTTP protocol

2024-11-11 Thread Adriano Cordova
Add a test for the EFI_HTTP_PROTOCOL and EFI_SEVICE_BINDING_PROTOCOL. Signed-off-by: Adriano Cordova --- (no changes since v2) lib/efi_selftest/Makefile| 2 +- lib/efi_selftest/efi_selftest_http.c | 315 +++ 2 files changed, 316 insertions(+), 1 deletion(-

[PATCH v3 11/15] efi_loader: efi_net: add EFI_IP4_CONFIG2_PROTOCOL

2024-11-11 Thread Adriano Cordova
Add an implementation of the EFI_IP4_CONFIG2_PROTOCOL. The protocol is attached to the handle of the efi network device. This is the same handle where snp and pxe are attached to. Signed-off-by: Adriano Cordova --- (no changes since v2) include/efi_loader.h | 3 + lib/efi_loader/Kco

[PATCH v3 13/15] lib: uuid: display HTTP and IPV4 Config II protocols

2024-11-11 Thread Adriano Cordova
From: Heinrich Schuchardt Add long texts for * EFI HTTP Protocol * EFI HTTP Service Binding Protocol * EFI IPv4 Configuration II Protocol to the uuid library. Signed-off-by: Heinrich Schuchardt Signed-off-by: Adriano Cordova --- (no changes since v2) lib/uuid.c | 14 ++ 1 file

[PATCH v3 12/15] efi_loader: efi_net: add EFI_HTTP_PROTOCOL

2024-11-11 Thread Adriano Cordova
Add an EFI HTTP driver. This commit implements the EFI_HTTP_PROTOCOL and the EFI_HTTP_SERVICE_BINDING_PROTOCOL. The latter is attached to the handle of th efi network device. This is the same handle where snp, pxe, and ipconfig are attached to. Signed-off-by: Adriano Cordova --- - Add documentat

[PATCH v3 10/15] efi_loader: net: add support to send http requests and parse http headers

2024-11-11 Thread Adriano Cordova
Add network-stack agnostic way to send an http request and parse http headers from efi drivers. This uses wget as a backend and communicates with it via efi_wget_info. The function efi_net_do_request allocates a buffer on behalf of an efi application using efi_alloc and passes it to wget to receiv

[PATCH v3 09/15] efi_loader: net: set EFI bootdevice device path to HTTP when loaded from wget

2024-11-11 Thread Adriano Cordova
Set the device path of the efi boot device to an HTTP device path (as formed by efi_dp_from_http) when the next boot stage is loaded using wget (i.e., when wget is used with wget_info.set_bootdev=1). Signed-off-by: Adriano Cordova --- (no changes since v2) include/efi_loader.h | 6

[PATCH v3 08/15] efi_loader: device_path: add support for HTTP device path

2024-11-11 Thread Adriano Cordova
Add efi_dp_from_http to form a device path from HTTP. The device path is the concatenation of the device path returned by efi_dp_from_ipv4 together with an URI node and an END node. Signed-off-by: Adriano Cordova --- Changes in v3: - Moved argument checks in efi_dp_from_http to the beginning of

[PATCH v3 07/15] efi_loader: efi_net: add efi_net_set_addr, efi_net_get_addr

2024-11-11 Thread Adriano Cordova
Add the functions efi_net_set_addr and efi_net_get_addr to set and get the ip address from efi code in a network agnostic way. This could also go in net_common, or be compiled conditionally for each network stack. Signed-off-by: Adriano Cordova --- (no changes since v2) include/efi_loader.h

[PATCH v3 04/15] efi_loader: device_path: add efi_dp_from_ipv4

2024-11-11 Thread Adriano Cordova
Add efi_dp_from_ipv4 to form a device path from an ipv4 address. Signed-off-by: Adriano Cordova --- Changes in v3: - Removed some unnecessary void* casts. - Changed sizeof(struct efi_device_path_ipv4) to sizeof(*ipv4dp) in efi_dp_from_ipv4. lib/efi_loader/efi_device_path.c | 38 +

[PATCH v3 05/15] efi_loader: add IPv4() to device path to text protocol

2024-11-11 Thread Adriano Cordova
From: Heinrich Schuchardt Implement Ipv4() node support in the device path to text protocol. Signed-off-by: Heinrich Schuchardt Signed-off-by: Adriano Cordova --- (no changes since v2) lib/efi_loader/efi_device_path_to_text.c | 23 +++ 1 file changed, 23 insertions(+) d

[PATCH v3 03/15] efi_loader: device_path: add definition of DEVICE_PATH_SUB_TYPE_MSG_IPV4

2024-11-11 Thread Adriano Cordova
Add definition for DEVICE_PATH_SUB_TYPE_MSG_IPV4 device path subtype. Signed-off-by: Adriano Cordova --- Changes in v3: - Removed alignment in struct efi_ipv4_address include/efi_api.h | 17 + 1 file changed, 17 insertions(+) diff --git a/include/efi_api.h b/include/efi_api.h

[PATCH v3 02/15] net: wget: let wget_with_dns work with dns disabled

2024-11-11 Thread Adriano Cordova
This was marked as TODO in the code: -Enable use of wget_with_dns even if CMD_DNS is disabled if the given uri has the ip address for the http server. -Check for port in the uri when transforming to legacy wget syntax inside wget_with_dns. -Move the check for CMD_DNS inside wget_with_dns. Signed-o

[PATCH v3 01/15] net: net_utils: Move ip_to_string to lib/net_utils.c

2024-11-11 Thread Adriano Cordova
The function string_to_ip is already in net_utils, which is compiled unconditionally, but ip_to_string is currently only accessible if the legacy network stack is selected. This commit puts ip_to_string in net_utils.c and removes it from the legacy network code. Signed-off-by: Adriano Cordova ---

[PATCH v3 00/15] efi_loader: efi http and ipconfig drivers

2024-11-11 Thread Adriano Cordova
Add support for EFI_HTTP_PROTOCOL, EFI_HTTP_SERVICE_BINDING_PROTOCOL, and EFI_IP4_CONFIG2_PROTOCOL. This series depends on the series 'wget: Expose wget to applications', also found at: https://github.com/0n41rd4/u-boot/commits/http-driver-wget The fist two patches of this series are not efi spec

[PATCH v2 5/7] net: wget: make wget_with_dns return value compatible with its lwip version

2024-11-11 Thread Adriano Cordova
There are two wget_with_dns functions, one in the legacy network stack and one in lwip, but the return values are not compatible. This commit modifies the legacy version of wget_with_dns so that the return values are compatible: 0 on success, otherwise a negative error. This way wget_with_dns can b

[PATCH v2 6/7] net/lwip: wget: put server_name and port into wget_ctx

2024-11-11 Thread Adriano Cordova
Currently server_name and port are local variables in wget_loop. This commit puts them inside ctx, so that they are accessible from the http callbacks. Signed-off-by: Adriano Cordova --- (no changes since v1) net/lwip/wget.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff -

[PATCH v2 4/7] net: wget: integrate struct wget_info into legacy wget code

2024-11-11 Thread Adriano Cordova
Each wget request now fills the struct wget_info. The efi bootdevice is now set conditionally to the set_bootdevice variable in wget_info, and the same holds for lmb memory check. Signed-off-by: Adriano Cordova --- Changes in v2: - wget_info is now a pointer to a wget_http_info, which defaults t

[PATCH v2 3/7] net: wget: Add interface to issue wget_requests using wget_http_info

2024-11-11 Thread Adriano Cordova
Declare and define a global default struct wget_http_info and an interface to issue wget requests providing a custom struct wget_http_info. This code is common to legacy wget and lwip wget. The idea is that the command wget should use the default wget_http_info and other internal u-boot code can ca

[PATCH v2 2/7] net: wget: add definition of struct wget_http_info

2024-11-11 Thread Adriano Cordova
The struct wget_http_info exposes the HTTP information of the last HTTP request issued by wget, and it controls whether the efi bootdevice is set, and whether the buffer size needs to be checked (lwip stack only). This information is otherwise discarded. The wget_http_info struct can be used by HTT

[PATCH v2 1/7] net: Kconfig: add CONFIG_WGET symbol

2024-11-11 Thread Adriano Cordova
Let net/wget.c and net/lwip/wget.c depend on CONFIG_WGET, and cmd/wget.c depend on CONFIG_CMD_WGET. This way, the wget code can be used regardless of whether the wget command is available. Signed-off-by: Adriano Cordova --- (no changes since v1) cmd/Kconfig | 5 + net/Kconfig |

[PATCH] tools: imx8image: Add missing break for CMD_DCD_SKIP

2024-11-11 Thread Fabio Estevam
From: Fabio Estevam The CMD_DCD_SKIP case misses a break statement. Add it. Fixes: 254c00803b63 ("tools: imx8image: add possibility to skip dcd") Addresses-Coverity-ID: 514648: Control flow issues (MISSING_BREAK) Signed-off-by: Fabio Estevam --- tools/imx8image.c | 1 + 1 file changed, 1 inse

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

2024-11-11 Thread Tom Rini
Here's the latest Coverity report. -- Forwarded message - From: Date: Mon, Nov 11, 2024 at 10:24 AM 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. 1 new de

Re: [PATCH 1/1] lib: vsprintf: fix API build

2024-11-11 Thread Ilias Apalodimas
On Sun, 3 Nov 2024 at 05:50, Heinrich Schuchardt wrote: > > Avoid a build failure when building with CONFIG_API=y, CONFIG_EXAMPLES=y: > > lib/vsprintf.c:312:14: warning: > ‘device_path_string’ defined but not used [-Wunused-function] > 312 | static char *device_path_string(char *buf,

Re: [PATCH v10 3/7] usb: onboard-hub: add support for Microchip USB5744

2024-11-11 Thread Marek Vasut
On 11/11/24 3:10 PM, Abbarapu, Venkatesh wrote: Hi Marek, -Original Message- From: Marek Vasut Sent: Monday, November 11, 2024 5:44 PM To: Abbarapu, Venkatesh ; u-boot@lists.denx.de Cc: Simek, Michal ; fabrice.gasn...@foss.st.com; git (AMD-Xilinx) Subject: Re: [PATCH v10 3/7] usb: onb

Re: [PATCH v3 0/4] Fix IOVA allocation in Apple dart iommu after global LMB mem map changes

2024-11-11 Thread Tom Rini
On Mon, 11 Nov 2024 07:56:30 +0100, Janne Grunau wrote: > The changes in "Make LMB memory map global and persistent" [1] break > mapping DMA memory in the USB xHCI driver when using the apple_dart > iommu present on Apple silicon systems. > > The IOVA space used by the u-boot driver (low 4GB) and

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

2024-11-11 Thread Tom Rini
On Mon, Nov 11, 2024 at 10:12:23AM -0600, Tom Rini wrote: > Hey all, > > It's release day and so here's v2025.01-rc2. It's got most of what I'd > like, but not everything I'd like, so a few things will sneak into -rc3 > rather than going to the next branch. The next branch IS open now, keep > in m

[ANN] U-Boot v2025.01-rc1 released

2024-11-11 Thread Tom Rini
Hey all, It's release day and so here's v2025.01-rc2. It's got most of what I'd like, but not everything I'd like, so a few things will sneak into -rc3 rather than going to the next branch. The next branch IS open now, keep in mind, for bigger changes. Looking at the -rc1 email, I've just now mer

Re: Pull request: u-boot-rockchip-20241111

2024-11-11 Thread Tom Rini
ci_{read,write}_config_* function > calls (2024-11-04 18:01:58 -0600) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-rockchip.git > tags/u-boot-rockchip-2024 > > for you to fetch changes up to 0a17123dedf827f4ca9b

Re: [PATCH] Makefile: fix empty MK_ARCH when using ccache

2024-11-11 Thread Tom Rini
On Mon, Nov 11, 2024 at 03:43:27PM +0100, Quentin Schulz wrote: > Hi Heinrich, > > On 11/11/24 3:27 PM, Heinrich Schuchardt wrote: > > Am 11. November 2024 14:20:49 MEZ schrieb Quentin Schulz > > : > > > From: Quentin Schulz > > > > > > One can use ccache by prefixing the typical CROSS_COMPILE

Re: [PATCH v2 1/2] armv8: Fix get_sctlr() return type

2024-11-11 Thread Ilias Apalodimas
On Thu, 7 Nov 2024 at 04:58, Sam Protsenko wrote: > > SCTLR_EL2 is a 64-bit register [1]. Return its value as long (64 bit) > instead of int (32 bit) in get_sctlr() to make sure it's not trimmed. > > [1] > https://developer.arm.com/documentation/ddi0595/2021-06/AArch64-Registers/SCTLR-EL2--System

Re: [PATCH] Makefile: fix empty MK_ARCH when using ccache

2024-11-11 Thread Quentin Schulz
Hi Heinrich, On 11/11/24 3:27 PM, Heinrich Schuchardt wrote: Am 11. November 2024 14:20:49 MEZ schrieb Quentin Schulz : From: Quentin Schulz One can use ccache by prefixing the typical CROSS_COMPILE value with "ccache " (e.g. "ccache aarch64-gnu-linux-" for Aarch64). This however makes the MK

Re: [PATCH] Makefile: fix empty MK_ARCH when using ccache

2024-11-11 Thread Heinrich Schuchardt
([^\/]*\/\)*\([^-]*\)-[^[:space:]]*/\3/p'}" The target architecture cannot be determined in this way. You could use the riscv64 compiler to compile riscv32 when providing a gcc flag. You should not make any assumptions about the naming scheme of vendor toolchains. The correct way is to cross-compile a binary. Then use readelf to retrieve the target architecture. Best regards Heinrich > endif > unexport HOST_ARCH > ifeq ("x86_64", $(MK_ARCH)) > >--- >base-commit: 9c25cd563179cf32cf3b119d5ae78ef8348d0335 >change-id: 2024-mk_arch-ccache-7150482cfde8 > >Best regards,

Re: [PATCH v3 4/6] net: lwip: Enable https:// support for wget

2024-11-11 Thread Ilias Apalodimas
Thanks Simon, On Mon, 11 Nov 2024 at 15:03, Simon Glass wrote: > > On Sun, 10 Nov 2024 at 01:32, Ilias Apalodimas > wrote: > > > > With the recent changes of lwip & mbedTLS we can now download from > > https:// urls instead of just http://. > > Adjust our wget lwip version parsing to support bot

Re: [PATCH 1/6] Revert "spi: zynq_qspi: Add parallel memories support in QSPI driver"

2024-11-11 Thread Jon Humphreys
Marek Vasut writes: > On 11/7/24 4:49 PM, Jon Humphreys wrote: >> Marek Vasut writes: >> >>> On 11/6/24 10:58 PM, Jon Humphreys wrote: Marek Vasut writes: > On 11/6/24 8:18 PM, Jon Humphreys wrote: >> Marek Vasut writes: >> >>> On 10/23/24 10:17 AM, Michal Simek wrot

Re: [PATCH v3 0/6]

2024-11-11 Thread Simon Glass
Hi Ilias, On Mon, 11 Nov 2024 at 07:07, Ilias Apalodimas wrote: > > Hi Simon, > > On Mon, 11 Nov 2024 at 15:03, Simon Glass wrote: > > > > Hi Ilias, > > > > On Sun, 10 Nov 2024 at 01:31, Ilias Apalodimas > > wrote: > > > > > > Hi all, > > > > > > This is a respin of [1] adding https support to

RE: [PATCH v10 3/7] usb: onboard-hub: add support for Microchip USB5744

2024-11-11 Thread Abbarapu, Venkatesh
Hi Marek, > -Original Message- > From: Marek Vasut > Sent: Monday, November 11, 2024 5:44 PM > To: Abbarapu, Venkatesh ; u-boot@lists.denx.de > Cc: Simek, Michal ; fabrice.gasn...@foss.st.com; git > (AMD-Xilinx) > Subject: Re: [PATCH v10 3/7] usb: onboard-hub: add support for Microchip >

Re: [PATCH v3 0/6]

2024-11-11 Thread Ilias Apalodimas
Hi Simon, On Mon, 11 Nov 2024 at 15:03, Simon Glass wrote: > > Hi Ilias, > > On Sun, 10 Nov 2024 at 01:31, Ilias Apalodimas > wrote: > > > > Hi all, > > > > This is a respin of [1] adding https support to wget. In short > > > > patch#1 enables the crypto algorithms we need in mbedTLS > > patches

Re: [PULL] u-boot-sh/master

2024-11-11 Thread Tom Rini
On Sun, Nov 10, 2024 at 10:43:15PM +0100, Marek Vasut wrote: > The following changes since commit 9c25cd563179cf32cf3b119d5ae78ef8348d0335: > > Merge tag 'u-boot-imx-master-20241105' of > https://gitlab.denx.de/u-boot/custodians/u-boot-imx (2024-11-09 11:26:14 > -0600) > > are available in t

Re: [GIT PULL] u-boot-riscv/master

2024-11-11 Thread Tom Rini
On Wed, Nov 06, 2024 at 08:12:06PM +0800, Leo Liang wrote: > Hi Tom, > > The following changes since commit 56accc56b9aab87ef4809ccc588e1257969cd271: > > bios_emulator: fix first argument of pci_{read,write}_config_* function > calls (2024-11-04 18:01:58 -0600) > > are available in the Git r

Re: [PATCH] mtd: spi-nor: Fix integer overflow in stacked memories support

2024-11-11 Thread Tom Rini
On Sun, 03 Nov 2024 00:57:31 +0100, Marek Vasut wrote: > The 5d40b3d384dc ("mtd: spi-nor: Add parallel and stacked memories support") > adds new SPI bus flags, but also introduces a completely new set of > SPI bus flags in another location. The existing flags field is type > u8, while the new sepa

[PATCH] Makefile: fix empty MK_ARCH when using ccache

2024-11-11 Thread Quentin Schulz
cho $(CROSS_COMPILE) | sed -n 's/^\(ccache\)\?[[:space:]]*\([^\/]*\/\)*\([^-]*\)-[^[:space:]]*/\3/p'}" endif unexport HOST_ARCH ifeq ("x86_64", $(MK_ARCH)) --- base-commit: 9c25cd563179cf32cf3b119d5ae78ef8348d0335 change-id: 2024-mk_arch-ccache-7150482cfde8 Best regards, -- Quentin Schulz

Re: [PATCH v3 0/6]

2024-11-11 Thread Simon Glass
Hi Ilias, On Sun, 10 Nov 2024 at 01:31, Ilias Apalodimas wrote: > > Hi all, > > This is a respin of [1] adding https support to wget. In short > > patch#1 enables the crypto algorithms we need in mbedTLS > patches#2, #3 enable anf fix the lwIP part we need > patch#4 is adding https:// parsing sup

Re: [PATCH v10 06/10] sandbox: Report host default-filename in native mode

2024-11-11 Thread Simon Glass
Hi Quentin, On Mon, 11 Nov 2024 at 05:55, Quentin Schulz wrote: > > Hi Simon, > > On 11/11/24 1:41 PM, Simon Glass wrote: > > Hi Quentin, > > > > On Mon, 11 Nov 2024 at 03:03, Quentin Schulz > > wrote: > >> > >> Hi Simon, > >> > >> On 11/7/24 10:31 PM, Simon Glass wrote: > >>> When the --native

Re: [PATCH v3 4/6] net: lwip: Enable https:// support for wget

2024-11-11 Thread Simon Glass
On Sun, 10 Nov 2024 at 01:32, Ilias Apalodimas wrote: > > With the recent changes of lwip & mbedTLS we can now download from > https:// urls instead of just http://. > Adjust our wget lwip version parsing to support both URLs. > While at it adjust the default TCP window for QEMU since https seems

Re: [PATCH v3 3/4] lmb: Add basic io_lmb functionality

2024-11-11 Thread Simon Glass
Hi, On Sun, 10 Nov 2024 at 23:56, Janne Grunau via B4 Relay wrote: > > From: Janne Grunau > > These functions can be used with struct lmb pointers and will be used to > manage IOVA space in the apple_dart iommu driver. This restores part of > the pointer base struct lmb API from before commit ed

Re: [PATCH v10 06/10] sandbox: Report host default-filename in native mode

2024-11-11 Thread Quentin Schulz
Hi Simon, On 11/11/24 1:41 PM, Simon Glass wrote: Hi Quentin, On Mon, 11 Nov 2024 at 03:03, Quentin Schulz wrote: Hi Simon, On 11/7/24 10:31 PM, Simon Glass wrote: When the --native flag is given, pretend to be running the host architecture rather than sandbox. Allow the same control for

Re: [PATCH v10 3/7] usb: onboard-hub: add support for Microchip USB5744

2024-11-11 Thread Marek Vasut
On 11/8/24 4:59 AM, Venkatesh Yadav Abbarapu wrote: Add support for the Microchip USB5744 USB3.0 and USB2.0 Hub. The usb5744 driver trigger hub reset signal after soft reset. The usb5744 hub need to reset after the phy initialization, which toggles the gpio. Signed-off-by: Venkatesh Yadav Abbara

Re: [PATCH] Kconfig: describe NET, NO_NET, LWIP_DEBUG and LWIP_ASSERT

2024-11-11 Thread Ilias Apalodimas
On Tue, 5 Nov 2024 at 12:25, Jerome Forissier wrote: > > Some Kconfig symbols introduced in commit 8cb330355bd5 ("net: introduce > alternative implementation as net/lwip/") need a full description. The > NET symbol needs one, too. > > Signed-off-by: Jerome Forissier > --- > Kconfig | 5

Re: [PATCH] sandbox: net: lwip: use EOPNOTSUPP not ENOTSUPP

2024-11-11 Thread Ilias Apalodimas
On Tue, 5 Nov 2024 at 12:25, Jerome Forissier wrote: > > EOPNOTSUPP is the recommended SUSV4 error code that should be used > instead of ENOTSUPP. > > Signed-off-by: Jerome Forissier > --- > drivers/net/sandbox-lwip.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drive

Re: [PATCH] nwt: wget: drop Content-Length processing

2024-11-11 Thread Ilias Apalodimas
Hi Jerome, On Tue, 5 Nov 2024 at 13:09, Jerome Forissier wrote: > > We don't do anything with Content-Length except a debug print, and the > strict_strtoul() call is incorrect (it always returns -EINVAL and leaves > content_length to zero due to the presence of trailing characters after > the dec

Re: [PATCH v10 06/10] sandbox: Report host default-filename in native mode

2024-11-11 Thread Simon Glass
Hi Quentin, On Mon, 11 Nov 2024 at 03:03, Quentin Schulz wrote: > > Hi Simon, > > On 11/7/24 10:31 PM, Simon Glass wrote: > > When the --native flag is given, pretend to be running the host > > architecture rather than sandbox. > > > > Allow the same control for PXE too. > > > > Commit 7506c15669

Re: [PATCH v2 2/4] lib: uuid: fix uuid_str_to_le_bin() on 32-bit

2024-11-11 Thread Ilias Apalodimas
On Mon, 4 Nov 2024 at 00:42, Heinrich Schuchardt wrote: > > hextoul() cannot convert a string to a 64-bit number on a 32-bit system. > Use function hextoull() instead. > > Reported-by: Patrick Delaunay > Fixes: 22c48a92cdce ("lib: uuid: supporting building as part of host tools") > Signed-off-by:

Re: [PATCH v2 3/4] lib: uuid: fix uuid_str_to_bin() on 32-bit

2024-11-11 Thread Ilias Apalodimas
On Mon, 4 Nov 2024 at 00:42, Heinrich Schuchardt wrote: > > hextoul() cannot convert a string to a 64-bit number on a 32-bit system. > Use function hextoull() instead. > > Reported-by: Patrick Delaunay > Fixes: 22c48a92cdce ("lib: uuid: supporting building as part of host tools") > Signed-off-by:

Re: [PATCH v2 0/7] arm64: zynqmp: Convert platforms to use binman

2024-11-11 Thread Michal Simek
Hi Simon, On 11/1/24 10:17, Michal Simek wrote: Hi, I have put togethere couple of patches to convert platforms to use binman. The first patch has been sent separately. The third (SOM description) has been also sent out for ilustration as RFC. The last one is just cherry-pick the patch which ha

Re: [PATCH v2 2/2] fdt: Swap the signature for board_fdt_blob_setup()

2024-11-11 Thread Matthias Brugger
On 02/11/2024 18:49, Simon Glass wrote: This returns a devicetree and updates a parameter with an error code. Swap it, since this fits better with the way U-Boot normally works. It also (more easily) allows leaving the existing pointer unchanged. No yaks were harmed in this change, but there

Re: [PATCH v1 08/22] siemens: capricorn: use DCD_SKIP entry

2024-11-11 Thread Schweizer, Walter
On Fri, 2024-11-08 at 06:21 +0100, Heiko Schocher wrote: > Boards which use DCD data in SCFW can drop SPL. > > We tried in our mainline rework to use this approach > too as other imx8qxp boards do in mainline. But we > failed ... it was a hard way to understand the > reason! > > We cannot use DCD

Re: [PATCH 4/4] efi: add helper functions to insert pmem node for DT fixup

2024-11-11 Thread Ilias Apalodimas
On Mon, 11 Nov 2024 at 13:33, Heinrich Schuchardt wrote: > > On 11/11/24 11:45, Ilias Apalodimas wrote: > > Hi Heinrich > > > > On Mon, 11 Nov 2024 at 10:08, Heinrich Schuchardt > > wrote: > >> > >> On 10/25/24 13:14, Sughosh Ganuefi_bootmgr_pmem_setup wrote: > >>> The EFI HTTP boot puts the iso

Re: [PATCH v1 15/22] siemens: imx8-capricorn.dtsi: small adaptions

2024-11-11 Thread Sverdlin, Alexander
Hi Heiko! On Mon, 2024-11-11 at 09:47 +0100, Heiko Schocher wrote: > > Here the commit "feat(scu_wdt): add option to control external wdt via IMX8 > > SCU" > > https://code.siemens.com/ccp/u-boot/-/commit/a5b99d1c406fdf92cd1d7d50d566a4e1e66c447b > > > > @Heiko: Check if we have a chance to put

Re: [PATCH 3/4] efi_loader: preserve installer images in pmem

2024-11-11 Thread Heinrich Schuchardt
On 11/11/24 11:46, Ilias Apalodimas wrote: On Mon, 11 Nov 2024 at 10:05, Heinrich Schuchardt wrote: On 10/25/24 13:14, Sughosh Ganu wrote: From: Ilias Apalodimas One of the problems OS installers face, when running in EFI, is that the mounted ISO after calling ExitBootServices goes away. Fo

Re: [PATCH 1/4] arm64: dts: imx8mn: Fix FSPI booting

2024-11-11 Thread Marek Vasut
On 11/11/24 2:46 AM, Adam Ford wrote: [...] I am hoping Simon could offer some input here ... Can you try the attached diff on MX8MM (use "git show -w" to view the diff better) ? It will generate two files, flash.bin and flash-fspi.bin , the later should have the fspi header and maybe even cor

Re: [PATCH 1/1] tpm: use memmove() for overlapping buffers

2024-11-11 Thread Ilias Apalodimas
On Sat, 2 Nov 2024 at 12:27, Heinrich Schuchardt wrote: > > The behavior of memcpy() for overlapping buffers is undefined. > > Fixes: 4c57ec76b725 ("tpm: Implement state command for Cr50") > Addresses-Coverity-ID: 356664 Overlapping buffer in memory copy > Signed-off-by: Heinrich Schuchardt > ---

Re: [PATCH 4/4] efi: add helper functions to insert pmem node for DT fixup

2024-11-11 Thread Heinrich Schuchardt
On 11/11/24 11:45, Ilias Apalodimas wrote: Hi Heinrich On Mon, 11 Nov 2024 at 10:08, Heinrich Schuchardt wrote: On 10/25/24 13:14, Sughosh Ganuefi_bootmgr_pmem_setup wrote: The EFI HTTP boot puts the iso installer image at some location in memory which needs to be reserved in the devicetree

Re: [PATCH v4 03/13] dt-bindings: Remove StarFive JH7110 clock and reset definitions

2024-11-11 Thread Heinrich Schuchardt
On 11/11/24 03:07, Hal Feng wrote: As JH7110 switch to use OF_UPSTREAM dt-bindings, remove the redundant clock and reset definitions. Signed-off-by: Hal Feng After merging patches 1-3 I get: CC env/common.o drivers/clk/starfive/clk-jh7110.c: In function ‘jh7110_stgcrg_init’: drivers/c

Re: [PATCH v2 1/6] arm: imx8m: add OP-TEE node

2024-11-11 Thread Adam Ford
On Mon, Nov 11, 2024 at 1:48 AM Yannic Moog wrote: > > Hi, > > On Fri, 2024-11-08 at 10:05 -0800, Tim Harvey wrote: > > On Fri, Nov 8, 2024 at 5:49 AM Adam Ford wrote: > > > > > > On Thu, Nov 7, 2024 at 2:42 AM Yannic Moog wrote: > > > > > > > > Add tee node in SoC u-boot device trees. Use a kco

Re: [PATCH 3/4] efi_loader: preserve installer images in pmem

2024-11-11 Thread Ilias Apalodimas
On Mon, 11 Nov 2024 at 10:05, Heinrich Schuchardt wrote: > > On 10/25/24 13:14, Sughosh Ganu wrote: > > From: Ilias Apalodimas > > > > One of the problems OS installers face, when running in EFI, is that > > the mounted ISO after calling ExitBootServices goes away. For some > > distros this is a

Re: [PATCH] lmb: Correctly unmap and free memory on errors

2024-11-11 Thread Heinrich Schuchardt
On 10/29/24 09:46, Ilias Apalodimas wrote: Hi Heinrich On Mon, 28 Oct 2024 at 08:40, Heinrich Schuchardt wrote: On 10/24/24 12:46, Ilias Apalodimas wrote: We never free and unmap the memory on errors and we never unmap it when freeing it. This won't cause any problems on actual hardware but

Re: [PATCH 4/4] efi: add helper functions to insert pmem node for DT fixup

2024-11-11 Thread Ilias Apalodimas
Hi Heinrich On Mon, 11 Nov 2024 at 10:08, Heinrich Schuchardt wrote: > > On 10/25/24 13:14, Sughosh Ganu wrote: > > The EFI HTTP boot puts the iso installer image at some location in > > memory which needs to be reserved in the devicetree as persistent > > memory (pmem). Add helper functions whic

Re: [PATCH 2/4] efi_loader: add a function to remove memory from the EFI map

2024-11-11 Thread Ilias Apalodimas
Hi Heinrich On Mon, 11 Nov 2024 at 09:52, Heinrich Schuchardt wrote: > > On 10/25/24 13:14, Sughosh Ganu wrote: > > From: Ilias Apalodimas > > > > With upcoming changes supporting pmem nodes, we need to ommit the > > Nits: > %s/ommit/remove/ > > > pmem area rfom the EFI memory map. Add a functio

Re: [PATCH v1 15/22] siemens: imx8-capricorn.dtsi: small adaptions

2024-11-11 Thread Sverdlin, Alexander
Hello Heiko, Fabio, On Mon, 2024-11-11 at 06:52 +0100, Heiko Schocher wrote: > > >    arch/arm/dts/imx8-capricorn.dtsi | 16 > > > > Are there any plans to upstream this dtsi and switch to OF_UPSTREAM? > > Hmm... good question! Currently we work on U-Boot to get mainline ready >

Re: [PATCH v4 01/13] dts: starfive: Switch to using upstream DT

2024-11-11 Thread Heinrich Schuchardt
On 11/11/24 03:07, Hal Feng wrote: Enable OF_UPSTREAM to use upstream DT and add starfive/ prefix to the DEFAULT_DEVICE_TREE. Rename jh7110-starfive-visionfive-2-u-boot.dtsi to jh7110-starfive-visionfive-2-v1.3b-u-boot.dtsi and set the v1.3b device tree as the default device tree. Signed-off-by:

Re: [PATCH v4 02/13] riscv: dts: jh7110: Drop redundant devicetree files

2024-11-11 Thread Heinrich Schuchardt
On 11/11/24 03:07, Hal Feng wrote: JH7110 boards switch to using upstream DT, so drop redundant DT files from arch/riscv/dts/. Signed-off-by: Hal Feng I added paches 1/13 and 2/13 to origin/master. make starfive_visionfive2_defconfig make yielded the following error: DTC dts/upstream/src

Re: [PATCH v3 18/18] board: rockchip: add support for Qnap TS433 devices

2024-11-11 Thread Heiko Stübner
Hi Kever, Am Montag, 11. November 2024, 11:12:24 CET schrieb Kever Yang: > On 2024/11/8 18:32, Kever Yang wrote: > > Again, I got a warning/error from CI system for the doc :( > > > I have fix this with replace the "bash" with "none", and apply this > patch set. thanks a lot :-) I was lookin

Re: [PATCH v3 18/18] board: rockchip: add support for Qnap TS433 devices

2024-11-11 Thread Kever Yang
Hi Heiko, On 2024/11/8 18:32, Kever Yang wrote: Hi Heiko, Again, I got a warning/error from CI system for the doc :( I have fix this with replace the "bash"  with "none", and apply this patch set. Thanks, - Kever https://source.denx.de/u-boot/custodians/u-boot-rockchip/-/jobs/941781 /

Re: [PATCH] rockchip: rk3308: Drop unused rk_board_init()

2024-11-11 Thread Kever Yang
Hi Jonas, On 2024/11/11 17:41, Jonas Karlman wrote: Hi Kever, On 2024-11-07 02:45, Kever Yang wrote: Hi Jonas, On 2024/11/3 04:45, Jonas Karlman wrote: Nothing is calling the function rk_board_init() and the io-domain driver can handle the functions intended purpose based on information from

Re: [PATCH v1 13/22] siemens: configs/capricorn_cxg3_defconfig: updates

2024-11-11 Thread Sverdlin, Alexander
On Fri, 2024-11-08 at 06:21 +0100, Heiko Schocher wrote: > make savedefconfig and add SCU_WDT and fix environment > offsets, as since silicium c0 the boot container takes place > at offset 0 and so the u-boot-env must be moved outside of > the boot container area. > > Signed-off-by: Heiko Schocher

Re: [PATCH v10 06/10] sandbox: Report host default-filename in native mode

2024-11-11 Thread Quentin Schulz
Hi Simon, On 11/7/24 10:31 PM, Simon Glass wrote: When the --native flag is given, pretend to be running the host architecture rather than sandbox. Allow the same control for PXE too. Commit 7506c1566998 ("sandbox: Report host default-filename in native mode") breaks building jaguar-rk3588_

Pull request: u-boot-rockchip-20241111

2024-11-11 Thread Kever Yang
/custodians/u-boot-rockchip.git tags/u-boot-rockchip-2024 for you to fetch changes up to 0a17123dedf827f4ca9b158252279adf03906307: rockchip: rk3399: move sysreset-gpio logic to TPL (2024-11-11 15:14:15 +0800) Andy Yan (3

[PATCH 1/1] cmd: improve description of the cdp command

2024-11-11 Thread Heinrich Schuchardt
Users might not know what 'CDP' refers to. Provide basic information. Signed-off-by: Heinrich Schuchardt --- cmd/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 636833646f6..c55a39600c3 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -

Re: [PATCH] rockchip: rk3308: Drop unused rk_board_init()

2024-11-11 Thread Jonas Karlman
Hi Kever, On 2024-11-07 02:45, Kever Yang wrote: > Hi Jonas, > > On 2024/11/3 04:45, Jonas Karlman wrote: >> Nothing is calling the function rk_board_init() and the io-domain driver >> can handle the functions intended purpose based on information from DT. > > Yes, this  should be take care by t

RE: [PATCH v1 15/22] siemens: imx8-capricorn.dtsi: small adaptions

2024-11-11 Thread Leto, Enrico
Hi Heiko > -Original Message- > From: Heiko Schocher > Sent: Monday, November 11, 2024 9:48 AM > To: Leto, Enrico (SI B PRO TI EAC CCP) ; Fabio > Estevam > Cc: U-Boot Mailing List ; Schweizer, Walter (SI B PRO TI > EAC CCP) ; Sverdlin, Alexander (SI B PRO TI > EAC CCP) ; Anatolij Gustsch

[PATCH 1/1] doc: remove README.TPL

2024-11-11 Thread Heinrich Schuchardt
doc/develop/spl.rst describes SPL, TPL, VPL. Remove the outdated README.TPL document. Signed-off-by: Heinrich Schuchardt --- doc/README.TPL | 49 - 1 file changed, 49 deletions(-) delete mode 100644 doc/README.TPL diff --git a/doc/README.TPL b/do

[PATCH 1/1] doc: move README.kconfig to HTML documentation

2024-11-11 Thread Heinrich Schuchardt
* format according to Sphinx style * add link to Linux Kconfig documentation * sort table alphabetically in 'Conversion from boards.cfg to Kconfig' Signed-off-by: Heinrich Schuchardt --- doc/README.kconfig | 151 -- doc/develop/index.rst | 1 + doc/de

  1   2   >