Masahiro Yamada | f3e12b7 | 2014-09-16 16:32:58 +0900 | [diff] [blame] | 1 | menu "Command line interface" |
Masahiro Yamada | f3e12b7 | 2014-09-16 16:32:58 +0900 | [diff] [blame] | 2 | |
Masahiro Yamada | 2321bb0 | 2014-11-13 19:29:07 +0900 | [diff] [blame] | 3 | config HUSH_PARSER |
| 4 | bool "Use hush shell" |
| 5 | select SYS_HUSH_PARSER |
| 6 | help |
| 7 | This option enables the "hush" shell (from Busybox) as command line |
| 8 | interpreter, thus enabling powerful command line syntax like |
| 9 | if...then...else...fi conditionals or `&&' and '||' |
| 10 | constructs ("shell scripts"). |
| 11 | |
| 12 | If disabled, you get the old, much simpler behaviour with a somewhat |
| 13 | smaller memory footprint. |
| 14 | |
| 15 | config SYS_HUSH_PARSER |
| 16 | bool |
| 17 | help |
| 18 | Backward compatibility. |
| 19 | |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 20 | comment "Commands" |
| 21 | |
| 22 | menu "Info commands" |
| 23 | |
| 24 | config CMD_BDI |
| 25 | bool "bdinfo" |
| 26 | help |
| 27 | Print board info |
| 28 | |
| 29 | config CMD_CONSOLE |
| 30 | bool "coninfo" |
| 31 | help |
| 32 | Print console devices and information. |
| 33 | |
| 34 | config CMD_LICENSE |
| 35 | bool "license" |
| 36 | help |
| 37 | Print GPL license text |
| 38 | |
| 39 | endmenu |
| 40 | |
| 41 | menu "Boot commands" |
| 42 | |
| 43 | config CMD_BOOTD |
| 44 | bool "bootd" |
| 45 | help |
| 46 | Run the command stored in the environment "bootcmd", i.e. |
| 47 | "bootd" does the same thing as "run bootcmd". |
| 48 | |
Masahiro Yamada | 4772cf2 | 2014-09-16 16:33:00 +0900 | [diff] [blame] | 49 | config CMD_BOOTM |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 50 | bool "bootm" |
Masahiro Yamada | 4772cf2 | 2014-09-16 16:33:00 +0900 | [diff] [blame] | 51 | default y |
| 52 | help |
| 53 | Boot an application image from the memory. |
| 54 | |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 55 | config CMD_GO |
| 56 | bool "go" |
Masahiro Yamada | faecb26 | 2014-09-16 16:33:01 +0900 | [diff] [blame] | 57 | default y |
| 58 | help |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 59 | Start an application at a given address. |
| 60 | |
| 61 | config CMD_RUN |
| 62 | bool "run" |
| 63 | help |
| 64 | Run the command in the given environment variable. |
| 65 | |
| 66 | config CMD_IMI |
| 67 | bool "iminfo" |
| 68 | help |
| 69 | Print header information for application image. |
| 70 | |
| 71 | config CMD_IMLS |
| 72 | bool "imls" |
| 73 | help |
| 74 | List all images found in flash |
| 75 | |
| 76 | config CMD_XIMG |
| 77 | bool "imxtract" |
| 78 | help |
| 79 | Extract a part of a multi-image. |
| 80 | |
| 81 | endmenu |
| 82 | |
| 83 | menu "Environment commands" |
Masahiro Yamada | faecb26 | 2014-09-16 16:33:01 +0900 | [diff] [blame] | 84 | |
Masahiro Yamada | aa07dcb | 2014-09-16 16:33:02 +0900 | [diff] [blame] | 85 | config CMD_EXPORTENV |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 86 | bool "env export" |
Masahiro Yamada | aa07dcb | 2014-09-16 16:33:02 +0900 | [diff] [blame] | 87 | default y |
| 88 | help |
| 89 | Export environments. |
| 90 | |
Masahiro Yamada | a1d2013 | 2014-09-16 16:33:04 +0900 | [diff] [blame] | 91 | config CMD_IMPORTENV |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 92 | bool "env import" |
Masahiro Yamada | a1d2013 | 2014-09-16 16:33:04 +0900 | [diff] [blame] | 93 | default y |
| 94 | help |
| 95 | Import environments. |
| 96 | |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 97 | config CMD_EDITENV |
| 98 | bool "editenv" |
| 99 | help |
| 100 | Edit environment variable. |
| 101 | |
| 102 | config CMD_SAVEENV |
| 103 | bool "saveenv" |
| 104 | help |
| 105 | Run the command in the given environment variable. |
| 106 | |
| 107 | endmenu |
| 108 | |
| 109 | menu "Memory commands" |
| 110 | |
| 111 | config CMD_MEMORY |
| 112 | bool "md, mm, nm, mw, cp, cmp, base, loop" |
| 113 | help |
| 114 | Memeory commands. |
| 115 | md - memory display |
| 116 | mm - memory modify (auto-incrementing address) |
| 117 | nm - memory modify (constant address) |
| 118 | mw - memory write (fill) |
| 119 | cp - memory copy |
| 120 | cmp - memory compare |
| 121 | base - print or set address offset |
| 122 | loop - initinite loop on address range |
| 123 | |
| 124 | config CMD_CRC32 |
| 125 | bool "crc32" |
Masahiro Yamada | 5c19947 | 2014-09-16 16:33:03 +0900 | [diff] [blame] | 126 | default y |
| 127 | help |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 128 | Compute CRC32. |
| 129 | |
| 130 | config LOOPW |
| 131 | bool "loopw" |
| 132 | help |
| 133 | Infinite write loop on address range |
| 134 | |
| 135 | config CMD_MEMTEST |
Nikolaos Pasaloukos | ce29d6b | 2015-03-05 13:15:20 +0000 | [diff] [blame] | 136 | bool "memtest" |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 137 | help |
| 138 | Simple RAM read/write test. |
| 139 | |
| 140 | config CMD_MX_CYCLIC |
| 141 | bool "mdc, mwc" |
| 142 | help |
| 143 | mdc - memory display cyclic |
| 144 | mwc - memory write cyclic |
| 145 | |
| 146 | config CMD_MEMINFO |
| 147 | bool "meminfo" |
| 148 | help |
| 149 | Display memory information. |
| 150 | |
| 151 | endmenu |
| 152 | |
| 153 | menu "Device access commands" |
| 154 | |
Simon Glass | 6851d70 | 2015-02-05 21:41:38 -0700 | [diff] [blame] | 155 | config CMD_DM |
| 156 | bool "dm - Access to driver model information" |
| 157 | depends on DM |
| 158 | default y |
| 159 | help |
| 160 | Provides access to driver model data structures and information, |
| 161 | such as a list of devices, list of uclasses and the state of each |
| 162 | device (e.g. activated). This is not required for operation, but |
| 163 | can be useful to see the state of driver model for debugging or |
| 164 | interest. |
| 165 | |
| 166 | config CMD_DEMO |
| 167 | bool "demo - Demonstration commands for driver model" |
| 168 | depends on DM |
| 169 | help |
| 170 | Provides a 'demo' command which can be used to play around with |
| 171 | driver model. To use this properly you will need to enable one or |
| 172 | both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE). |
| 173 | Otherwise you will always get an empty list of devices. The demo |
| 174 | devices are defined in the sandbox device tree, so the easiest |
| 175 | option is to use sandbox and pass the -d point to sandbox's |
| 176 | u-boot.dtb file. |
| 177 | |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 178 | config CMD_LOADB |
| 179 | bool "loadb" |
| 180 | help |
| 181 | Load a binary file over serial line. |
| 182 | |
| 183 | config CMD_LOADS |
| 184 | bool "loads" |
| 185 | help |
| 186 | Load an S-Record file over serial line |
| 187 | |
| 188 | config CMD_FLASH |
| 189 | bool "flinfo, erase, protect" |
| 190 | help |
| 191 | NOR flash support. |
| 192 | flinfo - print FLASH memory information |
| 193 | erase - FLASH memory |
| 194 | protect - enable or disable FLASH write protection |
| 195 | |
Linus Walleij | 5df417b | 2015-04-05 01:48:31 +0200 | [diff] [blame] | 196 | config CMD_ARMFLASH |
| 197 | depends on FLASH_CFI_DRIVER |
| 198 | bool "armflash" |
| 199 | help |
| 200 | ARM Ltd reference designs flash partition access |
| 201 | |
Masahiro Yamada | 56ef2bf | 2014-11-13 19:29:08 +0900 | [diff] [blame] | 202 | config CMD_NAND |
| 203 | bool "nand" |
| 204 | help |
| 205 | NAND support. |
| 206 | |
| 207 | config CMD_SPI |
| 208 | bool "sspi" |
| 209 | help |
| 210 | SPI utility command. |
| 211 | |
| 212 | config CMD_I2C |
| 213 | bool "i2c" |
| 214 | help |
| 215 | I2C support. |
| 216 | |
| 217 | config CMD_USB |
| 218 | bool "usb" |
| 219 | help |
| 220 | USB support. |
| 221 | |
| 222 | config CMD_FPGA |
| 223 | bool "fpga" |
| 224 | help |
| 225 | FPGA support. |
| 226 | |
| 227 | endmenu |
| 228 | |
| 229 | |
| 230 | menu "Shell scripting commands" |
| 231 | |
| 232 | config CMD_ECHO |
| 233 | bool "echo" |
| 234 | help |
| 235 | Echo args to console |
| 236 | |
| 237 | config CMD_ITEST |
| 238 | bool "itest" |
| 239 | help |
| 240 | Return true/false on integer compare. |
| 241 | |
| 242 | config CMD_SOURCE |
| 243 | bool "source" |
| 244 | help |
| 245 | Run script from memory |
| 246 | |
| 247 | endmenu |
| 248 | |
| 249 | menu "Network commands" |
| 250 | |
| 251 | config CMD_NET |
| 252 | bool "bootp, tftpboot" |
| 253 | help |
| 254 | Network commands. |
| 255 | bootp - boot image via network using BOOTP/TFTP protocol |
| 256 | tftpboot - boot image via network using TFTP protocol |
| 257 | |
| 258 | config CMD_TFTPPUT |
| 259 | bool "tftp put" |
| 260 | help |
| 261 | TFTP put command, for uploading files to a server |
| 262 | |
| 263 | config CMD_TFTPSRV |
| 264 | bool "tftpsrv" |
| 265 | help |
| 266 | Act as a TFTP server and boot the first received file |
| 267 | |
| 268 | config CMD_RARP |
| 269 | bool "rarpboot" |
| 270 | help |
| 271 | Boot image via network using RARP/TFTP protocol |
| 272 | |
| 273 | config CMD_DHCP |
| 274 | bool "dhcp" |
| 275 | help |
| 276 | Boot image via network using DHCP/TFTP protocol |
| 277 | |
| 278 | config CMD_NFS |
| 279 | bool "nfs" |
| 280 | help |
| 281 | Boot image via network using NFS protocol. |
| 282 | |
| 283 | config CMD_PING |
| 284 | bool "ping" |
| 285 | help |
| 286 | Send ICMP ECHO_REQUEST to network host |
| 287 | |
| 288 | config CMD_CDP |
| 289 | bool "cdp" |
| 290 | help |
| 291 | Perform CDP network configuration |
| 292 | |
| 293 | config CMD_SNTP |
| 294 | bool "sntp" |
| 295 | help |
| 296 | Synchronize RTC via network |
| 297 | |
| 298 | config CMD_DNS |
| 299 | bool "dns" |
| 300 | help |
| 301 | Lookup the IP of a hostname |
| 302 | |
| 303 | config CMD_DNS |
| 304 | bool "dns" |
| 305 | help |
| 306 | Lookup the IP of a hostname |
| 307 | |
| 308 | config CMD_LINK_LOCAL |
| 309 | bool "linklocal" |
| 310 | help |
| 311 | Acquire a network IP address using the link-local protocol |
| 312 | |
| 313 | endmenu |
| 314 | |
| 315 | menu "Misc commands" |
| 316 | |
| 317 | config CMD_TIME |
| 318 | bool "time" |
| 319 | help |
| 320 | Run commands and summarize execution time. |
| 321 | |
| 322 | # TODO: rename to CMD_SLEEP |
| 323 | config CMD_MISC |
| 324 | bool "sleep" |
| 325 | help |
| 326 | Delay execution for some time |
| 327 | |
| 328 | config CMD_TIMER |
| 329 | bool "timer" |
| 330 | help |
| 331 | Access the system timer. |
| 332 | |
| 333 | config CMD_SETGETDCR |
| 334 | bool "getdcr, setdcr, getidcr, setidcr" |
| 335 | depends on 4xx |
| 336 | help |
| 337 | getdcr - Get an AMCC PPC 4xx DCR's value |
| 338 | setdcr - Set an AMCC PPC 4xx DCR's value |
| 339 | getidcr - Get a register value via indirect DCR addressing |
| 340 | setidcr - Set a register value via indirect DCR addressing |
| 341 | |
| 342 | endmenu |
Masahiro Yamada | 5c19947 | 2014-09-16 16:33:03 +0900 | [diff] [blame] | 343 | |
Simon Glass | 5322d62 | 2015-03-02 17:04:37 -0700 | [diff] [blame] | 344 | menu "Boot timing" |
| 345 | |
| 346 | config BOOTSTAGE |
| 347 | bool "Boot timing and reporting" |
| 348 | help |
| 349 | Enable recording of boot time while booting. To use it, insert |
| 350 | calls to bootstage_mark() with a suitable BOOTSTAGE_ID from |
| 351 | bootstage.h. Only a single entry is recorded for each ID. You can |
| 352 | give the entry a name with bootstage_mark_name(). You can also |
| 353 | record elapsed time in a particular stage using bootstage_start() |
| 354 | before starting and bootstage_accum() when finished. Bootstage will |
| 355 | add up all the accumated time and report it. |
| 356 | |
| 357 | Normally, IDs are defined in bootstage.h but a small number of |
| 358 | additional 'user' IDs can be used but passing BOOTSTAGE_ID_ALLOC |
| 359 | as the ID. |
| 360 | |
| 361 | Calls to show_boot_progress() wil also result in log entries but |
| 362 | these will not have names. |
| 363 | |
| 364 | config BOOTSTAGE_REPORT |
| 365 | bool "Display a detailed boot timing report before booting the OS" |
| 366 | depends on BOOTSTAGE |
| 367 | help |
| 368 | Enable output of a boot time report just before the OS is booted. |
| 369 | This shows how long it took U-Boot to go through each stage of the |
| 370 | boot process. The report looks something like this: |
| 371 | |
| 372 | Timer summary in microseconds: |
| 373 | Mark Elapsed Stage |
| 374 | 0 0 reset |
| 375 | 3,575,678 3,575,678 board_init_f start |
| 376 | 3,575,695 17 arch_cpu_init A9 |
| 377 | 3,575,777 82 arch_cpu_init done |
| 378 | 3,659,598 83,821 board_init_r start |
| 379 | 3,910,375 250,777 main_loop |
| 380 | 29,916,167 26,005,792 bootm_start |
| 381 | 30,361,327 445,160 start_kernel |
| 382 | |
| 383 | config BOOTSTAGE_USER_COUNT |
| 384 | hex "Number of boot ID numbers available for user use" |
| 385 | default 20 |
| 386 | help |
| 387 | This is the number of available user bootstage records. |
| 388 | Each time you call bootstage_mark(BOOTSTAGE_ID_ALLOC, ...) |
| 389 | a new ID will be allocated from this stash. If you exceed |
| 390 | the limit, recording will stop. |
| 391 | |
| 392 | config CMD_BOOTSTAGE |
| 393 | bool "Enable the 'bootstage' command" |
| 394 | depends on BOOTSTAGE |
| 395 | help |
| 396 | Add a 'bootstage' command which supports printing a report |
| 397 | and un/stashing of bootstage data. |
| 398 | |
| 399 | config BOOTSTAGE_FDT |
| 400 | bool "Store boot timing information in the OS device tree" |
| 401 | depends on BOOTSTAGE |
| 402 | help |
| 403 | Stash the bootstage information in the FDT. A root 'bootstage' |
| 404 | node is created with each bootstage id as a child. Each child |
| 405 | has a 'name' property and either 'mark' containing the |
| 406 | mark time in microsecond, or 'accum' containing the |
| 407 | accumulated time for that bootstage id in microseconds. |
| 408 | For example: |
| 409 | |
| 410 | bootstage { |
| 411 | 154 { |
| 412 | name = "board_init_f"; |
| 413 | mark = <3575678>; |
| 414 | }; |
| 415 | 170 { |
| 416 | name = "lcd"; |
| 417 | accum = <33482>; |
| 418 | }; |
| 419 | }; |
| 420 | |
| 421 | Code in the Linux kernel can find this in /proc/devicetree. |
| 422 | |
| 423 | config BOOTSTAGE_STASH |
| 424 | bool "Stash the boot timing information in memory before booting OS" |
| 425 | depends on BOOTSTAGE |
| 426 | help |
| 427 | Some OSes do not support device tree. Bootstage can instead write |
| 428 | the boot timing information in a binary format at a given address. |
| 429 | This happens through a call to bootstage_stash(), typically in |
| 430 | the CPU's cleanup_before_linux() function. You can use the |
| 431 | 'bootstage stash' and 'bootstage unstash' commands to do this on |
| 432 | the command line. |
| 433 | |
| 434 | config BOOTSTAGE_STASH_ADDR |
| 435 | hex "Address to stash boot timing information" |
| 436 | default 0 |
| 437 | help |
| 438 | Provide an address which will not be overwritten by the OS when it |
| 439 | starts, so that it can read this information when ready. |
| 440 | |
| 441 | config BOOTSTAGE_STASH_SIZE |
| 442 | hex "Size of boot timing stash region" |
| 443 | default 4096 |
| 444 | help |
| 445 | This should be large enough to hold the bootstage stash. A value of |
| 446 | 4096 (4KiB) is normally plenty. |
| 447 | |
| 448 | endmenu |
| 449 | |
Masahiro Yamada | f3e12b7 | 2014-09-16 16:32:58 +0900 | [diff] [blame] | 450 | endmenu |