[PATCH v3] bootstd: make it possible to use tftp for netboot with standardboot

Tom Rini trini at konsulko.com
Wed Oct 8 01:49:06 CEST 2025


On Wed, Sep 24, 2025 at 09:41:41AM +0200, Benjamin Hahn wrote:

> Add the option to load the bootscript with the tftp command (static IP)
> instead of the dhcp command (dynamic IP). For this a new function
> tftpb_run similar to dhcp_run, is needed. The selection of which command
> to use can be done with the ip_dyn environment variable, which can be
> set to yes or no. The ip_dyn variable was chosen as it is already in use
> on the imx platforms.
> Also edit the bootstd doc.
> 
> Signed-off-by: Benjamin Hahn <B.Hahn at phytec.de>

OK, so this fails to build on qemu_arm64_lwip (and a few other lwip
targets) because tftpb_run was defined just for the legacy stack and not
lwIP too. But, and this is a question for Jerome too, why isn't dhcp_run
already in the common network file and instead written again in
net/lwip/dhcp.c? And for both of you, can we perhaps have a common
function or functions? The lwIP one does handle tftp it looks like.
Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20251007/fcf38710/attachment.sig>


More information about the U-Boot mailing list