* [PATCH] net: Kconfig: Select DM_RNG for LWIP
@ 2025-02-03 15:03 Michal Simek
2025-02-03 15:13 ` Ilias Apalodimas
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Michal Simek @ 2025-02-03 15:03 UTC (permalink / raw)
To: u-boot, git
Cc: Adriano Cordova, Anand Moon, Ilias Apalodimas, Jerome Forissier,
Joe Hershberger, Marek Vasut, Ramon Fried, Tom Rini
LWIP wget.c/mbedtls_hardware_poll() is calling dm_rng_read() but dependency
is not recorded anywhere that's why select DM_RNG when LWIP stack i used.
Signed-off-by: Michal Simek <michal.simek@amd.com>
---
net/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/Kconfig b/net/Kconfig
index 24508026200d..6c684624fd6f 100644
--- a/net/Kconfig
+++ b/net/Kconfig
@@ -249,6 +249,7 @@ config WGET
select PROT_TCP if NET
select PROT_TCP_LWIP if NET_LWIP
select PROT_DNS_LWIP if NET_LWIP
+ select DM_RNG if NET_LWIP
help
Selecting this will enable wget, an interface to send HTTP requests
via the network stack.
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] net: Kconfig: Select DM_RNG for LWIP
2025-02-03 15:03 [PATCH] net: Kconfig: Select DM_RNG for LWIP Michal Simek
@ 2025-02-03 15:13 ` Ilias Apalodimas
2025-02-03 15:22 ` Michal Simek
2025-02-03 15:13 ` Jerome Forissier
2025-02-04 11:22 ` Michal Simek
2 siblings, 1 reply; 7+ messages in thread
From: Ilias Apalodimas @ 2025-02-03 15:13 UTC (permalink / raw)
To: Michal Simek
Cc: u-boot, git, Adriano Cordova, Anand Moon, Jerome Forissier,
Joe Hershberger, Marek Vasut, Ramon Fried, Tom Rini
Thanks Michal
On Mon, 3 Feb 2025 at 17:03, Michal Simek <michal.simek@amd.com> wrote:
>
> LWIP wget.c/mbedtls_hardware_poll() is calling dm_rng_read() but dependency
> is not recorded anywhere that's why select DM_RNG when LWIP stack i used.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
> net/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/Kconfig b/net/Kconfig
> index 24508026200d..6c684624fd6f 100644
> --- a/net/Kconfig
> +++ b/net/Kconfig
> @@ -249,6 +249,7 @@ config WGET
> select PROT_TCP if NET
> select PROT_TCP_LWIP if NET_LWIP
> select PROT_DNS_LWIP if NET_LWIP
> + select DM_RNG if NET_LWIP
There's a WGET_HTTPS symbol, I think we should add that there
> help
> Selecting this will enable wget, an interface to send HTTP requests
> via the network stack.
> --
> 2.43.0
>
Regards
/Ilias
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] net: Kconfig: Select DM_RNG for LWIP
2025-02-03 15:03 [PATCH] net: Kconfig: Select DM_RNG for LWIP Michal Simek
2025-02-03 15:13 ` Ilias Apalodimas
@ 2025-02-03 15:13 ` Jerome Forissier
2025-02-04 11:22 ` Michal Simek
2 siblings, 0 replies; 7+ messages in thread
From: Jerome Forissier @ 2025-02-03 15:13 UTC (permalink / raw)
To: Michal Simek, u-boot, git
Cc: Adriano Cordova, Anand Moon, Ilias Apalodimas, Joe Hershberger,
Marek Vasut, Ramon Fried, Tom Rini
On 2/3/25 16:03, Michal Simek wrote:
> LWIP wget.c/mbedtls_hardware_poll() is calling dm_rng_read() but dependency
> is not recorded anywhere that's why select DM_RNG when LWIP stack i used.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
> net/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/Kconfig b/net/Kconfig
> index 24508026200d..6c684624fd6f 100644
> --- a/net/Kconfig
> +++ b/net/Kconfig
> @@ -249,6 +249,7 @@ config WGET
> select PROT_TCP if NET
> select PROT_TCP_LWIP if NET_LWIP
> select PROT_DNS_LWIP if NET_LWIP
> + select DM_RNG if NET_LWIP
> help
> Selecting this will enable wget, an interface to send HTTP requests
> via the network stack.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Thanks,
--
Jerome
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] net: Kconfig: Select DM_RNG for LWIP
2025-02-03 15:13 ` Ilias Apalodimas
@ 2025-02-03 15:22 ` Michal Simek
2025-02-03 16:17 ` Ilias Apalodimas
0 siblings, 1 reply; 7+ messages in thread
From: Michal Simek @ 2025-02-03 15:22 UTC (permalink / raw)
To: Ilias Apalodimas
Cc: u-boot, git, Adriano Cordova, Anand Moon, Jerome Forissier,
Joe Hershberger, Marek Vasut, Ramon Fried, Tom Rini
On 2/3/25 16:13, Ilias Apalodimas wrote:
> Thanks Michal
>
> On Mon, 3 Feb 2025 at 17:03, Michal Simek <michal.simek@amd.com> wrote:
>>
>> LWIP wget.c/mbedtls_hardware_poll() is calling dm_rng_read() but dependency
>> is not recorded anywhere that's why select DM_RNG when LWIP stack i used.
>>
>> Signed-off-by: Michal Simek <michal.simek@amd.com>
>> ---
>>
>> net/Kconfig | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/net/Kconfig b/net/Kconfig
>> index 24508026200d..6c684624fd6f 100644
>> --- a/net/Kconfig
>> +++ b/net/Kconfig
>> @@ -249,6 +249,7 @@ config WGET
>> select PROT_TCP if NET
>> select PROT_TCP_LWIP if NET_LWIP
>> select PROT_DNS_LWIP if NET_LWIP
>> + select DM_RNG if NET_LWIP
>
> There's a WGET_HTTPS symbol, I think we should add that there
You maybe right but there is only WGET symbol used.
obj-$(CONFIG_WGET) += wget.o
It means likely wget.c should be split to HTTP and HTTPS version or add some
ifdefs to that file.
I of course prefer to fix this issue which is visible with microblaze
configuration which one of my patch does.
Thanks,
Michal
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] net: Kconfig: Select DM_RNG for LWIP
2025-02-03 15:22 ` Michal Simek
@ 2025-02-03 16:17 ` Ilias Apalodimas
0 siblings, 0 replies; 7+ messages in thread
From: Ilias Apalodimas @ 2025-02-03 16:17 UTC (permalink / raw)
To: Michal Simek
Cc: u-boot, git, Adriano Cordova, Anand Moon, Jerome Forissier,
Joe Hershberger, Marek Vasut, Ramon Fried, Tom Rini
On Mon, 3 Feb 2025 at 17:23, Michal Simek <michal.simek@amd.com> wrote:
>
>
>
> On 2/3/25 16:13, Ilias Apalodimas wrote:
> > Thanks Michal
> >
> > On Mon, 3 Feb 2025 at 17:03, Michal Simek <michal.simek@amd.com> wrote:
> >>
> >> LWIP wget.c/mbedtls_hardware_poll() is calling dm_rng_read() but dependency
> >> is not recorded anywhere that's why select DM_RNG when LWIP stack i used.
> >>
> >> Signed-off-by: Michal Simek <michal.simek@amd.com>
> >> ---
> >>
> >> net/Kconfig | 1 +
> >> 1 file changed, 1 insertion(+)
> >>
> >> diff --git a/net/Kconfig b/net/Kconfig
> >> index 24508026200d..6c684624fd6f 100644
> >> --- a/net/Kconfig
> >> +++ b/net/Kconfig
> >> @@ -249,6 +249,7 @@ config WGET
> >> select PROT_TCP if NET
> >> select PROT_TCP_LWIP if NET_LWIP
> >> select PROT_DNS_LWIP if NET_LWIP
> >> + select DM_RNG if NET_LWIP
> >
> > There's a WGET_HTTPS symbol, I think we should add that there
>
> You maybe right but there is only WGET symbol used.
> obj-$(CONFIG_WGET) += wget.o
It only enables HTTPS if CONFIG_WGET_HTTPS is enabled.
The whole machinery for adding https support (and calling that rng
function) is protected by an #ifdef already.
>
> It means likely wget.c should be split to HTTP and HTTPS version or add some
> ifdefs to that file.
> I of course prefer to fix this issue which is visible with microblaze
> configuration which one of my patch does.
>
What is missing is a check in wget_validate_uri() and forbid https://
if that symbol isn't enabled
> Thanks,
> Michal
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] net: Kconfig: Select DM_RNG for LWIP
2025-02-03 15:03 [PATCH] net: Kconfig: Select DM_RNG for LWIP Michal Simek
2025-02-03 15:13 ` Ilias Apalodimas
2025-02-03 15:13 ` Jerome Forissier
@ 2025-02-04 11:22 ` Michal Simek
2025-02-04 15:49 ` Jerome Forissier
2 siblings, 1 reply; 7+ messages in thread
From: Michal Simek @ 2025-02-04 11:22 UTC (permalink / raw)
To: u-boot, git
Cc: Adriano Cordova, Anand Moon, Ilias Apalodimas, Jerome Forissier,
Joe Hershberger, Marek Vasut, Ramon Fried, Tom Rini
On 2/3/25 16:03, Michal Simek wrote:
> LWIP wget.c/mbedtls_hardware_poll() is calling dm_rng_read() but dependency
> is not recorded anywhere that's why select DM_RNG when LWIP stack i used.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
> net/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/Kconfig b/net/Kconfig
> index 24508026200d..6c684624fd6f 100644
> --- a/net/Kconfig
> +++ b/net/Kconfig
> @@ -249,6 +249,7 @@ config WGET
> select PROT_TCP if NET
> select PROT_TCP_LWIP if NET_LWIP
> select PROT_DNS_LWIP if NET_LWIP
> + select DM_RNG if NET_LWIP
> help
> Selecting this will enable wget, an interface to send HTTP requests
> via the network stack.
Just a summary. Jerome and Ilias will look at solving this dependency in C file
not to have this dependency listed. WGET will work without RNG device but HTTPS
won't work. There is also connection to MBEDTLS which will be handled.
Thanks,
Michal
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] net: Kconfig: Select DM_RNG for LWIP
2025-02-04 11:22 ` Michal Simek
@ 2025-02-04 15:49 ` Jerome Forissier
0 siblings, 0 replies; 7+ messages in thread
From: Jerome Forissier @ 2025-02-04 15:49 UTC (permalink / raw)
To: Michal Simek, u-boot, git
Cc: Adriano Cordova, Anand Moon, Ilias Apalodimas, Joe Hershberger,
Marek Vasut, Ramon Fried, Tom Rini
On 2/4/25 12:22, Michal Simek wrote:
>
>
> On 2/3/25 16:03, Michal Simek wrote:
>> LWIP wget.c/mbedtls_hardware_poll() is calling dm_rng_read() but dependency
>> is not recorded anywhere that's why select DM_RNG when LWIP stack i used.
>>
>> Signed-off-by: Michal Simek <michal.simek@amd.com>
>> ---
>>
>> net/Kconfig | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/net/Kconfig b/net/Kconfig
>> index 24508026200d..6c684624fd6f 100644
>> --- a/net/Kconfig
>> +++ b/net/Kconfig
>> @@ -249,6 +249,7 @@ config WGET
>> select PROT_TCP if NET
>> select PROT_TCP_LWIP if NET_LWIP
>> select PROT_DNS_LWIP if NET_LWIP
>> + select DM_RNG if NET_LWIP
>> help
>> Selecting this will enable wget, an interface to send HTTP requests
>> via the network stack.
>
> Just a summary. Jerome and Ilias will look at solving this dependency in C file not to have this dependency listed. WGET will work without RNG device but HTTPS won't work. There is also connection to MBEDTLS which will be handled.
>
> Thanks,
> Michal
Superseded by https://lists.denx.de/pipermail/u-boot/2025-February/579396.html.
Thanks,
--
Jerome
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-02-04 15:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-03 15:03 [PATCH] net: Kconfig: Select DM_RNG for LWIP Michal Simek
2025-02-03 15:13 ` Ilias Apalodimas
2025-02-03 15:22 ` Michal Simek
2025-02-03 16:17 ` Ilias Apalodimas
2025-02-03 15:13 ` Jerome Forissier
2025-02-04 11:22 ` Michal Simek
2025-02-04 15:49 ` Jerome Forissier
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.