blob: 0fd446ecb20094bb8de10ccbf89176909726d619 [file] [log] [blame]
Jerome Forissier98ad1452024-10-16 12:04:03 +02001// SPDX-License-Identifier: GPL-2.0+
2/* Copyright (C) 2024 Linaro Ltd. */
3
4#include <command.h>
5#include <net.h>
6
7#if defined(CONFIG_CMD_DHCP)
Jerome Forissier356011f2024-11-07 12:27:57 +01008U_BOOT_CMD(dhcp, 3, 1, do_dhcp,
9 "boot image via network using DHCP/TFTP protocol",
10 "[loadAddress] [[hostIPaddr:]bootfilename]");
Jerome Forissier98ad1452024-10-16 12:04:03 +020011#endif
Jerome Forissier4d4d7832024-10-16 12:04:05 +020012
Jerome Forissier7a5e00d2024-10-16 12:04:06 +020013#if defined(CONFIG_CMD_PING)
Jerome Forissier356011f2024-11-07 12:27:57 +010014U_BOOT_CMD(ping, 2, 1, do_ping, "send ICMP ECHO_REQUEST to network host",
15 "pingAddress");
Jerome Forissier7a5e00d2024-10-16 12:04:06 +020016#endif
17
Jerome Forissier4d4d7832024-10-16 12:04:05 +020018#if defined(CONFIG_CMD_TFTPBOOT)
Jerome Forissier356011f2024-11-07 12:27:57 +010019U_BOOT_CMD(tftpboot, 3, 0, do_tftpb,
20 "boot image via network using TFTP protocol\n",
21 "[loadAddress] [[hostIPaddr:]bootfilename]");
Jerome Forissier4d4d7832024-10-16 12:04:05 +020022#endif
Jerome Forissieraedcfec2024-10-16 12:04:07 +020023
24#if defined(CONFIG_CMD_DNS)
Jerome Forissier356011f2024-11-07 12:27:57 +010025U_BOOT_CMD(dns, 3, 1, do_dns, "lookup the IP of a hostname",
26 "hostname [envvar]");
Jerome Forissieraedcfec2024-10-16 12:04:07 +020027#endif
Jerome Forissier3c656c92024-10-16 12:04:09 +020028
29#if defined(CONFIG_CMD_WGET)
Jerome Forissier572b5b02024-11-14 15:20:40 +010030U_BOOT_CMD(wget, 3, 1, do_wget,
31 "boot image via network using HTTP/HTTPS protocol",
32 "[loadAddress] url\n"
33 "wget [loadAddress] [host:]path"
34);
Jerome Forissier3c656c92024-10-16 12:04:09 +020035#endif