Re: [PATCH v2 08/14] net-lwip: add wget command

2024-06-06 Thread Maxim Uvarov
чт, 6 июн. 2024 г. в 12:56, Jerome Forissier : > > > > On 5/28/24 15:39, Maxim Uvarov wrote: > > пт, 24 мая 2024 г. в 19:22, Jerome Forissier : > >> > >> Add support for the wget command with NET_LWIP. > >> > >> About the small change in cmd/ef

Re: [PATCH v2 07/14] net-lwip: add dns command

2024-06-06 Thread Maxim Uvarov
break; > > + } > > + } while (get_timer(start) < DNS_TIMEOUT_MS); > > + sys_untimeout(do_dns_tmr, NULL); > > + } > > Looking at the lwip code there are other ret values than just ERR_OK, > ERR_INPROGRESS. Should we have an 'else' handling the rest? > +1 And check the return code of eth_rx(), that is int function and current code for some reason skips this check. BR, Maxim. > > + > > + if (done && host_ipaddr.addr != 0) > > + return CMD_RET_SUCCESS; > > + > > + return CMD_RET_FAILURE; > > +} > > + > > -- > > 2.40.1 > > > > Thanks > /Ilias -- Best regards, Maxim Uvarov

Re: [PATCH v2 12/14] test/py: net: add _lwip variants of dhcp, ping and tftpboot tests

2024-05-30 Thread Maxim Uvarov
чт, 30 мая 2024 г. в 17:11, Jerome Forissier : > > > > On 5/28/24 11:53, Maxim Uvarov wrote: > > пт, 24 мая 2024 г. в 19:22, Jerome Forissier : > >> > >> WHen NET_LWIP is enabled, the dhcp/ping/tftpboot commands are enabled > >> via CMD_DHCP_LWIP, CMD_

Re: [PATCH v2 08/14] net-lwip: add wget command

2024-05-28 Thread Maxim Uvarov
o parse it anyways (in parse_url()). > Therefore wget_validate_uri() doesn't exist. So, guard the call in > efidebug.c with CONFIG_CMD_WGET. > > Based on code initially developed by Maxim U. > > Signed-off-by: Jerome Forissier > Co-developed-by: Maxim Uvarov > Cc: Maxim

Re: [PATCH v2 12/14] test/py: net: add _lwip variants of dhcp, ping and tftpboot tests

2024-05-28 Thread Maxim Uvarov
t; output = u_boot_console.run_command('crc32 $fileaddr $filesize') > assert expected_crc in output > > +@pytest.mark.buildconfigspec("cmd_net_lwip") > +def test_net_tftpboot_lwip(u_boot_console): > +test_net_tftpboot(u_boot_console, True) > + > @pytest.mark.buildconfigspec('cmd_nfs') > def test_net_nfs(u_boot_console): > """Test the nfs command. > -- > 2.40.1 > -- Best regards, Maxim Uvarov

Re: [PATCH 10/15] test: dm: dsa, eth: disable tests when CONFIG_NET_LWIP=y

2024-05-24 Thread Maxim Uvarov
dm_test_ethaddr(struct unit_test_state > > > *uts) > > > } > > > DM_TEST(dm_test_ethaddr, UT_TESTF_SCAN_FDT); > > > > > > +#if !defined(CONFIG_NET_LWIP) > > > /* The asserts include a return on fail; cleanup in the caller */ > > > static int _dm_test_eth_rotate1(struct unit_test_state *uts) > > > { > > > @@ -616,6 +619,7 @@ static int dm_test_eth_async_ping_reply(struct > > > unit_test_state *uts) > > > } > > > > > > DM_TEST(dm_test_eth_async_ping_reply, UT_TESTF_SCAN_FDT); > > > +#endif /* !CONFIG_NET_LWIP */ > > > > > > #if IS_ENABLED(CONFIG_IPV6_ROUTER_DISCOVERY) > > > > > > -- > > > 2.40.1 > > > -- Best regards, Maxim Uvarov

Re: [PATHv11 00/43] net/lwip: add lwip library for the network stack

2024-01-08 Thread Maxim Uvarov
On Fri, 5 Jan 2024 at 02:46, Fabio Estevam wrote: > On Thu, Jan 4, 2024 at 12:02 PM Maxim Uvarov > wrote: > > > CI tests this in all qemu emulated boards. I tested it locally on > Raspberry Pi - works well. This version did not > > yet tested on imx8, but the previou

Re: [PATHv11 00/43] net/lwip: add lwip library for the network stack

2024-01-04 Thread Maxim Uvarov
On Wed, 3 Jan 2024 at 20:30, Fabio Estevam wrote: > Hi Maxim, > > On Tue, Jan 2, 2024 at 2:31 PM Maxim Uvarov > wrote: > > > > Small update here. I made changes without any board limit size changes. > > Reordered patches to make them compile in sequence. I think I

Re: [PATHv11 00/43] net/lwip: add lwip library for the network stack

2024-01-02 Thread Maxim Uvarov
trange how that related to lwip code, because the network works on much later stage then initial messages print. Thanks, Maxim. On Tue, 19 Dec 2023 at 16:12, Alexander Dahl wrote: > Hello Maxim, > > Am Mon, Nov 27, 2023 at 06:56:43PM +0600 schrieb Maxim Uvarov: > > Hello, > >

[PATHv3 8/8] Makefile: add dtbs to clean

2023-12-26 Thread Maxim Uvarov
CI test checks that generated dtb has to be cleaned up. Use the same clean procedure as Linux top level Makefile has. Signed-off-by: Maxim Uvarov --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 220411a293..b443831a93 100644 --- a/Makefile +++ b

[PATHv3 7/8] omap3: use device specific naming for mem_init

2023-12-26 Thread Maxim Uvarov
Use device specific naming for functions so as to not overlap with common function names. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini --- arch/arm/include/asm/arch-omap3/mem.h | 2 +- arch/arm/mach-omap2/omap3/board.c | 2 +- arch/arm/mach-omap2/omap3/emif4.c | 4 ++-- arch/arm

[PATHv3 6/8] bcm_ns3: use device specific naming for variables

2023-12-26 Thread Maxim Uvarov
Use device specific naming for variables so as to not overlap with common function names. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini Reviewed-by: Peter Robinson --- include/configs/bcm_ns3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs

[PATHv3 5/8] mach-socfpga: do not overlap defines with lwip

2023-12-26 Thread Maxim Uvarov
Fix compilation issue with overlapping lwip and march defines. Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- arch/arm/mach-socfpga/include/mach/handoff_soc64.h | 6 -- arch/arm/mach-socfpga/wrap_handoff_soc64.c | 9 + 2 files changed, 9 insertions(+), 6 deletions

[PATHv3 4/8] driver/net/rtl8139: remove debug print

2023-12-26 Thread Maxim Uvarov
\ -serial mon:stdio -net user,tftp=`pwd` \ -net nic,model=rtl8139 -kernel ./u-boot.bin Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- drivers/net/rtl8139.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c index 106bc1c7ae..

[PATHv3 3/8] sandbox: eth-raw-os: successful return code is 0

2023-12-26 Thread Maxim Uvarov
all network drivers return 0 on the successful transmission. Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- arch/sandbox/cpu/eth-raw-os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/eth-raw-os.c b/arch/sandbox/cpu/eth-raw-os.c index e59b96be5f

[PATHv3 2/8] net/smc911x: fix return from smc911x_send

2023-12-26 Thread Maxim Uvarov
return value of smc911x_send is ignored, but on sucesseful send we need return 0 and or error -ETIMEOUT, not opposite. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- drivers/net/smc911x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATHv3 1/8] test_net: print out net list

2023-12-26 Thread Maxim Uvarov
Printing net list is useful in CI log files. Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- test/py/tests/test_net.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py index b2241ae6a4..cd5b791a6a 100644 --- a/test/py/tests

[PATHv3 0/8] net fixes prior lwip

2023-12-26 Thread Maxim Uvarov
Add small net fixes prior lwip patches. v3: - some small review fixes. v2: - rebase on the top of master tree with descriptions fixes suggested in review comments. Maxim Uvarov (8): test_net: print out net list net/smc911x: fix return from smc911x_send sandbox: eth-raw-os: successful

Re: [PATHv2 9/9] Makefile: add dtbs to clean

2023-12-26 Thread Maxim Uvarov
On Tue, 26 Dec 2023 at 15:50, Simon Glass wrote: > Hi Maxim, > > On Mon, Dec 25, 2023 at 3:42 PM Maxim Uvarov > wrote: > > > > CI test checks that generated dtb has to be cleaned up. > > > > Signed-off-by: Maxim Uvarov > > --- > > Makefile

Re: [PATHv2 9/9] Makefile: add dtbs to clean

2023-12-26 Thread Maxim Uvarov
On Tue, 26 Dec 2023 at 20:26, Tom Rini wrote: > On Tue, Dec 26, 2023 at 06:27:58PM +0600, Maxim Uvarov wrote: > > On Tue, 26 Dec 2023 at 15:50, Simon Glass wrote: > > > > > Hi Maxim, > > > > > > On Mon, Dec 25, 2023 at 3:42 PM Maxim Uvarov &

Re: [PATHv2 2/9] net: sandbox: fix NULL pointer derefences

2023-12-26 Thread Maxim Uvarov
On Tue, 26 Dec 2023 at 12:25, Sean Anderson wrote: > On 12/26/23 01:18, Maxim Uvarov wrote: > > > > > > On Tue, 26 Dec 2023 at 04:43, Sean Anderson sean...@gmail.com>> wrote: > > > > On 12/25/23 10:39, Maxim Uvarov wrote: > >

Re: [PATHv2 8/9] omap3: use device specific naming for mem_init

2023-12-25 Thread Maxim Uvarov
On Tue, 26 Dec 2023 at 04:49, Sean Anderson wrote: > On 12/25/23 10:39, Maxim Uvarov wrote: > > Use device specific naming for functions so as to not overlap > > with common function names. > > > > Signed-off-by: Maxim Uvarov > > Reviewed-by: Tom Rini > &

Re: [PATHv2 2/9] net: sandbox: fix NULL pointer derefences

2023-12-25 Thread Maxim Uvarov
On Tue, 26 Dec 2023 at 04:43, Sean Anderson wrote: > On 12/25/23 10:39, Maxim Uvarov wrote: > > Add additional checks for NULL pointers. > > > > Signed-off-by: Maxim Uvarov > > --- > > drivers/net/sandbox.c | 3 +++ > > 1 file changed, 3 inserti

[PATHv2 9/9] Makefile: add dtbs to clean

2023-12-25 Thread Maxim Uvarov
CI test checks that generated dtb has to be cleaned up. Signed-off-by: Maxim Uvarov --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 220411a293..ab603191ad 100644 --- a/Makefile +++ b/Makefile @@ -2165,7 +2165,8 @@ CLEAN_FILES

[PATHv2 8/9] omap3: use device specific naming for mem_init

2023-12-25 Thread Maxim Uvarov
Use device specific naming for functions so as to not overlap with common function names. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini --- arch/arm/include/asm/arch-omap3/mem.h | 2 +- arch/arm/mach-omap2/omap3/board.c | 2 +- arch/arm/mach-omap2/omap3/emif4.c | 4 ++-- arch/arm

[PATHv2 7/9] bcm_ns3: use device specific naming for variables

2023-12-25 Thread Maxim Uvarov
Use device specific naming for variables so as to not overlap with common function names. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini Reviewed-by: Peter Robinson --- include/configs/bcm_ns3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs

[PATHv2 6/9] mach-socfpga: do not overlap defines with lwip

2023-12-25 Thread Maxim Uvarov
Fix compilation issue with overlapping lwip and march defines. Signed-off-by: Maxim Uvarov --- arch/arm/mach-socfpga/include/mach/handoff_soc64.h | 6 -- arch/arm/mach-socfpga/wrap_handoff_soc64.c | 9 + 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm

[PATHv2 5/9] driver/net/rtl8139: remove debug print

2023-12-25 Thread Maxim Uvarov
\ -serial mon:stdio -net user,tftp=`pwd` \ -net nic,model=rtl8139 -kernel ./u-boot.bin Signed-off-by: Maxim Uvarov --- drivers/net/rtl8139.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c index 106bc1c7ae..d8f24ec81a 100644 --- a/d

[PATHv2 4/9] sandbox: eth-raw-os: successful return code is 0

2023-12-25 Thread Maxim Uvarov
all network drivers return 0 on the successful transmission. Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- arch/sandbox/cpu/eth-raw-os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/eth-raw-os.c b/arch/sandbox/cpu/eth-raw-os.c index e59b96be5f

[PATHv2 3/9] net/smc911x: fix return from smc911x_send

2023-12-25 Thread Maxim Uvarov
return value of smc911x_send is ignored, but on sucesseful send we need return 0 and or error -ETIMEOUT, not opposite. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini --- drivers/net/smc911x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/smc911x.c b/drivers

[PATHv2 2/9] net: sandbox: fix NULL pointer derefences

2023-12-25 Thread Maxim Uvarov
Add additional checks for NULL pointers. Signed-off-by: Maxim Uvarov --- drivers/net/sandbox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c index 13022addb6..d91935e032 100644 --- a/drivers/net/sandbox.c +++ b/drivers/net/sandbox.c

[PATHv2 1/9] test_net: print out net list

2023-12-25 Thread Maxim Uvarov
Printing net list is useful in CI log files. Signed-off-by: Maxim Uvarov --- test/py/tests/test_net.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py index b2241ae6a4..cd5b791a6a 100644 --- a/test/py/tests/test_net.py +++ b/test/py

[PATHv2 0/9] net fixes prior lwip

2023-12-25 Thread Maxim Uvarov
Add small net fixes prior lwip patches. v2: - rebase on the top of master tree with descriptions fixes suggested in review comments. Maxim Uvarov (9): test_net: print out net list net: sandbox: fix NULL pointer derefences net/smc911x: fix return from smc911x_send sandbox: eth-raw

Re: [PATHv1 0/9] net fixes prior lwip

2023-12-18 Thread Maxim Uvarov
Hi, Do I need to resend this patchset with small comment message correction or it can be done on the apply? Thank you, Maxim. On Mon, 4 Dec 2023 at 18:06, Maxim Uvarov wrote: > Add small net fixes prior lwip patch. > > CI for this patch set: > > https://dev.azure.com/u-boo

Re: [PATHv11 26/43] configs/tbs2910_defconfig inc limit

2023-12-06 Thread Maxim Uvarov
On Wed, 6 Dec 2023 at 13:06, Soeren Moch wrote: > On 05.12.23 21:00, Maxim Uvarov wrote: > > On Wed, 6 Dec 2023 at 00:25, Soeren Moch wrote: > >> On 05.12.23 17:25, Maxim Uvarov wrote: >> >> On Tue, 5 Dec 2023 at 21:49, Soeren Moch wrote: >> >>> On

Re: [PATHv11 26/43] configs/tbs2910_defconfig inc limit

2023-12-05 Thread Maxim Uvarov
On Wed, 6 Dec 2023 at 00:25, Soeren Moch wrote: > > > On 05.12.23 17:25, Maxim Uvarov wrote: > > > > On Tue, 5 Dec 2023 at 21:49, Soeren Moch wrote: > >> On 05.12.23 14:15, Maxim Uvarov wrote: >> >> I think I solved the size issue on all the boards. &

Re: [PATHv11 26/43] configs/tbs2910_defconfig inc limit

2023-12-05 Thread Maxim Uvarov
On Tue, 5 Dec 2023 at 21:49, Soeren Moch wrote: > On 05.12.23 14:15, Maxim Uvarov wrote: > > I think I solved the size issue on all the boards. > > Key changes: > 1. remove compilation of original ping.c and tftp.c (tftp had also server > code, so I will partially bring it b

Re: [PATHv11 26/43] configs/tbs2910_defconfig inc limit

2023-12-05 Thread Maxim Uvarov
atrix U-Boot> " @@ -52,7 +54,7 @@ CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_CACHE=y -CONFIG_CMD_TIME=y +# CONFIG_CMD_DATE is not set CONFIG_CMD_SYSBOOT=y # CONFIG_CMD_VIDCONSOLE is not set CONFIG_CMD_EXT2=y BR, Maxim. On Tue, 28 Nov 2023 at 13:09, Maxim Uva

[PATHv1 9/9] Makefile: add dtbs to clean

2023-12-04 Thread Maxim Uvarov
CI test checks that generated dtb has to be cleaned up. Signed-off-by: Maxim Uvarov --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 08604ed3c7..8dd6990584 100644 --- a/Makefile +++ b/Makefile @@ -2165,7 +2165,8 @@ CLEAN_FILES

[PATHv1 8/9] omap3: rename mem_init

2023-12-04 Thread Maxim Uvarov
):(.text+0x0): first defined here +Image 'simple-bin' is missing external blobs and is non-functional: tee-os +/binman/simple-bin/fit/images/op-tee/tee-os (tee-os): Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini --- arch/arm/include/asm/arch-omap3/mem.h | 2 +- arch/arm/mach-omap2/omap3

[PATHv1 7/9] bcm_ns3: fix overlap define with lwip

2023-12-04 Thread Maxim Uvarov
ternal/src/include/lwip/opt.h:51, + from net/lwip/lwip-external/src/core/init.c:38: +include/configs/bcm_ns3.h:52: note: this is the location of the previous definition + 52 | #define ETH_ADDR Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini --- include/configs/bcm_ns3.h | 6

[PATHv1 6/9] mach-socfpga: do not overlap defines with lwip

2023-12-04 Thread Maxim Uvarov
Fix compilation issue with overlapping lwip and march defines. Signed-off-by: Maxim Uvarov --- arch/arm/mach-socfpga/include/mach/handoff_soc64.h | 6 -- arch/arm/mach-socfpga/wrap_handoff_soc64.c | 9 + 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm

[PATHv1 5/9] driver/net/rtl8139: remove debug print

2023-12-04 Thread Maxim Uvarov
\ -serial mon:stdio -net user,tftp=`pwd` \ -net nic,model=rtl8139 -kernel ./u-boot.bin Signed-off-by: Maxim Uvarov --- drivers/net/rtl8139.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c index 106bc1c7ae..d8f24ec81a 100644 --- a/d

[PATHv1 4/9] sandbox: eth-raw-os: successful return code is 0

2023-12-04 Thread Maxim Uvarov
all network drivers return 0 on the successful transmission. Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- arch/sandbox/cpu/eth-raw-os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/eth-raw-os.c b/arch/sandbox/cpu/eth-raw-os.c index e59b96be5f

[PATHv1 3/9] net/smc911x: fix return from smc911x_send

2023-12-04 Thread Maxim Uvarov
return value of smc911x_send is ignored, but on sucesseful send we need return 0 and or error -ETIMEOUT, not opposite. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini --- drivers/net/smc911x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/smc911x.c b/drivers

[PATHv1 2/9] net: sandbox: fix NULL pointer derefences

2023-12-04 Thread Maxim Uvarov
Add additional checks for NULL pointers. Signed-off-by: Maxim Uvarov --- drivers/net/sandbox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c index 13022addb6..d91935e032 100644 --- a/drivers/net/sandbox.c +++ b/drivers/net/sandbox.c

[PATHv1 1/9] test_net: print out net list

2023-12-04 Thread Maxim Uvarov
Printing net list is useful in CI log files. Signed-off-by: Maxim Uvarov --- test/py/tests/test_net.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py index b2241ae6a4..cd5b791a6a 100644 --- a/test/py/tests/test_net.py +++ b/test/py

[PATHv1 0/9] net fixes prior lwip

2023-12-04 Thread Maxim Uvarov
Add small net fixes prior lwip patch. CI for this patch set: https://dev.azure.com/u-boot/u-boot/_build/results?buildId=7460=results Maxim Uvarov (9): test_net: print out net list net: sandbox: fix NULL pointer derefences net/smc911x: fix return from smc911x_send sandbox: eth-raw-os

Re: [PATHv11 00/43] net/lwip: add lwip library for the network stack

2023-11-30 Thread Maxim Uvarov
On Thu, 30 Nov 2023 at 19:00, Fabio Estevam wrote: > Hi Maxim, > > On Thu, Nov 30, 2023 at 5:39 AM Maxim Uvarov > wrote: > > > If networking for some reason doesn't work on that board (I tested only > virtual board). Please try to compile with: > > Could you als

Re: [PATHv11 00/43] net/lwip: add lwip library for the network stack

2023-11-30 Thread Maxim Uvarov
v5: - fixed Iliases comments and split big patch on the small > > ones. > > v4: - tested with tests/py/ did some minor fixes (out of tree > > build, variables set after downloads). > > - accounted review comments for documentatio

Re: [PATHv11 00/43] net/lwip: add lwip library for the network stack

2023-11-30 Thread Maxim Uvarov
On Wed, 29 Nov 2023 at 06:16, Fabio Estevam wrote: > Hi Tim, > > On Tue, Nov 28, 2023 at 9:10 PM Tim Harvey wrote: > > > Fabio, > > > > You won't see this build issue with the entire series applied... only > > with the patches up to and including 'net/lwip: integrate lwIP > > library'. My point

Re: [PATHv11 07/43] net/lwip: implement wget cmd

2023-11-28 Thread Maxim Uvarov
. On Wed, 29 Nov 2023 at 02:43, Tom Rini wrote: > On Tue, Nov 28, 2023 at 12:41:44PM -0800, Tim Harvey wrote: > > On Tue, Nov 28, 2023 at 11:12 AM Fabio Estevam > wrote: > > > > > > Hi Maxim, > > > > > > On Tue, Nov 28, 2023 at 4:07 PM Maxim U

Re: [PATHv11 00/43] net/lwip: add lwip library for the network stack

2023-11-28 Thread Maxim Uvarov
On Tue, 28 Nov 2023 at 16:37, wrote: > Hi, > > On 27/11/2023 13:56, Maxim Uvarov wrote: > > Hello, > > > > Please find updated version of lwip patches. Changes are in the > > changelog bellow. > > I've ran it on the libretech-cc board, and tried to load g

Re: [PATHv11 06/43] net/lwip: implement tftp cmd

2023-11-28 Thread Maxim Uvarov
On Tue, 28 Nov 2023 at 22:34, wrote: > Hi Maxim, > > On 27/11/2023 13:56, Maxim Uvarov wrote: > > U-Boot recently got support for an alternative network stack using LWIP. > > Replace tftp command with the LWIP variant while keeping the output and > > error messages id

Re: [PATHv11 07/43] net/lwip: implement wget cmd

2023-11-28 Thread Maxim Uvarov
On Tue, 28 Nov 2023 at 17:32, Fabio Estevam wrote: > Hi Maxim, > > On Mon, Nov 27, 2023 at 5:46 PM Maxim Uvarov > wrote: > > > > U-Boot recently got support for an alternative network stack using LWIP. > > Replace wget command with the LWIP variant while ke

Re: [PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size

2023-11-28 Thread Maxim Uvarov
On Mon, 27 Nov 2023 at 22:31, Tom Rini wrote: > On Mon, Nov 27, 2023 at 03:52:50PM +, Peter Robinson wrote: > > On Mon, Nov 27, 2023 at 3:32 PM Maxim Uvarov > wrote: > > > > > > > > > > > > On Mon, 27 Nov 2023 at 20:08, Tom Rini wrote: > &

Re: [PATHv11 26/43] configs/tbs2910_defconfig inc limit

2023-11-27 Thread Maxim Uvarov
On Tue, 28 Nov 2023 at 03:20, Soeren Moch wrote: > On 27.11.23 14:11, Tom Rini wrote: > > On Mon, Nov 27, 2023 at 06:57:09PM +0600, Maxim Uvarov wrote: > > > >> Increase allowed binary size to fit lwip code. > >> > >> Signed-off-by: Maxim Uvarov >

Re: [PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size

2023-11-27 Thread Maxim Uvarov
On Mon, 27 Nov 2023 at 20:08, Tom Rini wrote: > On Mon, Nov 27, 2023 at 08:06:23PM +0600, Maxim Uvarov wrote: > > On Mon, 27 Nov 2023 at 19:08, Tom Rini wrote: > > > > > On Mon, Nov 27, 2023 at 06:57:16PM +0600, Maxim Uvarov wrote: > > > > > > >

Re: [PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size

2023-11-27 Thread Maxim Uvarov
On Mon, 27 Nov 2023 at 19:08, Tom Rini wrote: > On Mon, Nov 27, 2023 at 06:57:16PM +0600, Maxim Uvarov wrote: > > > Increase allowed binary size to fit lwip code. > > > > Signed-off-by: Maxim Uvarov > > --- > > configs/am335x_evm_defconfig | 1 + > > 1

[PATHv11 43/43] .gitlab-ci.yml: change ownership of the git files

2023-11-27 Thread Maxim Uvarov
Inside docker image owner of U-Boot files is different, so user doesn't have permissions to update submodules. Make the ower of git the same as current user. Signed-off-by: Maxim Uvarov --- .gitlab-ci.yml | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git

[PATHv11 42/43] configs/linkit-smart-7688_defconfig: increase board limit

2023-11-27 Thread Maxim Uvarov
Increase current board limit to fit new IP stack. mips: + linkit-smart-7688 +u-boot.img exceeds file size limit: + limit: 0x87000 bytes + actual: 0x87184 bytes + excess: 0x184 bytes Signed-off-by: Maxim Uvarov --- configs/linkit-smart-7688_defconfig | 2 +- 1 file changed, 1 insertion

[PATHv11 41/43] mach-mtmips: inc SPL size limit

2023-11-27 Thread Maxim Uvarov
Increase board limit on 0x200 to fit new IP stack. Signed-off-by: Maxim Uvarov --- arch/mips/mach-mtmips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/mach-mtmips/Kconfig b/arch/mips/mach-mtmips/Kconfig index 15b2792e61..2f07e3a491 100644 --- a/arch/mips

[PATHv11 40/43] .azure-pipelines: init submodules

2023-11-27 Thread Maxim Uvarov
Azure CI does make testconfig then passes U-Boot sources to docker image. Inside docker image owner of U-Boot files is different, so user doesn't have permissions to update submodules. In this case we can do init before we run test docker image. Signed-off-by: Maxim Uvarov --- .azure

[PATHv11 39/43] Makefile: add dtbs to clean

2023-11-27 Thread Maxim Uvarov
CI test checks that generated dtb has to be cleaned up. Signed-off-by: Maxim Uvarov --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 769111bf09..2fc04450c6 100644 --- a/Makefile +++ b/Makefile @@ -2172,7 +2172,8 @@ CLEAN_FILES

[PATHv11 38/43] configs/qemu-x86_64_defconfig: increase ROM size

2023-11-27 Thread Maxim Uvarov
CONFIG_X86_OFFSET_SPL to 0xfffe1000 from default 0xfffd8000 and all the code fits to 1MB rom image. But with modified CONFIG_X86_OFFSET_SPL qemu process does not boot. That is under investigation now. Signed-off-by: Maxim Uvarov --- configs/qemu-x86_64_defconfig | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATHv11 37/43] configs/rcar3_ulcb_defconfig: increase size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. u-boot.img exceeds file size limit: limit: 0x10 bytes actual: 0x106c41 bytes excess: 0x6c41 bytes Signed-off-by: Maxim Uvarov --- configs/rcar3_ulcb_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

[PATHv11 36/43] configs/gardena-smart-gateway-mt7688_defconfig: increase size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. limit: 0xa bytes actual: 0xa0f54 bytes excess: 0xf54 bytes Signed-off-by: Maxim Uvarov --- configs/gardena-smart-gateway-mt7688_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/gardena-smart-gateway

[PATHv11 35/43] configs/linkit-smart-7688_defconfig: increse size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. limit: 0x8 bytes actual: 0x84c58 bytes excess: 0x4c58 bytes Signed-off-by: Maxim Uvarov --- configs/linkit-smart-7688_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/linkit-smart-7688_defconfig b

[PATHv11 34/43] configs/bk4r1_defconfig: inc size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/bk4r1_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/bk4r1_defconfig b/configs/bk4r1_defconfig index 95f0c30cde..30ab54a849 100644 --- a/configs/bk4r1_defconfig +++ b

[PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/am335x_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig index f048e60f7f..9fd608bd76 100644 --- a/configs/am335x_evm_defconfig

[PATHv11 32/43] configs/lsxhl_defconfig: LTO + size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/lsxhl_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/lsxhl_defconfig b/configs/lsxhl_defconfig index d729bcb530..066f8b16b3 100644 --- a/configs/lsxhl_defconfig +++ b

[PATHv11 31/43] configs/lschlv2_defconfig: enable LTO and inc size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/lschlv2_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/lschlv2_defconfig b/configs/lschlv2_defconfig index d7c77f8a88..7e0c70c6ea 100644 --- a/configs

[PATHv11 29/43] configs/am335x_boneblack_vboot_defconfig: enable LTO and increase SPL size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/am335x_boneblack_vboot_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am335x_boneblack_vboot_defconfig b/configs/am335x_boneblack_vboot_defconfig index 531703010a..4f06ed1b76 100644

[PATHv11 30/43] configs/sheevaplug_defconfig: enable LTO and inc size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/sheevaplug_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/sheevaplug_defconfig b/configs/sheevaplug_defconfig index 2e4901b840..c0b256f3b0 100644 --- a/configs

[PATHv11 28/43] configs/turris_omnia_defconfig: enable LTO

2023-11-27 Thread Maxim Uvarov
Decrease allowed binary size to fit lwip code. u-boot-with-spl.kwb exceeds file size limit: limit: 0xf6000 bytes actual: 0xf8600 bytes excess: 0x2600 bytes Signed-off-by: Maxim Uvarov --- configs/turris_omnia_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

[PATHv11 27/43] configs/socfpga_secu1_defconfig: enable LTO

2023-11-27 Thread Maxim Uvarov
Decrease allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/socfpga_secu1_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_secu1_defconfig b/configs/socfpga_secu1_defconfig index b8052f1dee..4213941bcf 100644 --- a/configs

[PATHv11 26/43] configs/tbs2910_defconfig inc limit

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/tbs2910_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig index 8fbe84f1d2..ce40efa9ab 100644 --- a/configs/tbs2910_defconfig

[PATHv11 25/43] configs/turris_omnia_defconfig set limit to 0xf6000

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. 0xf -> 0xf6000 Signed-off-by: Maxim Uvarov --- configs/turris_omnia_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index 65d4a296e7..afcd4a1

[PATHv11 24/43] lwip: omap3: rename mem_init

2023-11-27 Thread Maxim Uvarov
defined here +Image 'simple-bin' is missing external blobs and is non-functional: tee-os +/binman/simple-bin/fit/images/op-tee/tee-os (tee-os): Signed-off-by: Maxim Uvarov --- arch/arm/include/asm/arch-omap3/mem.h | 2 +- arch/arm/mach-omap2/omap3/board.c | 2 +- arch/arm/mach-omap2/omap3/emif4

[PATHv11 23/43] rcar3_salvator-x_defconfig: increase binary size limit

2023-11-27 Thread Maxim Uvarov
aarch64: + rcar3_salvator-x u-boot.img exceeds file size limit: limit: 0x10 bytes actual: 0x106d6c bytes excess: 0x6d6c bytes Signed-off-by: Maxim Uvarov --- configs/rcar3_salvator-x_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs

[PATHv11 22/43] bcm_ns3: fix overlap define with lwip

2023-11-27 Thread Maxim Uvarov
ternal/src/include/lwip/opt.h:51, + from net/lwip/lwip-external/src/core/init.c:38: +include/configs/bcm_ns3.h:52: note: this is the location of the previous definition + 52 | #define ETH_ADDR Signed-off-by: Maxim Uvarov --- include/configs/bcm_ns3.h | 6 +++--- 1 file changed, 3

[PATHv11 21/43] mach-socfpga: do not overlap defines with lwip

2023-11-27 Thread Maxim Uvarov
Fix compilation issue with overlapping lwip and march defines. Signed-off-by: Maxim Uvarov --- arch/arm/mach-socfpga/include/mach/handoff_soc64.h | 6 -- arch/arm/mach-socfpga/wrap_handoff_soc64.c | 9 + 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm

[PATHv11 20/43] driver/net/rtl8139: remove debug print

2023-11-27 Thread Maxim Uvarov
\ -serial mon:stdio -net user,tftp=`pwd` \ -net nic,model=rtl8139 -kernel ./u-boot.bin Signed-off-by: Maxim Uvarov --- drivers/net/rtl8139.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c index 106bc1c7ae..6003b88274 100644 --- a/drivers/net/rtl8139.c +++

[PATHv11 19/43] sandbox: eth-raw-os: successful return code is 0

2023-11-27 Thread Maxim Uvarov
all network drivers return 0 on the successful transmission. Signed-off-by: Maxim Uvarov --- arch/sandbox/cpu/eth-raw-os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/eth-raw-os.c b/arch/sandbox/cpu/eth-raw-os.c index e59b96be5f..92c35aed95 100644

[PATHv11 18/43] net/smc911x: fix return from smc911x_send

2023-11-27 Thread Maxim Uvarov
return value of smc911x_send is ignored, but on sucesseful send we need return 0 and or error -ETIMEOUT, not opposite. Signed-off-by: Maxim Uvarov --- drivers/net/smc911x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index

[PATHv11 16/43] test_net: print out net list

2023-11-27 Thread Maxim Uvarov
Printing net list is useful in CI log files. Signed-off-by: Maxim Uvarov --- test/py/tests/test_net.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py index b2241ae6a4..cd5b791a6a 100644 --- a/test/py/tests/test_net.py +++ b/test/py

[PATHv11 17/43] net: sandbox: fix NULL pointer derefences

2023-11-27 Thread Maxim Uvarov
Add additional checks for NULL pointers. Signed-off-by: Maxim Uvarov --- drivers/net/sandbox.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c index 13022addb6..75d32db3a9 100644 --- a/drivers/net/sandbox.c +++ b/drivers/net/sandbox.c

[PATHv11 15/43] test_efi_loader.py: use $filesize var

2023-11-27 Thread Maxim Uvarov
bootefi code relays in internal variable then to filesize environment. lwip tftp do not update this variable. For not I update test to provide correct size. Signed-off-by: Maxim Uvarov --- test/py/tests/test_efi_loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATHv11 14/43] net/lwip: split net.h to net.h, arp.h and eth.h

2023-11-27 Thread Maxim Uvarov
current net.h has ethernet and protocol definitions. Protocol definitions overlap with lwIP protocol definitions and net.h can not be included from lwIP code. Splitting on logical blocks makes that work. Signed-off-by: Maxim Uvarov --- include/net.h | 189

[PATHv11 13/43] net/lwip: replace original net commands with lwip

2023-11-27 Thread Maxim Uvarov
Replace original commands: ping, tftp, dhcp and wget. Signed-off-by: Maxim Uvarov --- boot/bootmeth_efi.c | 18 +++--- boot/bootmeth_pxe.c | 21 ++- cmd/net.c | 86 + cmd/pxe.c | 19 +- include/net.h | 8

[PATHv11 12/43] net/lwip: connection between cmd and lwip apps

2023-11-27 Thread Maxim Uvarov
Use lwip variants of network commands. Signed-off-by: Maxim Uvarov --- cmd/Makefile | 1 + cmd/net-lwip.c | 307 + 2 files changed, 308 insertions(+) create mode 100644 cmd/net-lwip.c diff --git a/cmd/Makefile b/cmd/Makefile index 9a6790cc17

[PATHv11 11/43] net/lwip: update .gitignore with lwIP

2023-11-27 Thread Maxim Uvarov
ignore lwIP library code and reused files from the lwIP. Signed-off-by: Maxim Uvarov --- net/lwip/.gitignore | 8 1 file changed, 8 insertions(+) create mode 100644 net/lwip/.gitignore diff --git a/net/lwip/.gitignore b/net/lwip/.gitignore new file mode 100644 index 00

[PATHv11 10/43] net/lwip: implement lwIP port to U-Boot

2023-11-27 Thread Maxim Uvarov
us to have such applications as http or https clients. Signed-off-by: Maxim Uvarov --- lib/Kconfig | 2 +- net/eth-uclass.c | 37 ++- net/lwip/Kconfig | 1 + net/lwip/port/if.c| 327 +

[PATHv11 09/43] net/lwip: add lwIP configuration

2023-11-27 Thread Maxim Uvarov
lwip configuration can be tuned with header file. Signed-off-by: Maxim Uvarov --- net/lwip/lwipopts.h | 178 1 file changed, 178 insertions(+) create mode 100644 net/lwip/lwipopts.h diff --git a/net/lwip/lwipopts.h b/net/lwip/lwipopts.h new file

[PATHv11 08/43] net/lwip: implement ping cmd

2023-11-27 Thread Maxim Uvarov
-off-by: Maxim Uvarov --- Makefile | 3 ++- include/net/lwip.h | 15 + net/lwip/Makefile | 1 + net/lwip/apps/ping/Makefile| 12 +++ net/lwip/apps/ping/lwip_ping.c | 39 ++ net/lwip/apps/ping

[PATHv11 07/43] net/lwip: implement wget cmd

2023-11-27 Thread Maxim Uvarov
U-Boot recently got support for an alternative network stack using LWIP. Replace wget command with the LWIP variant while keeping the output and error messages identical. Signed-off-by: Maxim Uvarov --- include/net/lwip.h | 14 + net/lwip/Makefile | 1 + net/lwip

[PATHv11 06/43] net/lwip: implement tftp cmd

2023-11-27 Thread Maxim Uvarov
U-Boot recently got support for an alternative network stack using LWIP. Replace tftp command with the LWIP variant while keeping the output and error messages identical. Signed-off-by: Maxim Uvarov --- include/net/lwip.h | 13 net/lwip/Makefile | 1 + net/lwip

[PATHv11 05/43] net/lwip: implement dhcp cmd

2023-11-27 Thread Maxim Uvarov
U-Boot recently got support for an alternative network stack using LWIP. Replace dhcp command with the LWIP variant while keeping the output and error messages identical. Signed-off-by: Maxim Uvarov --- include/net/lwip.h | 12 + net/lwip/Makefile | 1 + net/lwip

[PATHv11 04/43] net/lwip: implement dns cmd

2023-11-27 Thread Maxim Uvarov
U-Boot recently got support for an alternative network stack using LWIP. Replace dns command with the LWIP variant while keeping the output and error messages identical. Signed-off-by: Maxim Uvarov --- include/net/lwip.h | 19 +++ net/lwip/Makefile| 2 ++ net/lwip

[PATHv11 03/43] net/lwip: integrate lwIP library

2023-11-27 Thread Maxim Uvarov
-off-by: Maxim Uvarov --- net/Kconfig| 3 ++ net/Makefile | 1 + net/lwip/Kconfig | 33 ++ net/lwip/Makefile | 64 ++ net/lwip/lwip-external | 2 +- net/net.c | 44

  1   2   3   >