Masahiro Yamada | f3e12b7 | 2014-09-16 16:32:58 +0900 | [diff] [blame] | 1 | menu "Command line interface" |
| 2 | depends on !SPL_BUILD |
| 3 | |
Masahiro Yamada | 2321bb0 | 2014-11-13 19:29:07 +0900 | [diff] [blame] | 4 | config HUSH_PARSER |
| 5 | bool "Use hush shell" |
| 6 | select SYS_HUSH_PARSER |
| 7 | help |
| 8 | This option enables the "hush" shell (from Busybox) as command line |
| 9 | interpreter, thus enabling powerful command line syntax like |
| 10 | if...then...else...fi conditionals or `&&' and '||' |
| 11 | constructs ("shell scripts"). |
| 12 | |
| 13 | If disabled, you get the old, much simpler behaviour with a somewhat |
| 14 | smaller memory footprint. |
| 15 | |
| 16 | config SYS_HUSH_PARSER |
| 17 | bool |
| 18 | help |
| 19 | Backward compatibility. |
| 20 | |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 21 | comment "Commands" |
| 22 | |
| 23 | menu "Info commands" |
| 24 | |
| 25 | config CMD_BDI |
| 26 | bool "bdinfo" |
| 27 | help |
| 28 | Print board info |
| 29 | |
| 30 | config CMD_CONSOLE |
| 31 | bool "coninfo" |
| 32 | help |
| 33 | Print console devices and information. |
| 34 | |
| 35 | config CMD_LICENSE |
| 36 | bool "license" |
| 37 | help |
| 38 | Print GPL license text |
| 39 | |
| 40 | endmenu |
| 41 | |
| 42 | menu "Boot commands" |
| 43 | |
| 44 | config CMD_BOOTD |
| 45 | bool "bootd" |
| 46 | help |
| 47 | Run the command stored in the environment "bootcmd", i.e. |
| 48 | "bootd" does the same thing as "run bootcmd". |
| 49 | |
Masahiro Yamada | 4772cf2 | 2014-09-16 16:33:00 +0900 | [diff] [blame] | 50 | config CMD_BOOTM |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 51 | bool "bootm" |
Masahiro Yamada | 4772cf2 | 2014-09-16 16:33:00 +0900 | [diff] [blame] | 52 | default y |
| 53 | help |
| 54 | Boot an application image from the memory. |
| 55 | |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 56 | config CMD_GO |
| 57 | bool "go" |
Masahiro Yamada | faecb26 | 2014-09-16 16:33:01 +0900 | [diff] [blame] | 58 | default y |
| 59 | help |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 60 | Start an application at a given address. |
| 61 | |
| 62 | config CMD_RUN |
| 63 | bool "run" |
| 64 | help |
| 65 | Run the command in the given environment variable. |
| 66 | |
| 67 | config CMD_IMI |
| 68 | bool "iminfo" |
| 69 | help |
| 70 | Print header information for application image. |
| 71 | |
| 72 | config CMD_IMLS |
| 73 | bool "imls" |
| 74 | help |
| 75 | List all images found in flash |
| 76 | |
| 77 | config CMD_XIMG |
| 78 | bool "imxtract" |
| 79 | help |
| 80 | Extract a part of a multi-image. |
| 81 | |
| 82 | endmenu |
| 83 | |
| 84 | menu "Environment commands" |
Masahiro Yamada | faecb26 | 2014-09-16 16:33:01 +0900 | [diff] [blame] | 85 | |
Masahiro Yamada | aa07dcb | 2014-09-16 16:33:02 +0900 | [diff] [blame] | 86 | config CMD_EXPORTENV |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 87 | bool "env export" |
Masahiro Yamada | aa07dcb | 2014-09-16 16:33:02 +0900 | [diff] [blame] | 88 | default y |
| 89 | help |
| 90 | Export environments. |
| 91 | |
Masahiro Yamada | a1d2013 | 2014-09-16 16:33:04 +0900 | [diff] [blame] | 92 | config CMD_IMPORTENV |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 93 | bool "env import" |
Masahiro Yamada | a1d2013 | 2014-09-16 16:33:04 +0900 | [diff] [blame] | 94 | default y |
| 95 | help |
| 96 | Import environments. |
| 97 | |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 98 | config CMD_EDITENV |
| 99 | bool "editenv" |
| 100 | help |
| 101 | Edit environment variable. |
| 102 | |
| 103 | config CMD_SAVEENV |
| 104 | bool "saveenv" |
| 105 | help |
| 106 | Run the command in the given environment variable. |
| 107 | |
| 108 | endmenu |
| 109 | |
| 110 | menu "Memory commands" |
| 111 | |
| 112 | config CMD_MEMORY |
| 113 | bool "md, mm, nm, mw, cp, cmp, base, loop" |
| 114 | help |
| 115 | Memeory commands. |
| 116 | md - memory display |
| 117 | mm - memory modify (auto-incrementing address) |
| 118 | nm - memory modify (constant address) |
| 119 | mw - memory write (fill) |
| 120 | cp - memory copy |
| 121 | cmp - memory compare |
| 122 | base - print or set address offset |
| 123 | loop - initinite loop on address range |
| 124 | |
| 125 | config CMD_CRC32 |
| 126 | bool "crc32" |
Masahiro Yamada | 5c19947 | 2014-09-16 16:33:03 +0900 | [diff] [blame] | 127 | default y |
| 128 | help |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 129 | Compute CRC32. |
| 130 | |
| 131 | config LOOPW |
| 132 | bool "loopw" |
| 133 | help |
| 134 | Infinite write loop on address range |
| 135 | |
| 136 | config CMD_MEMTEST |
| 137 | bool "crc32" |
| 138 | help |
| 139 | Simple RAM read/write test. |
| 140 | |
| 141 | config CMD_MX_CYCLIC |
| 142 | bool "mdc, mwc" |
| 143 | help |
| 144 | mdc - memory display cyclic |
| 145 | mwc - memory write cyclic |
| 146 | |
| 147 | config CMD_MEMINFO |
| 148 | bool "meminfo" |
| 149 | help |
| 150 | Display memory information. |
| 151 | |
| 152 | endmenu |
| 153 | |
| 154 | menu "Device access commands" |
| 155 | |
| 156 | config CMD_LOADB |
| 157 | bool "loadb" |
| 158 | help |
| 159 | Load a binary file over serial line. |
| 160 | |
| 161 | config CMD_LOADS |
| 162 | bool "loads" |
| 163 | help |
| 164 | Load an S-Record file over serial line |
| 165 | |
| 166 | config CMD_FLASH |
| 167 | bool "flinfo, erase, protect" |
| 168 | help |
| 169 | NOR flash support. |
| 170 | flinfo - print FLASH memory information |
| 171 | erase - FLASH memory |
| 172 | protect - enable or disable FLASH write protection |
| 173 | |
| 174 | config CMD_NAND |
| 175 | bool "nand" |
| 176 | help |
| 177 | NAND support. |
| 178 | |
| 179 | config CMD_SPI |
| 180 | bool "sspi" |
| 181 | help |
| 182 | SPI utility command. |
| 183 | |
| 184 | config CMD_I2C |
| 185 | bool "i2c" |
| 186 | help |
| 187 | I2C support. |
| 188 | |
| 189 | config CMD_USB |
| 190 | bool "usb" |
| 191 | help |
| 192 | USB support. |
| 193 | |
| 194 | config CMD_FPGA |
| 195 | bool "fpga" |
| 196 | help |
| 197 | FPGA support. |
| 198 | |
| 199 | endmenu |
| 200 | |
| 201 | |
| 202 | menu "Shell scripting commands" |
| 203 | |
| 204 | config CMD_ECHO |
| 205 | bool "echo" |
| 206 | help |
| 207 | Echo args to console |
| 208 | |
| 209 | config CMD_ITEST |
| 210 | bool "itest" |
| 211 | help |
| 212 | Return true/false on integer compare. |
| 213 | |
| 214 | config CMD_SOURCE |
| 215 | bool "source" |
| 216 | help |
| 217 | Run script from memory |
| 218 | |
| 219 | endmenu |
| 220 | |
| 221 | menu "Network commands" |
| 222 | |
| 223 | config CMD_NET |
| 224 | bool "bootp, tftpboot" |
| 225 | help |
| 226 | Network commands. |
| 227 | bootp - boot image via network using BOOTP/TFTP protocol |
| 228 | tftpboot - boot image via network using TFTP protocol |
| 229 | |
| 230 | config CMD_TFTPPUT |
| 231 | bool "tftp put" |
| 232 | help |
| 233 | TFTP put command, for uploading files to a server |
| 234 | |
| 235 | config CMD_TFTPSRV |
| 236 | bool "tftpsrv" |
| 237 | help |
| 238 | Act as a TFTP server and boot the first received file |
| 239 | |
| 240 | config CMD_RARP |
| 241 | bool "rarpboot" |
| 242 | help |
| 243 | Boot image via network using RARP/TFTP protocol |
| 244 | |
| 245 | config CMD_DHCP |
| 246 | bool "dhcp" |
| 247 | help |
| 248 | Boot image via network using DHCP/TFTP protocol |
| 249 | |
| 250 | config CMD_NFS |
| 251 | bool "nfs" |
| 252 | help |
| 253 | Boot image via network using NFS protocol. |
| 254 | |
| 255 | config CMD_PING |
| 256 | bool "ping" |
| 257 | help |
| 258 | Send ICMP ECHO_REQUEST to network host |
| 259 | |
| 260 | config CMD_CDP |
| 261 | bool "cdp" |
| 262 | help |
| 263 | Perform CDP network configuration |
| 264 | |
| 265 | config CMD_SNTP |
| 266 | bool "sntp" |
| 267 | help |
| 268 | Synchronize RTC via network |
| 269 | |
| 270 | config CMD_DNS |
| 271 | bool "dns" |
| 272 | help |
| 273 | Lookup the IP of a hostname |
| 274 | |
| 275 | config CMD_DNS |
| 276 | bool "dns" |
| 277 | help |
| 278 | Lookup the IP of a hostname |
| 279 | |
| 280 | config CMD_LINK_LOCAL |
| 281 | bool "linklocal" |
| 282 | help |
| 283 | Acquire a network IP address using the link-local protocol |
| 284 | |
| 285 | endmenu |
| 286 | |
| 287 | menu "Misc commands" |
| 288 | |
| 289 | config CMD_TIME |
| 290 | bool "time" |
| 291 | help |
| 292 | Run commands and summarize execution time. |
| 293 | |
| 294 | # TODO: rename to CMD_SLEEP |
| 295 | config CMD_MISC |
| 296 | bool "sleep" |
| 297 | help |
| 298 | Delay execution for some time |
| 299 | |
| 300 | config CMD_TIMER |
| 301 | bool "timer" |
| 302 | help |
| 303 | Access the system timer. |
| 304 | |
| 305 | config CMD_SETGETDCR |
| 306 | bool "getdcr, setdcr, getidcr, setidcr" |
| 307 | depends on 4xx |
| 308 | help |
| 309 | getdcr - Get an AMCC PPC 4xx DCR's value |
| 310 | setdcr - Set an AMCC PPC 4xx DCR's value |
| 311 | getidcr - Get a register value via indirect DCR addressing |
| 312 | setidcr - Set a register value via indirect DCR addressing |
| 313 | |
| 314 | endmenu |
Masahiro Yamada | 5c19947 | 2014-09-16 16:33:03 +0900 | [diff] [blame] | 315 | |
Masahiro Yamada | f3e12b7 | 2014-09-16 16:32:58 +0900 | [diff] [blame] | 316 | endmenu |