U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Jerome Forissier <jerome.forissier@linaro.org>
Cc: u-boot@lists.denx.de,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Javier Tia <javier.tia@linaro.org>,
	Raymond Mao <raymond.mao@linaro.org>,
	Maxim Uvarov <muvarov@gmail.com>,
	Tim Harvey <tharvey@gateworks.com>
Subject: Re: [PATCH v8 00/23] Introduce the lwIP network stack
Date: Fri, 9 Aug 2024 13:46:02 -0600	[thread overview]
Message-ID: <20240809194602.GX1626301@bill-the-cat> (raw)
In-Reply-To: <44d9347a-974c-41b3-a6d8-00f4d1b86adb@linaro.org>

[-- Attachment #1: Type: text/plain, Size: 6816 bytes --]

On Fri, Aug 09, 2024 at 03:19:02PM +0200, Jerome Forissier wrote:
> 
> 
> On 8/8/24 19:24, Tom Rini wrote:
> > On Thu, Aug 08, 2024 at 06:41:02PM +0200, Jerome Forissier wrote:
> >>
> >>
> >> On 8/7/24 22:44, Tom Rini wrote:
> >>> On Wed, Aug 07, 2024 at 07:11:44PM +0200, Jerome Forissier wrote:
> >>>
> >>>> This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip
> >>>> library for the network stack" [1]. The goal is to introduce the lwIP TCP/IP
> >>>> stack [2] [3] as an alternative to the current implementation in net/,
> >>>> selectable with Kconfig, and ultimately keep only lwIP if possible. Some
> >>>> reasons for doing so are:
> >>>> - Make the support of HTTPS in the wget command easier. Javier T. and
> >>>> Raymond M. (CC'd) have some additional lwIP and Mbed TLS patches to do
> >>>> so. With that it becomes possible to fetch and launch a distro installer
> >>>> such as Debian etc. using a secure, authenticated connection directly
> >>>> from the U-Boot shell. Several use cases:
> >>>>   * Authentication: prevent MITM attack (third party replacing the
> >>>> binary with a different one)
> >>>>   * Confidentiality: prevent third parties from grabbing a copy of the
> >>>> image as it is being downloaded
> >>>>   * Allow connection to servers that do not support plain HTTP anymore
> >>>> (this is becoming more and more common on the Internet these days)
> >>>> - Possibly benefit from additional features implemented in lwIP
> >>>> - Less code to maintain in U-Boot
> >>>>
> >>>> Prior to applying this series, the lwIP stack needs to be added as a
> >>>> Git subtree with the following command:
> >>>>
> >>>>  $  git subtree add --squash --prefix lib/lwip/lwip https://git.savannah.gnu.org/git/lwip.git STABLE-2_2_0_RELEASE
> >>>
> >>> For v9, I think it would be good to do a CI run with NET_LWIP default
> >>> and seeing what fails from that too. There's a few problems still
> >>> leading to a lot of failures, in that case. Thanks.
> >>
> >> I pushed my branch to GitHub [1] and there's a failure in the
> >> tools_only_macOS job [2]. Any idea what is going on? I tried twice and
> >> it failed twice :-/
> >> Om my Linux machine, "make tools-only_config tools-only" works
> >> fine.
> >>
> >> [1] https://github.com/u-boot/u-boot/pull/635
> >> [2] https://dev.azure.com/u-boot/u-boot/_build/results?buildId=9105&view=results
> > 
> > Alright so from [2] going to the job and then downloading the raw log (it's
> > huge, firefox gets mad for me), scrolling down until it's not the git clone we
> > see:
> > 2024-08-08T14:36:30.0865130Z   HOSTCC  scripts/basic/fixdep
> > 2024-08-08T14:36:30.8641660Z   HOSTCC  scripts/kconfig/conf.o
> > 2024-08-08T14:36:30.9645180Z   LEX     scripts/kconfig/zconf.lex.c
> > 2024-08-08T14:36:31.0545650Z   YACC    scripts/kconfig/zconf.tab.c
> > 2024-08-08T14:36:33.2374910Z   HOSTCC  scripts/kconfig/zconf.tab.o
> > 2024-08-08T14:36:34.9997050Z   HOSTLD  scripts/kconfig/conf
> > 2024-08-08T14:36:36.5552790Z generated_defconfig:7:warning: unexpected data:  # CONFIG_SANDBOX_
> > SDL is not set
> > 2024-08-08T14:36:36.5666380Z generated_defconfig:12:warning: unexpected data:  # CONFIG_BOOTSTD
> > _FULL is not set
> > 2024-08-08T14:36:36.5724560Z generated_defconfig:13:warning: unexpected data:  # CONFIG_BOOTMET
> > H_CROS is not set
> > 2024-08-08T14:36:36.5742720Z generated_defconfig:14:warning: unexpected data:  # CONFIG_BOOTMET
> > H_VBE is not set
> > 2024-08-08T14:36:36.5752700Z generated_defconfig:17:warning: unexpected data:  # CONFIG_CMD_BOO
> > TD is not set
> > 2024-08-08T14:36:36.5772400Z generated_defconfig:18:warning: unexpected data:  # CONFIG_CMD_BOO
> > TM is not set
> > 2024-08-08T14:36:36.5788060Z generated_defconfig:19:warning: unexpected data:  # CONFIG_CMD_BOO
> > TI is not set
> > 2024-08-08T14:36:36.5792360Z generated_defconfig:20:warning: unexpected data:  # CONFIG_CMD_ELF
> >  is not set
> > 2024-08-08T14:36:36.5828400Z generated_defconfig:21:warning: unexpected data:  # CONFIG_CMD_EXTENSION is not set
> > 2024-08-08T14:36:36.5840470Z generated_defconfig:22:warning: unexpected data:  # CONFIG_CMD_DAT
> > E is not set
> > 2024-08-08T14:36:36.5938540Z generated_defconfig:26:warning: unexpected data:  # CONFIG_ACPIGEN
> >  is not set
> > 2024-08-08T14:36:36.5974000Z generated_defconfig:35:warning: unexpected data:  # CONFIG_VIRTIO_MMIO is not set
> > 2024-08-08T14:36:36.5985430Z generated_defconfig:36:warning: unexpected data:  # CONFIG_VIRTIO_PCI is not set
> > 2024-08-08T14:36:36.6045140Z generated_defconfig:37:warning: unexpected data:  # CONFIG_VIRTIO_SANDBOX is not set
> > 2024-08-08T14:36:36.6053060Z generated_defconfig:38:warning: unexpected data:  # CONFIG_GENERATE_ACPI_TABLE is not set
> > 2024-08-08T14:36:36.6068760Z generated_defconfig:39:warning: unexpected data:  # CONFIG_EFI_LOADER is not set
> > 2024-08-08T14:36:36.6088140Z #
> > 2024-08-08T14:36:36.6121560Z # configuration written to .config
> > 2024-08-08T14:36:36.6130190Z #
> > 2024-08-08T14:36:42.5830900Z scripts/kconfig/conf  --syncconfig Kconfig
> > 2024-08-08T14:36:43.9105630Z .config:284:warning: symbol value '' invalid for AVB_BUF_ADDR
> > 2024-08-08T14:36:43.9121120Z .config:285:warning: symbol value '' invalid for AVB_BUF_SIZE
> > 2024-08-08T14:36:43.9142940Z *
> > 2024-08-08T14:36:43.9172380Z * Restart config...
> > 2024-08-08T14:36:43.9257450Z *
> > 2024-08-08T14:36:43.9288610Z *
> > 2024-08-08T14:36:43.9332910Z * Security support
> > 2024-08-08T14:36:43.9366750Z *
> > 2024-08-08T14:36:43.9399770Z Build Android Verified Boot operations (AVB_VERIFY) [Y/n/?] y
> > 2024-08-08T15:35:07.9280210Z ##[error]The Operation will be canceled. The next steps may not contain expected logs.
> > 
> > And indeed, most of that is "normal" if we look at a current build for
> > tools-only on macOS. We're being hit by the fact that the host CC isn't
> > gcc and is llvm and https://github.com/llvm/llvm-project/issues/78778
> > applies, I believe. Now how do we work around this? Hum...
> 
> That's an "interesting" bug...
>  
> > If you go an change "# CONFIG_FOO is not set" to CONFIG_FOO=n in
> > configs/tools-only_defconfig, I assume your build moves on?
> 
> Yep, it does.

OK, good.

> > This is
> > valid syntax and fixing a more generic issue we have on macOS today.
> 
> I am adding a new patch to v9: "configs: use syntax CONFIG_FOO=n in
> tools-only_defconfig". It means one extra step when syncing the
> defconfigs though... It is just a simple sed command but perhaps you
> have a better idea?

This should be fine, there's already a number of configs I have to
un-sync when I do a re-sync.

> Thanks again for testing and for your help,

You're welcome.

Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2024-08-09 19:46 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-07 17:11 [PATCH v8 00/23] Introduce the lwIP network stack Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 01/23] flash: prefix error codes with FL_ Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 02/23] net: wget: removed unused function wget_success() Jerome Forissier
2024-08-09 10:50   ` Ilias Apalodimas
2024-08-07 17:11 ` [PATCH v8 03/23] net: wget: allow EFI boot Jerome Forissier
2024-08-09 10:53   ` Ilias Apalodimas
2024-08-09 12:38     ` Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 04/23] net: introduce alternative implementation as net-lwip/ Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 05/23] configs: replace '# CONFIG_NET is not set' with CONFIG_NO_NET=y Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 06/23] net: fec_mxc_init(): do not ignore return status of fec_open() Jerome Forissier
2024-08-07 18:05   ` Fabio Estevam
2024-08-08 13:01     ` Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 07/23] net: split include/net.h into net{, -common, -legacy, -lwip}.h Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 08/23] net: eth-uclass: add function eth_start_udev() Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 09/23] net-lwip: build lwIP Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 10/23] net-lwip: add DHCP support and dhcp commmand Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 11/23] net-lwip: add TFTP support and tftpboot command Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 12/23] net-lwip: add ping command Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 13/23] net-lwip: add dns command Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 14/23] net: split cmd/net.c into cmd/net.c and cmd/net-common.c Jerome Forissier
2024-08-07 17:11 ` [PATCH v8 15/23] net-lwip: add wget command Jerome Forissier
2024-08-07 17:12 ` [PATCH v8 16/23] net-lwip: lwIP wget supports user defined port in the uri, so allow it Jerome Forissier
2024-08-07 17:12 ` [PATCH v8 17/23] cmd: bdinfo: enable -e when CONFIG_CMD_NET_LWIP=y Jerome Forissier
2024-08-07 17:12 ` [PATCH v8 18/23] configs: add qemu_arm64_lwip_defconfig Jerome Forissier
2024-08-07 17:12 ` [PATCH v8 19/23] lwip: tftp: add support of blksize option to client Jerome Forissier
2024-08-07 17:12 ` [PATCH v8 20/23] net-lwip: add TFTP_BLOCKSIZE Jerome Forissier
2024-08-07 17:12 ` [PATCH v8 21/23] CI: add qemu_arm64_lwip to the test matrix Jerome Forissier
2024-08-07 17:12 ` [PATCH v8 22/23] test/py: add HTTP (wget) test for the EFI loader Jerome Forissier
2024-08-07 17:52   ` Tom Rini
2024-08-08 13:15     ` Jerome Forissier
2024-08-07 17:57   ` Tom Rini
2024-08-08 13:06     ` Jerome Forissier
2024-08-08 15:52       ` Tom Rini
2024-08-08 16:10         ` Jerome Forissier
2024-08-08 16:20       ` Tom Rini
2024-08-08 16:30         ` Jerome Forissier
2024-08-07 17:12 ` [PATCH v8 23/23] MAINTAINERS: net-lwip: add myself as a maintainer Jerome Forissier
2024-08-07 20:44 ` [PATCH v8 00/23] Introduce the lwIP network stack Tom Rini
2024-08-08 16:41   ` Jerome Forissier
2024-08-08 17:24     ` Tom Rini
2024-08-09 13:19       ` Jerome Forissier
2024-08-09 19:46         ` Tom Rini [this message]
2024-08-16 16:21   ` Jerome Forissier
2024-08-16 18:40     ` Tom Rini
2024-08-19 14:53       ` Jerome Forissier
2024-08-19 22:08         ` Tom Rini
2024-08-21  9:04           ` Jerome Forissier

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=20240809194602.GX1626301@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=javier.tia@linaro.org \
    --cc=jerome.forissier@linaro.org \
    --cc=muvarov@gmail.com \
    --cc=raymond.mao@linaro.org \
    --cc=tharvey@gateworks.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