NFSv4 boot support?
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Feb 26 04:17:59 PST 2024
Hello,
On 20.02.24 14:53, Alessandro Rubini wrote:
>>> This hasn't
>>> seen development activity in 5 years.
>>
>> Please see https://github.com/virtualsquare/picotcp
>
> But the TCP/IPV4 standard didn't change, either.
I don't mind lack of new features, but I'd prefer that when we
adopt an external network stack, we adopt one that still sees
maintenance and bug fixes. The repository linked by Antony while
having more recent commits, also has a link to security considerations:
https://github.com/virtualsquare/picotcp/blob/master/docs/security.md
which lists 4 year old security issues that are acknowledged, but
unresolved.
>>> lwIP on the other hand still sees active development.
>>
>> I agree with you. It looks like lwIP is more popular than picotcp.
>
> Sure. It's older and it has a loyal (or addicted) user base and
> commercial support. Or it just needs more commits because it'w worse and
> full of bugs.
Yes, it can go both ways. I am not arguing in favor of comparing
absolute commit count, but I think we might be better off using
a network stack that we don't have to completely maintain ourselves,
given that we already had a network stack that we maintained ourselves
that we are looking to substitute.
In the end, the one who does the work is probably who gets to choose
(and argue their choice).
> As far as I know, lwIP is horrible code, difficult to integrate and
> maintain
Thanks for your input. My only interaction with lwIP so far was some
weekend time spent on integrating it into the barebox build system,
but I haven't went further than that to actually wire it with the network API.
> while picotcp is designed in the right way (although I admit
> I only looked at the former, about picotcp I only talked with the main
> author without looking at the code).
I think best case, we would proceed as suggested by Antony: Rework
the interfaces in barebox, so both the existing network stack and lwIP
(or picotcp) can be integrated using the same APIs.
> I'd love to add mqtt to my microcontroller projects, where I have udp
> but no tcp yet, and I would never rely on lwIP. That's just a personal
> opinion, but I'd better not rely on the date of last commit to pick
> or not pick a library.
Did you try integrating picotcp instead? What issues did you run into?
Thanks,
Ahmad
>
> Regards
> /alessandro
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list