bootstd: make it possible to use tftp for netboot with standardboot
authorBenjamin Hahn <B.Hahn@phytec.de>
Tue, 21 Oct 2025 14:34:17 +0000 (16:34 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 24 Oct 2025 19:47:50 +0000 (13:47 -0600)
commitfae6c54d238279bf79c66ca65330425dff2c952f
tree813cf6aced3b0b62a91d28f234806373c84db07e
parent8506cf58ffa2029f168cc64089763084b408051d
bootstd: make it possible to use tftp for netboot with standardboot

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.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Benjamin Hahn <B.Hahn@phytec.de>
boot/bootmeth_script.c
doc/develop/bootstd/overview.rst
doc/develop/bootstd/script.rst
include/net-common.h
net/net-common.c