blob: 0625ee4050f5c998d5513af66640f8316af400fb [file] [log] [blame]
Simon Glass72a8cf82016-01-17 20:53:51 -07001menu "Command line interface"
2
Simon Glass302a6482016-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 Glass72a8cf82016-01-17 20:53:51 -070014config HUSH_PARSER
15 bool "Use hush shell"
Simon Glass302a6482016-03-13 19:07:28 -060016 depends on CMDLINE
Simon Glass72a8cf82016-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 Fordd021e942018-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 Glass72a8cf82016-01-17 20:53:51 -070049config SYS_PROMPT
50 string "Shell prompt"
Michal Simeka91feae2019-09-25 12:32:41 +020051 default "Zynq> " if ARCH_ZYNQ
Michal Simek3c3886d2019-09-25 12:37:15 +020052 default "ZynqMP> " if ARCH_ZYNQMP
Simon Glass72a8cf82016-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 Delaunay48aee0a2020-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 Muellner7ae31fc2019-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 Protsenko610eec72017-09-28 12:33:45 -070078config BUILD_BIN2C
79 bool
80
Simon Glass72a8cf82016-01-17 20:53:51 -070081comment "Commands"
82
83menu "Info commands"
84
Simon Glass0b885bc2020-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 Glass72a8cf82016-01-17 20:53:51 -070099config CMD_BDI
100 bool "bdinfo"
101 default y
102 help
103 Print board info
104
Masahiro Yamada61304db2017-01-30 11:12:07 +0900105config CMD_CONFIG
106 bool "config"
Masahiro Yamada61304db2017-01-30 11:12:07 +0900107 default SANDBOX
Michal Simek5ed063d2018-07-23 15:55:13 +0200108 select BUILD_BIN2C
Masahiro Yamada61304db2017-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 Glass72a8cf82016-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 Schuchardt622178d2020-11-05 00:29:11 +0100125 depends on CPU
Simon Glass72a8cf82016-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 Yamadad726f222017-01-30 11:12:08 +0900134 select BUILD_BIN2C
Simon Glass72a8cf82016-01-17 20:53:51 -0700135 help
136 Print GPL license text
137
Simon Glass3b65ee32019-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 Leroyfa379222017-08-04 16:34:40 -0600146config CMD_REGINFO
147 bool "reginfo"
148 depends on PPC
149 help
150 Register dump
151
Baruch Siach1c79f2f2020-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 Schuchardtc92b50a2020-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 Glass72a8cf82016-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 Ciocalteaecc7fda2019-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 Nguyenab8243e2016-04-21 09:05:23 -0500196config CMD_BOOTZ
197 bool "bootz"
198 help
199 Boot the Linux zImage
200
Masahiro Yamada26959272016-08-12 08:31:16 -0400201config CMD_BOOTI
202 bool "booti"
Atish Patra3cedc972019-05-06 17:49:39 -0700203 depends on ARM64 || RISCV
Masahiro Yamada26959272016-08-12 08:31:16 -0400204 default y
205 help
206 Boot an AArch64 Linux Kernel image from memory.
207
Tom Rini4b0bcfa2019-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 Rini14a2dee2019-12-05 18:46:11 -0500231 depends on (ARM && (ARM64 || CPU_V7A || CPU_V7R) || SANDBOX || PPC || X86)
Tom Rini4b0bcfa2019-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 Takahirofefff632019-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 Graf95b62b22016-11-17 22:40:10 +0100264config CMD_BOOTEFI_HELLO_COMPILE
265 bool "Compile a standard EFI hello world binary for testing"
Heinrich Schuchardt3b4847c2019-11-07 08:05:17 +0100266 depends on CMD_BOOTEFI && !CPU_V7M
Alexander Graf95b62b22016-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 Glassc7ae3df2016-11-07 08:47:08 -0700277config CMD_BOOTEFI_HELLO
278 bool "Allow booting a standard EFI hello world for testing"
Alexander Graf95b62b22016-11-17 22:40:10 +0100279 depends on CMD_BOOTEFI_HELLO_COMPILE
Heinrich Schuchardtec5f0ed2020-07-13 07:33:40 +0200280 default y if CMD_BOOTEFI_SELFTEST
Simon Glassc7ae3df2016-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 Schuchardt623b3a52017-09-15 10:06:11 +0200287source lib/efi_selftest/Kconfig
288
Tom Rini4880b022016-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 Roscab84acf12019-12-24 17:51:06 +0100295config CMD_ADTIMG
296 bool "adtimg"
Sam Protsenkod03e76a2018-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 Protsenko94f6d0d2020-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 Protsenko34b43192020-01-24 17:53:43 +0200311 See doc/android/boot-image.rst for details.
312
Simon Glass72a8cf82016-01-17 20:53:51 -0700313config CMD_ELF
314 bool "bootelf, bootvx"
315 default y
Keerthy805b3ca2020-02-12 13:55:03 +0530316 select LIB_ELF
Simon Glass72a8cf82016-01-17 20:53:51 -0700317 help
318 Boot an ELF/vxWorks image from the memory.
319
Michal Simek23922e22016-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 Glass72a8cf82016-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 Glass72a8cf82016-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 Glass72c30332017-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 Glass203dc1b2017-08-04 16:34:49 -0600365config CMD_SPL_NAND_OFS
Lukasz Majewskif63c43b2019-05-16 16:01:36 +0200366 hex "Offset of OS args or dtb for Falcon-mode NAND boot"
Lukasz Majewski7cb179e2019-05-16 16:01:35 +0200367 depends on CMD_SPL && (TPL_NAND_SUPPORT || SPL_NAND_SUPPORT)
Simon Glass203dc1b2017-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 Majewskief9e57d2019-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 Glass3a91a252017-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 Glass9b92a8d2017-08-04 16:34:57 -0600392config CMD_THOR_DOWNLOAD
393 bool "thor - TIZEN 'thor' download"
Marek Szyprowski909338c2019-10-02 12:29:08 +0200394 select DFU
Simon Glass9b92a8d2017-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 Glasse7a815f2017-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 Glass72a8cf82016-01-17 20:53:51 -0700413endmenu
414
415menu "Environment commands"
416
Dinh Nguyenab8243e2016-04-21 09:05:23 -0500417config CMD_ASKENV
418 bool "ask for env variable"
419 help
420 Ask for environment variable
421
Simon Glass72a8cf82016-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 Nguyenab8243e2016-04-21 09:05:23 -0500440config CMD_GREPENV
441 bool "search env"
442 help
443 Allow for searching environment variables
444
Simon Glass72a8cf82016-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 Wunderlichcd121bd2019-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 Glass72a8cf82016-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 Glassa55d29d2017-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 Glassffc76582017-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 Takahiro49d81fd2019-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 Takahiro49d81fd2019-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 Ruan8e921202019-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 Delaunay6718ebd2020-06-19 14:03:34 +0200503 [-q] : quiet output
Leo Ruan8e921202019-05-24 17:20:19 +0200504 The result of multiple evaluations will be combined with AND.
505
Patrick Delaunay0115dd32020-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 Delaunaya97d22e2020-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 Glass72a8cf82016-01-17 20:53:51 -0700517endmenu
518
519menu "Memory commands"
520
Mario Six55b25562018-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 Glass4aed2272020-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 Glass72a8cf82016-01-17 20:53:51 -0700536config CMD_CRC32
537 bool "crc32"
538 default y
Michal Simek5ed063d2018-07-23 15:55:13 +0200539 select HASH
Simon Glass72a8cf82016-01-17 20:53:51 -0700540 help
541 Compute CRC32.
542
Daniel Thompson221a9492017-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 Glassa1dc9802017-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 Glassba71be52017-08-04 16:34:51 -0600597config LOOPW
598 bool "loopw"
599 help
600 Infinite write loop on address range
601
Andre Przywarabea79d72017-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 Thompson221a9492017-05-19 17:26:58 +0100609config MD5SUM_VERIFY
Andre Przywarabea79d72017-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 Glassba71be52017-08-04 16:34:51 -0600616config CMD_MEMINFO
617 bool "meminfo"
Daniel Thompson221a9492017-05-19 17:26:58 +0100618 help
Simon Glassba71be52017-08-04 16:34:51 -0600619 Display memory information.
Daniel Thompson221a9492017-05-19 17:26:58 +0100620
Simon Glassba71be52017-08-04 16:34:51 -0600621config CMD_MEMORY
622 bool "md, mm, nm, mw, cp, cmp, base, loop"
623 default y
Daniel Thompson221a9492017-05-19 17:26:58 +0100624 help
Simon Glassba71be52017-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 Glass72a8cf82016-01-17 20:53:51 -0700634
Simon Glass550a9e72020-07-28 19:41:14 -0600635config CMD_MEM_SEARCH
Simon Glassbdded202020-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 Johnson72732312020-01-29 09:17:18 -0700649config CMD_MX_CYCLIC
Adam Ford78f28772019-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 Hiblot803e1a32019-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 Glass72a8cf82016-01-17 20:53:51 -0700670config CMD_MEMTEST
671 bool "memtest"
672 help
673 Simple RAM read/write test.
674
Mario Sixe89f8aa2018-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 Siemsen9989fb12020-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 Soma702de892020-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 Sixe89f8aa2018-03-28 14:38:14 +0200710endif
711
Simon Glassba71be52017-08-04 16:34:51 -0600712config CMD_SHA1SUM
713 bool "sha1sum"
714 select SHA1
Simon Glass72a8cf82016-01-17 20:53:51 -0700715 help
Simon Glassba71be52017-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 Glass72a8cf82016-01-17 20:53:51 -0700723
Simon Glass00805d72017-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 Glassee7c0e72017-05-17 03:25:43 -0600732endmenu
733
734menu "Compression commands"
735
736config CMD_LZMADEC
737 bool "lzmadec"
Tom Rini99e46df2017-09-29 14:32:44 -0400738 default y if CMD_BOOTI
Simon Glassee7c0e72017-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 Ashidukaa1732232020-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 Yamadae9d33e72017-02-05 10:42:56 +0900751config CMD_UNZIP
752 bool "unzip"
Tom Rini99e46df2017-09-29 14:32:44 -0400753 default y if CMD_BOOTI
Michael Walle56c311b2020-05-22 14:07:35 +0200754 select GZIP
Masahiro Yamadae9d33e72017-02-05 10:42:56 +0900755 help
756 Uncompress a zip-compressed memory region.
757
758config CMD_ZIP
759 bool "zip"
Michael Walleeff5a542020-05-22 14:07:36 +0200760 select GZIP_COMPRESSED
Masahiro Yamadae9d33e72017-02-05 10:42:56 +0900761 help
762 Compress a memory region with zlib deflate method.
763
Simon Glass72a8cf82016-01-17 20:53:51 -0700764endmenu
765
766menu "Device access commands"
767
Simon Glass0c19b4d2017-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 Armstrong051ebe32018-04-27 15:17:57 +0200774config CMD_ADC
775 bool "adc - Access Analog to Digital Converters info and data"
776 select ADC
Michal Simek6e741cf2020-08-19 10:44:17 +0200777 depends on DM_REGULATOR
Neil Armstrong051ebe32018-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 Roscadb7b7a02019-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 Hiblot49c752c2018-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 Glassd3156282017-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 Glass72a8cf82016-01-17 20:53:51 -0700817config 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
Simon Glass0c19b4d2017-08-04 16:34:28 -0600829config CMD_DFU
830 bool "dfu"
Marek Vasut0f44d332018-02-16 16:41:17 +0100831 select DFU
Simon Glass0c19b4d2017-08-04 16:34:28 -0600832 help
833 Enables the command "dfu" which is used to have U-Boot create a DFU
Simon Glass00fd59d2017-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 Glass0c19b4d2017-08-04 16:34:28 -0600837
838config CMD_DM
839 bool "dm - Access to driver model information"
840 depends on DM
Simon Glass0c19b4d2017-08-04 16:34:28 -0600841 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 Kiernan312a10f2018-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 Kiernanf73a7df2018-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 Kiernan312a10f2018-05-29 15:30:39 +0000857
Sam Protsenko586a1bf2020-01-24 17:53:44 +0200858 See doc/android/fastboot.rst for more information.
Alex Kiernan312a10f2018-05-29 15:30:39 +0000859
Simon Glass0c19b4d2017-08-04 16:34:28 -0600860config CMD_FLASH
861 bool "flinfo, erase, protect"
862 default y
Miquel Raynalff102c52019-10-25 19:39:30 +0200863 depends on MTD || FLASH_CFI_DRIVER || MTD_NOR_FLASH
Simon Glass0c19b4d2017-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 Tynkkynena4fa8112018-01-27 20:28:40 +0200872 depends on FPGA
Simon Glass0c19b4d2017-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 Paladugucedd48e2018-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 Glass0c19b4d2017-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
Pragnesh Patel9e9a5302020-12-22 11:30:05 +0530931config CMD_PWM
932 bool "pwm"
933 depends on DM_PWM
934 help
935 Control PWM channels, this allows invert/config/enable/disable PWM channels.
936
Simon Glass0c19b4d2017-08-04 16:34:28 -0600937config CMD_GPT
938 bool "GPT (GUID Partition Table) command"
Simon Glass0c19b4d2017-08-04 16:34:28 -0600939 select EFI_PARTITION
Adam Ford1811a922018-02-06 12:43:56 -0600940 select HAVE_BLOCK_DEVICE
Michal Simek5ed063d2018-07-23 15:55:13 +0200941 select PARTITION_UUIDS
Maxime Ripard47738ac2017-08-24 11:52:32 +0200942 imply RANDOM_UUID
Simon Glass0c19b4d2017-08-04 16:34:28 -0600943 help
944 Enable the 'gpt' command to ready and write GPT style partition
945 tables.
946
Maxime Ripard47738ac2017-08-24 11:52:32 +0200947config RANDOM_UUID
948 bool "GPT Random UUID generation"
Adam Forda451bc22018-02-06 12:14:28 -0600949 select LIB_UUID
Maxime Ripard47738ac2017-08-24 11:52:32 +0200950 help
951 Enable the generation of partitions with random UUIDs if none
952 are provided.
953
Simon Glass0c19b4d2017-08-04 16:34:28 -0600954config CMD_GPT_RENAME
955 bool "GPT partition renaming commands"
956 depends on CMD_GPT
957 help
958 Enables the 'gpt' command to interchange names on two GPT
959 partitions via the 'gpt swap' command or to rename single
960 partitions via the 'rename' command.
961
Simon Glass75eb9972017-05-17 03:25:29 -0600962config CMD_IDE
963 bool "ide - Support for IDE drivers"
Simon Glassfc843a02017-05-17 03:25:30 -0600964 select IDE
Simon Glass75eb9972017-05-17 03:25:29 -0600965 help
966 Provides an 'ide' command which allows accessing the IDE drive,
967 reseting the IDE interface, printing the partition table and
968 geting device info. It also enables the 'diskboot' command which
969 permits booting from an IDE drive.
970
Simon Glass594e8d12017-05-17 03:25:34 -0600971config CMD_IO
972 bool "io - Support for performing I/O accesses"
973 help
974 Provides an 'iod' command to display I/O space and an 'iow' command
975 to write values to the I/O space. This can be useful for manually
976 checking the state of devices during boot when debugging device
977 drivers, etc.
978
Simon Glass7d0f5c12017-05-17 03:25:36 -0600979config CMD_IOTRACE
980 bool "iotrace - Support for tracing I/O activity"
981 help
982 Provides an 'iotrace' command which supports recording I/O reads and
983 writes in a trace buffer in memory . It also maintains a checksum
984 of the trace records (even if space is exhausted) so that the
985 sequence of I/O accesses can be verified.
986
987 When debugging drivers it is useful to see what I/O accesses were
988 done and in what order.
989
990 Even if the individual accesses are of little interest it can be
991 useful to verify that the access pattern is consistent each time
992 an operation is performed. In this case a checksum can be used to
993 characterise the operation of a driver. The checksum can be compared
994 across different runs of the operation to verify that the driver is
995 working properly.
996
997 In particular, when performing major refactoring of the driver, where
998 the access pattern should not change, the checksum provides assurance
999 that the refactoring work has not broken the driver.
1000
1001 This works by sneaking into the io.h heder for an architecture and
1002 redirecting I/O accesses through iotrace's tracing mechanism.
1003
1004 For now no commands are provided to examine the trace buffer. The
1005 format is fairly simple, so 'md' is a reasonable substitute.
1006
1007 Note: The checksum feature is only useful for I/O regions where the
1008 contents do not change outside of software control. Where this is not
1009 suitable you can fall back to manually comparing the addresses. It
1010 might be useful to enhance tracing to only checksum the accesses and
1011 not the data read/written.
1012
Simon Glass0c19b4d2017-08-04 16:34:28 -06001013config CMD_I2C
1014 bool "i2c"
1015 help
1016 I2C support.
1017
Eugen Hristevd05266f2018-09-18 10:35:33 +03001018config CMD_W1
1019 depends on W1
1020 default y if W1
1021 bool "w1 - Support for Dallas 1-Wire protocol"
1022 help
1023 Dallas 1-wire protocol support
1024
Simon Glass72a8cf82016-01-17 20:53:51 -07001025config CMD_LOADB
1026 bool "loadb"
1027 default y
1028 help
1029 Load a binary file over serial line.
1030
1031config CMD_LOADS
1032 bool "loads"
1033 default y
1034 help
1035 Load an S-Record file over serial line
1036
Niel Fouriee3697902020-03-30 17:22:58 +02001037config CMD_LSBLK
1038 depends on BLK
1039 bool "lsblk - list block drivers and devices"
1040 help
1041 Print list of available block device drivers, and for each, the list
1042 of known block devices.
1043
Marek Szyprowski750c5432020-12-23 13:55:15 +01001044config CMD_MBR
1045 bool "MBR (Master Boot Record) command"
1046 select DOS_PARTITION
1047 select HAVE_BLOCK_DEVICE
1048 help
1049 Enable the 'mbr' command to ready and write MBR (Master Boot Record)
1050 style partition tables.
1051
Bin Meng3bc0db12020-10-14 14:34:52 +08001052config CMD_MISC
1053 bool "misc"
1054 depends on MISC
1055 help
1056 Enable the command "misc" for accessing miscellaneous devices with
1057 a MISC uclass driver. The command provides listing all MISC devices
1058 as well as read and write functionalities via their drivers.
1059
Dinh Nguyenab8243e2016-04-21 09:05:23 -05001060config CMD_MMC
1061 bool "mmc"
1062 help
1063 MMC memory mapped support.
1064
Heinrich Schuchardt453d2132020-03-31 17:39:28 +00001065if CMD_MMC
1066
1067config CMD_BKOPS_ENABLE
1068 bool "mmc bkops enable"
1069 depends on CMD_MMC
1070 default n
1071 help
1072 Enable command for setting manual background operations handshake
1073 on a eMMC device. The feature is optionally available on eMMC devices
1074 conforming to standard >= 4.41.
1075
Alex Kiernan5a7b11e2018-05-08 04:43:31 +00001076config CMD_MMC_RPMB
1077 bool "Enable support for RPMB in the mmc command"
Heinrich Schuchardt453d2132020-03-31 17:39:28 +00001078 depends on SUPPORT_EMMC_RPMB
Alex Kiernan5a7b11e2018-05-08 04:43:31 +00001079 help
1080 Enable the commands for reading, writing and programming the
1081 key for the Replay Protection Memory Block partition in eMMC.
1082
Alex Kiernanc232d142018-05-29 15:30:52 +00001083config CMD_MMC_SWRITE
1084 bool "mmc swrite"
Heinrich Schuchardt453d2132020-03-31 17:39:28 +00001085 depends on MMC_WRITE
Alex Kiernanc232d142018-05-29 15:30:52 +00001086 select IMAGE_SPARSE
1087 help
1088 Enable support for the "mmc swrite" command to write Android sparse
1089 images to eMMC.
1090
Heinrich Schuchardt453d2132020-03-31 17:39:28 +00001091endif
1092
John Chau4a4830c2020-07-02 12:01:21 +08001093config CMD_CLONE
1094 bool "clone"
1095 depends on BLK
1096 help
1097 Enable storage cloning over block devices, useful for
1098 initial flashing by external block device without network
1099 or usb support.
1100
Ruchika Guptabcc6c572020-10-23 13:39:33 +05301101config CMD_OPTEE_RPMB
1102 bool "Enable read/write support on RPMB via OPTEE"
1103 depends on SUPPORT_EMMC_RPMB && OPTEE
1104 help
1105 Enable the commands for reading, writing persistent named values
1106 in the Replay Protection Memory Block partition in eMMC by
1107 using Persistent Objects in OPTEE
1108
Miquel Raynal5db66b32018-09-29 12:58:28 +02001109config CMD_MTD
1110 bool "mtd"
Miquel Raynalff102c52019-10-25 19:39:30 +02001111 depends on MTD
Miquel Raynal5db66b32018-09-29 12:58:28 +02001112 select MTD_PARTITIONS
1113 help
1114 MTD commands support.
1115
Pratyush Yadav05115ab2020-10-16 16:16:35 +05301116config CMD_MUX
1117 bool "mux"
1118 depends on MULTIPLEXER
1119 help
1120 List, select, and deselect mux controllers on the fly.
1121
Simon Glass72a8cf82016-01-17 20:53:51 -07001122config CMD_NAND
1123 bool "nand"
Maxime Ripard522c2822017-03-03 15:13:30 +01001124 default y if NAND_SUNXI
Miquel Raynalff102c52019-10-25 19:39:30 +02001125 depends on MTD_RAW_NAND
Simon Glass72a8cf82016-01-17 20:53:51 -07001126 help
1127 NAND support.
1128
Boris Brezillone915d202017-02-27 18:22:07 +01001129if CMD_NAND
1130config CMD_NAND_TRIMFFS
1131 bool "nand write.trimffs"
Hans de Goeded482a8d2017-02-27 18:22:10 +01001132 default y if ARCH_SUNXI
Boris Brezillone915d202017-02-27 18:22:07 +01001133 help
1134 Allows one to skip empty pages when flashing something on a NAND.
1135
1136config CMD_NAND_LOCK_UNLOCK
1137 bool "nand lock/unlock"
1138 help
1139 NAND locking support.
1140
1141config CMD_NAND_TORTURE
1142 bool "nand torture"
1143 help
1144 NAND torture support.
1145
1146endif # CMD_NAND
1147
Zhikang Zhang0adc38b2017-08-03 02:30:59 -07001148config CMD_NVME
1149 bool "nvme"
1150 depends on NVME
1151 default y if NVME
1152 help
1153 NVM Express device support
1154
Simon Glass978f0852017-08-04 16:34:31 -06001155config CMD_ONENAND
1156 bool "onenand - access to onenand device"
Miquel Raynalff102c52019-10-25 19:39:30 +02001157 depends on MTD
Simon Glass978f0852017-08-04 16:34:31 -06001158 help
1159 OneNAND is a brand of NAND ('Not AND' gate) flash which provides
1160 various useful features. This command allows reading, writing,
1161 and erasing blocks. It allso provides a way to show and change
1162 bad blocks, and test the device.
1163
Mario Six3bf65cb2018-09-27 09:19:34 +02001164config CMD_OSD
1165 bool "osd"
1166 help
1167 Enable the 'osd' command which allows to query information from and
1168 write text data to a on-screen display (OSD) device; a virtual device
1169 associated with a display capable of displaying a text overlay on the
1170 display it's associated with..
1171
Patrick Delaunayb331cd62017-01-27 11:00:42 +01001172config CMD_PART
1173 bool "part"
Adam Ford1811a922018-02-06 12:43:56 -06001174 select HAVE_BLOCK_DEVICE
Michal Simek5ed063d2018-07-23 15:55:13 +02001175 select PARTITION_UUIDS
Patrick Delaunayb331cd62017-01-27 11:00:42 +01001176 help
1177 Read and display information about the partition table on
1178 various media.
1179
Simon Glass6500ec72017-08-04 16:34:34 -06001180config CMD_PCI
1181 bool "pci - Access PCI devices"
1182 help
1183 Provide access to PCI (Peripheral Interconnect Bus), a type of bus
1184 used on some devices to allow the CPU to communicate with its
1185 peripherals. Sub-commands allow bus enumeration, displaying and
1186 changing configuration space and a few other features.
1187
Patrice Chotardd5a83132018-10-24 14:10:17 +02001188config CMD_PINMUX
1189 bool "pinmux - show pins muxing"
1190 default y if PINCTRL
1191 help
1192 Parse all available pin-controllers and show pins muxing. This
1193 is useful for debug purpoer to check the pin muxing and to know if
1194 a pin is configured as a GPIO or as an alternate function.
1195
Adam Ford577c40a2018-09-09 07:05:57 -05001196config CMD_POWEROFF
1197 bool "poweroff"
1198 help
1199 Poweroff/Shutdown the system
1200
Simon Glassb75dfd22017-08-04 16:34:39 -06001201config CMD_READ
1202 bool "read - Read binary data from a partition"
1203 help
1204 Provides low-level access to the data in a partition.
1205
Simon Glass72a8cf82016-01-17 20:53:51 -07001206config CMD_REMOTEPROC
1207 bool "remoteproc"
1208 depends on REMOTEPROC
1209 help
1210 Support for Remote Processor control
1211
Simon Glass3bf926c2017-06-14 21:28:24 -06001212config CMD_SATA
1213 bool "sata - Access SATA subsystem"
Simon Glass10e40d52017-06-14 21:28:25 -06001214 select SATA
Simon Glass3bf926c2017-06-14 21:28:24 -06001215 help
1216 SATA (Serial Advanced Technology Attachment) is a serial bus
1217 standard for connecting to hard drives and other storage devices.
1218 This command provides information about attached devices and allows
1219 reading, writing and other operations.
1220
1221 SATA replaces PATA (originally just ATA), which stands for Parallel AT
1222 Attachment, where AT refers to an IBM AT (Advanced Technology)
1223 computer released in 1984.
1224
Simon Glass15dc63d2017-08-04 16:34:43 -06001225config CMD_SAVES
1226 bool "saves - Save a file over serial in S-Record format"
1227 help
1228 Provides a way to save a binary file using the Motorola S-Record
1229 format over the serial line.
1230
Heinrich Schuchardt0c3fecd2018-02-14 08:05:44 +01001231config CMD_SCSI
1232 bool "scsi - Access to SCSI devices"
1233 default y if SCSI
1234 help
1235 This provides a 'scsi' command which provides access to SCSI (Small
1236 Computer System Interface) devices. The command provides a way to
1237 scan the bus, reset the bus, read and write data and get information
1238 about devices.
1239
Simon Glassefce2442017-08-04 16:34:45 -06001240config CMD_SDRAM
1241 bool "sdram - Print SDRAM configuration information"
1242 help
1243 Provides information about attached SDRAM. This assumed that the
1244 SDRAM has an EEPROM with information that can be read using the
1245 I2C bus. This is only available on some boards.
1246
Simon Glass0c19b4d2017-08-04 16:34:28 -06001247config CMD_SF
1248 bool "sf"
Tom Rinia4298dd2019-05-29 17:01:28 -04001249 depends on DM_SPI_FLASH || SPI_FLASH
Jagan Tekic2af7fb2019-10-16 17:59:42 +05301250 default y if DM_SPI_FLASH
Simon Glass0c19b4d2017-08-04 16:34:28 -06001251 help
1252 SPI Flash support
1253
Simon Glass719d36e2017-08-04 16:34:46 -06001254config CMD_SF_TEST
1255 bool "sf test - Allow testing of SPI flash"
Tom Rinia4298dd2019-05-29 17:01:28 -04001256 depends on CMD_SF
Simon Glass719d36e2017-08-04 16:34:46 -06001257 help
1258 Provides a way to test that SPI flash is working correctly. The
1259 test is destructive, in that an area of SPI flash must be provided
1260 for the test to use. Performance information is also provided,
1261 measuring the performance of reading, writing and erasing in
1262 Mbps (Million Bits Per Second). This value should approximately
1263 equal the SPI bus speed for a single-bit-wide SPI bus, assuming
1264 everything is working properly.
1265
Simon Glass0c19b4d2017-08-04 16:34:28 -06001266config CMD_SPI
Patrick Delaunayc95e6322019-02-27 15:20:37 +01001267 bool "sspi - Command to access spi device"
Tom Rinia4298dd2019-05-29 17:01:28 -04001268 depends on SPI
Simon Glass0c19b4d2017-08-04 16:34:28 -06001269 help
1270 SPI utility command.
1271
Patrick Delaunayc95e6322019-02-27 15:20:37 +01001272config DEFAULT_SPI_BUS
1273 int "default spi bus used by sspi command"
1274 depends on CMD_SPI
1275 default 0
1276
1277config DEFAULT_SPI_MODE
1278 hex "default spi mode used by sspi command (see include/spi.h)"
1279 depends on CMD_SPI
1280 default 0
1281
Simon Glass5605aa82017-08-04 16:35:00 -06001282config CMD_TSI148
1283 bool "tsi148 - Command to access tsi148 device"
1284 help
1285 This provides various sub-commands to initialise and configure the
1286 Turndra tsi148 device. See the command help for full details.
1287
Faiz Abbasa539c8b2019-10-15 18:24:40 +05301288config CMD_UFS
1289 bool "Enable UFS - Universal Flash Subsystem commands"
1290 depends on UFS
1291 help
1292 "This provides commands to initialise and configure universal flash
1293 subsystem devices"
1294
Simon Glass2a242e32017-08-04 16:35:01 -06001295config CMD_UNIVERSE
1296 bool "universe - Command to set up the Turndra Universe controller"
1297 help
1298 This allows setting up the VMEbus provided by this controller.
1299 See the command help for full details.
1300
Simon Glass0c19b4d2017-08-04 16:34:28 -06001301config CMD_USB
1302 bool "usb"
Adam Ford1811a922018-02-06 12:43:56 -06001303 select HAVE_BLOCK_DEVICE
Simon Glass0c19b4d2017-08-04 16:34:28 -06001304 help
1305 USB support.
1306
Stefan Agner2f005692017-08-16 11:00:53 -07001307config CMD_USB_SDP
1308 bool "sdp"
1309 select USB_FUNCTION_SDP
1310 help
1311 Enables the command "sdp" which is used to have U-Boot emulating the
1312 Serial Download Protocol (SDP) via USB.
Michal Simek6e7bdde2018-07-23 15:55:12 +02001313
Eddie Cai453c95e2017-12-15 08:17:11 +08001314config CMD_ROCKUSB
1315 bool "rockusb"
1316 depends on USB_FUNCTION_ROCKUSB
1317 help
Michal Simek6e7bdde2018-07-23 15:55:12 +02001318 Rockusb protocol is widely used by Rockchip SoC based devices. It can
Eddie Cai453c95e2017-12-15 08:17:11 +08001319 read/write info, image to/from devices. This enable rockusb command
1320 support to communication with rockusb device. for more detail about
1321 this command, please read doc/README.rockusb.
Stefan Agner2f005692017-08-16 11:00:53 -07001322
Simon Glass0c19b4d2017-08-04 16:34:28 -06001323config CMD_USB_MASS_STORAGE
1324 bool "UMS usb mass storage"
Lukasz Majewskie4d46042018-01-29 19:28:02 +01001325 select USB_FUNCTION_MASS_STORAGE
Simon Glass0c19b4d2017-08-04 16:34:28 -06001326 help
1327 USB mass storage support
1328
Anastasiia Lukianenko722bc5b2020-08-06 12:42:55 +03001329config CMD_PVBLOCK
1330 bool "Xen para-virtualized block device"
1331 depends on XEN
1332 select PVBLOCK
1333 help
1334 Xen para-virtualized block device support
1335
Tuomas Tynkkynen78e12902018-10-15 02:21:12 -07001336config CMD_VIRTIO
1337 bool "virtio"
1338 depends on VIRTIO
1339 default y if VIRTIO
1340 help
1341 VirtIO block device support
1342
Michael Walle82a00be2019-04-06 02:24:02 +02001343config CMD_WDT
1344 bool "wdt"
1345 depends on WDT
1346 help
1347 This provides commands to control the watchdog timer devices.
1348
Mario Six37c4a5f2018-08-09 14:51:21 +02001349config CMD_AXI
1350 bool "axi"
1351 depends on AXI
1352 help
1353 Enable the command "axi" for accessing AXI (Advanced eXtensible
1354 Interface) busses, a on-chip interconnect specification for managing
1355 functional blocks in SoC designs, which is also often used in designs
1356 involving FPGAs (e.g. communication with IP cores in Xilinx FPGAs).
Simon Glass72a8cf82016-01-17 20:53:51 -07001357endmenu
1358
1359
1360menu "Shell scripting commands"
1361
1362config CMD_ECHO
1363 bool "echo"
1364 default y
1365 help
1366 Echo args to console
1367
1368config CMD_ITEST
1369 bool "itest"
1370 default y
1371 help
1372 Return true/false on integer compare.
1373
1374config CMD_SOURCE
1375 bool "source"
1376 default y
1377 help
1378 Run script from memory
1379
1380config CMD_SETEXPR
1381 bool "setexpr"
1382 default y
1383 help
1384 Evaluate boolean and math expressions and store the result in an env
1385 variable.
1386 Also supports loading the value at a memory location into a variable.
1387 If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
1388
1389endmenu
1390
Ruslan Trofymenko17030c72019-07-05 15:37:33 +03001391menu "Android support commands"
1392
1393config CMD_AB_SELECT
1394 bool "ab_select"
1395 default n
1396 depends on ANDROID_AB
1397 help
1398 On Android devices with more than one boot slot (multiple copies of
1399 the kernel and system images) this provides a command to select which
1400 slot should be used to boot from and register the boot attempt. This
1401 is used by the new A/B update model where one slot is updated in the
1402 background while running from the other slot.
1403
1404endmenu
1405
Michal Simek3b3ea2c2018-02-26 16:01:02 +01001406if NET
1407
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -05001408menuconfig CMD_NET
1409 bool "Network commands"
1410 default y
Adam Fordd7869b22018-07-20 23:03:57 -05001411 imply NETDEVICES
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -05001412
1413if CMD_NET
1414
1415config CMD_BOOTP
1416 bool "bootp"
Simon Glass72a8cf82016-01-17 20:53:51 -07001417 default y
1418 help
Simon Glass72a8cf82016-01-17 20:53:51 -07001419 bootp - boot image via network using BOOTP/TFTP protocol
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -05001420
Joe Hershbergere88b2562018-04-13 15:26:33 -05001421config CMD_DHCP
1422 bool "dhcp"
1423 depends on CMD_BOOTP
1424 help
1425 Boot image via network using DHCP/TFTP protocol
1426
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001427config BOOTP_BOOTPATH
Joe Hershberger8df69d92018-04-13 15:26:34 -05001428 bool "Request & store 'rootpath' from BOOTP/DHCP server"
Joe Hershberger3dfbc532018-04-13 15:26:37 -05001429 default y
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001430 depends on CMD_BOOTP
Joe Hershberger8df69d92018-04-13 15:26:34 -05001431 help
1432 Even though the config is called BOOTP_BOOTPATH, it stores the
1433 path in the variable 'rootpath'.
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001434
1435config BOOTP_DNS
Joe Hershberger8df69d92018-04-13 15:26:34 -05001436 bool "Request & store 'dnsip' from BOOTP/DHCP server"
Joe Hershberger3dfbc532018-04-13 15:26:37 -05001437 default y
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001438 depends on CMD_BOOTP
Joe Hershberger8df69d92018-04-13 15:26:34 -05001439 help
1440 The primary DNS server is stored as 'dnsip'. If two servers are
1441 returned, you must set BOOTP_DNS2 to store that second server IP
1442 also.
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001443
Joe Hershberger80449c02018-04-13 15:26:35 -05001444config BOOTP_DNS2
1445 bool "Store 'dnsip2' from BOOTP/DHCP server"
1446 depends on BOOTP_DNS
1447 help
1448 If a DHCP client requests the DNS server IP from a DHCP server,
1449 it is possible that more than one DNS serverip is offered to the
1450 client. If CONFIG_BOOTP_DNS2 is enabled, the secondary DNS
1451 server IP will be stored in the additional environment
1452 variable "dnsip2". The first DNS serverip is always
1453 stored in the variable "dnsip", when BOOTP_DNS is defined.
1454
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001455config BOOTP_GATEWAY
Joe Hershberger8df69d92018-04-13 15:26:34 -05001456 bool "Request & store 'gatewayip' from BOOTP/DHCP server"
Joe Hershberger3dfbc532018-04-13 15:26:37 -05001457 default y
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001458 depends on CMD_BOOTP
1459
1460config BOOTP_HOSTNAME
Joe Hershberger8df69d92018-04-13 15:26:34 -05001461 bool "Request & store 'hostname' from BOOTP/DHCP server"
Joe Hershberger3dfbc532018-04-13 15:26:37 -05001462 default y
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001463 depends on CMD_BOOTP
Joe Hershberger8df69d92018-04-13 15:26:34 -05001464 help
1465 The name may or may not be qualified with the local domain name.
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001466
Alexander Grafbdce3402018-06-15 10:29:28 +02001467config BOOTP_PREFER_SERVERIP
1468 bool "serverip variable takes precedent over DHCP server IP."
1469 depends on CMD_BOOTP
1470 help
1471 By default a BOOTP/DHCP reply will overwrite the 'serverip' variable.
1472
1473 With this option enabled, the 'serverip' variable in the environment
1474 takes precedence over DHCP server IP and will only be set by the DHCP
1475 server if not already set in the environment.
1476
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001477config BOOTP_SUBNETMASK
Joe Hershberger8df69d92018-04-13 15:26:34 -05001478 bool "Request & store 'netmask' from BOOTP/DHCP server"
Joe Hershberger3dfbc532018-04-13 15:26:37 -05001479 default y
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001480 depends on CMD_BOOTP
1481
Chris Packham9b23c732018-05-03 20:19:02 +12001482config BOOTP_NTPSERVER
1483 bool "Request & store 'ntpserverip' from BOOTP/DHCP server"
1484 depends on CMD_BOOTP
1485
Ramon Fried3eaac632019-07-18 21:43:30 +03001486config CMD_PCAP
1487 bool "pcap capture"
1488 help
1489 Selecting this will allow capturing all Ethernet packets and store
1490 them in physical memory in a PCAP formated file,
1491 later to be analyzed by PCAP reader application (IE. WireShark).
1492
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001493config BOOTP_PXE
Joe Hershberger2b9f4862018-04-13 15:26:36 -05001494 bool "Send PXE client arch to BOOTP/DHCP server"
Joe Hershberger3dfbc532018-04-13 15:26:37 -05001495 default y
Joe Hershberger2b9f4862018-04-13 15:26:36 -05001496 depends on CMD_BOOTP && CMD_PXE
1497 help
1498 Supported for ARM, ARM64, and x86 for now.
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001499
1500config BOOTP_PXE_CLIENTARCH
1501 hex
Joe Hershberger2b9f4862018-04-13 15:26:36 -05001502 depends on BOOTP_PXE
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001503 default 0x16 if ARM64
1504 default 0x15 if ARM
1505 default 0 if X86
1506
1507config BOOTP_VCI_STRING
1508 string
1509 depends on CMD_BOOTP
Michal Simek4bbd6b12018-04-26 18:21:29 +05301510 default "U-Boot.armv7" if CPU_V7A || CPU_V7M || CPU_V7R
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001511 default "U-Boot.armv8" if ARM64
1512 default "U-Boot.arm" if ARM
1513 default "U-Boot"
1514
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -05001515config CMD_TFTPBOOT
1516 bool "tftpboot"
1517 default y
1518 help
Simon Glass72a8cf82016-01-17 20:53:51 -07001519 tftpboot - boot image via network using TFTP protocol
1520
1521config CMD_TFTPPUT
1522 bool "tftp put"
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -05001523 depends on CMD_TFTPBOOT
Simon Glass72a8cf82016-01-17 20:53:51 -07001524 help
1525 TFTP put command, for uploading files to a server
1526
1527config CMD_TFTPSRV
1528 bool "tftpsrv"
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -05001529 depends on CMD_TFTPBOOT
Simon Glass72a8cf82016-01-17 20:53:51 -07001530 help
1531 Act as a TFTP server and boot the first received file
1532
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001533config NET_TFTP_VARS
1534 bool "Control TFTP timeout and count through environment"
1535 depends on CMD_TFTPBOOT
1536 default y
1537 help
1538 If set, allows controlling the TFTP timeout through the
1539 environment variable tftptimeout, and the TFTP maximum
1540 timeout count through the variable tftptimeoutcountmax.
1541 If unset, timeout and maximum are hard-defined as 1 second
1542 and 10 timouts per TFTP transfer.
1543
Simon Glass72a8cf82016-01-17 20:53:51 -07001544config CMD_RARP
1545 bool "rarpboot"
1546 help
1547 Boot image via network using RARP/TFTP protocol
1548
Simon Glass72a8cf82016-01-17 20:53:51 -07001549config CMD_NFS
1550 bool "nfs"
1551 default y
1552 help
1553 Boot image via network using NFS protocol.
1554
Dinh Nguyenab8243e2016-04-21 09:05:23 -05001555config CMD_MII
1556 bool "mii"
Ramon Fried7d9701d2019-09-13 18:25:03 +03001557 imply CMD_MDIO
Dinh Nguyenab8243e2016-04-21 09:05:23 -05001558 help
Ramon Fried7d9701d2019-09-13 18:25:03 +03001559 If set, allows 802.3(clause 22) MII Management functions interface access
1560 The management interface specified in Clause 22 provides
1561 a simple, two signal, serial interface to connect a
1562 Station Management entity and a managed PHY for providing access
1563 to management parameters and services.
1564 The interface is referred to as the MII management interface.
1565
1566config CMD_MDIO
1567 bool "mdio"
1568 depends on PHYLIB
1569 help
1570 If set, allows Enable 802.3(clause 45) MDIO interface registers access
1571 The MDIO interface is orthogonal to the MII interface and extends
1572 it by adding access to more registers through indirect addressing.
Dinh Nguyenab8243e2016-04-21 09:05:23 -05001573
Simon Glass72a8cf82016-01-17 20:53:51 -07001574config CMD_PING
1575 bool "ping"
1576 help
1577 Send ICMP ECHO_REQUEST to network host
1578
1579config CMD_CDP
1580 bool "cdp"
1581 help
1582 Perform CDP network configuration
1583
1584config CMD_SNTP
1585 bool "sntp"
Philippe Reynes912ece42020-09-18 14:13:02 +02001586 select PROT_UDP
Simon Glass72a8cf82016-01-17 20:53:51 -07001587 help
1588 Synchronize RTC via network
1589
1590config CMD_DNS
1591 bool "dns"
1592 help
1593 Lookup the IP of a hostname
1594
1595config CMD_LINK_LOCAL
1596 bool "linklocal"
Joe Hershberger6f0dc0c2018-04-30 12:45:22 -05001597 select LIB_RAND
Simon Glass72a8cf82016-01-17 20:53:51 -07001598 help
1599 Acquire a network IP address using the link-local protocol
1600
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001601endif
1602
Simon Glassef072202017-05-17 03:25:17 -06001603config CMD_ETHSW
1604 bool "ethsw"
1605 help
1606 Allow control of L2 Ethernet switch commands. These are supported
1607 by the vsc9953 Ethernet driver at present. Sub-commands allow
1608 operations such as enabling / disabling a port and
1609 viewing/maintaining the filtering database (FDB)
1610
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001611config CMD_PXE
1612 bool "pxe"
1613 select MENU
1614 help
1615 Boot image via network using PXE protocol
Michal Simek3b3ea2c2018-02-26 16:01:02 +01001616
Lothar Feltend8970da2018-06-22 22:29:54 +02001617config CMD_WOL
1618 bool "wol"
1619 help
1620 Wait for wake-on-lan Magic Packet
1621
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -05001622endif
Simon Glass72a8cf82016-01-17 20:53:51 -07001623
1624menu "Misc commands"
1625
Simon Glass0f710252017-04-26 22:27:55 -06001626config CMD_BMP
1627 bool "Enable 'bmp' command"
1628 depends on LCD || DM_VIDEO || VIDEO
1629 help
Andrius Å tikonas60a9aeb2019-09-23 22:43:41 +01001630 This provides a way to obtain information about a BMP-format image
Simon Glass0f710252017-04-26 22:27:55 -06001631 and to display it. BMP (which presumably stands for BitMaP) is a
1632 file format defined by Microsoft which supports images of various
1633 depths, formats and compression methods. Headers on the file
1634 determine the formats used. This command can be used by first loading
1635 the image into RAM, then using this command to look at it or display
1636 it.
1637
Alex Kiernanb11ed7d2018-05-12 05:49:47 +00001638config CMD_BOOTCOUNT
1639 bool "bootcount"
1640 depends on BOOTCOUNT_LIMIT
1641 help
1642 Enable the bootcount command, which allows interrogation and
1643 reset of the bootcounter.
1644
Simon Glass4893e342017-04-26 22:27:56 -06001645config CMD_BSP
1646 bool "Enable board-specific commands"
1647 help
1648 (deprecated: instead, please define a Kconfig option for each command)
1649
1650 Some boards have board-specific commands which are only enabled
1651 during developemnt and need to be turned off for production. This
1652 option provides a way to control this. The commands that are enabled
1653 vary depending on the board.
1654
Eric Nelsone40cf342016-03-28 10:05:44 -07001655config CMD_BLOCK_CACHE
1656 bool "blkcache - control and stats for block cache"
1657 depends on BLOCK_CACHE
1658 default y if BLOCK_CACHE
1659 help
1660 Enable the blkcache command, which can be used to control the
1661 operation of the cache functions.
1662 This is most useful when fine-tuning the operation of the cache
1663 during development, but also allows the cache to be disabled when
1664 it might hurt performance (e.g. when using the ums command).
1665
Philippe Reynes325141a2020-07-24 18:19:47 +02001666config CMD_BUTTON
1667 bool "button"
1668 depends on BUTTON
1669 default y if BUTTON
1670 help
1671 Enable the 'button' command which allows to get the status of
1672 buttons supported by the board. The buttonss can be listed with
1673 'button list' and state can be known with 'button <label>'.
1674 Any button drivers can be controlled with this command, e.g.
1675 button_gpio.
1676
Dinh Nguyenab8243e2016-04-21 09:05:23 -05001677config CMD_CACHE
1678 bool "icache or dcache"
1679 help
1680 Enable the "icache" and "dcache" commands
1681
Heinrich Schuchardt29cfc092018-09-07 19:43:11 +02001682config CMD_CONITRACE
1683 bool "conitrace - trace console input codes"
1684 help
1685 Enable the 'conitrace' command which displays the codes received
1686 from the console input as hexadecimal numbers.
1687
Anatolij Gustschin4e92e602018-12-01 10:47:20 +01001688config CMD_CLS
1689 bool "Enable clear screen command 'cls'"
1690 depends on CFB_CONSOLE || DM_VIDEO || LCD || VIDEO
1691 default y if LCD
1692 help
1693 Enable the 'cls' command which clears the screen contents
1694 on video frame buffer.
1695
AKASHI Takahiro59df7e72019-02-25 15:54:38 +09001696config CMD_EFIDEBUG
1697 bool "efidebug - display/configure UEFI environment"
1698 depends on EFI_LOADER
Heinrich Schuchardt64b5ba42019-05-11 09:53:33 +02001699 select EFI_DEVICE_PATH_TO_TEXT
AKASHI Takahiro59df7e72019-02-25 15:54:38 +09001700 default n
1701 help
1702 Enable the 'efidebug' command which provides a subset of UEFI
1703 shell utility with simplified functionality. It will be useful
1704 particularly for managing boot parameters as well as examining
1705 various EFI status for debugging.
1706
Heinrich Schuchardtdab87882018-12-26 17:20:35 +01001707config CMD_EXCEPTION
1708 bool "exception - raise exception"
Heinrich Schuchardt3a5ec032020-11-12 00:29:57 +01001709 depends on ARM || RISCV || SANDBOX || X86
Heinrich Schuchardtdab87882018-12-26 17:20:35 +01001710 help
1711 Enable the 'exception' command which allows to raise an exception.
1712
Simon Glassffe20522017-04-10 11:34:59 -06001713config CMD_LED
1714 bool "led"
Jan Kiszka2ab6e742019-01-03 09:08:42 +01001715 depends on LED
Simon Glassffe20522017-04-10 11:34:59 -06001716 default y if LED
1717 help
1718 Enable the 'led' command which allows for control of LEDs supported
1719 by the board. The LEDs can be listed with 'led list' and controlled
1720 with led on/off/togle/blink. Any LED drivers can be controlled with
1721 this command, e.g. led_gpio.
1722
Chris Packhamc9032ce2017-04-29 15:20:28 +12001723config CMD_DATE
1724 bool "date"
1725 default y if DM_RTC
AKASHI Takahiro05429b62019-11-13 09:44:49 +09001726 select LIB_DATE
Chris Packhamc9032ce2017-04-29 15:20:28 +12001727 help
1728 Enable the 'date' command for getting/setting the time/date in RTC
1729 devices.
1730
Rasmus Villemoes803a8592020-07-06 22:01:15 +02001731config CMD_RTC
1732 bool "rtc"
1733 depends on DM_RTC
1734 help
1735 Enable the 'rtc' command for low-level access to RTC devices.
1736
Simon Glass72a8cf82016-01-17 20:53:51 -07001737config CMD_TIME
1738 bool "time"
1739 help
1740 Run commands and summarize execution time.
1741
Simon Glassd91a9d72017-05-17 03:25:23 -06001742config CMD_GETTIME
1743 bool "gettime - read elapsed time"
1744 help
1745 Enable the 'gettime' command which reads the elapsed time since
1746 U-Boot started running. This shows the time in seconds and
1747 milliseconds. See also the 'bootstage' command which provides more
1748 flexibility for boot timing.
1749
Heinrich Schuchardt4f24ac02019-12-24 22:17:37 +01001750config CMD_RNG
1751 bool "rng command"
1752 depends on DM_RNG
1753 select HEXDUMP
1754 help
1755 Print bytes from the hardware random number generator.
1756
Bin Meng16060852020-10-13 18:45:05 +08001757config CMD_SLEEP
Simon Glass72a8cf82016-01-17 20:53:51 -07001758 bool "sleep"
1759 default y
1760 help
1761 Delay execution for some time
1762
Siva Durga Prasad Paladugu0fd2290c2018-06-19 12:24:23 +02001763config MP
1764 bool "support for multiprocessor"
1765 help
1766 This provides an option to brinup
1767 different processors in multiprocessor
1768 cases.
1769
Simon Glass72a8cf82016-01-17 20:53:51 -07001770config CMD_TIMER
1771 bool "timer"
1772 help
1773 Access the system timer.
1774
Simon Glass72a8cf82016-01-17 20:53:51 -07001775config CMD_SOUND
1776 bool "sound"
1777 depends on SOUND
1778 help
1779 This provides basic access to the U-Boot's sound support. The main
1780 feature is to play a beep.
1781
1782 sound init - set up sound system
1783 sound play - play a sound
1784
Patrice Chotard993c9122019-11-25 09:07:38 +01001785config CMD_SYSBOOT
1786 bool "sysboot"
1787 select MENU
1788 help
1789 Boot image via local extlinux.conf file
1790
Miao Yan18686592016-05-22 19:37:17 -07001791config CMD_QFW
Tom Rinidd6f3ab2016-05-06 10:40:22 -04001792 bool "qfw"
Miao Yanfcf5c042016-05-22 19:37:14 -07001793 select QFW
Tom Rinidd6f3ab2016-05-06 10:40:22 -04001794 help
1795 This provides access to the QEMU firmware interface. The main
1796 feature is to allow easy loading of files passed to qemu-system
1797 via -kernel / -initrd
Konstantin Porotchkinfa61ef62016-12-08 12:22:28 +02001798
Frédéric Danis9744d1a2020-03-20 10:59:22 +01001799config CMD_PSTORE
1800 bool "pstore"
1801 help
1802 This provides access to Linux PStore with Rammoops backend. The main
1803 feature is to allow to display or save PStore records.
1804
1805 See doc/pstore.rst for more information.
1806
1807if CMD_PSTORE
1808
1809config CMD_PSTORE_MEM_ADDR
1810 hex "Memory Address"
1811 depends on CMD_PSTORE
1812 help
1813 Base addr used for PStore ramoops memory, should be identical to
1814 ramoops.mem_address parameter used by kernel
1815
1816config CMD_PSTORE_MEM_SIZE
1817 hex "Memory size"
1818 depends on CMD_PSTORE
1819 default "0x10000"
1820 help
1821 Size of PStore ramoops memory, should be identical to ramoops.mem_size
1822 parameter used by kernel, a power of 2 and larger than the sum of the
1823 record sizes
1824
1825config CMD_PSTORE_RECORD_SIZE
1826 hex "Dump record size"
1827 depends on CMD_PSTORE
1828 default "0x1000"
1829 help
1830 Size of each dump done on oops/panic, should be identical to
1831 ramoops.record_size parameter used by kernel and a power of 2
1832 Must be non-zero
1833
1834config CMD_PSTORE_CONSOLE_SIZE
1835 hex "Kernel console log size"
1836 depends on CMD_PSTORE
1837 default "0x1000"
1838 help
1839 Size of kernel console log, should be identical to
1840 ramoops.console_size parameter used by kernel and a power of 2
1841 Must be non-zero
1842
1843config CMD_PSTORE_FTRACE_SIZE
1844 hex "FTrace log size"
1845 depends on CMD_PSTORE
1846 default "0x1000"
1847 help
1848 Size of ftrace log, should be identical to ramoops.ftrace_size
1849 parameter used by kernel and a power of 2
1850
1851config CMD_PSTORE_PMSG_SIZE
1852 hex "User space message log size"
1853 depends on CMD_PSTORE
1854 default "0x1000"
1855 help
1856 Size of user space message log, should be identical to
1857 ramoops.pmsg_size parameter used by kernel and a power of 2
1858
1859config CMD_PSTORE_ECC_SIZE
1860 int "ECC size"
1861 depends on CMD_PSTORE
1862 default "0"
1863 help
1864 if non-zero, the option enables ECC support and specifies ECC buffer
1865 size in bytes (1 is a special value, means 16 bytes ECC), should be
1866 identical to ramoops.ramoops_ecc parameter used by kernel
1867
1868endif
1869
Konstantin Porotchkinfa61ef62016-12-08 12:22:28 +02001870source "cmd/mvebu/Kconfig"
1871
Simon Glass3cef3b32017-08-04 16:34:55 -06001872config CMD_TERMINAL
1873 bool "terminal - provides a way to attach a serial terminal"
1874 help
1875 Provides a 'cu'-like serial terminal command. This can be used to
1876 access other serial ports from the system console. The terminal
1877 is very simple with no special processing of characters. As with
1878 cu, you can press ~. (tilde followed by period) to exit.
1879
Simon Glass1aa4e8d2017-08-04 16:35:02 -06001880config CMD_UUID
1881 bool "uuid, guid - generation of unique IDs"
Adam Forda451bc22018-02-06 12:14:28 -06001882 select LIB_UUID
Simon Glass1aa4e8d2017-08-04 16:35:02 -06001883 help
1884 This enables two commands:
1885
1886 uuid - generate random Universally Unique Identifier
1887 guid - generate Globally Unique Identifier based on random UUID
1888
1889 The two commands are very similar except for the endianness of the
1890 output.
1891
Simon Glass72a8cf82016-01-17 20:53:51 -07001892endmenu
1893
Lokesh Vutla5cd96612017-12-29 11:47:49 +05301894source "cmd/ti/Kconfig"
1895
Simon Glass72a8cf82016-01-17 20:53:51 -07001896config CMD_BOOTSTAGE
1897 bool "Enable the 'bootstage' command"
1898 depends on BOOTSTAGE
1899 help
1900 Add a 'bootstage' command which supports printing a report
1901 and un/stashing of bootstage data.
1902
1903menu "Power commands"
1904config CMD_PMIC
1905 bool "Enable Driver Model PMIC command"
1906 depends on DM_PMIC
1907 help
1908 This is the pmic command, based on a driver model pmic's API.
1909 Command features are unchanged:
1910 - list - list pmic devices
1911 - pmic dev <id> - show or [set] operating pmic device (NEW)
1912 - pmic dump - dump registers
1913 - pmic read address - read byte of register at address
1914 - pmic write address - write byte to register at address
1915 The only one change for this command is 'dev' subcommand.
1916
1917config CMD_REGULATOR
1918 bool "Enable Driver Model REGULATOR command"
1919 depends on DM_REGULATOR
1920 help
1921 This command is based on driver model regulator's API.
1922 User interface features:
1923 - list - list regulator devices
1924 - regulator dev <id> - show or [set] operating regulator device
1925 - regulator info - print constraints info
1926 - regulator status - print operating status
1927 - regulator value <val] <-f> - print/[set] voltage value [uV]
1928 - regulator current <val> - print/[set] current value [uA]
1929 - regulator mode <id> - print/[set] operating mode id
1930 - regulator enable - enable the regulator output
1931 - regulator disable - disable the regulator output
1932
1933 The '-f' (force) option can be used for set the value which exceeds
1934 the limits, which are found in device-tree and are kept in regulator's
Simon Glasscaa4daa2020-12-03 16:55:18 -07001935 uclass plat structure.
Simon Glass72a8cf82016-01-17 20:53:51 -07001936
1937endmenu
1938
1939menu "Security commands"
Simon Glassb1a873d2017-04-26 22:27:49 -06001940config CMD_AES
1941 bool "Enable the 'aes' command"
1942 select AES
1943 help
1944 This provides a means to encrypt and decrypt data using the AES
1945 (Advanced Encryption Standard). This algorithm uses a symetric key
1946 and is widely used as a streaming cipher. Different key lengths are
1947 supported by the algorithm but this command only supports 128 bits
1948 at present.
1949
Simon Glassc04b9b32017-04-26 22:27:53 -06001950config CMD_BLOB
1951 bool "Enable the 'blob' command"
1952 help
1953 This is used with the Freescale secure boot mechanism.
1954
1955 Freescale's SEC block has built-in Blob Protocol which provides
1956 a method for protecting user-defined data across system power
1957 cycles. SEC block protects data in a data structure called a Blob,
1958 which provides both confidentiality and integrity protection.
1959
1960 Encapsulating data as a blob
1961 Each time that the Blob Protocol is used to protect data, a
1962 different randomly generated key is used to encrypt the data.
1963 This random key is itself encrypted using a key which is derived
1964 from SoC's non-volatile secret key and a 16 bit Key identifier.
1965 The resulting encrypted key along with encrypted data is called a
1966 blob. The non-volatile secure key is available for use only during
1967 secure boot.
1968
1969 During decapsulation, the reverse process is performed to get back
1970 the original data.
1971
1972 Sub-commands:
Michal Simek6e7bdde2018-07-23 15:55:12 +02001973 blob enc - encapsulating data as a cryptgraphic blob
Simon Glassc04b9b32017-04-26 22:27:53 -06001974 blob dec - decapsulating cryptgraphic blob to get the data
1975
1976 Syntax:
1977
1978 blob enc src dst len km
1979
1980 Encapsulate and create blob of data $len bytes long
1981 at address $src and store the result at address $dst.
1982 $km is the 16 byte key modifier is also required for
1983 generation/use as key for cryptographic operation. Key
1984 modifier should be 16 byte long.
1985
1986 blob dec src dst len km
1987
1988 Decapsulate the blob of data at address $src and
1989 store result of $len byte at addr $dst.
1990 $km is the 16 byte key modifier is also required for
1991 generation/use as key for cryptographic operation. Key
1992 modifier should be 16 byte long.
1993
Simon Glass551c3932017-05-17 03:25:25 -06001994config CMD_HASH
1995 bool "Support 'hash' command"
Simon Glassd70f9192017-05-17 09:05:34 -06001996 select HASH
Simon Glass551c3932017-05-17 03:25:25 -06001997 help
1998 This provides a way to hash data in memory using various supported
1999 algorithms (such as SHA1, MD5, CRC32). The computed digest can be
2000 saved to memory or to an environment variable. It is also possible
2001 to verify a hash against data in memory.
2002
Michalis Pappas666028f2018-04-13 10:40:57 +03002003config CMD_HVC
2004 bool "Support the 'hvc' command"
2005 depends on ARM_SMCCC
2006 help
2007 Allows issuing Hypervisor Calls (HVCs). Mostly useful for
2008 development and testing.
2009
2010config CMD_SMC
2011 bool "Support the 'smc' command"
2012 depends on ARM_SMCCC
2013 help
2014 Allows issuing Secure Monitor Calls (SMCs). Mostly useful for
2015 development and testing.
2016
Daniel Thompson221a9492017-05-19 17:26:58 +01002017config HASH_VERIFY
2018 bool "hash -v"
2019 depends on CMD_HASH
2020 help
2021 Add -v option to verify data against a hash.
2022
Miquel Raynal9f9ce3c2018-05-15 11:57:05 +02002023config CMD_TPM_V1
2024 bool
2025
2026config CMD_TPM_V2
2027 bool
Tom Rini3a8c8bf2018-07-28 09:20:12 -04002028 select CMD_LOG
Miquel Raynal9f9ce3c2018-05-15 11:57:05 +02002029
Simon Glass72a8cf82016-01-17 20:53:51 -07002030config CMD_TPM
2031 bool "Enable the 'tpm' command"
Miquel Raynal9f9ce3c2018-05-15 11:57:05 +02002032 depends on TPM_V1 || TPM_V2
2033 select CMD_TPM_V1 if TPM_V1
2034 select CMD_TPM_V2 if TPM_V2
Simon Glass72a8cf82016-01-17 20:53:51 -07002035 help
2036 This provides a means to talk to a TPM from the command line. A wide
2037 range of commands if provided - see 'tpm help' for details. The
2038 command requires a suitable TPM on your board and the correct driver
2039 must be enabled.
2040
Miquel Raynal9f9ce3c2018-05-15 11:57:05 +02002041if CMD_TPM
2042
Simon Glass72a8cf82016-01-17 20:53:51 -07002043config CMD_TPM_TEST
2044 bool "Enable the 'tpm test' command"
Miquel Raynal9f9ce3c2018-05-15 11:57:05 +02002045 depends on TPM_V1
Simon Glass72a8cf82016-01-17 20:53:51 -07002046 help
Miquel Raynal9f9ce3c2018-05-15 11:57:05 +02002047 This provides a a series of tests to confirm that the TPMv1.x is
2048 working correctly. The tests cover initialisation, non-volatile RAM,
2049 extend, global lock and checking that timing is within expectations.
2050 The tests pass correctly on Infineon TPMs but may need to be adjusted
Simon Glass72a8cf82016-01-17 20:53:51 -07002051 for other devices.
2052
Miquel Raynal9f9ce3c2018-05-15 11:57:05 +02002053endif
2054
Simon Glass72a8cf82016-01-17 20:53:51 -07002055endmenu
2056
Moritz Fischerbfeba012016-10-04 17:08:08 -07002057menu "Firmware commands"
2058config CMD_CROS_EC
2059 bool "Enable crosec command"
2060 depends on CROS_EC
2061 default y
2062 help
2063 Enable command-line access to the Chrome OS EC (Embedded
2064 Controller). This provides the 'crosec' command which has
2065 a number of sub-commands for performing EC tasks such as
2066 updating its flash, accessing a small saved context area
2067 and talking to the I2C bus behind the EC (if there is one).
2068endmenu
2069
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002070menu "Filesystem commands"
Marek Behún9d845502017-09-03 17:00:30 +02002071config CMD_BTRFS
2072 bool "Enable the 'btrsubvol' command"
2073 select FS_BTRFS
2074 help
2075 This enables the 'btrsubvol' command to list subvolumes
2076 of a BTRFS filesystem. There are no special commands for
2077 listing BTRFS directories or loading BTRFS files - this
2078 can be done by the generic 'fs' commands (see CMD_FS_GENERIC)
2079 when BTRFS is enabled (see FS_BTRFS).
2080
Simon Glassd66a10f2017-04-26 22:27:58 -06002081config CMD_CBFS
2082 bool "Enable the 'cbfs' command"
Simon Glassdeb959992017-04-26 22:27:59 -06002083 depends on FS_CBFS
Simon Glassd66a10f2017-04-26 22:27:58 -06002084 help
2085 Define this to enable support for reading from a Coreboot
2086 filesystem. This is a ROM-based filesystem used for accessing files
2087 on systems that use coreboot as the first boot-loader and then load
2088 U-Boot to actually boot the Operating System. Available commands are
2089 cbfsinit, cbfsinfo, cbfsls and cbfsload.
2090
Simon Glass97072742017-04-26 22:28:03 -06002091config CMD_CRAMFS
2092 bool "Enable the 'cramfs' command"
Simon Glass80e44cf2017-04-26 22:28:04 -06002093 depends on FS_CRAMFS
Simon Glass97072742017-04-26 22:28:03 -06002094 help
2095 This provides commands for dealing with CRAMFS (Compressed ROM
2096 filesystem). CRAMFS is useful when space is tight since files are
2097 compressed. Two commands are provided:
2098
2099 cramfsls - lists files in a cramfs image
2100 cramfsload - loads a file from a cramfs image
2101
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002102config CMD_EXT2
2103 bool "ext2 command support"
Tuomas Tynkkynen3d22bae2018-01-05 02:45:17 +02002104 select FS_EXT4
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002105 help
2106 Enables EXT2 FS command
2107
2108config CMD_EXT4
2109 bool "ext4 command support"
Tuomas Tynkkynen3d22bae2018-01-05 02:45:17 +02002110 select FS_EXT4
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002111 help
2112 Enables EXT4 FS command
2113
2114config CMD_EXT4_WRITE
2115 depends on CMD_EXT4
2116 bool "ext4 write command support"
Tuomas Tynkkynen3d22bae2018-01-05 02:45:17 +02002117 select EXT4_WRITE
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002118 help
2119 Enables EXT4 FS write command
2120
2121config CMD_FAT
2122 bool "FAT command support"
Sekhar Norieedfb892017-06-02 17:53:59 +05302123 select FS_FAT
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002124 help
2125 Support for the FAT fs
2126
Joao Marcos Costabba604b2020-07-30 15:33:48 +02002127config CMD_SQUASHFS
2128 bool "SquashFS command support"
2129 select FS_SQUASHFS
2130 help
2131 Enables SquashFS filesystem commands (e.g. load, ls).
2132
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002133config CMD_FS_GENERIC
2134 bool "filesystem commands"
2135 help
2136 Enables filesystem commands (e.g. load, ls) that work for multiple
2137 fs types.
Maxime Ripard0269dfa2017-02-27 18:22:04 +01002138
Josua Mayerefbe99c2017-04-24 10:10:45 +02002139config CMD_FS_UUID
2140 bool "fsuuid command"
2141 help
2142 Enables fsuuid command for filesystem UUID.
2143
Simon Glassb8682a72017-05-17 03:25:37 -06002144config CMD_JFFS2
2145 bool "jffs2 command"
Simon Glass59e12a42017-05-17 03:25:38 -06002146 select FS_JFFS2
Simon Glassb8682a72017-05-17 03:25:37 -06002147 help
2148 Enables commands to support the JFFS2 (Journalling Flash File System
2149 version 2) filesystem. This enables fsload, ls and fsinfo which
2150 provide the ability to load files, list directories and obtain
2151 filesystem information.
2152
Maxime Ripard0269dfa2017-02-27 18:22:04 +01002153config CMD_MTDPARTS
Maxime Ripard0269dfa2017-02-27 18:22:04 +01002154 bool "MTD partition support"
Miquel Raynalff102c52019-10-25 19:39:30 +02002155 depends on MTD
Maxime Ripard0269dfa2017-02-27 18:22:04 +01002156 help
Miquel Raynal938db6f2018-09-29 12:58:30 +02002157 MTD partitioning tool support.
2158 It is strongly encouraged to avoid using this command
2159 anymore along with 'sf', 'nand', 'onenand'. One can still
2160 declare the partitions in the mtdparts environment variable
2161 but better use the MTD stack and the 'mtd' command instead.
Maxime Ripard0269dfa2017-02-27 18:22:04 +01002162
Simon Glasscb70e6c2017-08-04 16:34:30 -06002163config CMD_MTDPARTS_SPREAD
2164 bool "Padd partition size to take account of bad blocks"
2165 depends on CMD_MTDPARTS
2166 help
2167 This enables the 'spread' sub-command of the mtdparts command.
2168 This command will modify the existing mtdparts variable by increasing
2169 the size of the partitions such that 1) each partition's net size is
2170 at least as large as the size specified in the mtdparts variable and
2171 2) each partition starts on a good block.
2172
Alexander Dahl672c5702019-10-30 16:53:55 +01002173config CMD_MTDPARTS_SHOW_NET_SIZES
2174 bool "Show net size (w/o bad blocks) of partitions"
2175 depends on CMD_MTDPARTS
2176 help
2177 Adds two columns to the printed partition table showing the
2178 effective usable size of a partition, if bad blocks are taken
2179 into account.
2180
Miquel Raynal587f4452019-10-03 19:50:25 +02002181config MTDIDS_DEFAULT
2182 string "Default MTD IDs"
Miquel Raynalff102c52019-10-25 19:39:30 +02002183 depends on MTD || SPI_FLASH
Miquel Raynal587f4452019-10-03 19:50:25 +02002184 help
2185 Defines a default MTD IDs list for use with MTD partitions in the
2186 Linux MTD command line partitions format.
2187
2188config MTDPARTS_DEFAULT
2189 string "Default MTD partition scheme"
Miquel Raynalff102c52019-10-25 19:39:30 +02002190 depends on MTD || SPI_FLASH
Miquel Raynal587f4452019-10-03 19:50:25 +02002191 help
2192 Defines a default MTD partitioning scheme in the Linux MTD command
2193 line partitions format
2194
Simon Glassf8803a92017-08-04 16:34:41 -06002195config CMD_REISER
2196 bool "reiser - Access to reiserfs filesystems"
2197 help
2198 This provides two commands which operate on a resierfs filesystem,
2199 commonly used some years ago:
2200
2201 reiserls - list files
2202 reiserload - load a file
2203
Simon Glass7a764312017-08-04 16:34:58 -06002204config CMD_YAFFS2
2205 bool "yaffs2 - Access of YAFFS2 filesystem"
2206 depends on YAFFS2
2207 default y
2208 help
2209 This provides commands for accessing a YAFFS2 filesystem. Yet
2210 Another Flash Filesystem 2 is a filesystem designed specifically
2211 for NAND flash. It incorporates bad-block management and ensures
2212 that device writes are sequential regardless of filesystem
2213 activity.
2214
Simon Glass54feea12017-08-04 16:35:04 -06002215config CMD_ZFS
2216 bool "zfs - Access of ZFS filesystem"
2217 help
2218 This provides commands to accessing a ZFS filesystem, commonly used
2219 on Solaris systems. Two sub-commands are provided:
2220
2221 zfsls - list files in a directory
2222 zfsload - load a file
2223
2224 See doc/README.zfs for more details.
2225
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002226endmenu
2227
Simon Glassac20a1b2017-04-26 22:27:52 -06002228menu "Debug commands"
2229
2230config CMD_BEDBUG
2231 bool "bedbug"
2232 help
2233 The bedbug (emBEDded deBUGger) command provides debugging features
2234 for some PowerPC processors. For details please see the
Heinrich Schuchardt05637002020-02-25 21:44:05 +01002235 documentation in doc/README.bedbug.
Simon Glassac20a1b2017-04-26 22:27:52 -06002236
Simon Glass3bd25cb2017-04-26 22:28:08 -06002237config CMD_DIAG
2238 bool "diag - Board diagnostics"
2239 help
2240 This command provides access to board diagnostic tests. These are
2241 called Power-on Self Tests (POST). The command allows listing of
2242 available tests and running either all the tests, or specific tests
2243 identified by name.
2244
Simon Glass1b330892017-05-17 03:25:39 -06002245config CMD_IRQ
2246 bool "irq - Show information about interrupts"
Pragnesh Patelc5a7e5b2020-08-24 20:38:55 +05302247 depends on !ARM && !MIPS && !RISCV && !SH
Simon Glass1b330892017-05-17 03:25:39 -06002248 help
2249 This enables two commands:
2250
2251 interrupts - enable or disable interrupts
2252 irqinfo - print device-specific interrupt information
Simon Glass6bac2272017-05-17 03:25:40 -06002253
2254config CMD_KGDB
2255 bool "kgdb - Allow debugging of U-Boot with gdb"
Michal Simekb9205502018-10-04 14:26:13 +02002256 depends on PPC
Simon Glass6bac2272017-05-17 03:25:40 -06002257 help
2258 This enables a 'kgdb' command which allows gdb to connect to U-Boot
2259 over a serial link for debugging purposes. This allows
2260 single-stepping, inspecting variables, etc. This is supported only
2261 on PowerPC at present.
2262
Simon Glassd5f61f22017-12-04 13:48:26 -07002263config CMD_LOG
2264 bool "log - Generation, control and access to logging"
Heinrich Schuchardt83a1f932018-04-19 22:02:46 +02002265 select LOG
Sean Anderson3e409762020-10-27 19:55:38 -04002266 select GETOPT
Simon Glassd5f61f22017-12-04 13:48:26 -07002267 help
2268 This provides access to logging features. It allows the output of
2269 log data to be controlled to a limited extent (setting up the default
Simon Glassef11ed82017-12-04 13:48:27 -07002270 maximum log level for emitting of records). It also provides access
2271 to a command used for testing the log system.
Simon Glassd5f61f22017-12-04 13:48:26 -07002272
Simon Glassce058ae2017-08-04 16:34:59 -06002273config CMD_TRACE
2274 bool "trace - Support tracing of function calls and timing"
2275 help
2276 Enables a command to control using of function tracing within
2277 U-Boot. This allows recording of call traces including timing
2278 information. The command can write data to memory for exporting
Simon Glassa24a78d2019-04-08 13:20:51 -06002279 for analysis (e.g. using bootchart). See doc/README.trace for full
Simon Glassce058ae2017-08-04 16:34:59 -06002280 details.
2281
Igor Opaniuk60b2f9e2018-06-03 21:56:39 +03002282config CMD_AVB
2283 bool "avb - Android Verified Boot 2.0 operations"
Igor Opaniukb0aa74a2018-07-17 14:33:25 +03002284 depends on AVB_VERIFY
Igor Opaniuk60b2f9e2018-06-03 21:56:39 +03002285 default n
2286 help
2287 Enables a "avb" command to perform verification of partitions using
2288 Android Verified Boot 2.0 functionality. It includes such subcommands:
2289 avb init - initialize avb2 subsystem
2290 avb read_rb - read rollback index
2291 avb write_rb - write rollback index
2292 avb is_unlocked - check device lock state
2293 avb get_uuid - read and print uuid of a partition
2294 avb read_part - read data from partition
2295 avb read_part_hex - read data from partition and output to stdout
2296 avb write_part - write data to partition
2297 avb verify - run full verification chain
Simon Glassac20a1b2017-04-26 22:27:52 -06002298endmenu
2299
Heiko Schocher8f2fe0c2016-09-21 07:58:19 +02002300config CMD_UBI
2301 tristate "Enable UBI - Unsorted block images commands"
Heiko Schocher8f2fe0c2016-09-21 07:58:19 +02002302 select MTD_UBI
2303 help
2304 UBI is a software layer above MTD layer which admits use of LVM-like
2305 logical volumes on top of MTD devices, hides some complexities of
2306 flash chips like wear and bad blocks and provides some other useful
2307 capabilities. Please, consult the MTD web site for more details
2308 (www.linux-mtd.infradead.org). Activate this option if you want
2309 to use U-Boot UBI commands.
Miquel Raynalc58fb2c2018-09-29 12:58:29 +02002310 It is also strongly encouraged to also enable CONFIG_MTD to get full
2311 partition support.
Heiko Schocher8f2fe0c2016-09-21 07:58:19 +02002312
Philippe Reynes83f70782020-03-23 19:20:47 +01002313config CMD_UBI_RENAME
2314 bool "Enable rename"
2315 depends on CMD_UBI
2316 default n
2317 help
2318 Enable a "ubi" command to rename ubi volume:
2319 ubi rename <oldname> <newname>
2320
Boris Brezillon173aafb2017-02-27 18:22:06 +01002321config CMD_UBIFS
2322 tristate "Enable UBIFS - Unsorted block images filesystem commands"
Maxime Ripard2bc734b2017-03-03 14:53:22 +01002323 depends on CMD_UBI
Michal Simek5ed063d2018-07-23 15:55:13 +02002324 default y if CMD_UBI
Karl Beldan24fc9532017-07-12 16:11:47 +00002325 select LZO
Boris Brezillon173aafb2017-02-27 18:22:06 +01002326 help
2327 UBIFS is a file system for flash devices which works on top of UBI.
2328
Simon Glass72a8cf82016-01-17 20:53:51 -07002329endmenu