Masahiro Yamada | ed36323 | 2014-09-16 16:32:58 +0900 | [diff] [blame] | 1 | menu "Command line interface" |
| 2 | depends on !SPL_BUILD |
| 3 | |
Masahiro Yamada | 6c77509 | 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 | 60296a8 | 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 | dba1697 | 2014-09-16 16:33:00 +0900 | [diff] [blame] | 50 | config CMD_BOOTM |
Masahiro Yamada | 60296a8 | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 51 | bool "bootm" |
Masahiro Yamada | dba1697 | 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 | 60296a8 | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 56 | config CMD_GO |
| 57 | bool "go" |
Masahiro Yamada | ca05ee9 | 2014-09-16 16:33:01 +0900 | [diff] [blame] | 58 | default y |
| 59 | help |
Masahiro Yamada | 60296a8 | 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 | ca05ee9 | 2014-09-16 16:33:01 +0900 | [diff] [blame] | 85 | |
Masahiro Yamada | cccee18 | 2014-09-16 16:33:02 +0900 | [diff] [blame] | 86 | config CMD_EXPORTENV |
Masahiro Yamada | 60296a8 | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 87 | bool "env export" |
Masahiro Yamada | cccee18 | 2014-09-16 16:33:02 +0900 | [diff] [blame] | 88 | default y |
| 89 | help |
| 90 | Export environments. |
| 91 | |
Masahiro Yamada | 1d5c201 | 2014-09-16 16:33:04 +0900 | [diff] [blame] | 92 | config CMD_IMPORTENV |
Masahiro Yamada | 60296a8 | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 93 | bool "env import" |
Masahiro Yamada | 1d5c201 | 2014-09-16 16:33:04 +0900 | [diff] [blame] | 94 | default y |
| 95 | help |
| 96 | Import environments. |
| 97 | |
Masahiro Yamada | 60296a8 | 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 | 726ac8e | 2014-09-16 16:33:03 +0900 | [diff] [blame] | 127 | default y |
| 128 | help |
Masahiro Yamada | 60296a8 | 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 | |
Simon Glass | f058f15 | 2015-02-05 21:41:38 -0700 | [diff] [blame] | 156 | config CMD_DM |
| 157 | bool "dm - Access to driver model information" |
| 158 | depends on DM |
| 159 | default y |
| 160 | help |
| 161 | Provides access to driver model data structures and information, |
| 162 | such as a list of devices, list of uclasses and the state of each |
| 163 | device (e.g. activated). This is not required for operation, but |
| 164 | can be useful to see the state of driver model for debugging or |
| 165 | interest. |
| 166 | |
| 167 | config CMD_DEMO |
| 168 | bool "demo - Demonstration commands for driver model" |
| 169 | depends on DM |
| 170 | help |
| 171 | Provides a 'demo' command which can be used to play around with |
| 172 | driver model. To use this properly you will need to enable one or |
| 173 | both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE). |
| 174 | Otherwise you will always get an empty list of devices. The demo |
| 175 | devices are defined in the sandbox device tree, so the easiest |
| 176 | option is to use sandbox and pass the -d point to sandbox's |
| 177 | u-boot.dtb file. |
| 178 | |
Masahiro Yamada | 60296a8 | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 179 | config CMD_LOADB |
| 180 | bool "loadb" |
| 181 | help |
| 182 | Load a binary file over serial line. |
| 183 | |
| 184 | config CMD_LOADS |
| 185 | bool "loads" |
| 186 | help |
| 187 | Load an S-Record file over serial line |
| 188 | |
| 189 | config CMD_FLASH |
| 190 | bool "flinfo, erase, protect" |
| 191 | help |
| 192 | NOR flash support. |
| 193 | flinfo - print FLASH memory information |
| 194 | erase - FLASH memory |
| 195 | protect - enable or disable FLASH write protection |
| 196 | |
| 197 | config CMD_NAND |
| 198 | bool "nand" |
| 199 | help |
| 200 | NAND support. |
| 201 | |
| 202 | config CMD_SPI |
| 203 | bool "sspi" |
| 204 | help |
| 205 | SPI utility command. |
| 206 | |
| 207 | config CMD_I2C |
| 208 | bool "i2c" |
| 209 | help |
| 210 | I2C support. |
| 211 | |
| 212 | config CMD_USB |
| 213 | bool "usb" |
| 214 | help |
| 215 | USB support. |
| 216 | |
| 217 | config CMD_FPGA |
| 218 | bool "fpga" |
| 219 | help |
| 220 | FPGA support. |
| 221 | |
| 222 | endmenu |
| 223 | |
| 224 | |
| 225 | menu "Shell scripting commands" |
| 226 | |
| 227 | config CMD_ECHO |
| 228 | bool "echo" |
| 229 | help |
| 230 | Echo args to console |
| 231 | |
| 232 | config CMD_ITEST |
| 233 | bool "itest" |
| 234 | help |
| 235 | Return true/false on integer compare. |
| 236 | |
| 237 | config CMD_SOURCE |
| 238 | bool "source" |
| 239 | help |
| 240 | Run script from memory |
| 241 | |
| 242 | endmenu |
| 243 | |
| 244 | menu "Network commands" |
| 245 | |
| 246 | config CMD_NET |
| 247 | bool "bootp, tftpboot" |
| 248 | help |
| 249 | Network commands. |
| 250 | bootp - boot image via network using BOOTP/TFTP protocol |
| 251 | tftpboot - boot image via network using TFTP protocol |
| 252 | |
| 253 | config CMD_TFTPPUT |
| 254 | bool "tftp put" |
| 255 | help |
| 256 | TFTP put command, for uploading files to a server |
| 257 | |
| 258 | config CMD_TFTPSRV |
| 259 | bool "tftpsrv" |
| 260 | help |
| 261 | Act as a TFTP server and boot the first received file |
| 262 | |
| 263 | config CMD_RARP |
| 264 | bool "rarpboot" |
| 265 | help |
| 266 | Boot image via network using RARP/TFTP protocol |
| 267 | |
| 268 | config CMD_DHCP |
| 269 | bool "dhcp" |
| 270 | help |
| 271 | Boot image via network using DHCP/TFTP protocol |
| 272 | |
| 273 | config CMD_NFS |
| 274 | bool "nfs" |
| 275 | help |
| 276 | Boot image via network using NFS protocol. |
| 277 | |
| 278 | config CMD_PING |
| 279 | bool "ping" |
| 280 | help |
| 281 | Send ICMP ECHO_REQUEST to network host |
| 282 | |
| 283 | config CMD_CDP |
| 284 | bool "cdp" |
| 285 | help |
| 286 | Perform CDP network configuration |
| 287 | |
| 288 | config CMD_SNTP |
| 289 | bool "sntp" |
| 290 | help |
| 291 | Synchronize RTC via network |
| 292 | |
| 293 | config CMD_DNS |
| 294 | bool "dns" |
| 295 | help |
| 296 | Lookup the IP of a hostname |
| 297 | |
| 298 | config CMD_DNS |
| 299 | bool "dns" |
| 300 | help |
| 301 | Lookup the IP of a hostname |
| 302 | |
| 303 | config CMD_LINK_LOCAL |
| 304 | bool "linklocal" |
| 305 | help |
| 306 | Acquire a network IP address using the link-local protocol |
| 307 | |
| 308 | endmenu |
| 309 | |
| 310 | menu "Misc commands" |
| 311 | |
| 312 | config CMD_TIME |
| 313 | bool "time" |
| 314 | help |
| 315 | Run commands and summarize execution time. |
| 316 | |
| 317 | # TODO: rename to CMD_SLEEP |
| 318 | config CMD_MISC |
| 319 | bool "sleep" |
| 320 | help |
| 321 | Delay execution for some time |
| 322 | |
| 323 | config CMD_TIMER |
| 324 | bool "timer" |
| 325 | help |
| 326 | Access the system timer. |
| 327 | |
| 328 | config CMD_SETGETDCR |
| 329 | bool "getdcr, setdcr, getidcr, setidcr" |
| 330 | depends on 4xx |
| 331 | help |
| 332 | getdcr - Get an AMCC PPC 4xx DCR's value |
| 333 | setdcr - Set an AMCC PPC 4xx DCR's value |
| 334 | getidcr - Get a register value via indirect DCR addressing |
| 335 | setidcr - Set a register value via indirect DCR addressing |
| 336 | |
| 337 | endmenu |
Masahiro Yamada | 726ac8e | 2014-09-16 16:33:03 +0900 | [diff] [blame] | 338 | |
Masahiro Yamada | ed36323 | 2014-09-16 16:32:58 +0900 | [diff] [blame] | 339 | endmenu |