[PATCH] arm: dts: rockchip: add support for SPI NOR flash on Radxa E25(CM3I)

2024-08-24 Thread FUKAUMI Naoki
my CM3I has a w25q128fw, so add support for it. => sf probe SF: Detected w25q128fw with page size 256 Bytes, erase size 4 KiB, total 16 MiB Signed-off-by: FUKAUMI Naoki --- arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi | 16 configs/radxa-e25-rk3568_defconfig| 14 ++

[PATCH v5 00/11] net: tcp: improve tcp support

2024-08-24 Thread Mikhail Kshevetskiy
U-Boot support of LWIP is not ready for a moment, but we already have some kind of tcp support. Unfrotunately this support is really bad. Some of the known issues: * tcp packet from other connection can break a current one * tcp send sequence always starts from zero * bad tcp options processing

[PATCH v5 01/11] net/tcp: fix TCP options processing

2024-08-24 Thread Mikhail Kshevetskiy
Current TCP code may miss an option if TCP_O_NOP option was used before it for proper aligning. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/tcp.c b/net/tcp.c index b0cc8a1fe3e..3e3118de45

[PATCH v5 02/11] net/tcp: fix selective acknowledge

2024-08-24 Thread Mikhail Kshevetskiy
Current code assume that all (except last) packets are of the same size. This is definitely wrong. Replace SACK code with a new one, that does not rely on this assumption. Also this code uses less memory. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 200 ++

[PATCH v5 03/11] net/tcp: put connection specific data into a tcp_stream structure

2024-08-24 Thread Mikhail Kshevetskiy
no functional changes Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net/tcp.h | 37 +++- net/net.c | 11 ++- net/tcp.c | 231 +++--- net/wget.c| 3 +- 4 files changed, 163 insertions(+), 119 deleti

[PATCH v5 04/11] net/tcp: add connection info to tcp_stream structure

2024-08-24 Thread Mikhail Kshevetskiy
Changes: * Avoid use net_server_ip in tcp code, use tcp_stream data instead * Ignore packets from other connections if connection already created. This prevents us from connection break caused by other tcp stream. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net.

[PATCH v5 05/11] net/tcp: rename ack_edge and seq_init to more common rcv_nxt and irs

2024-08-24 Thread Mikhail Kshevetskiy
Use the names from RFC 9293 Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- include/net/tcp.h | 8 net/tcp.c | 32 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index f224

[PATCH v5 07/11] net/tcp: simplify tcp header filling code

2024-08-24 Thread Mikhail Kshevetskiy
Signed-off-by: Mikhail Kshevetskiy --- net/tcp.c | 74 ++- 1 file changed, 41 insertions(+), 33 deletions(-) diff --git a/net/tcp.c b/net/tcp.c index 37dda6f84f9..0778c153aca 100644 --- a/net/tcp.c +++ b/net/tcp.c @@ -535,10 +535,41 @@ void net

[PATCH v5 06/11] net/tcp: improve tcp framework, use better state machine

2024-08-24 Thread Mikhail Kshevetskiy
Changes: * Fix initial send sequence always zero issue * Use state machine close to RFC 9293. This should make TCP transfers more reliable (now we can upload a huge array of data from the board to external server) * Improve TCP framework a lot. This should make tcp client code much more

[PATCH v5 08/11] net/tcp: define a fallback value for rcv_wnd size

2024-08-24 Thread Mikhail Kshevetskiy
Some driver implements it's own network packet pool, so PKTBUFSRX is zero. This results in zero-size TCP receive window, so data transfer doesn't work. Avoid it by setting a reasonable fallback value. Signed-off-by: Mikhail Kshevetskiy Reviewed-by: Simon Glass --- net/tcp.c | 6 +- 1 file c

[PATCH v5 09/11] net/netcat: add netcat over tcp support

2024-08-24 Thread Mikhail Kshevetskiy
This patch adds downloading/uploading of data with netcat. Client/server mode both supported. How to test: netcat-openbsd=1.219-1 from debian were used for a tests a) Load data from remote host. * U-Boot listen on tcp port 3456 * PC connects u-boot: netcat loa

[PATCH v5 11/11] net/httpd-upload: an example web-server implementation for file uploading

2024-08-24 Thread Mikhail Kshevetskiy
This is an example web-server implementation. It can be used for files uploading to u-boot using a web-browser. It acts much like tftpget, but no special servers needs to be installed by the user. This code can be used as a base for other implementations like firmware upgrade web-server used by so

[PATCH v5 10/11] net/httpd: add httpd common code

2024-08-24 Thread Mikhail Kshevetskiy
This patch adds HTTP/1.1 compatible web-server that can be used by other. Server supports GET, POST, and HEAD requests. On client request it will call user specified GET/POST callback. Then results will be transmitted to client. The following restrictions exist on the POST request at the moment:

Re: [PATCH] arm: dts: rockchip: add support for SPI NOR flash on Radxa E25(CM3I)

2024-08-24 Thread FUKAUMI Naoki
sorry, I'll send v2 tomorrow to rewrite terrible commit message... -- FUKAUMI Naoki Radxa Computer (Shenzhen) Co., Ltd. On 8/24/24 18:00, FUKAUMI Naoki wrote: my CM3I has a w25q128fw, so add support for it. => sf probe SF: Detected w25q128fw with page size 256 Bytes, erase size 4 KiB, total 16

Re: [RESEND PATCH v3 7/9] net/tcp: simplify tcp header filling code

2024-08-24 Thread Mikhail Kshevetskiy
actually I know nothing about sandbox emulator On 23.08.2024 23:47, Simon Glass wrote: > Hi Mikhail, > > On Fri, 23 Aug 2024 at 09:12, Mikhail Kshevetskiy > wrote: >> By the way, I'd like to know your opinion: >> * should I add a sample implementation of http/1.1 compatible >> web-server to thi

Re: [PATCH 07/17] arm: acpi: Add generic ACPI methods

2024-08-24 Thread Moritz Fischer
Patrick, On Sat, Jul 27, 2024 at 12:21 AM Patrick Rudolph wrote: > > Add generic ACPI code to generate > - MADT GICC > - MADT GICD > > as commonly used on arm platforms. > > Signed-off-by: Patrick Rudolph > Cc: Tom Rini > Cc: Simon Glass > --- > arch/arm/include/asm/acpi_table.h | 18

[PULL MASTER] Pull request efi-2024-10-rc4

2024-08-24 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit a481740629af5e51732b86b6ead61dc5aa5a440d: Merge tag 'u-boot-dfu-20240822' of https://source.denx.de/u-boot/custodians/u-boot-dfu (2024-08-22 08:14:48 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-

Re: [PATCH v4 00/14] spl: mmc: Some tweaks for SPL, particularly with MMC

2024-08-24 Thread Tom Rini
On Thu, 22 Aug 2024 07:54:49 -0600, Simon Glass wrote: > This series includes various minor fixes and tweaks found when trying > to reduce the size of MMC code in SPL. > > Changes in v4: > - Mention the change to lower case in the commit message > - Put a 0x prefix on the 'enhanced size' message

Re: [PATCH 1/3] test/overlay: Make this depend on SANDBOX

2024-08-24 Thread Tom Rini
On Thu, 15 Aug 2024 21:49:03 -0600, Tom Rini wrote: > As the overlays are sandbox specific, mark the whole test as depending > on sandbox. > > Applied to u-boot/next, thanks! -- Tom

[PATCH] omap3: omap3evm: Migrate to OF_UPSTREAM

2024-08-24 Thread Derald D. Woods
This commit brings the omap3evm inline with the remaining OMAP3XXX variants. Signed-off-by: Derald D. Woods --- arch/arm/dts/Makefile | 4 - arch/arm/dts/omap3-evm-37xx.dts | 107 - arch/arm/dts/omap3-evm-common.dtsi| 198 --

[PATCH] rockchip: add SPI NOR flash support for Radxa E25(CM3I)

2024-08-24 Thread FUKAUMI Naoki
some SKU for CM3I SoM have a SPI NOR flash. this patch enables related configurations and changes devicetree. => sf probe SF: Detected w25q128fw with page size 256 Bytes, erase size 4 KiB, total 16 MiB Signed-off-by: FUKAUMI Naoki --- Changes in v2: - reword commit message --- arch/arm/dts/rk35

[PATCH v2] rockchip: add SPI NOR flash support for Radxa E25(CM3I)

2024-08-24 Thread FUKAUMI Naoki
some SKU for CM3I SoM have a SPI NOR flash. this patch enables related configurations and changes devicetree. => sf probe SF: Detected w25q128fw with page size 256 Bytes, erase size 4 KiB, total 16 MiB Signed-off-by: FUKAUMI Naoki --- Changes in v2: - reword commit message --- arch/arm/dts/rk35

Re: [PATCH] rockchip: add SPI NOR flash support for Radxa E25(CM3I)

2024-08-24 Thread FUKAUMI Naoki
sorry, please ignore this patch. https://patchwork.ozlabs.org/project/uboot/patch/20240824220847.98136-1-na...@radxa.com/ is right one. -- FUKAUMI Naoki Radxa Computer (Shenzhen) Co., Ltd. On 8/25/24 07:07, FUKAUMI Naoki wrote: some SKU for CM3I SoM have a SPI NOR flash. this patch enables rela

Re: [PATCH 1/2] configs: rockchip: enable gpio-leds driver for Radxa boards

2024-08-24 Thread FUKAUMI Naoki
sorry, please ignore this patch. https://patchwork.ozlabs.org/project/uboot/patch/20240808222325.2082-1-na...@radxa.com/ is right one. -- FUKAUMI Naoki Radxa Computer (Shenzhen) Co., Ltd. On 8/16/24 09:12, FUKAUMI Naoki wrote: Basically, Radxa's boards are intended to turn LEDs on at U-Boot. en

Re: [PATCH 2/2] arm: dts: rockchip: turn LEDs on at boot for Radxa boards

2024-08-24 Thread FUKAUMI Naoki
sorry, please ignore this patch. https://patchwork.ozlabs.org/project/uboot/patch/20240808222325.2082-2-na...@radxa.com/ is right one. -- FUKAUMI Naoki Radxa Computer (Shenzhen) Co., Ltd. On 8/16/24 09:12, FUKAUMI Naoki wrote: Basically, Radxa's boards are intended to turn LEDs on at U-Boot. ad

[PATCH v2 2/2] rockchip: add support for Radxa ROCK 5A with SPI NOR flash module

2024-08-24 Thread FUKAUMI Naoki
on Radxa ROCK 5A, sdhci(eMMC) and fspim0(SPI NOR flash) share pins (i.e. eMMC and SPI NOR flash are exclusive), new defconfig and dts specifically for SPI NOR flash is required. Signed-off-by: FUKAUMI Naoki --- Changes in v2 - fix subject --- arch/arm/dts/rk3588s-rock-5a-spi-u-boot.dtsi | 24 +++

[PATCH v2 1/2] arm64: dts: rockchip: add (but disabled) SFC node for Radxa ROCK 5A

2024-08-24 Thread FUKAUMI Naoki
This commit adds SFC node for Radxa ROCK 5A. since sdhci and sfc on RK3588s share pins(i.e. exclusive), it cannot be enabled both nodes at the same time. so status = "okay" is omitted here. you may be able to enable sfc (and disable sdhci) by fdt overlay. SPI NOR flash chip may vary, so use safe

Re: [PATCH 1/1] usb: gadget: ether: Disable USB pullup in eth probe

2024-08-24 Thread Marek Vasut
On 8/23/24 11:22 AM, Zixun LI wrote: On Fri, Aug 23, 2024 at 4:54 AM Marek Vasut wrote: I think udc_bind_to_driver() should not call usb_gadget_connect() , that connect should likely be called by at some later point. Yes it's more logical, to keep it in disconnected state you prefer modify c

Re: [PATCH 1/1] usb: gadget: ether: Disable USB pullup in eth probe

2024-08-24 Thread Marek Vasut
On 8/25/24 1:23 AM, Marek Vasut wrote: On 8/23/24 11:22 AM, Zixun LI wrote: On Fri, Aug 23, 2024 at 4:54 AM Marek Vasut wrote: I think udc_bind_to_driver() should not call usb_gadget_connect() , that connect should likely be called by at some later point. Yes it's more logical, to keep it i

Re: [PATCH] mtd: spi-nor: Clear Winbond SR3 WPS bit on boot

2024-08-24 Thread Marek Vasut
On 5/24/24 6:05 PM, Jagan Teki wrote: On Mon, Mar 4, 2024 at 9:46 PM Marek Vasut wrote: Some Winbond SPI NORs have special SR3 register which is used among other things to control whether non-standard "Individual Block/Sector Write Protection" (WPS bit) locking scheme is activated. This non-st

Re: [PULL MASTER] Pull request efi-2024-10-rc4

2024-08-24 Thread Tom Rini
On Sat, Aug 24, 2024 at 09:06:56PM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit a481740629af5e51732b86b6ead61dc5aa5a440d: > > Merge tag 'u-boot-dfu-20240822' of > https://source.denx.de/u-boot/custodians/u-boot-dfu (2024-08-22 08:14:48 > -0600) > > are