summaryrefslogtreecommitdiff
path: root/doc/develop
diff options
context:
space:
mode:
authorBenjamin Hahn <[email protected]>2025-10-21 16:34:17 +0200
committerTom Rini <[email protected]>2025-10-24 13:47:50 -0600
commitfae6c54d238279bf79c66ca65330425dff2c952f (patch)
tree813cf6aced3b0b62a91d28f234806373c84db07e /doc/develop
parent8506cf58ffa2029f168cc64089763084b408051d (diff)
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 <[email protected]> Signed-off-by: Benjamin Hahn <[email protected]>
Diffstat (limited to 'doc/develop')
-rw-r--r--doc/develop/bootstd/overview.rst4
-rw-r--r--doc/develop/bootstd/script.rst6
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/develop/bootstd/overview.rst b/doc/develop/bootstd/overview.rst
index e36cde4d360..abb616adc77 100644
--- a/doc/develop/bootstd/overview.rst
+++ b/doc/develop/bootstd/overview.rst
@@ -262,6 +262,10 @@ fdt_addr_r
fdtoverlay_addr_r (needed if overlays are used)
Address at which to load the overlay for the FDT, e.g. 0x02000000
+ip_dyn
+ Use dynamic IP (dhcp) or static IP (tftp) for loading the bootscript over
+ ethernet. Default is dhcp. e.g. no
+
kernel_addr_r
Address at which to load the kernel, e.g. 0x02080000
diff --git a/doc/develop/bootstd/script.rst b/doc/develop/bootstd/script.rst
index 47f3684b86b..3b19c22726f 100644
--- a/doc/develop/bootstd/script.rst
+++ b/doc/develop/bootstd/script.rst
@@ -12,8 +12,10 @@ list of prefixes (``{"/", "/boot"}`` by default) and can be adjust with the
`filename-prefixes` property in the bootstd device.
For a network device, the filename is obtained from the `boot_script_dhcp`
-environment variable and the file is read using tftp. It must be in the
-top-level directory of the tftp server.
+environment variable. By setting the `ip_dyn` environment variable it can be
+decided if dynamic ip (dhcp command) or static ip (tftp command) is used for
+reading the file. By default dhcp is used. The file must be in the top-level
+directory of the tftp server.
In either case (file or network), the bootmeth searches for the file and creates
a bootflow if found. The bootmeth searches for "boot.scr.uimg" first, then