Jerome Forissier | 1ff0036 | 2024-10-16 12:04:03 +0200 | [diff] [blame] | 1 | // 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) |
| 8 | U_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 Forissier | 6a78e96 | 2024-10-16 12:04:05 +0200 | [diff] [blame] | 14 | |
Jerome Forissier | 8f29e00 | 2024-10-16 12:04:06 +0200 | [diff] [blame] | 15 | #if defined(CONFIG_CMD_PING) |
| 16 | U_BOOT_CMD( |
| 17 | ping, 2, 1, do_ping, |
| 18 | "send ICMP ECHO_REQUEST to network host", |
| 19 | "pingAddress" |
| 20 | ); |
| 21 | #endif |
| 22 | |
Jerome Forissier | 6a78e96 | 2024-10-16 12:04:05 +0200 | [diff] [blame] | 23 | #if defined(CONFIG_CMD_TFTPBOOT) |
| 24 | U_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 Forissier | bc4d882 | 2024-10-16 12:04:07 +0200 | [diff] [blame] | 30 | |
| 31 | #if defined(CONFIG_CMD_DNS) |
| 32 | U_BOOT_CMD( |
| 33 | dns, 3, 1, do_dns, |
| 34 | "lookup the IP of a hostname", |
| 35 | "hostname [envvar]" |
| 36 | ); |
| 37 | #endif |
Jerome Forissier | 359d4ed | 2024-10-16 12:04:09 +0200 | [diff] [blame] | 38 | |
| 39 | #if defined(CONFIG_CMD_WGET) |
| 40 | U_BOOT_CMD( |
| 41 | wget, 3, 1, do_wget, |
| 42 | "boot image via network using HTTP protocol", |
| 43 | "[loadAddress] URL" |
| 44 | ); |
| 45 | #endif |