From: Maxim Uvarov <maxim.uvarov@linaro.org>
To: u-boot@lists.denx.de
Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org,
joe.hershberger@ni.com, rfried.dev@gmail.com, trini@konsulko.com,
goldsimon@gmx.de, Maxim Uvarov <maxim.uvarov@linaro.org>
Subject: [PATCHv10 00/15] net/lwip: add lwip library for the network stack
Date: Tue, 26 Sep 2023 15:41:09 +0600 [thread overview]
Message-ID: <20230926094124.7024-1-maxim.uvarov@linaro.org> (raw)
changelog:
v10: - fix ping with following tftp command issue with incorrect
ping timeout clear.
- Makefile on make will init submodules and if needed will
do git clone.
- wget - some minor code style changes.
v9: - added first patch describing git submodule for lwip. So
the build procedure is:
git submodule init
git submodule update
make
- reworked a little bit dhcp cmd state polling
- fixed review comments for v8
v8: - comments for previous review
- removed lwip timeout callback pointer
- made lwip timeouts works, that also allowed to remove
static vars.
- setenv for filesize tftp and wget has to be in hex.
- Makefile changes always compile it tftp,dns,wget,ping due
to it can be used not only by CONFIG_CMD_.
- Kconfig changes - simplify lwIP settings and support only
one configuration.
- tested with mini debian.iso load over http or tftp, mount
and boot it (qemu, arm64).
v7: - more review fixes.
- support of multiply eth devices, were "ethact" selects the
active device.
v6: - fixed review comments for v5 (thanks Ilias and Simon).
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 documentation.
- implemented dns command
- corrected wget command to not use serverip variable and use just
url string.
v3: - use lwip commands for ping,tftp,wget,dhcp if this patch
applied. Drop CONFIG_LIB_LWIP_REPLACE_<COMMAND> option.
- docs: use rst variant and drop references to RFC.
Maxim Uvarov (15):
submodule: add lwIP as git submodule
Makefile: init submodules
net/lwip: add doc/develop/net_lwip.rst
net/lwip: integrate lwIP library
net/lwip: implement dns cmd
net/lwip: implement dhcp cmd
net/lwip: implement tftp cmd
net/lwip: implement wget cmd
net/lwip: implement ping cmd
net/lwip: add lwIP configuration
net/lwip: implement lwIP port to U-Boot
net/lwip: update .gitignore with lwIP
net/lwip: connection between cmd and lwip apps
net/lwip: replace original net commands with lwip
net/lwip: split net.h to net.h, arp.h and eth.h
.gitmodules | 3 +
Makefile | 5 +-
boot/bootmeth_efi.c | 18 +-
boot/bootmeth_pxe.c | 21 +-
cmd/Makefile | 1 +
cmd/net-lwip.c | 286 ++++++++++++++++++++++
cmd/net.c | 86 +------
cmd/pxe.c | 19 +-
doc/develop/index.rst | 1 +
doc/develop/net_lwip.rst | 75 ++++++
include/net.h | 197 +--------------
include/net/arp.h | 7 +
include/net/eth.h | 190 +++++++++++++++
include/net/lwip.h | 73 ++++++
include/net/ulwip.h | 64 +++++
net/Kconfig | 3 +
net/Makefile | 1 +
net/eth-uclass.c | 8 +
net/lwip/.gitignore | 8 +
net/lwip/Kconfig | 25 ++
net/lwip/Makefile | 70 ++++++
net/lwip/apps/dhcp/lwip-dhcp.c | 85 +++++++
net/lwip/apps/dns/lwip-dns.c | 63 +++++
net/lwip/apps/http/Makefile | 6 +
net/lwip/apps/http/lwip-wget.c | 105 ++++++++
net/lwip/apps/ping/Makefile | 12 +
net/lwip/apps/ping/lwip_ping.c | 39 +++
net/lwip/apps/ping/lwip_ping.h | 15 ++
net/lwip/apps/ping/ping.h | 27 +++
net/lwip/apps/tftp/Makefile | 7 +
net/lwip/apps/tftp/lwip-tftp.c | 129 ++++++++++
net/lwip/lwip-external | 1 +
net/lwip/lwipopts.h | 178 ++++++++++++++
net/lwip/port/if.c | 332 ++++++++++++++++++++++++++
net/lwip/port/include/arch/cc.h | 38 +++
net/lwip/port/include/arch/sys_arch.h | 10 +
net/lwip/port/include/limits.h | 0
net/lwip/port/sys-arch.c | 13 +
net/net.c | 20 +-
39 files changed, 1951 insertions(+), 290 deletions(-)
create mode 100644 .gitmodules
create mode 100644 cmd/net-lwip.c
create mode 100644 doc/develop/net_lwip.rst
create mode 100644 include/net/arp.h
create mode 100644 include/net/eth.h
create mode 100644 include/net/lwip.h
create mode 100644 include/net/ulwip.h
create mode 100644 net/lwip/.gitignore
create mode 100644 net/lwip/Kconfig
create mode 100644 net/lwip/Makefile
create mode 100644 net/lwip/apps/dhcp/lwip-dhcp.c
create mode 100644 net/lwip/apps/dns/lwip-dns.c
create mode 100644 net/lwip/apps/http/Makefile
create mode 100644 net/lwip/apps/http/lwip-wget.c
create mode 100644 net/lwip/apps/ping/Makefile
create mode 100644 net/lwip/apps/ping/lwip_ping.c
create mode 100644 net/lwip/apps/ping/lwip_ping.h
create mode 100644 net/lwip/apps/ping/ping.h
create mode 100644 net/lwip/apps/tftp/Makefile
create mode 100644 net/lwip/apps/tftp/lwip-tftp.c
create mode 160000 net/lwip/lwip-external
create mode 100644 net/lwip/lwipopts.h
create mode 100644 net/lwip/port/if.c
create mode 100644 net/lwip/port/include/arch/cc.h
create mode 100644 net/lwip/port/include/arch/sys_arch.h
create mode 100644 net/lwip/port/include/limits.h
create mode 100644 net/lwip/port/sys-arch.c
--
2.30.2
next reply other threads:[~2023-09-26 9:43 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 9:41 Maxim Uvarov [this message]
2023-09-26 9:41 ` [PATCHv10 01/15] submodule: add lwIP as git submodule Maxim Uvarov
2023-09-26 11:37 ` Simon Glass
2023-09-26 13:41 ` Tom Rini
2023-09-26 14:16 ` Simon Glass
2023-09-26 14:19 ` Tom Rini
2023-10-02 6:34 ` Maxim Uvarov
2023-10-02 11:23 ` Maxim Uvarov
2023-10-02 14:46 ` Simon Glass
2023-10-04 7:52 ` Maxim Uvarov
2023-10-04 16:02 ` Tom Rini
2023-10-04 16:06 ` Simon Glass
2023-09-26 9:41 ` [PATCHv10 02/15] Makefile: init submodules Maxim Uvarov
2023-09-26 9:41 ` [PATCHv10 03/15] net/lwip: add doc/develop/net_lwip.rst Maxim Uvarov
2023-09-26 9:41 ` [PATCHv10 04/15] net/lwip: integrate lwIP library Maxim Uvarov
2023-09-26 9:41 ` [PATCHv10 05/15] net/lwip: implement dns cmd Maxim Uvarov
2023-09-26 9:41 ` [PATCHv10 06/15] net/lwip: implement dhcp cmd Maxim Uvarov
2023-10-02 1:17 ` Simon Glass
2023-09-26 9:41 ` [PATCHv10 07/15] net/lwip: implement tftp cmd Maxim Uvarov
2023-09-26 9:41 ` [PATCHv10 08/15] net/lwip: implement wget cmd Maxim Uvarov
2023-10-02 1:17 ` Simon Glass
2023-09-26 9:41 ` [PATCHv10 09/15] net/lwip: implement ping cmd Maxim Uvarov
2023-09-26 9:41 ` [PATCHv10 10/15] net/lwip: add lwIP configuration Maxim Uvarov
2023-10-02 1:17 ` Simon Glass
2023-09-26 9:41 ` [PATCHv10 11/15] net/lwip: implement lwIP port to U-Boot Maxim Uvarov
2023-09-26 9:41 ` [PATCHv10 12/15] net/lwip: update .gitignore with lwIP Maxim Uvarov
2023-10-02 1:17 ` Simon Glass
2023-09-26 9:41 ` [PATCHv10 13/15] net/lwip: connection between cmd and lwip apps Maxim Uvarov
2023-10-02 1:17 ` Simon Glass
2023-09-26 9:41 ` [PATCHv10 14/15] net/lwip: replace original net commands with lwip Maxim Uvarov
2023-10-02 1:17 ` Simon Glass
2023-10-03 17:58 ` Sean Edmond
2023-10-03 21:58 ` Peter Robinson
2023-10-03 23:44 ` Sean Edmond
2023-10-04 2:11 ` Simon Glass
2023-10-04 8:29 ` Maxim Uvarov
2023-10-04 20:14 ` Simon Goldschmidt
2023-09-26 9:41 ` [PATCHv10 15/15] net/lwip: split net.h to net.h, arp.h and eth.h Maxim Uvarov
2023-10-02 1:17 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230926094124.7024-1-maxim.uvarov@linaro.org \
--to=maxim.uvarov@linaro.org \
--cc=goldsimon@gmx.de \
--cc=ilias.apalodimas@linaro.org \
--cc=joe.hershberger@ni.com \
--cc=pbrobinson@gmail.com \
--cc=rfried.dev@gmail.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).