blob: 1b53e5be5adc9f1d188dc0792061fd01ff03db9c [file] [log] [blame]
Simon Glass29499a02016-01-17 20:53:51 -07001menu "Command line interface"
2
Simon Glassaa34ef22016-03-13 19:07:28 -06003config CMDLINE
4 bool "Support U-Boot commands"
5 default y
6 help
7 Enable U-Boot's command-line functions. This provides a means
8 to enter commands into U-Boot for a wide variety of purposes. It
9 also allows scripts (containing commands) to be executed.
10 Various commands and command categorys can be indivdually enabled.
11 Depending on the number of commands enabled, this can add
12 substantially to the size of U-Boot.
13
Simon Glass29499a02016-01-17 20:53:51 -070014config HUSH_PARSER
15 bool "Use hush shell"
Simon Glassaa34ef22016-03-13 19:07:28 -060016 depends on CMDLINE
Simon Glass29499a02016-01-17 20:53:51 -070017 help
18 This option enables the "hush" shell (from Busybox) as command line
19 interpreter, thus enabling powerful command line syntax like
20 if...then...else...fi conditionals or `&&' and '||'
21 constructs ("shell scripts").
22
23 If disabled, you get the old, much simpler behaviour with a somewhat
24 smaller memory footprint.
25
Adam Ford58dbf862018-02-06 07:58:59 -060026config CMDLINE_EDITING
27 bool "Enable command line editing"
28 depends on CMDLINE
29 default y
30 help
31 Enable editing and History functions for interactive command line
32 input operations
33
34config AUTO_COMPLETE
35 bool "Enable auto complete using TAB"
36 depends on CMDLINE
37 default y
38 help
39 Enable auto completion of commands using TAB.
40
41config SYS_LONGHELP
42 bool "Enable long help messages"
43 depends on CMDLINE
44 default y if CMDLINE
45 help
46 Defined when you want long help messages included
47 Do not set this option when short of memory.
48
Simon Glass29499a02016-01-17 20:53:51 -070049config SYS_PROMPT
50 string "Shell prompt"
Michal Simekf048cae2019-09-25 12:32:41 +020051 default "Zynq> " if ARCH_ZYNQ
Michal Simek4f107432019-09-25 12:37:15 +020052 default "ZynqMP> " if ARCH_ZYNQMP
Simon Glass29499a02016-01-17 20:53:51 -070053 default "=> "
54 help
55 This string is displayed in the command line to the left of the
56 cursor.
57
Patrick Delaunaya81e9dc2020-10-26 09:31:42 +010058config SYS_PROMPT_HUSH_PS2
59 string "Hush shell secondary prompt"
60 depends on HUSH_PARSER
61 default "> "
62 help
63 This defines the secondary prompt string, which is
64 printed when the command interpreter needs more input
65 to complete a command. Usually "> ".
66
Christoph Muellner388b1452019-04-05 13:03:46 +020067config SYS_XTRACE
68 string "Command execution tracer"
69 depends on CMDLINE
70 default y if CMDLINE
71 help
72 This option enables the possiblity to print all commands before
73 executing them and after all variables are evaluated (similar
74 to Bash's xtrace/'set -x' feature).
75 To enable the tracer a variable "xtrace" needs to be defined in
76 the environment.
77
Sam Protsenko13c1f3a2017-09-28 12:33:45 -070078config BUILD_BIN2C
79 bool
80
Simon Glass29499a02016-01-17 20:53:51 -070081comment "Commands"
82
83menu "Info commands"
84
Simon Glassfaf08c72020-04-26 09:19:53 -060085config CMD_ACPI
86 bool "acpi"
87 default y if ACPIGEN
88 help
89 List and dump ACPI tables. ACPI (Advanced Configuration and Power
90 Interface) is used mostly on x86 for providing information to the
91 Operating System about devices in the system. The tables are set up
92 by the firmware, typically U-Boot but possibly an earlier firmware
93 module, if U-Boot is chain-loaded from something else. ACPI tables
94 can also include code, to perform hardware-specific tasks required
95 by the Operating Systems. This allows some amount of separation
96 between the firmware and OS, and is particularly useful when you
97 want to make hardware changes without the OS needing to be adjusted.
98
Simon Glass29499a02016-01-17 20:53:51 -070099config CMD_BDI
100 bool "bdinfo"
101 default y
102 help
103 Print board info
104
Masahiro Yamadabb92b422017-01-30 11:12:07 +0900105config CMD_CONFIG
106 bool "config"
Masahiro Yamadabb92b422017-01-30 11:12:07 +0900107 default SANDBOX
Michal Simek84f3dec2018-07-23 15:55:13 +0200108 select BUILD_BIN2C
Masahiro Yamadabb92b422017-01-30 11:12:07 +0900109 help
110 Print ".config" contents.
111
112 If this option is enabled, the ".config" file contents are embedded
113 in the U-Boot image and can be printed on the console by the "config"
114 command. This provides information of which options are enabled on
115 the running U-Boot.
116
Simon Glass29499a02016-01-17 20:53:51 -0700117config CMD_CONSOLE
118 bool "coninfo"
119 default y
120 help
121 Print console devices and information.
122
123config CMD_CPU
124 bool "cpu"
Heinrich Schuchardt1cdcd0c2020-11-05 00:29:11 +0100125 depends on CPU
Simon Glass29499a02016-01-17 20:53:51 -0700126 help
127 Print information about available CPUs. This normally shows the
128 number of CPUs, type (e.g. manufacturer, architecture, product or
129 internal name) and clock frequency. Other information may be
130 available depending on the CPU driver.
131
132config CMD_LICENSE
133 bool "license"
Masahiro Yamada81680332017-01-30 11:12:08 +0900134 select BUILD_BIN2C
Simon Glass29499a02016-01-17 20:53:51 -0700135 help
136 Print GPL license text
137
Simon Glass8c501022019-12-06 21:41:54 -0700138config CMD_PMC
139 bool "pmc"
140 help
141 Provides access to the Intel Power-Management Controller (PMC) so
142 that its state can be examined. This does not currently support
143 changing the state but it is still useful for debugging and seeing
144 what is going on.
145
Christophe Leroye538bbc2017-08-04 16:34:40 -0600146config CMD_REGINFO
147 bool "reginfo"
148 depends on PPC
149 help
150 Register dump
151
Baruch Siachfad48982020-01-21 15:44:54 +0200152config CMD_TLV_EEPROM
153 bool "tlv_eeprom"
154 depends on I2C_EEPROM
155 help
156 Display and program the system EEPROM data block in ONIE Tlvinfo
157 format. TLV stands for Type-Length-Value.
158
159config SPL_CMD_TLV_EEPROM
160 bool "tlv_eeprom for SPL"
161 depends on SPL_I2C_EEPROM
162 select SPL_DRIVERS_MISC_SUPPORT
163 help
164 Read system EEPROM data block in ONIE Tlvinfo format from SPL.
165
Heinrich Schuchardt95492ae2020-08-20 19:43:39 +0200166config CMD_SBI
167 bool "sbi"
168 depends on RISCV_SMODE && SBI_V02
169 help
170 Display information about the SBI implementation.
171
Simon Glass29499a02016-01-17 20:53:51 -0700172endmenu
173
174menu "Boot commands"
175
176config CMD_BOOTD
177 bool "bootd"
178 default y
179 help
180 Run the command stored in the environment "bootcmd", i.e.
181 "bootd" does the same thing as "run bootcmd".
182
183config CMD_BOOTM
184 bool "bootm"
185 default y
186 help
187 Boot an application image from the memory.
188
Cristian Ciocaltea6aca5982019-12-24 18:05:39 +0200189config BOOTM_EFI
190 bool "Support booting UEFI FIT images"
191 depends on CMD_BOOTEFI && CMD_BOOTM && FIT
192 default y
193 help
194 Support booting UEFI FIT images via the bootm command.
195
Dinh Nguyen0685bef2016-04-21 09:05:23 -0500196config CMD_BOOTZ
197 bool "bootz"
198 help
199 Boot the Linux zImage
200
Masahiro Yamada04cf1552016-08-12 08:31:16 -0400201config CMD_BOOTI
202 bool "booti"
Atish Patra583b4092019-05-06 17:49:39 -0700203 depends on ARM64 || RISCV
Masahiro Yamada04cf1552016-08-12 08:31:16 -0400204 default y
205 help
206 Boot an AArch64 Linux Kernel image from memory.
207
Tom Rini9a102072019-09-20 17:36:50 -0400208config BOOTM_LINUX
209 bool "Support booting Linux OS images"
210 depends on CMD_BOOTM || CMD_BOOTZ || CMD_BOOTI
211 default y
212 help
213 Support booting the Linux kernel directly via a command such as bootm
214 or booti or bootz.
215
216config BOOTM_NETBSD
217 bool "Support booting NetBSD (non-EFI) loader images"
218 depends on CMD_BOOTM
219 default y
220 help
221 Support booting NetBSD via the bootm command.
222
223config BOOTM_OPENRTOS
224 bool "Support booting OPENRTOS / FreeRTOS images"
225 depends on CMD_BOOTM
226 help
227 Support booting OPENRTOS / FreeRTOS via the bootm command.
228
229config BOOTM_OSE
230 bool "Support booting Enea OSE images"
Tom Rini1d0b1fc2019-12-05 18:46:11 -0500231 depends on (ARM && (ARM64 || CPU_V7A || CPU_V7R) || SANDBOX || PPC || X86)
Tom Rini9a102072019-09-20 17:36:50 -0400232 depends on CMD_BOOTM
233 help
234 Support booting Enea OSE images via the bootm command.
235
236config BOOTM_PLAN9
237 bool "Support booting Plan9 OS images"
238 depends on CMD_BOOTM
239 default y
240 help
241 Support booting Plan9 images via the bootm command.
242
243config BOOTM_RTEMS
244 bool "Support booting RTEMS OS images"
245 depends on CMD_BOOTM
246 default y
247 help
248 Support booting RTEMS images via the bootm command.
249
250config BOOTM_VXWORKS
251 bool "Support booting VxWorks OS images"
252 depends on CMD_BOOTM
253 default y
254 help
255 Support booting VxWorks images via the bootm command.
256
AKASHI Takahiro8d95b6e2019-11-08 10:32:15 +0900257config CMD_BOOTEFI
258 bool "bootefi"
259 depends on EFI_LOADER
260 default y
261 help
262 Boot an EFI image from memory.
263
Alexander Grafb5483512016-11-17 22:40:10 +0100264config CMD_BOOTEFI_HELLO_COMPILE
265 bool "Compile a standard EFI hello world binary for testing"
Heinrich Schuchardt0f675d92019-11-07 08:05:17 +0100266 depends on CMD_BOOTEFI && !CPU_V7M
Alexander Grafb5483512016-11-17 22:40:10 +0100267 default y
268 help
269 This compiles a standard EFI hello world application with U-Boot so
270 that it can be used with the test/py testing framework. This is useful
271 for testing that EFI is working at a basic level, and for bringing
272 up EFI support on a new architecture.
273
274 No additional space will be required in the resulting U-Boot binary
275 when this option is enabled.
276
Simon Glassfac4ced2016-11-07 08:47:08 -0700277config CMD_BOOTEFI_HELLO
278 bool "Allow booting a standard EFI hello world for testing"
Alexander Grafb5483512016-11-17 22:40:10 +0100279 depends on CMD_BOOTEFI_HELLO_COMPILE
Heinrich Schuchardt9ad6e1e2020-07-13 07:33:40 +0200280 default y if CMD_BOOTEFI_SELFTEST
Simon Glassfac4ced2016-11-07 08:47:08 -0700281 help
282 This adds a standard EFI hello world application to U-Boot so that
283 it can be used with the 'bootefi hello' command. This is useful
284 for testing that EFI is working at a basic level, and for bringing
285 up EFI support on a new architecture.
286
Heinrich Schuchardtd33ae3e2017-09-15 10:06:11 +0200287source lib/efi_selftest/Kconfig
288
Tom Rini697f4732016-11-29 09:14:56 -0500289config CMD_BOOTMENU
290 bool "bootmenu"
291 select MENU
292 help
293 Add an ANSI terminal boot menu command.
294
Eugeniu Roscaee98dac2019-12-24 17:51:06 +0100295config CMD_ADTIMG
296 bool "adtimg"
Sam Protsenko92f95bb2018-08-16 23:34:13 +0300297 help
298 Android DTB/DTBO image manipulation commands. Read dtb/dtbo files from
299 image into RAM, dump image structure information, etc. Those dtb/dtbo
300 files should be merged in one dtb further, which needs to be passed to
301 the kernel, as part of a boot process.
302
Sam Protsenko035502e2020-01-24 17:53:42 +0200303config CMD_ABOOTIMG
304 bool "abootimg"
305 depends on ANDROID_BOOT_IMAGE
306 help
307 Android Boot Image manipulation commands. Allows one to extract
308 images contained in boot.img, like kernel, ramdisk, dtb, etc, and
309 obtain corresponding meta-information from boot.img.
310
Sam Protsenkod8efc7c2020-01-24 17:53:43 +0200311 See doc/android/boot-image.rst for details.
312
Simon Glass29499a02016-01-17 20:53:51 -0700313config CMD_ELF
314 bool "bootelf, bootvx"
315 default y
Keerthy76f361a2020-02-12 13:55:03 +0530316 select LIB_ELF
Simon Glass29499a02016-01-17 20:53:51 -0700317 help
318 Boot an ELF/vxWorks image from the memory.
319
Michal Simekf168c652016-04-06 20:28:04 +0200320config CMD_FDT
321 bool "Flattened Device Tree utility commands"
322 default y
323 depends on OF_LIBFDT
324 help
325 Do FDT related setup before booting into the Operating System.
326
Simon Glass29499a02016-01-17 20:53:51 -0700327config CMD_GO
328 bool "go"
329 default y
330 help
331 Start an application at a given address.
332
333config CMD_RUN
334 bool "run"
335 default y
336 help
337 Run the command in the given environment variable.
338
339config CMD_IMI
340 bool "iminfo"
341 default y
342 help
343 Print header information for application image.
344
345config CMD_IMLS
346 bool "imls"
Simon Glass29499a02016-01-17 20:53:51 -0700347 help
348 List all images found in flash
349
350config CMD_XIMG
351 bool "imxtract"
352 default y
353 help
354 Extract a part of a multi-image.
355
Simon Glassc6567fa2017-08-04 16:34:48 -0600356config CMD_SPL
357 bool "spl export - Export boot information for Falcon boot"
358 depends on SPL
359 help
360 Falcon mode allows booting directly from SPL into an Operating
361 System such as Linux, thus skipping U-Boot proper. See
362 doc/README.falcon for full information about how to use this
363 command.
364
Simon Glassc034e3d2017-08-04 16:34:49 -0600365config CMD_SPL_NAND_OFS
Lukasz Majewski10797442019-05-16 16:01:36 +0200366 hex "Offset of OS args or dtb for Falcon-mode NAND boot"
Lukasz Majewskie73ce322019-05-16 16:01:35 +0200367 depends on CMD_SPL && (TPL_NAND_SUPPORT || SPL_NAND_SUPPORT)
Simon Glassc034e3d2017-08-04 16:34:49 -0600368 default 0
369 help
370 This provides the offset of the command line arguments for Linux
371 when booting from NAND in Falcon mode. See doc/README.falcon
372 for full information about how to use this option (and also see
373 board/gateworks/gw_ventana/README for an example).
374
Lukasz Majewski06d92532019-05-16 16:01:37 +0200375config CMD_SPL_NOR_OFS
376 hex "Offset of OS args or dtb for Falcon-mode NOR boot"
377 depends on CMD_SPL && SPL_NOR_SUPPORT
378 default 0
379 help
380 This provides the offset of the command line arguments or dtb for
381 Linux when booting from NOR in Falcon mode.
382
Simon Glass51ef45a2017-08-04 16:34:50 -0600383config CMD_SPL_WRITE_SIZE
384 hex "Size of argument area"
385 depends on CMD_SPL
386 default 0x2000
387 help
388 This provides the size of the command-line argument area in NAND
389 flash used by Falcon-mode boot. See the documentation until CMD_SPL
390 for detail.
391
Simon Glassa18b9692017-08-04 16:34:57 -0600392config CMD_THOR_DOWNLOAD
393 bool "thor - TIZEN 'thor' download"
Marek Szyprowskide4752e2019-10-02 12:29:08 +0200394 select DFU
Simon Glassa18b9692017-08-04 16:34:57 -0600395 help
396 Implements the 'thor' download protocol. This is a way of
397 downloading a software update over USB from an attached host.
398 There is no documentation about this within the U-Boot source code
399 but you should be able to find something on the interwebs.
400
Simon Glass01d097d2017-08-04 16:35:03 -0600401config CMD_ZBOOT
402 bool "zboot - x86 boot command"
403 help
404 With x86 machines it is common to boot a bzImage file which
405 contains both a kernel and a setup.bin file. The latter includes
406 configuration information from the dark ages which x86 boards still
407 need to pick things out of.
408
409 Consider using FIT in preference to this since it supports directly
410 booting both 32- and 64-bit kernels, as well as secure boot.
411 Documentation is available in doc/uImage.FIT/x86-fit-boot.txt
412
Simon Glass29499a02016-01-17 20:53:51 -0700413endmenu
414
415menu "Environment commands"
416
Dinh Nguyen0685bef2016-04-21 09:05:23 -0500417config CMD_ASKENV
418 bool "ask for env variable"
419 help
420 Ask for environment variable
421
Simon Glass29499a02016-01-17 20:53:51 -0700422config CMD_EXPORTENV
423 bool "env export"
424 default y
425 help
426 Export environments.
427
428config CMD_IMPORTENV
429 bool "env import"
430 default y
431 help
432 Import environments.
433
434config CMD_EDITENV
435 bool "editenv"
436 default y
437 help
438 Edit environment variable.
439
Dinh Nguyen0685bef2016-04-21 09:05:23 -0500440config CMD_GREPENV
441 bool "search env"
442 help
443 Allow for searching environment variables
444
Simon Glass29499a02016-01-17 20:53:51 -0700445config CMD_SAVEENV
446 bool "saveenv"
447 default y
448 help
449 Save all environment variables into the compiled-in persistent
450 storage.
451
Frank Wunderlich33afa932019-06-29 11:36:19 +0200452config CMD_ERASEENV
453 bool "eraseenv"
454 default n
455 depends on CMD_SAVEENV
456 help
457 Erase environment variables from the compiled-in persistent
458 storage.
459
Simon Glass29499a02016-01-17 20:53:51 -0700460config CMD_ENV_EXISTS
461 bool "env exists"
462 default y
463 help
464 Check if a variable is defined in the environment for use in
465 shell scripting.
466
Simon Glass84d67c72017-05-17 03:25:13 -0600467config CMD_ENV_CALLBACK
468 bool "env callbacks - print callbacks and their associated variables"
469 help
470 Some environment variable have callbacks defined by
471 U_BOOT_ENV_CALLBACK. These are called when the variable changes.
472 For example changing "baudrate" adjust the serial baud rate. This
473 command lists the currently defined callbacks.
474
Simon Glassc31e2d82017-05-17 03:25:14 -0600475config CMD_ENV_FLAGS
476 bool "env flags -print variables that have non-default flags"
477 help
478 Some environment variables have special flags that control their
479 behaviour. For example, serial# can only be written once and cannot
480 be deleted. This command shows the variables that have special
481 flags.
482
AKASHI Takahiro117e68a2019-02-25 15:54:36 +0900483config CMD_NVEDIT_EFI
484 bool "env [set|print] -e - set/print UEFI variables"
485 depends on EFI_LOADER
AKASHI Takahiro117e68a2019-02-25 15:54:36 +0900486 imply HEXDUMP
487 help
488 UEFI variables are encoded as some form of U-Boot variables.
489 If enabled, we are allowed to set/print UEFI variables using
490 "env" command with "-e" option without knowing details.
491
Leo Ruan7450b872019-05-24 17:20:19 +0200492config CMD_NVEDIT_INFO
493 bool "env info - print or evaluate environment information"
494 help
495 Print environment information:
496 - env_valid : is environment valid
497 - env_ready : is environment imported into hash table
498 - env_use_default : is default environment used
499
500 This command can be optionally used for evaluation in scripts:
501 [-d] : evaluate whether default environment is used
502 [-p] : evaluate whether environment can be persisted
Patrick Delaunay109ec8f2020-06-19 14:03:34 +0200503 [-q] : quiet output
Leo Ruan7450b872019-05-24 17:20:19 +0200504 The result of multiple evaluations will be combined with AND.
505
Patrick Delaunay748e42e2020-07-28 11:51:20 +0200506config CMD_NVEDIT_LOAD
507 bool "env load"
508 help
509 Load all environment variables from the compiled-in persistent
510 storage.
511
Patrick Delaunaya59f7ec2020-07-28 11:51:21 +0200512config CMD_NVEDIT_SELECT
513 bool "env select"
514 help
515 Select the compiled-in persistent storage of environment variables.
516
Simon Glass29499a02016-01-17 20:53:51 -0700517endmenu
518
519menu "Memory commands"
520
Mario Six8a4f6642018-03-28 14:39:18 +0200521config CMD_BINOP
522 bool "binop"
523 help
524 Compute binary operations (xor, or, and) of byte arrays of arbitrary
525 size from memory and store the result in memory or the environment.
526
Simon Glassb936a972020-09-19 18:49:26 -0600527config CMD_BLOBLIST
528 bool "bloblist"
529 default y if BLOBLIST
530 help
531 Show information about the bloblist, a collection of binary blobs
532 held in memory that persist between SPL and U-Boot. In the case of
533 x86 devices the bloblist can be used to hold ACPI tables so that they
534 remain available in memory.
535
Simon Glass29499a02016-01-17 20:53:51 -0700536config CMD_CRC32
537 bool "crc32"
538 default y
Michal Simek84f3dec2018-07-23 15:55:13 +0200539 select HASH
Simon Glass29499a02016-01-17 20:53:51 -0700540 help
541 Compute CRC32.
542
Daniel Thompsona9e2c672017-05-19 17:26:58 +0100543config CRC32_VERIFY
544 bool "crc32 -v"
545 depends on CMD_CRC32
546 help
547 Add -v option to verify data against a crc32 checksum.
548
Simon Glass4590d4e2017-05-17 03:25:10 -0600549config CMD_EEPROM
550 bool "eeprom - EEPROM subsystem"
551 help
552 (deprecated, needs conversion to driver model)
553 Provides commands to read and write EEPROM (Electrically Erasable
554 Programmable Read Only Memory) chips that are connected over an
555 I2C bus.
556
557config CMD_EEPROM_LAYOUT
558 bool "Enable layout-aware eeprom commands"
559 depends on CMD_EEPROM
560 help
561 (deprecated, needs conversion to driver model)
562 When enabled, additional eeprom sub-commands become available.
563
564 eeprom print - prints the contents of the eeprom in a human-readable
565 way (eeprom layout fields, and data formatted to be fit for human
566 consumption).
567
568 eeprom update - allows user to update eeprom fields by specifying
569 the field name, and providing the new data in a human readable format
570 (same format as displayed by the eeprom print command).
571
572 Both commands can either auto detect the layout, or be told which
573 layout to use.
574
575 Feature API:
576 __weak int parse_layout_version(char *str)
577 - override to provide your own layout name parsing
578 __weak void __eeprom_layout_assign(struct eeprom_layout *layout,
579 int layout_version);
580 - override to setup the layout metadata based on the version
581 __weak int eeprom_layout_detect(unsigned char *data)
582 - override to provide your own algorithm for detecting layout
583 version
584 eeprom_field.c
585 - contains various printing and updating functions for common
586 types of eeprom fields. Can be used for defining
587 custom layouts.
588
589config EEPROM_LAYOUT_HELP_STRING
590 string "Tells user what layout names are supported"
591 depends on CMD_EEPROM_LAYOUT
592 default "<not defined>"
593 help
594 Help printed with the LAYOUT VERSIONS part of the 'eeprom'
595 command's help.
596
Simon Glass26c20532017-08-04 16:34:51 -0600597config LOOPW
598 bool "loopw"
599 help
600 Infinite write loop on address range
601
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000602config CMD_MD5SUM
603 bool "md5sum"
604 default n
605 select MD5
606 help
607 Compute MD5 checksum.
608
Daniel Thompsona9e2c672017-05-19 17:26:58 +0100609config MD5SUM_VERIFY
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000610 bool "md5sum -v"
611 default n
612 depends on CMD_MD5SUM
613 help
614 Add -v option to verify data against an MD5 checksum.
615
Simon Glass26c20532017-08-04 16:34:51 -0600616config CMD_MEMINFO
617 bool "meminfo"
Daniel Thompsona9e2c672017-05-19 17:26:58 +0100618 help
Simon Glass26c20532017-08-04 16:34:51 -0600619 Display memory information.
Daniel Thompsona9e2c672017-05-19 17:26:58 +0100620
Simon Glass26c20532017-08-04 16:34:51 -0600621config CMD_MEMORY
622 bool "md, mm, nm, mw, cp, cmp, base, loop"
623 default y
Simon Glass29499a02016-01-17 20:53:51 -0700624 help
Simon Glass26c20532017-08-04 16:34:51 -0600625 Memory commands.
626 md - memory display
627 mm - memory modify (auto-incrementing address)
628 nm - memory modify (constant address)
629 mw - memory write (fill)
630 cp - memory copy
631 cmp - memory compare
632 base - print or set address offset
633 loop - initialize loop on address range
Simon Glass29499a02016-01-17 20:53:51 -0700634
Simon Glass573c0fa2020-07-28 19:41:14 -0600635config CMD_MEM_SEARCH
Simon Glass19038de2020-06-02 19:26:49 -0600636 bool "ms - Memory search"
637 help
638 Memory-search command
639
640 This allows searching through a region of memory looking for hex
641 data (byte, 16-bit word, 32-bit long, also 64-bit on machines that
642 support it). It is also possible to search for a string. The
643 command accepts a memory range and a list of values to search for.
644 The values need to appear in memory in the same order they are given
645 in the command. At most 10 matches can be returned at a time, but
646 pressing return will show the next 10 matches. Environment variables
647 are set for use with scripting (memmatches, memaddr, mempos).
648
Joel Johnsondb5a97e2020-01-29 09:17:18 -0700649config CMD_MX_CYCLIC
Adam Ford1ef0c492019-08-14 07:54:34 -0500650 bool "Enable cyclic md/mw commands"
651 depends on CMD_MEMORY
652 help
653 Add the "mdc" and "mwc" memory commands. These are cyclic
654 "md/mw" commands.
655 Examples:
656
657 => mdc.b 10 4 500
658 This command will print 4 bytes (10,11,12,13) each 500 ms.
659
660 => mwc.l 100 12345678 10
661 This command will write 12345678 to address 100 all 10 ms.
662
Jean-Jacques Hiblotd3f09372019-07-02 14:23:26 +0200663config CMD_RANDOM
664 bool "random"
665 default y
666 depends on CMD_MEMORY && (LIB_RAND || LIB_HW_RAND)
667 help
668 random - fill memory with random data
669
Simon Glass29499a02016-01-17 20:53:51 -0700670config CMD_MEMTEST
671 bool "memtest"
672 help
673 Simple RAM read/write test.
674
Mario Six00518992018-03-28 14:38:14 +0200675if CMD_MEMTEST
676
677config SYS_ALT_MEMTEST
678 bool "Alternative test"
679 help
680 Use a more complete alternative memory test.
681
Ralph Siemsen1c39c102020-09-09 12:10:00 -0400682if SYS_ALT_MEMTEST
683
684config SYS_ALT_MEMTEST_BITFLIP
685 bool "Bitflip test"
686 default y
687 help
688 The alternative memory test includes bitflip test since 2020.07.
689 The bitflip test significantly increases the overall test time.
690 Bitflip test can optionally be disabled here.
691
692endif
693
Ashok Reddy Soma41e8edf2020-05-04 15:26:21 +0200694config SYS_MEMTEST_START
695 hex "default start address for mtest"
696 default 0
697 help
698 This is the default start address for mtest for simple read/write
699 test. If no arguments are given to mtest, default address is used
700 as start address.
701
702config SYS_MEMTEST_END
703 hex "default end address for mtest"
704 default 0x1000
705 help
706 This is the default end address for mtest for simple read/write
707 test. If no arguments are given to mtest, default address is used
708 as end address.
709
Mario Six00518992018-03-28 14:38:14 +0200710endif
711
Simon Glass26c20532017-08-04 16:34:51 -0600712config CMD_SHA1SUM
713 bool "sha1sum"
714 select SHA1
Simon Glass29499a02016-01-17 20:53:51 -0700715 help
Simon Glass26c20532017-08-04 16:34:51 -0600716 Compute SHA1 checksum.
717
718config SHA1SUM_VERIFY
719 bool "sha1sum -v"
720 depends on CMD_SHA1SUM
721 help
722 Add -v option to verify data against a SHA1 checksum.
Simon Glass29499a02016-01-17 20:53:51 -0700723
Simon Glass8e83ca82017-08-04 16:34:52 -0600724config CMD_STRINGS
725 bool "strings - display strings in memory"
726 help
727 This works similarly to the Unix 'strings' command except that it
728 works with a memory range. String of printable characters found
729 within the range are displayed. The minimum number of characters
730 for a sequence to be considered a string can be provided.
731
Simon Glassbecaa8f2017-05-17 03:25:43 -0600732endmenu
733
734menu "Compression commands"
735
736config CMD_LZMADEC
737 bool "lzmadec"
Tom Rini3237bc62017-09-29 14:32:44 -0400738 default y if CMD_BOOTI
Simon Glassbecaa8f2017-05-17 03:25:43 -0600739 select LZMA
740 help
741 Support decompressing an LZMA (Lempel-Ziv-Markov chain algorithm)
742 image from memory.
743
Yusuke Ashidukaa20545d2020-02-20 20:48:01 +0900744config CMD_UNLZ4
745 bool "unlz4"
746 default y if CMD_BOOTI
747 select LZ4
748 help
749 Support decompressing an LZ4 image from memory region.
750
Masahiro Yamada2737fd32017-02-05 10:42:56 +0900751config CMD_UNZIP
752 bool "unzip"
Tom Rini3237bc62017-09-29 14:32:44 -0400753 default y if CMD_BOOTI
Michael Wallef253f2c2020-05-22 14:07:35 +0200754 select GZIP
Masahiro Yamada2737fd32017-02-05 10:42:56 +0900755 help
756 Uncompress a zip-compressed memory region.
757
758config CMD_ZIP
759 bool "zip"
Michael Walle3a6e3512020-05-22 14:07:36 +0200760 select GZIP_COMPRESSED
Masahiro Yamada2737fd32017-02-05 10:42:56 +0900761 help
762 Compress a memory region with zlib deflate method.
763
Simon Glass29499a02016-01-17 20:53:51 -0700764endmenu
765
766menu "Device access commands"
767
Simon Glass036bbb12017-08-04 16:34:28 -0600768config CMD_ARMFLASH
769 #depends on FLASH_CFI_DRIVER
770 bool "armflash"
771 help
772 ARM Ltd reference designs flash partition access
773
Neil Armstrong49261c72018-04-27 15:17:57 +0200774config CMD_ADC
775 bool "adc - Access Analog to Digital Converters info and data"
776 select ADC
Michal Simek463c3862020-08-19 10:44:17 +0200777 depends on DM_REGULATOR
Neil Armstrong49261c72018-04-27 15:17:57 +0200778 help
779 Shows ADC device info and permit printing one-shot analog converted
780 data from a named Analog to Digital Converter.
781
Eugeniu Rosca35c34be2019-05-23 17:32:22 +0200782config CMD_BCB
783 bool "bcb"
784 depends on MMC
785 depends on PARTITIONS
786 help
787 Read/modify/write the fields of Bootloader Control Block, usually
788 stored on the flash "misc" partition with its structure defined in:
789 https://android.googlesource.com/platform/bootable/recovery/+/master/
790 bootloader_message/include/bootloader_message/bootloader_message.h
791
792 Some real-life use-cases include (but are not limited to):
793 - Determine the "boot reason" (and act accordingly):
794 https://source.android.com/devices/bootloader/boot-reason
795 - Get/pass a list of commands from/to recovery:
796 https://android.googlesource.com/platform/bootable/recovery
797 - Inspect/dump the contents of the BCB fields
798
Jean-Jacques Hiblote83a31b2018-08-09 16:17:46 +0200799config CMD_BIND
800 bool "bind/unbind - Bind or unbind a device to/from a driver"
801 depends on DM
802 help
803 Bind or unbind a device to/from a driver from the command line.
804 This is useful in situations where a device may be handled by several
805 drivers. For example, this can be used to bind a UDC to the usb ether
806 gadget driver from the command line.
807
Simon Glass04ac6f12017-04-26 22:28:02 -0600808config CMD_CLK
809 bool "clk - Show clock frequencies"
810 help
811 (deprecated)
812 Shows clock frequences by calling a sock_clk_dump() hook function.
813 This is depreated in favour of using the CLK uclass and accessing
814 clock values from associated drivers. However currently no command
815 exists for this.
816
Simon Glass036bbb12017-08-04 16:34:28 -0600817config CMD_DEMO
818 bool "demo - Demonstration commands for driver model"
819 depends on DM
820 help
821 Provides a 'demo' command which can be used to play around with
822 driver model. To use this properly you will need to enable one or
823 both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
824 Otherwise you will always get an empty list of devices. The demo
825 devices are defined in the sandbox device tree, so the easiest
826 option is to use sandbox and pass the -d point to sandbox's
827 u-boot.dtb file.
828
829config CMD_DFU
830 bool "dfu"
Marek Vasutea84f802018-02-16 16:41:17 +0100831 select DFU
Simon Glass036bbb12017-08-04 16:34:28 -0600832 help
833 Enables the command "dfu" which is used to have U-Boot create a DFU
Simon Glass663b0cc2017-08-04 16:35:06 -0600834 class device via USB. This command requires that the "dfu_alt_info"
835 environment variable be set and define the alt settings to expose to
836 the host.
Simon Glass036bbb12017-08-04 16:34:28 -0600837
Simon Glass29499a02016-01-17 20:53:51 -0700838config CMD_DM
839 bool "dm - Access to driver model information"
840 depends on DM
Simon Glass29499a02016-01-17 20:53:51 -0700841 help
842 Provides access to driver model data structures and information,
843 such as a list of devices, list of uclasses and the state of each
844 device (e.g. activated). This is not required for operation, but
845 can be useful to see the state of driver model for debugging or
846 interest.
847
Alex Kiernan65de9552018-05-29 15:30:39 +0000848config CMD_FASTBOOT
849 bool "fastboot - Android fastboot support"
850 depends on FASTBOOT
851 help
852 This enables the command "fastboot" which enables the Android
853 fastboot mode for the platform. Fastboot is a protocol for
854 downloading images, flashing and device control used on
Alex Kiernand5aa57c2018-05-29 15:30:53 +0000855 Android devices. Fastboot requires either the network stack
856 enabled or support for acting as a USB device.
Alex Kiernan65de9552018-05-29 15:30:39 +0000857
Sam Protsenkocd43fa12020-01-24 17:53:44 +0200858 See doc/android/fastboot.rst for more information.
Alex Kiernan65de9552018-05-29 15:30:39 +0000859
Simon Glass036bbb12017-08-04 16:34:28 -0600860config CMD_FLASH
861 bool "flinfo, erase, protect"
862 default y
Miquel Raynald2418202019-10-25 19:39:30 +0200863 depends on MTD || FLASH_CFI_DRIVER || MTD_NOR_FLASH
Simon Glass036bbb12017-08-04 16:34:28 -0600864 help
865 NOR flash support.
866 flinfo - print FLASH memory information
867 erase - FLASH memory
868 protect - enable or disable FLASH write protection
869
870config CMD_FPGA
871 bool "fpga"
Tuomas Tynkkynen5ca16b32018-01-27 20:28:40 +0200872 depends on FPGA
Simon Glass036bbb12017-08-04 16:34:28 -0600873 default y
874 help
875 FPGA support.
876
877config CMD_FPGA_LOADBP
878 bool "fpga loadbp - load partial bitstream (Xilinx only)"
879 depends on CMD_FPGA
880 help
881 Supports loading an FPGA device from a bitstream buffer containing
882 a partial bitstream.
883
884config CMD_FPGA_LOADFS
885 bool "fpga loadfs - load bitstream from FAT filesystem (Xilinx only)"
886 depends on CMD_FPGA
887 help
888 Supports loading an FPGA device from a FAT filesystem.
889
890config CMD_FPGA_LOADMK
891 bool "fpga loadmk - load bitstream from image"
892 depends on CMD_FPGA
893 help
894 Supports loading an FPGA device from a image generated by mkimage.
895
896config CMD_FPGA_LOADP
897 bool "fpga loadp - load partial bitstream"
898 depends on CMD_FPGA
899 help
900 Supports loading an FPGA device from a bitstream buffer containing
901 a partial bitstream.
902
Siva Durga Prasad Paladugucce0cb02018-05-31 15:10:22 +0530903config CMD_FPGA_LOAD_SECURE
904 bool "fpga loads - loads secure bitstreams (Xilinx only)"
905 depends on CMD_FPGA
906 help
907 Enables the fpga loads command which is used to load secure
908 (authenticated or encrypted or both) bitstreams on to FPGA.
909
Simon Glass036bbb12017-08-04 16:34:28 -0600910config CMD_FPGAD
911 bool "fpgad - dump FPGA registers"
912 help
913 (legacy, needs conversion to driver model)
914 Provides a way to dump FPGA registers by calling the board-specific
915 fpga_get_reg() function. This functions similarly to the 'md'
916 command.
917
918config CMD_FUSE
919 bool "fuse - support for the fuse subssystem"
920 help
921 (deprecated - needs conversion to driver model)
922 This allows reading, sensing, programming or overriding fuses
923 which control the behaviour of the device. The command uses the
924 fuse_...() API.
925
926config CMD_GPIO
927 bool "gpio"
928 help
929 GPIO support.
930
931config CMD_GPT
932 bool "GPT (GUID Partition Table) command"
Simon Glass036bbb12017-08-04 16:34:28 -0600933 select EFI_PARTITION
Adam Fordb10ba902018-02-06 12:43:56 -0600934 select HAVE_BLOCK_DEVICE
Michal Simek84f3dec2018-07-23 15:55:13 +0200935 select PARTITION_UUIDS
Maxime Ripard24336442017-08-24 11:52:32 +0200936 imply RANDOM_UUID
Simon Glass036bbb12017-08-04 16:34:28 -0600937 help
938 Enable the 'gpt' command to ready and write GPT style partition
939 tables.
940
Maxime Ripard24336442017-08-24 11:52:32 +0200941config RANDOM_UUID
942 bool "GPT Random UUID generation"
Adam Ford70c8f052018-02-06 12:14:28 -0600943 select LIB_UUID
Maxime Ripard24336442017-08-24 11:52:32 +0200944 help
945 Enable the generation of partitions with random UUIDs if none
946 are provided.
947
Simon Glass036bbb12017-08-04 16:34:28 -0600948config CMD_GPT_RENAME
949 bool "GPT partition renaming commands"
950 depends on CMD_GPT
951 help
952 Enables the 'gpt' command to interchange names on two GPT
953 partitions via the 'gpt swap' command or to rename single
954 partitions via the 'rename' command.
Simon Glass29499a02016-01-17 20:53:51 -0700955
Simon Glassa831eca2017-05-17 03:25:29 -0600956config CMD_IDE
957 bool "ide - Support for IDE drivers"
Simon Glassb569a012017-05-17 03:25:30 -0600958 select IDE
Simon Glassa831eca2017-05-17 03:25:29 -0600959 help
960 Provides an 'ide' command which allows accessing the IDE drive,
961 reseting the IDE interface, printing the partition table and
962 geting device info. It also enables the 'diskboot' command which
963 permits booting from an IDE drive.
964
Simon Glass3bebbe62017-05-17 03:25:34 -0600965config CMD_IO
966 bool "io - Support for performing I/O accesses"
967 help
968 Provides an 'iod' command to display I/O space and an 'iow' command
969 to write values to the I/O space. This can be useful for manually
970 checking the state of devices during boot when debugging device
971 drivers, etc.
972
Simon Glass30daabc2017-05-17 03:25:36 -0600973config CMD_IOTRACE
974 bool "iotrace - Support for tracing I/O activity"
975 help
976 Provides an 'iotrace' command which supports recording I/O reads and
977 writes in a trace buffer in memory . It also maintains a checksum
978 of the trace records (even if space is exhausted) so that the
979 sequence of I/O accesses can be verified.
980
981 When debugging drivers it is useful to see what I/O accesses were
982 done and in what order.
983
984 Even if the individual accesses are of little interest it can be
985 useful to verify that the access pattern is consistent each time
986 an operation is performed. In this case a checksum can be used to
987 characterise the operation of a driver. The checksum can be compared
988 across different runs of the operation to verify that the driver is
989 working properly.
990
991 In particular, when performing major refactoring of the driver, where
992 the access pattern should not change, the checksum provides assurance
993 that the refactoring work has not broken the driver.
994
995 This works by sneaking into the io.h heder for an architecture and
996 redirecting I/O accesses through iotrace's tracing mechanism.
997
998 For now no commands are provided to examine the trace buffer. The
999 format is fairly simple, so 'md' is a reasonable substitute.
1000
1001 Note: The checksum feature is only useful for I/O regions where the
1002 contents do not change outside of software control. Where this is not
1003 suitable you can fall back to manually comparing the addresses. It
1004 might be useful to enhance tracing to only checksum the accesses and
1005 not the data read/written.
1006
Simon Glass036bbb12017-08-04 16:34:28 -06001007config CMD_I2C
1008 bool "i2c"
1009 help
1010 I2C support.
1011
Eugen Hristevb879c842018-09-18 10:35:33 +03001012config CMD_W1
1013 depends on W1
1014 default y if W1
1015 bool "w1 - Support for Dallas 1-Wire protocol"
1016 help
1017 Dallas 1-wire protocol support
1018
Simon Glass29499a02016-01-17 20:53:51 -07001019config CMD_LOADB
1020 bool "loadb"
1021 default y
1022 help
1023 Load a binary file over serial line.
1024
1025config CMD_LOADS
1026 bool "loads"
1027 default y
1028 help
1029 Load an S-Record file over serial line
1030
Niel Fourie09262bb2020-03-30 17:22:58 +02001031config CMD_LSBLK
1032 depends on BLK
1033 bool "lsblk - list block drivers and devices"
1034 help
1035 Print list of available block device drivers, and for each, the list
1036 of known block devices.
1037
Marek Szyprowski6427b5b2020-12-23 13:55:15 +01001038config CMD_MBR
1039 bool "MBR (Master Boot Record) command"
1040 select DOS_PARTITION
1041 select HAVE_BLOCK_DEVICE
1042 help
1043 Enable the 'mbr' command to ready and write MBR (Master Boot Record)
1044 style partition tables.
1045
Bin Menge1dae502020-10-14 14:34:52 +08001046config CMD_MISC
1047 bool "misc"
1048 depends on MISC
1049 help
1050 Enable the command "misc" for accessing miscellaneous devices with
1051 a MISC uclass driver. The command provides listing all MISC devices
1052 as well as read and write functionalities via their drivers.
1053
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001054config CMD_MMC
1055 bool "mmc"
1056 help
1057 MMC memory mapped support.
1058
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001059if CMD_MMC
1060
1061config CMD_BKOPS_ENABLE
1062 bool "mmc bkops enable"
1063 depends on CMD_MMC
1064 default n
1065 help
1066 Enable command for setting manual background operations handshake
1067 on a eMMC device. The feature is optionally available on eMMC devices
1068 conforming to standard >= 4.41.
1069
Alex Kiernan60e0f612018-05-08 04:43:31 +00001070config CMD_MMC_RPMB
1071 bool "Enable support for RPMB in the mmc command"
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001072 depends on SUPPORT_EMMC_RPMB
Alex Kiernan60e0f612018-05-08 04:43:31 +00001073 help
1074 Enable the commands for reading, writing and programming the
1075 key for the Replay Protection Memory Block partition in eMMC.
1076
Alex Kiernanc568bcb2018-05-29 15:30:52 +00001077config CMD_MMC_SWRITE
1078 bool "mmc swrite"
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001079 depends on MMC_WRITE
Alex Kiernanc568bcb2018-05-29 15:30:52 +00001080 select IMAGE_SPARSE
1081 help
1082 Enable support for the "mmc swrite" command to write Android sparse
1083 images to eMMC.
1084
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001085endif
1086
John Chaufce6f982020-07-02 12:01:21 +08001087config CMD_CLONE
1088 bool "clone"
1089 depends on BLK
1090 help
1091 Enable storage cloning over block devices, useful for
1092 initial flashing by external block device without network
1093 or usb support.
1094
Ruchika Gupta1a994352020-10-23 13:39:33 +05301095config CMD_OPTEE_RPMB
1096 bool "Enable read/write support on RPMB via OPTEE"
1097 depends on SUPPORT_EMMC_RPMB && OPTEE
1098 help
1099 Enable the commands for reading, writing persistent named values
1100 in the Replay Protection Memory Block partition in eMMC by
1101 using Persistent Objects in OPTEE
1102
Miquel Raynal741f4c72018-09-29 12:58:28 +02001103config CMD_MTD
1104 bool "mtd"
Miquel Raynald2418202019-10-25 19:39:30 +02001105 depends on MTD
Miquel Raynal741f4c72018-09-29 12:58:28 +02001106 select MTD_PARTITIONS
1107 help
1108 MTD commands support.
1109
Pratyush Yadavbecd9b72020-10-16 16:16:35 +05301110config CMD_MUX
1111 bool "mux"
1112 depends on MULTIPLEXER
1113 help
1114 List, select, and deselect mux controllers on the fly.
1115
Simon Glass29499a02016-01-17 20:53:51 -07001116config CMD_NAND
1117 bool "nand"
Maxime Ripard5a5d71f2017-03-03 15:13:30 +01001118 default y if NAND_SUNXI
Miquel Raynald2418202019-10-25 19:39:30 +02001119 depends on MTD_RAW_NAND
Simon Glass29499a02016-01-17 20:53:51 -07001120 help
1121 NAND support.
1122
Boris Brezillon19907782017-02-27 18:22:07 +01001123if CMD_NAND
1124config CMD_NAND_TRIMFFS
1125 bool "nand write.trimffs"
Hans de Goedefd42c052017-02-27 18:22:10 +01001126 default y if ARCH_SUNXI
Boris Brezillon19907782017-02-27 18:22:07 +01001127 help
1128 Allows one to skip empty pages when flashing something on a NAND.
1129
1130config CMD_NAND_LOCK_UNLOCK
1131 bool "nand lock/unlock"
1132 help
1133 NAND locking support.
1134
1135config CMD_NAND_TORTURE
1136 bool "nand torture"
1137 help
1138 NAND torture support.
1139
1140endif # CMD_NAND
1141
Zhikang Zhang49455652017-08-03 02:30:59 -07001142config CMD_NVME
1143 bool "nvme"
1144 depends on NVME
1145 default y if NVME
1146 help
1147 NVM Express device support
1148
Simon Glassa2a82072017-08-04 16:34:31 -06001149config CMD_ONENAND
1150 bool "onenand - access to onenand device"
Miquel Raynald2418202019-10-25 19:39:30 +02001151 depends on MTD
Simon Glassa2a82072017-08-04 16:34:31 -06001152 help
1153 OneNAND is a brand of NAND ('Not AND' gate) flash which provides
1154 various useful features. This command allows reading, writing,
1155 and erasing blocks. It allso provides a way to show and change
1156 bad blocks, and test the device.
1157
Mario Sixf8395902018-09-27 09:19:34 +02001158config CMD_OSD
1159 bool "osd"
1160 help
1161 Enable the 'osd' command which allows to query information from and
1162 write text data to a on-screen display (OSD) device; a virtual device
1163 associated with a display capable of displaying a text overlay on the
1164 display it's associated with..
1165
Patrick Delaunay73287092017-01-27 11:00:42 +01001166config CMD_PART
1167 bool "part"
Adam Fordb10ba902018-02-06 12:43:56 -06001168 select HAVE_BLOCK_DEVICE
Michal Simek84f3dec2018-07-23 15:55:13 +02001169 select PARTITION_UUIDS
Patrick Delaunay73287092017-01-27 11:00:42 +01001170 help
1171 Read and display information about the partition table on
1172 various media.
1173
Simon Glassc88a09a2017-08-04 16:34:34 -06001174config CMD_PCI
1175 bool "pci - Access PCI devices"
1176 help
1177 Provide access to PCI (Peripheral Interconnect Bus), a type of bus
1178 used on some devices to allow the CPU to communicate with its
1179 peripherals. Sub-commands allow bus enumeration, displaying and
1180 changing configuration space and a few other features.
1181
Patrice Chotardc4b4ef02018-10-24 14:10:17 +02001182config CMD_PINMUX
1183 bool "pinmux - show pins muxing"
1184 default y if PINCTRL
1185 help
1186 Parse all available pin-controllers and show pins muxing. This
1187 is useful for debug purpoer to check the pin muxing and to know if
1188 a pin is configured as a GPIO or as an alternate function.
1189
Adam Fordc4f16322018-09-09 07:05:57 -05001190config CMD_POWEROFF
1191 bool "poweroff"
1192 help
1193 Poweroff/Shutdown the system
1194
Simon Glassc05459b2017-08-04 16:34:39 -06001195config CMD_READ
1196 bool "read - Read binary data from a partition"
1197 help
1198 Provides low-level access to the data in a partition.
1199
Simon Glass036bbb12017-08-04 16:34:28 -06001200config CMD_REMOTEPROC
1201 bool "remoteproc"
1202 depends on REMOTEPROC
1203 help
1204 Support for Remote Processor control
1205
1206config CMD_SATA
1207 bool "sata - Access SATA subsystem"
1208 select SATA
1209 help
1210 SATA (Serial Advanced Technology Attachment) is a serial bus
1211 standard for connecting to hard drives and other storage devices.
1212 This command provides information about attached devices and allows
1213 reading, writing and other operations.
1214
1215 SATA replaces PATA (originally just ATA), which stands for Parallel AT
1216 Attachment, where AT refers to an IBM AT (Advanced Technology)
1217 computer released in 1984.
1218
Simon Glassd09f3772017-08-04 16:34:43 -06001219config CMD_SAVES
1220 bool "saves - Save a file over serial in S-Record format"
1221 help
1222 Provides a way to save a binary file using the Motorola S-Record
1223 format over the serial line.
1224
Heinrich Schuchardta0f52832018-02-14 08:05:44 +01001225config CMD_SCSI
1226 bool "scsi - Access to SCSI devices"
1227 default y if SCSI
1228 help
1229 This provides a 'scsi' command which provides access to SCSI (Small
1230 Computer System Interface) devices. The command provides a way to
1231 scan the bus, reset the bus, read and write data and get information
1232 about devices.
1233
Simon Glass6870d2e2017-08-04 16:34:45 -06001234config CMD_SDRAM
1235 bool "sdram - Print SDRAM configuration information"
1236 help
1237 Provides information about attached SDRAM. This assumed that the
1238 SDRAM has an EEPROM with information that can be read using the
1239 I2C bus. This is only available on some boards.
1240
Simon Glass29499a02016-01-17 20:53:51 -07001241config CMD_SF
1242 bool "sf"
Tom Rinie5289a72019-05-29 17:01:28 -04001243 depends on DM_SPI_FLASH || SPI_FLASH
Jagan Teki132e81f2019-10-16 17:59:42 +05301244 default y if DM_SPI_FLASH
Simon Glass29499a02016-01-17 20:53:51 -07001245 help
1246 SPI Flash support
1247
Simon Glass86b1b652017-08-04 16:34:46 -06001248config CMD_SF_TEST
1249 bool "sf test - Allow testing of SPI flash"
Tom Rinie5289a72019-05-29 17:01:28 -04001250 depends on CMD_SF
Simon Glass86b1b652017-08-04 16:34:46 -06001251 help
1252 Provides a way to test that SPI flash is working correctly. The
1253 test is destructive, in that an area of SPI flash must be provided
1254 for the test to use. Performance information is also provided,
1255 measuring the performance of reading, writing and erasing in
1256 Mbps (Million Bits Per Second). This value should approximately
1257 equal the SPI bus speed for a single-bit-wide SPI bus, assuming
1258 everything is working properly.
1259
Simon Glass29499a02016-01-17 20:53:51 -07001260config CMD_SPI
Patrick Delaunay5a6b52b2019-02-27 15:20:37 +01001261 bool "sspi - Command to access spi device"
Tom Rinie5289a72019-05-29 17:01:28 -04001262 depends on SPI
Simon Glass29499a02016-01-17 20:53:51 -07001263 help
1264 SPI utility command.
1265
Patrick Delaunay5a6b52b2019-02-27 15:20:37 +01001266config DEFAULT_SPI_BUS
1267 int "default spi bus used by sspi command"
1268 depends on CMD_SPI
1269 default 0
1270
1271config DEFAULT_SPI_MODE
1272 hex "default spi mode used by sspi command (see include/spi.h)"
1273 depends on CMD_SPI
1274 default 0
1275
Simon Glass80a56cd2017-08-04 16:35:00 -06001276config CMD_TSI148
1277 bool "tsi148 - Command to access tsi148 device"
1278 help
1279 This provides various sub-commands to initialise and configure the
1280 Turndra tsi148 device. See the command help for full details.
1281
Faiz Abbas61e9fbb2019-10-15 18:24:40 +05301282config CMD_UFS
1283 bool "Enable UFS - Universal Flash Subsystem commands"
1284 depends on UFS
1285 help
1286 "This provides commands to initialise and configure universal flash
1287 subsystem devices"
1288
Simon Glass0c03c1a2017-08-04 16:35:01 -06001289config CMD_UNIVERSE
1290 bool "universe - Command to set up the Turndra Universe controller"
1291 help
1292 This allows setting up the VMEbus provided by this controller.
1293 See the command help for full details.
1294
Simon Glass29499a02016-01-17 20:53:51 -07001295config CMD_USB
1296 bool "usb"
Adam Fordb10ba902018-02-06 12:43:56 -06001297 select HAVE_BLOCK_DEVICE
Simon Glass29499a02016-01-17 20:53:51 -07001298 help
1299 USB support.
1300
Stefan Agnerd9d661c2017-08-16 11:00:53 -07001301config CMD_USB_SDP
1302 bool "sdp"
1303 select USB_FUNCTION_SDP
1304 help
1305 Enables the command "sdp" which is used to have U-Boot emulating the
1306 Serial Download Protocol (SDP) via USB.
Michal Simekf751ff52018-07-23 15:55:12 +02001307
Eddie Cai5e3020b2017-12-15 08:17:11 +08001308config CMD_ROCKUSB
1309 bool "rockusb"
1310 depends on USB_FUNCTION_ROCKUSB
1311 help
Michal Simekf751ff52018-07-23 15:55:12 +02001312 Rockusb protocol is widely used by Rockchip SoC based devices. It can
Eddie Cai5e3020b2017-12-15 08:17:11 +08001313 read/write info, image to/from devices. This enable rockusb command
1314 support to communication with rockusb device. for more detail about
1315 this command, please read doc/README.rockusb.
Stefan Agnerd9d661c2017-08-16 11:00:53 -07001316
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001317config CMD_USB_MASS_STORAGE
1318 bool "UMS usb mass storage"
Lukasz Majewski6e782742018-01-29 19:28:02 +01001319 select USB_FUNCTION_MASS_STORAGE
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001320 help
1321 USB mass storage support
1322
Anastasiia Lukianenko4fec7f82020-08-06 12:42:55 +03001323config CMD_PVBLOCK
1324 bool "Xen para-virtualized block device"
1325 depends on XEN
1326 select PVBLOCK
1327 help
1328 Xen para-virtualized block device support
1329
Tuomas Tynkkynen10a60d22018-10-15 02:21:12 -07001330config CMD_VIRTIO
1331 bool "virtio"
1332 depends on VIRTIO
1333 default y if VIRTIO
1334 help
1335 VirtIO block device support
1336
Michael Walle23964a82019-04-06 02:24:02 +02001337config CMD_WDT
1338 bool "wdt"
1339 depends on WDT
1340 help
1341 This provides commands to control the watchdog timer devices.
1342
Mario Sixfd1cc422018-08-09 14:51:21 +02001343config CMD_AXI
1344 bool "axi"
1345 depends on AXI
1346 help
1347 Enable the command "axi" for accessing AXI (Advanced eXtensible
1348 Interface) busses, a on-chip interconnect specification for managing
1349 functional blocks in SoC designs, which is also often used in designs
1350 involving FPGAs (e.g. communication with IP cores in Xilinx FPGAs).
Simon Glass29499a02016-01-17 20:53:51 -07001351endmenu
1352
1353
1354menu "Shell scripting commands"
1355
1356config CMD_ECHO
1357 bool "echo"
1358 default y
1359 help
1360 Echo args to console
1361
1362config CMD_ITEST
1363 bool "itest"
1364 default y
1365 help
1366 Return true/false on integer compare.
1367
1368config CMD_SOURCE
1369 bool "source"
1370 default y
1371 help
1372 Run script from memory
1373
1374config CMD_SETEXPR
1375 bool "setexpr"
1376 default y
1377 help
1378 Evaluate boolean and math expressions and store the result in an env
1379 variable.
1380 Also supports loading the value at a memory location into a variable.
1381 If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
1382
1383endmenu
1384
Ruslan Trofymenkoa24f9b42019-07-05 15:37:33 +03001385menu "Android support commands"
1386
1387config CMD_AB_SELECT
1388 bool "ab_select"
1389 default n
1390 depends on ANDROID_AB
1391 help
1392 On Android devices with more than one boot slot (multiple copies of
1393 the kernel and system images) this provides a command to select which
1394 slot should be used to boot from and register the boot attempt. This
1395 is used by the new A/B update model where one slot is updated in the
1396 background while running from the other slot.
1397
1398endmenu
1399
Michal Simek2f785a12018-02-26 16:01:02 +01001400if NET
1401
Joe Hershbergerb0429462018-04-13 15:26:30 -05001402menuconfig CMD_NET
1403 bool "Network commands"
1404 default y
Adam Ford53705472018-07-20 23:03:57 -05001405 imply NETDEVICES
Joe Hershbergerb0429462018-04-13 15:26:30 -05001406
1407if CMD_NET
1408
1409config CMD_BOOTP
1410 bool "bootp"
Simon Glass29499a02016-01-17 20:53:51 -07001411 default y
1412 help
Simon Glass29499a02016-01-17 20:53:51 -07001413 bootp - boot image via network using BOOTP/TFTP protocol
Joe Hershbergerb0429462018-04-13 15:26:30 -05001414
Joe Hershberger01261792018-04-13 15:26:33 -05001415config CMD_DHCP
1416 bool "dhcp"
1417 depends on CMD_BOOTP
1418 help
1419 Boot image via network using DHCP/TFTP protocol
1420
Joe Hershberger0824ad92018-04-13 15:26:32 -05001421config BOOTP_BOOTPATH
Joe Hershberger06661e12018-04-13 15:26:34 -05001422 bool "Request & store 'rootpath' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001423 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001424 depends on CMD_BOOTP
Joe Hershberger06661e12018-04-13 15:26:34 -05001425 help
1426 Even though the config is called BOOTP_BOOTPATH, it stores the
1427 path in the variable 'rootpath'.
Joe Hershberger0824ad92018-04-13 15:26:32 -05001428
1429config BOOTP_DNS
Joe Hershberger06661e12018-04-13 15:26:34 -05001430 bool "Request & store 'dnsip' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001431 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001432 depends on CMD_BOOTP
Joe Hershberger06661e12018-04-13 15:26:34 -05001433 help
1434 The primary DNS server is stored as 'dnsip'. If two servers are
1435 returned, you must set BOOTP_DNS2 to store that second server IP
1436 also.
Joe Hershberger0824ad92018-04-13 15:26:32 -05001437
Joe Hershberger63e70712018-04-13 15:26:35 -05001438config BOOTP_DNS2
1439 bool "Store 'dnsip2' from BOOTP/DHCP server"
1440 depends on BOOTP_DNS
1441 help
1442 If a DHCP client requests the DNS server IP from a DHCP server,
1443 it is possible that more than one DNS serverip is offered to the
1444 client. If CONFIG_BOOTP_DNS2 is enabled, the secondary DNS
1445 server IP will be stored in the additional environment
1446 variable "dnsip2". The first DNS serverip is always
1447 stored in the variable "dnsip", when BOOTP_DNS is defined.
1448
Joe Hershberger0824ad92018-04-13 15:26:32 -05001449config BOOTP_GATEWAY
Joe Hershberger06661e12018-04-13 15:26:34 -05001450 bool "Request & store 'gatewayip' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001451 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001452 depends on CMD_BOOTP
1453
1454config BOOTP_HOSTNAME
Joe Hershberger06661e12018-04-13 15:26:34 -05001455 bool "Request & store 'hostname' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001456 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001457 depends on CMD_BOOTP
Joe Hershberger06661e12018-04-13 15:26:34 -05001458 help
1459 The name may or may not be qualified with the local domain name.
Joe Hershberger0824ad92018-04-13 15:26:32 -05001460
Alexander Graf427e6952018-06-15 10:29:28 +02001461config BOOTP_PREFER_SERVERIP
1462 bool "serverip variable takes precedent over DHCP server IP."
1463 depends on CMD_BOOTP
1464 help
1465 By default a BOOTP/DHCP reply will overwrite the 'serverip' variable.
1466
1467 With this option enabled, the 'serverip' variable in the environment
1468 takes precedence over DHCP server IP and will only be set by the DHCP
1469 server if not already set in the environment.
1470
Joe Hershberger0824ad92018-04-13 15:26:32 -05001471config BOOTP_SUBNETMASK
Joe Hershberger06661e12018-04-13 15:26:34 -05001472 bool "Request & store 'netmask' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001473 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001474 depends on CMD_BOOTP
1475
Chris Packhambfa7c212018-05-03 20:19:02 +12001476config BOOTP_NTPSERVER
1477 bool "Request & store 'ntpserverip' from BOOTP/DHCP server"
1478 depends on CMD_BOOTP
1479
Ramon Friedac598c12019-07-18 21:43:30 +03001480config CMD_PCAP
1481 bool "pcap capture"
1482 help
1483 Selecting this will allow capturing all Ethernet packets and store
1484 them in physical memory in a PCAP formated file,
1485 later to be analyzed by PCAP reader application (IE. WireShark).
1486
Joe Hershberger0824ad92018-04-13 15:26:32 -05001487config BOOTP_PXE
Joe Hershberger84ccdbe2018-04-13 15:26:36 -05001488 bool "Send PXE client arch to BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001489 default y
Joe Hershberger84ccdbe2018-04-13 15:26:36 -05001490 depends on CMD_BOOTP && CMD_PXE
1491 help
1492 Supported for ARM, ARM64, and x86 for now.
Joe Hershberger0824ad92018-04-13 15:26:32 -05001493
1494config BOOTP_PXE_CLIENTARCH
1495 hex
Joe Hershberger84ccdbe2018-04-13 15:26:36 -05001496 depends on BOOTP_PXE
Joe Hershberger0824ad92018-04-13 15:26:32 -05001497 default 0x16 if ARM64
1498 default 0x15 if ARM
1499 default 0 if X86
1500
1501config BOOTP_VCI_STRING
1502 string
1503 depends on CMD_BOOTP
Michal Simekf4359382018-04-26 18:21:29 +05301504 default "U-Boot.armv7" if CPU_V7A || CPU_V7M || CPU_V7R
Joe Hershberger0824ad92018-04-13 15:26:32 -05001505 default "U-Boot.armv8" if ARM64
1506 default "U-Boot.arm" if ARM
1507 default "U-Boot"
1508
Joe Hershbergerb0429462018-04-13 15:26:30 -05001509config CMD_TFTPBOOT
1510 bool "tftpboot"
1511 default y
1512 help
Simon Glass29499a02016-01-17 20:53:51 -07001513 tftpboot - boot image via network using TFTP protocol
1514
1515config CMD_TFTPPUT
1516 bool "tftp put"
Joe Hershbergerb0429462018-04-13 15:26:30 -05001517 depends on CMD_TFTPBOOT
Simon Glass29499a02016-01-17 20:53:51 -07001518 help
1519 TFTP put command, for uploading files to a server
1520
1521config CMD_TFTPSRV
1522 bool "tftpsrv"
Joe Hershbergerb0429462018-04-13 15:26:30 -05001523 depends on CMD_TFTPBOOT
Simon Glass29499a02016-01-17 20:53:51 -07001524 help
1525 Act as a TFTP server and boot the first received file
1526
Joe Hershberger0824ad92018-04-13 15:26:32 -05001527config NET_TFTP_VARS
1528 bool "Control TFTP timeout and count through environment"
1529 depends on CMD_TFTPBOOT
1530 default y
1531 help
1532 If set, allows controlling the TFTP timeout through the
1533 environment variable tftptimeout, and the TFTP maximum
1534 timeout count through the variable tftptimeoutcountmax.
1535 If unset, timeout and maximum are hard-defined as 1 second
1536 and 10 timouts per TFTP transfer.
1537
Simon Glass29499a02016-01-17 20:53:51 -07001538config CMD_RARP
1539 bool "rarpboot"
1540 help
1541 Boot image via network using RARP/TFTP protocol
1542
Simon Glass29499a02016-01-17 20:53:51 -07001543config CMD_NFS
1544 bool "nfs"
1545 default y
1546 help
1547 Boot image via network using NFS protocol.
1548
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001549config CMD_MII
1550 bool "mii"
Ramon Frieddeb6c502019-09-13 18:25:03 +03001551 imply CMD_MDIO
1552 help
1553 If set, allows 802.3(clause 22) MII Management functions interface access
1554 The management interface specified in Clause 22 provides
1555 a simple, two signal, serial interface to connect a
1556 Station Management entity and a managed PHY for providing access
1557 to management parameters and services.
1558 The interface is referred to as the MII management interface.
1559
1560config CMD_MDIO
1561 bool "mdio"
1562 depends on PHYLIB
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001563 help
Ramon Frieddeb6c502019-09-13 18:25:03 +03001564 If set, allows Enable 802.3(clause 45) MDIO interface registers access
1565 The MDIO interface is orthogonal to the MII interface and extends
1566 it by adding access to more registers through indirect addressing.
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001567
Simon Glass29499a02016-01-17 20:53:51 -07001568config CMD_PING
1569 bool "ping"
1570 help
1571 Send ICMP ECHO_REQUEST to network host
1572
1573config CMD_CDP
1574 bool "cdp"
1575 help
1576 Perform CDP network configuration
1577
1578config CMD_SNTP
1579 bool "sntp"
Philippe Reynes2829d992020-09-18 14:13:02 +02001580 select PROT_UDP
Simon Glass29499a02016-01-17 20:53:51 -07001581 help
1582 Synchronize RTC via network
1583
1584config CMD_DNS
1585 bool "dns"
1586 help
1587 Lookup the IP of a hostname
1588
1589config CMD_LINK_LOCAL
1590 bool "linklocal"
Joe Hershberger51d78982018-04-30 12:45:22 -05001591 select LIB_RAND
Simon Glass29499a02016-01-17 20:53:51 -07001592 help
1593 Acquire a network IP address using the link-local protocol
1594
Joe Hershberger0824ad92018-04-13 15:26:32 -05001595endif
1596
Simon Glass12b85702017-05-17 03:25:17 -06001597config CMD_ETHSW
1598 bool "ethsw"
1599 help
1600 Allow control of L2 Ethernet switch commands. These are supported
1601 by the vsc9953 Ethernet driver at present. Sub-commands allow
1602 operations such as enabling / disabling a port and
1603 viewing/maintaining the filtering database (FDB)
1604
Joe Hershberger0824ad92018-04-13 15:26:32 -05001605config CMD_PXE
1606 bool "pxe"
1607 select MENU
1608 help
1609 Boot image via network using PXE protocol
Michal Simek2f785a12018-02-26 16:01:02 +01001610
Lothar Felten776fc102018-06-22 22:29:54 +02001611config CMD_WOL
1612 bool "wol"
1613 help
1614 Wait for wake-on-lan Magic Packet
1615
Joe Hershbergerb0429462018-04-13 15:26:30 -05001616endif
Simon Glass29499a02016-01-17 20:53:51 -07001617
1618menu "Misc commands"
1619
Simon Glassb575bfc2017-04-26 22:27:55 -06001620config CMD_BMP
1621 bool "Enable 'bmp' command"
1622 depends on LCD || DM_VIDEO || VIDEO
1623 help
Andrius Å tikonas1d5ccd62019-09-23 22:43:41 +01001624 This provides a way to obtain information about a BMP-format image
Simon Glassb575bfc2017-04-26 22:27:55 -06001625 and to display it. BMP (which presumably stands for BitMaP) is a
1626 file format defined by Microsoft which supports images of various
1627 depths, formats and compression methods. Headers on the file
1628 determine the formats used. This command can be used by first loading
1629 the image into RAM, then using this command to look at it or display
1630 it.
1631
Alex Kiernane710fa62018-05-12 05:49:47 +00001632config CMD_BOOTCOUNT
1633 bool "bootcount"
1634 depends on BOOTCOUNT_LIMIT
1635 help
1636 Enable the bootcount command, which allows interrogation and
1637 reset of the bootcounter.
1638
Simon Glassffab9a02017-04-26 22:27:56 -06001639config CMD_BSP
1640 bool "Enable board-specific commands"
1641 help
1642 (deprecated: instead, please define a Kconfig option for each command)
1643
1644 Some boards have board-specific commands which are only enabled
1645 during developemnt and need to be turned off for production. This
1646 option provides a way to control this. The commands that are enabled
1647 vary depending on the board.
1648
Eric Nelsonfaf4f052016-03-28 10:05:44 -07001649config CMD_BLOCK_CACHE
1650 bool "blkcache - control and stats for block cache"
1651 depends on BLOCK_CACHE
1652 default y if BLOCK_CACHE
1653 help
1654 Enable the blkcache command, which can be used to control the
1655 operation of the cache functions.
1656 This is most useful when fine-tuning the operation of the cache
1657 during development, but also allows the cache to be disabled when
1658 it might hurt performance (e.g. when using the ums command).
1659
Philippe Reynesa558b182020-07-24 18:19:47 +02001660config CMD_BUTTON
1661 bool "button"
1662 depends on BUTTON
1663 default y if BUTTON
1664 help
1665 Enable the 'button' command which allows to get the status of
1666 buttons supported by the board. The buttonss can be listed with
1667 'button list' and state can be known with 'button <label>'.
1668 Any button drivers can be controlled with this command, e.g.
1669 button_gpio.
1670
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001671config CMD_CACHE
1672 bool "icache or dcache"
1673 help
1674 Enable the "icache" and "dcache" commands
1675
Heinrich Schuchardt13ea6852018-09-07 19:43:11 +02001676config CMD_CONITRACE
1677 bool "conitrace - trace console input codes"
1678 help
1679 Enable the 'conitrace' command which displays the codes received
1680 from the console input as hexadecimal numbers.
1681
Anatolij Gustschine0455a42018-12-01 10:47:20 +01001682config CMD_CLS
1683 bool "Enable clear screen command 'cls'"
1684 depends on CFB_CONSOLE || DM_VIDEO || LCD || VIDEO
1685 default y if LCD
1686 help
1687 Enable the 'cls' command which clears the screen contents
1688 on video frame buffer.
1689
AKASHI Takahiroe7c08832019-02-25 15:54:38 +09001690config CMD_EFIDEBUG
1691 bool "efidebug - display/configure UEFI environment"
1692 depends on EFI_LOADER
Heinrich Schuchardt3db35912019-05-11 09:53:33 +02001693 select EFI_DEVICE_PATH_TO_TEXT
AKASHI Takahiroe7c08832019-02-25 15:54:38 +09001694 default n
1695 help
1696 Enable the 'efidebug' command which provides a subset of UEFI
1697 shell utility with simplified functionality. It will be useful
1698 particularly for managing boot parameters as well as examining
1699 various EFI status for debugging.
1700
Heinrich Schuchardtf7d6b072018-12-26 17:20:35 +01001701config CMD_EXCEPTION
1702 bool "exception - raise exception"
Heinrich Schuchardtadaea9c2020-11-12 00:29:57 +01001703 depends on ARM || RISCV || SANDBOX || X86
Heinrich Schuchardtf7d6b072018-12-26 17:20:35 +01001704 help
1705 Enable the 'exception' command which allows to raise an exception.
1706
Simon Glassfc8a5292017-04-10 11:34:59 -06001707config CMD_LED
1708 bool "led"
Jan Kiszka89077ba2019-01-03 09:08:42 +01001709 depends on LED
Simon Glassfc8a5292017-04-10 11:34:59 -06001710 default y if LED
1711 help
1712 Enable the 'led' command which allows for control of LEDs supported
1713 by the board. The LEDs can be listed with 'led list' and controlled
1714 with led on/off/togle/blink. Any LED drivers can be controlled with
1715 this command, e.g. led_gpio.
1716
Chris Packham3e257df2017-04-29 15:20:28 +12001717config CMD_DATE
1718 bool "date"
1719 default y if DM_RTC
AKASHI Takahiro51ba5222019-11-13 09:44:49 +09001720 select LIB_DATE
Chris Packham3e257df2017-04-29 15:20:28 +12001721 help
1722 Enable the 'date' command for getting/setting the time/date in RTC
1723 devices.
1724
Rasmus Villemoescc092022020-07-06 22:01:15 +02001725config CMD_RTC
1726 bool "rtc"
1727 depends on DM_RTC
1728 help
1729 Enable the 'rtc' command for low-level access to RTC devices.
1730
Simon Glass29499a02016-01-17 20:53:51 -07001731config CMD_TIME
1732 bool "time"
1733 help
1734 Run commands and summarize execution time.
1735
Simon Glassfa744522017-05-17 03:25:23 -06001736config CMD_GETTIME
1737 bool "gettime - read elapsed time"
1738 help
1739 Enable the 'gettime' command which reads the elapsed time since
1740 U-Boot started running. This shows the time in seconds and
1741 milliseconds. See also the 'bootstage' command which provides more
1742 flexibility for boot timing.
1743
Heinrich Schuchardta31a5942019-12-24 22:17:37 +01001744config CMD_RNG
1745 bool "rng command"
1746 depends on DM_RNG
1747 select HEXDUMP
1748 help
1749 Print bytes from the hardware random number generator.
1750
Bin Meng7c4f7be2020-10-13 18:45:05 +08001751config CMD_SLEEP
Simon Glass29499a02016-01-17 20:53:51 -07001752 bool "sleep"
1753 default y
1754 help
1755 Delay execution for some time
1756
Siva Durga Prasad Paladugu8e45f1a2018-06-19 12:24:23 +02001757config MP
1758 bool "support for multiprocessor"
1759 help
1760 This provides an option to brinup
1761 different processors in multiprocessor
1762 cases.
1763
Simon Glass29499a02016-01-17 20:53:51 -07001764config CMD_TIMER
1765 bool "timer"
1766 help
1767 Access the system timer.
1768
Simon Glass29499a02016-01-17 20:53:51 -07001769config CMD_SOUND
1770 bool "sound"
1771 depends on SOUND
1772 help
1773 This provides basic access to the U-Boot's sound support. The main
1774 feature is to play a beep.
1775
1776 sound init - set up sound system
1777 sound play - play a sound
1778
Patrice Chotard7b81c052019-11-25 09:07:38 +01001779config CMD_SYSBOOT
1780 bool "sysboot"
1781 select MENU
1782 help
1783 Boot image via local extlinux.conf file
1784
Miao Yan92106272016-05-22 19:37:17 -07001785config CMD_QFW
Tom Rinibcb3c8d2016-05-06 10:40:22 -04001786 bool "qfw"
Miao Yan4fcd7f22016-05-22 19:37:14 -07001787 select QFW
Tom Rinibcb3c8d2016-05-06 10:40:22 -04001788 help
1789 This provides access to the QEMU firmware interface. The main
1790 feature is to allow easy loading of files passed to qemu-system
1791 via -kernel / -initrd
Konstantin Porotchkin97d26782016-12-08 12:22:28 +02001792
Frédéric Danised2e8e42020-03-20 10:59:22 +01001793config CMD_PSTORE
1794 bool "pstore"
1795 help
1796 This provides access to Linux PStore with Rammoops backend. The main
1797 feature is to allow to display or save PStore records.
1798
1799 See doc/pstore.rst for more information.
1800
1801if CMD_PSTORE
1802
1803config CMD_PSTORE_MEM_ADDR
1804 hex "Memory Address"
1805 depends on CMD_PSTORE
1806 help
1807 Base addr used for PStore ramoops memory, should be identical to
1808 ramoops.mem_address parameter used by kernel
1809
1810config CMD_PSTORE_MEM_SIZE
1811 hex "Memory size"
1812 depends on CMD_PSTORE
1813 default "0x10000"
1814 help
1815 Size of PStore ramoops memory, should be identical to ramoops.mem_size
1816 parameter used by kernel, a power of 2 and larger than the sum of the
1817 record sizes
1818
1819config CMD_PSTORE_RECORD_SIZE
1820 hex "Dump record size"
1821 depends on CMD_PSTORE
1822 default "0x1000"
1823 help
1824 Size of each dump done on oops/panic, should be identical to
1825 ramoops.record_size parameter used by kernel and a power of 2
1826 Must be non-zero
1827
1828config CMD_PSTORE_CONSOLE_SIZE
1829 hex "Kernel console log size"
1830 depends on CMD_PSTORE
1831 default "0x1000"
1832 help
1833 Size of kernel console log, should be identical to
1834 ramoops.console_size parameter used by kernel and a power of 2
1835 Must be non-zero
1836
1837config CMD_PSTORE_FTRACE_SIZE
1838 hex "FTrace log size"
1839 depends on CMD_PSTORE
1840 default "0x1000"
1841 help
1842 Size of ftrace log, should be identical to ramoops.ftrace_size
1843 parameter used by kernel and a power of 2
1844
1845config CMD_PSTORE_PMSG_SIZE
1846 hex "User space message log size"
1847 depends on CMD_PSTORE
1848 default "0x1000"
1849 help
1850 Size of user space message log, should be identical to
1851 ramoops.pmsg_size parameter used by kernel and a power of 2
1852
1853config CMD_PSTORE_ECC_SIZE
1854 int "ECC size"
1855 depends on CMD_PSTORE
1856 default "0"
1857 help
1858 if non-zero, the option enables ECC support and specifies ECC buffer
1859 size in bytes (1 is a special value, means 16 bytes ECC), should be
1860 identical to ramoops.ramoops_ecc parameter used by kernel
1861
1862endif
1863
Konstantin Porotchkin97d26782016-12-08 12:22:28 +02001864source "cmd/mvebu/Kconfig"
1865
Simon Glass89342ef2017-08-04 16:34:55 -06001866config CMD_TERMINAL
1867 bool "terminal - provides a way to attach a serial terminal"
1868 help
1869 Provides a 'cu'-like serial terminal command. This can be used to
1870 access other serial ports from the system console. The terminal
1871 is very simple with no special processing of characters. As with
1872 cu, you can press ~. (tilde followed by period) to exit.
1873
Simon Glass6d56aad2017-08-04 16:35:02 -06001874config CMD_UUID
1875 bool "uuid, guid - generation of unique IDs"
Adam Ford70c8f052018-02-06 12:14:28 -06001876 select LIB_UUID
Simon Glass6d56aad2017-08-04 16:35:02 -06001877 help
1878 This enables two commands:
1879
1880 uuid - generate random Universally Unique Identifier
1881 guid - generate Globally Unique Identifier based on random UUID
1882
1883 The two commands are very similar except for the endianness of the
1884 output.
1885
Simon Glass29499a02016-01-17 20:53:51 -07001886endmenu
1887
Lokesh Vutla962c4e02017-12-29 11:47:49 +05301888source "cmd/ti/Kconfig"
1889
Simon Glass29499a02016-01-17 20:53:51 -07001890config CMD_BOOTSTAGE
1891 bool "Enable the 'bootstage' command"
1892 depends on BOOTSTAGE
1893 help
1894 Add a 'bootstage' command which supports printing a report
1895 and un/stashing of bootstage data.
1896
1897menu "Power commands"
1898config CMD_PMIC
1899 bool "Enable Driver Model PMIC command"
1900 depends on DM_PMIC
1901 help
1902 This is the pmic command, based on a driver model pmic's API.
1903 Command features are unchanged:
1904 - list - list pmic devices
1905 - pmic dev <id> - show or [set] operating pmic device (NEW)
1906 - pmic dump - dump registers
1907 - pmic read address - read byte of register at address
1908 - pmic write address - write byte to register at address
1909 The only one change for this command is 'dev' subcommand.
1910
1911config CMD_REGULATOR
1912 bool "Enable Driver Model REGULATOR command"
1913 depends on DM_REGULATOR
1914 help
1915 This command is based on driver model regulator's API.
1916 User interface features:
1917 - list - list regulator devices
1918 - regulator dev <id> - show or [set] operating regulator device
1919 - regulator info - print constraints info
1920 - regulator status - print operating status
1921 - regulator value <val] <-f> - print/[set] voltage value [uV]
1922 - regulator current <val> - print/[set] current value [uA]
1923 - regulator mode <id> - print/[set] operating mode id
1924 - regulator enable - enable the regulator output
1925 - regulator disable - disable the regulator output
1926
1927 The '-f' (force) option can be used for set the value which exceeds
1928 the limits, which are found in device-tree and are kept in regulator's
Simon Glass71fa5b42020-12-03 16:55:18 -07001929 uclass plat structure.
Simon Glass29499a02016-01-17 20:53:51 -07001930
1931endmenu
1932
1933menu "Security commands"
Simon Glass528fdd12017-04-26 22:27:49 -06001934config CMD_AES
1935 bool "Enable the 'aes' command"
1936 select AES
1937 help
1938 This provides a means to encrypt and decrypt data using the AES
1939 (Advanced Encryption Standard). This algorithm uses a symetric key
1940 and is widely used as a streaming cipher. Different key lengths are
1941 supported by the algorithm but this command only supports 128 bits
1942 at present.
1943
Simon Glass311ec4f2017-04-26 22:27:53 -06001944config CMD_BLOB
1945 bool "Enable the 'blob' command"
1946 help
1947 This is used with the Freescale secure boot mechanism.
1948
1949 Freescale's SEC block has built-in Blob Protocol which provides
1950 a method for protecting user-defined data across system power
1951 cycles. SEC block protects data in a data structure called a Blob,
1952 which provides both confidentiality and integrity protection.
1953
1954 Encapsulating data as a blob
1955 Each time that the Blob Protocol is used to protect data, a
1956 different randomly generated key is used to encrypt the data.
1957 This random key is itself encrypted using a key which is derived
1958 from SoC's non-volatile secret key and a 16 bit Key identifier.
1959 The resulting encrypted key along with encrypted data is called a
1960 blob. The non-volatile secure key is available for use only during
1961 secure boot.
1962
1963 During decapsulation, the reverse process is performed to get back
1964 the original data.
1965
1966 Sub-commands:
Michal Simekf751ff52018-07-23 15:55:12 +02001967 blob enc - encapsulating data as a cryptgraphic blob
Simon Glass311ec4f2017-04-26 22:27:53 -06001968 blob dec - decapsulating cryptgraphic blob to get the data
1969
1970 Syntax:
1971
1972 blob enc src dst len km
1973
1974 Encapsulate and create blob of data $len bytes long
1975 at address $src and store the result at address $dst.
1976 $km is the 16 byte key modifier is also required for
1977 generation/use as key for cryptographic operation. Key
1978 modifier should be 16 byte long.
1979
1980 blob dec src dst len km
1981
1982 Decapsulate the blob of data at address $src and
1983 store result of $len byte at addr $dst.
1984 $km is the 16 byte key modifier is also required for
1985 generation/use as key for cryptographic operation. Key
1986 modifier should be 16 byte long.
1987
Simon Glass027608e2017-05-17 03:25:25 -06001988config CMD_HASH
1989 bool "Support 'hash' command"
Simon Glassb22ec7a2017-05-17 09:05:34 -06001990 select HASH
Simon Glass027608e2017-05-17 03:25:25 -06001991 help
1992 This provides a way to hash data in memory using various supported
1993 algorithms (such as SHA1, MD5, CRC32). The computed digest can be
1994 saved to memory or to an environment variable. It is also possible
1995 to verify a hash against data in memory.
1996
Michalis Pappasd382d222018-04-13 10:40:57 +03001997config CMD_HVC
1998 bool "Support the 'hvc' command"
1999 depends on ARM_SMCCC
2000 help
2001 Allows issuing Hypervisor Calls (HVCs). Mostly useful for
2002 development and testing.
2003
2004config CMD_SMC
2005 bool "Support the 'smc' command"
2006 depends on ARM_SMCCC
2007 help
2008 Allows issuing Secure Monitor Calls (SMCs). Mostly useful for
2009 development and testing.
2010
Daniel Thompsona9e2c672017-05-19 17:26:58 +01002011config HASH_VERIFY
2012 bool "hash -v"
2013 depends on CMD_HASH
2014 help
2015 Add -v option to verify data against a hash.
2016
Miquel Raynal294f82a2018-05-15 11:57:05 +02002017config CMD_TPM_V1
2018 bool
2019
2020config CMD_TPM_V2
2021 bool
Tom Rini124a7ac2018-07-28 09:20:12 -04002022 select CMD_LOG
Miquel Raynal294f82a2018-05-15 11:57:05 +02002023
Simon Glass29499a02016-01-17 20:53:51 -07002024config CMD_TPM
2025 bool "Enable the 'tpm' command"
Miquel Raynal294f82a2018-05-15 11:57:05 +02002026 depends on TPM_V1 || TPM_V2
2027 select CMD_TPM_V1 if TPM_V1
2028 select CMD_TPM_V2 if TPM_V2
Simon Glass29499a02016-01-17 20:53:51 -07002029 help
2030 This provides a means to talk to a TPM from the command line. A wide
2031 range of commands if provided - see 'tpm help' for details. The
2032 command requires a suitable TPM on your board and the correct driver
2033 must be enabled.
2034
Miquel Raynal294f82a2018-05-15 11:57:05 +02002035if CMD_TPM
2036
Simon Glass29499a02016-01-17 20:53:51 -07002037config CMD_TPM_TEST
2038 bool "Enable the 'tpm test' command"
Miquel Raynal294f82a2018-05-15 11:57:05 +02002039 depends on TPM_V1
Simon Glass29499a02016-01-17 20:53:51 -07002040 help
Miquel Raynal294f82a2018-05-15 11:57:05 +02002041 This provides a a series of tests to confirm that the TPMv1.x is
2042 working correctly. The tests cover initialisation, non-volatile RAM,
2043 extend, global lock and checking that timing is within expectations.
2044 The tests pass correctly on Infineon TPMs but may need to be adjusted
Simon Glass29499a02016-01-17 20:53:51 -07002045 for other devices.
2046
Miquel Raynal294f82a2018-05-15 11:57:05 +02002047endif
2048
Simon Glass29499a02016-01-17 20:53:51 -07002049endmenu
2050
Moritz Fischer62b30272016-10-04 17:08:08 -07002051menu "Firmware commands"
2052config CMD_CROS_EC
2053 bool "Enable crosec command"
2054 depends on CROS_EC
2055 default y
2056 help
2057 Enable command-line access to the Chrome OS EC (Embedded
2058 Controller). This provides the 'crosec' command which has
2059 a number of sub-commands for performing EC tasks such as
2060 updating its flash, accessing a small saved context area
2061 and talking to the I2C bus behind the EC (if there is one).
2062endmenu
2063
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002064menu "Filesystem commands"
Marek Behún27cec792017-09-03 17:00:30 +02002065config CMD_BTRFS
2066 bool "Enable the 'btrsubvol' command"
2067 select FS_BTRFS
2068 help
2069 This enables the 'btrsubvol' command to list subvolumes
2070 of a BTRFS filesystem. There are no special commands for
2071 listing BTRFS directories or loading BTRFS files - this
2072 can be done by the generic 'fs' commands (see CMD_FS_GENERIC)
2073 when BTRFS is enabled (see FS_BTRFS).
2074
Simon Glass0501e3e2017-04-26 22:27:58 -06002075config CMD_CBFS
2076 bool "Enable the 'cbfs' command"
Simon Glass579b51a2017-04-26 22:27:59 -06002077 depends on FS_CBFS
Simon Glass0501e3e2017-04-26 22:27:58 -06002078 help
2079 Define this to enable support for reading from a Coreboot
2080 filesystem. This is a ROM-based filesystem used for accessing files
2081 on systems that use coreboot as the first boot-loader and then load
2082 U-Boot to actually boot the Operating System. Available commands are
2083 cbfsinit, cbfsinfo, cbfsls and cbfsload.
2084
Simon Glass519805e2017-04-26 22:28:03 -06002085config CMD_CRAMFS
2086 bool "Enable the 'cramfs' command"
Simon Glass690f5092017-04-26 22:28:04 -06002087 depends on FS_CRAMFS
Simon Glass519805e2017-04-26 22:28:03 -06002088 help
2089 This provides commands for dealing with CRAMFS (Compressed ROM
2090 filesystem). CRAMFS is useful when space is tight since files are
2091 compressed. Two commands are provided:
2092
2093 cramfsls - lists files in a cramfs image
2094 cramfsload - loads a file from a cramfs image
2095
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002096config CMD_EXT2
2097 bool "ext2 command support"
Tuomas Tynkkynen388f9a02018-01-05 02:45:17 +02002098 select FS_EXT4
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002099 help
2100 Enables EXT2 FS command
2101
2102config CMD_EXT4
2103 bool "ext4 command support"
Tuomas Tynkkynen388f9a02018-01-05 02:45:17 +02002104 select FS_EXT4
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002105 help
2106 Enables EXT4 FS command
2107
2108config CMD_EXT4_WRITE
2109 depends on CMD_EXT4
2110 bool "ext4 write command support"
Tuomas Tynkkynen388f9a02018-01-05 02:45:17 +02002111 select EXT4_WRITE
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002112 help
2113 Enables EXT4 FS write command
2114
2115config CMD_FAT
2116 bool "FAT command support"
Sekhar Nori1909a7b2017-06-02 17:53:59 +05302117 select FS_FAT
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002118 help
2119 Support for the FAT fs
2120
Joao Marcos Costaa12c66f2020-07-30 15:33:48 +02002121config CMD_SQUASHFS
2122 bool "SquashFS command support"
2123 select FS_SQUASHFS
2124 help
2125 Enables SquashFS filesystem commands (e.g. load, ls).
2126
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002127config CMD_FS_GENERIC
2128 bool "filesystem commands"
2129 help
2130 Enables filesystem commands (e.g. load, ls) that work for multiple
2131 fs types.
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002132
Josua Mayerf5ebfe72017-04-24 10:10:45 +02002133config CMD_FS_UUID
2134 bool "fsuuid command"
2135 help
2136 Enables fsuuid command for filesystem UUID.
2137
Simon Glassc4abb4b2017-05-17 03:25:37 -06002138config CMD_JFFS2
2139 bool "jffs2 command"
Simon Glass8c6c7c22017-05-17 03:25:38 -06002140 select FS_JFFS2
Simon Glassc4abb4b2017-05-17 03:25:37 -06002141 help
2142 Enables commands to support the JFFS2 (Journalling Flash File System
2143 version 2) filesystem. This enables fsload, ls and fsinfo which
2144 provide the ability to load files, list directories and obtain
2145 filesystem information.
2146
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002147config CMD_MTDPARTS
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002148 bool "MTD partition support"
Miquel Raynald2418202019-10-25 19:39:30 +02002149 depends on MTD
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002150 help
Miquel Raynal007dddc2018-09-29 12:58:30 +02002151 MTD partitioning tool support.
2152 It is strongly encouraged to avoid using this command
2153 anymore along with 'sf', 'nand', 'onenand'. One can still
2154 declare the partitions in the mtdparts environment variable
2155 but better use the MTD stack and the 'mtd' command instead.
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002156
Simon Glass66d7db02017-08-04 16:34:30 -06002157config CMD_MTDPARTS_SPREAD
2158 bool "Padd partition size to take account of bad blocks"
2159 depends on CMD_MTDPARTS
2160 help
2161 This enables the 'spread' sub-command of the mtdparts command.
2162 This command will modify the existing mtdparts variable by increasing
2163 the size of the partitions such that 1) each partition's net size is
2164 at least as large as the size specified in the mtdparts variable and
2165 2) each partition starts on a good block.
2166
Alexander Dahl6cae4f42019-10-30 16:53:55 +01002167config CMD_MTDPARTS_SHOW_NET_SIZES
2168 bool "Show net size (w/o bad blocks) of partitions"
2169 depends on CMD_MTDPARTS
2170 help
2171 Adds two columns to the printed partition table showing the
2172 effective usable size of a partition, if bad blocks are taken
2173 into account.
2174
Miquel Raynalf21322f2019-10-03 19:50:25 +02002175config MTDIDS_DEFAULT
2176 string "Default MTD IDs"
Miquel Raynald2418202019-10-25 19:39:30 +02002177 depends on MTD || SPI_FLASH
Miquel Raynalf21322f2019-10-03 19:50:25 +02002178 help
2179 Defines a default MTD IDs list for use with MTD partitions in the
2180 Linux MTD command line partitions format.
2181
2182config MTDPARTS_DEFAULT
2183 string "Default MTD partition scheme"
Miquel Raynald2418202019-10-25 19:39:30 +02002184 depends on MTD || SPI_FLASH
Miquel Raynalf21322f2019-10-03 19:50:25 +02002185 help
2186 Defines a default MTD partitioning scheme in the Linux MTD command
2187 line partitions format
2188
Simon Glassed4ee312017-08-04 16:34:41 -06002189config CMD_REISER
2190 bool "reiser - Access to reiserfs filesystems"
2191 help
2192 This provides two commands which operate on a resierfs filesystem,
2193 commonly used some years ago:
2194
2195 reiserls - list files
2196 reiserload - load a file
2197
Simon Glass19c5caf2017-08-04 16:34:58 -06002198config CMD_YAFFS2
2199 bool "yaffs2 - Access of YAFFS2 filesystem"
2200 depends on YAFFS2
2201 default y
2202 help
2203 This provides commands for accessing a YAFFS2 filesystem. Yet
2204 Another Flash Filesystem 2 is a filesystem designed specifically
2205 for NAND flash. It incorporates bad-block management and ensures
2206 that device writes are sequential regardless of filesystem
2207 activity.
2208
Simon Glassdc82dee2017-08-04 16:35:04 -06002209config CMD_ZFS
2210 bool "zfs - Access of ZFS filesystem"
2211 help
2212 This provides commands to accessing a ZFS filesystem, commonly used
2213 on Solaris systems. Two sub-commands are provided:
2214
2215 zfsls - list files in a directory
2216 zfsload - load a file
2217
2218 See doc/README.zfs for more details.
2219
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002220endmenu
2221
Simon Glass3423f212017-04-26 22:27:52 -06002222menu "Debug commands"
2223
2224config CMD_BEDBUG
2225 bool "bedbug"
2226 help
2227 The bedbug (emBEDded deBUGger) command provides debugging features
2228 for some PowerPC processors. For details please see the
Heinrich Schuchardt3ade1b52020-02-25 21:44:05 +01002229 documentation in doc/README.bedbug.
Simon Glass3423f212017-04-26 22:27:52 -06002230
Simon Glass20ea5632017-04-26 22:28:08 -06002231config CMD_DIAG
2232 bool "diag - Board diagnostics"
2233 help
2234 This command provides access to board diagnostic tests. These are
2235 called Power-on Self Tests (POST). The command allows listing of
2236 available tests and running either all the tests, or specific tests
2237 identified by name.
2238
Simon Glass4c3a6202017-05-17 03:25:39 -06002239config CMD_IRQ
2240 bool "irq - Show information about interrupts"
Pragnesh Patel3375e0b2020-08-24 20:38:55 +05302241 depends on !ARM && !MIPS && !RISCV && !SH
Simon Glass4c3a6202017-05-17 03:25:39 -06002242 help
2243 This enables two commands:
2244
2245 interrupts - enable or disable interrupts
2246 irqinfo - print device-specific interrupt information
Simon Glassfd9948c2017-05-17 03:25:40 -06002247
2248config CMD_KGDB
2249 bool "kgdb - Allow debugging of U-Boot with gdb"
Michal Simek9d364412018-10-04 14:26:13 +02002250 depends on PPC
Simon Glassfd9948c2017-05-17 03:25:40 -06002251 help
2252 This enables a 'kgdb' command which allows gdb to connect to U-Boot
2253 over a serial link for debugging purposes. This allows
2254 single-stepping, inspecting variables, etc. This is supported only
2255 on PowerPC at present.
2256
Simon Glass5684f8f2017-12-04 13:48:26 -07002257config CMD_LOG
2258 bool "log - Generation, control and access to logging"
Heinrich Schuchardt74bad682018-04-19 22:02:46 +02002259 select LOG
Sean Anderson304882e2020-10-27 19:55:38 -04002260 select GETOPT
Simon Glass5684f8f2017-12-04 13:48:26 -07002261 help
2262 This provides access to logging features. It allows the output of
2263 log data to be controlled to a limited extent (setting up the default
Simon Glass14c8a062017-12-04 13:48:27 -07002264 maximum log level for emitting of records). It also provides access
2265 to a command used for testing the log system.
Simon Glass5684f8f2017-12-04 13:48:26 -07002266
Simon Glass126cb792017-08-04 16:34:59 -06002267config CMD_TRACE
2268 bool "trace - Support tracing of function calls and timing"
2269 help
2270 Enables a command to control using of function tracing within
2271 U-Boot. This allows recording of call traces including timing
2272 information. The command can write data to memory for exporting
Simon Glassbfce7fc2019-04-08 13:20:51 -06002273 for analysis (e.g. using bootchart). See doc/README.trace for full
Simon Glass126cb792017-08-04 16:34:59 -06002274 details.
2275
Igor Opaniuk60291192018-06-03 21:56:39 +03002276config CMD_AVB
2277 bool "avb - Android Verified Boot 2.0 operations"
Igor Opaniuke0df0352018-07-17 14:33:25 +03002278 depends on AVB_VERIFY
Igor Opaniuk60291192018-06-03 21:56:39 +03002279 default n
2280 help
2281 Enables a "avb" command to perform verification of partitions using
2282 Android Verified Boot 2.0 functionality. It includes such subcommands:
2283 avb init - initialize avb2 subsystem
2284 avb read_rb - read rollback index
2285 avb write_rb - write rollback index
2286 avb is_unlocked - check device lock state
2287 avb get_uuid - read and print uuid of a partition
2288 avb read_part - read data from partition
2289 avb read_part_hex - read data from partition and output to stdout
2290 avb write_part - write data to partition
2291 avb verify - run full verification chain
Simon Glass3423f212017-04-26 22:27:52 -06002292endmenu
2293
Heiko Schocher09dbb852016-09-21 07:58:19 +02002294config CMD_UBI
2295 tristate "Enable UBI - Unsorted block images commands"
Heiko Schocher09dbb852016-09-21 07:58:19 +02002296 select MTD_UBI
2297 help
2298 UBI is a software layer above MTD layer which admits use of LVM-like
2299 logical volumes on top of MTD devices, hides some complexities of
2300 flash chips like wear and bad blocks and provides some other useful
2301 capabilities. Please, consult the MTD web site for more details
2302 (www.linux-mtd.infradead.org). Activate this option if you want
2303 to use U-Boot UBI commands.
Miquel Raynal12f1ff12018-09-29 12:58:29 +02002304 It is also strongly encouraged to also enable CONFIG_MTD to get full
2305 partition support.
Heiko Schocher09dbb852016-09-21 07:58:19 +02002306
Philippe Reynes10d53222020-03-23 19:20:47 +01002307config CMD_UBI_RENAME
2308 bool "Enable rename"
2309 depends on CMD_UBI
2310 default n
2311 help
2312 Enable a "ubi" command to rename ubi volume:
2313 ubi rename <oldname> <newname>
2314
Boris Brezillonaa57d0f2017-02-27 18:22:06 +01002315config CMD_UBIFS
2316 tristate "Enable UBIFS - Unsorted block images filesystem commands"
Maxime Ripard1e6a0962017-03-03 14:53:22 +01002317 depends on CMD_UBI
Michal Simek84f3dec2018-07-23 15:55:13 +02002318 default y if CMD_UBI
Karl Beldan3418eeb2017-07-12 16:11:47 +00002319 select LZO
Boris Brezillonaa57d0f2017-02-27 18:22:06 +01002320 help
2321 UBIFS is a file system for flash devices which works on top of UBI.
2322
Simon Glass29499a02016-01-17 20:53:51 -07002323endmenu