blob: 42f8bd6b259479f6f338d66b733725f8248836ec [file] [log] [blame]
Jerome Forissier1ff00362024-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)
8U_BOOT_CMD(
9 dhcp, 3, 1, do_dhcp,
10 "boot image via network using DHCP/TFTP protocol",
11 "[loadAddress] [[hostIPaddr:]bootfilename]"
12);
13#endif
Jerome Forissier6a78e962024-10-16 12:04:05 +020014
Jerome Forissier8f29e002024-10-16 12:04:06 +020015#if defined(CONFIG_CMD_PING)
16U_BOOT_CMD(
17 ping, 2, 1, do_ping,
18 "send ICMP ECHO_REQUEST to network host",
19 "pingAddress"
20);
21#endif
22
Jerome Forissier6a78e962024-10-16 12:04:05 +020023#if defined(CONFIG_CMD_TFTPBOOT)
24U_BOOT_CMD(
25 tftpboot, 3, 0, do_tftpb,
26 "boot image via network using TFTP protocol\n",
27 "[loadAddress] [[hostIPaddr:]bootfilename]"
28);
29#endif
Jerome Forissierbc4d8822024-10-16 12:04:07 +020030
31#if defined(CONFIG_CMD_DNS)
32U_BOOT_CMD(
33 dns, 3, 1, do_dns,
34 "lookup the IP of a hostname",
35 "hostname [envvar]"
36);
37#endif
Jerome Forissier359d4ed2024-10-16 12:04:09 +020038
39#if defined(CONFIG_CMD_WGET)
40U_BOOT_CMD(
41 wget, 3, 1, do_wget,
42 "boot image via network using HTTP protocol",
43 "[loadAddress] URL"
44);
45#endif