mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
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>
This commit is contained in:
@@ -490,6 +490,15 @@ int dhcp_run(ulong addr, const char *fname, bool autoload);
|
||||
*/
|
||||
int do_dhcp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
|
||||
|
||||
/**
|
||||
* tftpb_run() - Run TFTP on the current ethernet device
|
||||
*
|
||||
* @addr: Address to load the file into
|
||||
* @fname: Filename of file to load (NULL to use the default filename)
|
||||
* @return 0 if OK, -ENOENT if ant file was not found
|
||||
*/
|
||||
int tftpb_run(ulong addr, const char *fname);
|
||||
|
||||
/**
|
||||
* do_ping - Run the ping command
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user