]> Git Repo - J-u-boot.git/blame - cmd/Kconfig
Merge patch series "Introduce the lwIP network stack"
[J-u-boot.git] / cmd / Kconfig
CommitLineData
88d9b261
SG
1menuconfig CMDLINE
2 bool "Command line interface"
302a6487
SG
3 default y
4 help
5 Enable U-Boot's command-line functions. This provides a means
6 to enter commands into U-Boot for a wide variety of purposes. It
7 also allows scripts (containing commands) to be executed.
8 Various commands and command categorys can be indivdually enabled.
9 Depending on the number of commands enabled, this can add
10 substantially to the size of U-Boot.
11
88d9b261
SG
12if CMDLINE
13
72a8cf8d
SG
14config HUSH_PARSER
15 bool "Use hush shell"
72a8cf8d
SG
16 help
17 This option enables the "hush" shell (from Busybox) as command line
18 interpreter, thus enabling powerful command line syntax like
19 if...then...else...fi conditionals or `&&' and '||'
20 constructs ("shell scripts").
21
22 If disabled, you get the old, much simpler behaviour with a somewhat
23 smaller memory footprint.
24
30dcef89
FL
25menu "Hush flavor to use"
26depends on HUSH_PARSER
27
28config HUSH_OLD_PARSER
29 bool "Use hush old parser"
3c3a7342 30 default y
30dcef89
FL
31 help
32 This option enables the old flavor of hush based on hush Busybox from
33 2005.
34
3c3a7342
TR
35 It is actually the default U-Boot shell when decided to use hush as shell.
36
9a068377
FL
37config HUSH_MODERN_PARSER
38 bool "Use hush modern parser"
39 help
40 This option enables the new flavor of hush based on hush upstream
41 Busybox.
42
3c3a7342
TR
43 This parser is experimental and not well tested.
44
9a068377
FL
45config HUSH_SELECTABLE
46 bool
47 default y if HUSH_OLD_PARSER && HUSH_MODERN_PARSER
30dcef89
FL
48endmenu
49
d021e942
AF
50config CMDLINE_EDITING
51 bool "Enable command line editing"
d021e942
AF
52 default y
53 help
54 Enable editing and History functions for interactive command line
55 input operations
56
dafcd96d
TR
57config CMDLINE_PS_SUPPORT
58 bool "Enable support for changing the command prompt string at run-time"
59 depends on HUSH_PARSER
60 help
61 Only static string in the prompt is supported so far. The string is
62 obtained from environment variables PS1 and PS2.
63
d021e942
AF
64config AUTO_COMPLETE
65 bool "Enable auto complete using TAB"
d021e942
AF
66 default y
67 help
68 Enable auto completion of commands using TAB.
69
70config SYS_LONGHELP
71 bool "Enable long help messages"
88d9b261 72 default y
d021e942
AF
73 help
74 Defined when you want long help messages included
75 Do not set this option when short of memory.
76
72a8cf8d
SG
77config SYS_PROMPT
78 string "Shell prompt"
a91feaee 79 default "Zynq> " if ARCH_ZYNQ
3c3886d7 80 default "ZynqMP> " if ARCH_ZYNQMP
72a8cf8d
SG
81 default "=> "
82 help
83 This string is displayed in the command line to the left of the
84 cursor.
85
48aee0af
PD
86config SYS_PROMPT_HUSH_PS2
87 string "Hush shell secondary prompt"
88 depends on HUSH_PARSER
89 default "> "
90 help
91 This defines the secondary prompt string, which is
92 printed when the command interpreter needs more input
93 to complete a command. Usually "> ".
94
cf493582
TR
95config SYS_MAXARGS
96 int "Maximum number arguments accepted by commands"
cc7e3d19 97 default 64
cf493582 98
7ae31fcc 99config SYS_XTRACE
b935d190 100 bool "Command execution tracer"
88d9b261 101 default y
7ae31fcc
CM
102 help
103 This option enables the possiblity to print all commands before
104 executing them and after all variables are evaluated (similar
105 to Bash's xtrace/'set -x' feature).
106 To enable the tracer a variable "xtrace" needs to be defined in
107 the environment.
108
610eec7f
SP
109config BUILD_BIN2C
110 bool
111
72a8cf8d
SG
112comment "Commands"
113
114menu "Info commands"
115
0b885bcf
SG
116config CMD_ACPI
117 bool "acpi"
0992a90d 118 depends on ACPI
12218c1f 119 default y
0b885bcf
SG
120 help
121 List and dump ACPI tables. ACPI (Advanced Configuration and Power
122 Interface) is used mostly on x86 for providing information to the
123 Operating System about devices in the system. The tables are set up
124 by the firmware, typically U-Boot but possibly an earlier firmware
125 module, if U-Boot is chain-loaded from something else. ACPI tables
126 can also include code, to perform hardware-specific tasks required
127 by the Operating Systems. This allows some amount of separation
128 between the firmware and OS, and is particularly useful when you
129 want to make hardware changes without the OS needing to be adjusted.
130
56d0635f
BM
131config CMD_ADDRMAP
132 bool "addrmap"
133 depends on ADDR_MAP
134 default y
135 help
136 List non-identity virtual-physical memory mappings for 32-bit CPUs.
137
72a8cf8d
SG
138config CMD_BDI
139 bool "bdinfo"
140 default y
141 help
142 Print board info
143
b279f517
SG
144config CMD_BDINFO_EXTRA
145 bool "bdinfo extra features"
146 default y if SANDBOX || X86
147 help
148 Show additional information about the board. This uses a little more
149 code space but provides more options, particularly those useful for
150 bringup, development and debugging.
151
61304dbe
MY
152config CMD_CONFIG
153 bool "config"
61304dbe 154 default SANDBOX
5ed063d1 155 select BUILD_BIN2C
61304dbe
MY
156 help
157 Print ".config" contents.
158
159 If this option is enabled, the ".config" file contents are embedded
160 in the U-Boot image and can be printed on the console by the "config"
161 command. This provides information of which options are enabled on
162 the running U-Boot.
163
72a8cf8d
SG
164config CMD_CONSOLE
165 bool "coninfo"
166 default y
167 help
168 Print console devices and information.
169
170config CMD_CPU
171 bool "cpu"
622178d9 172 depends on CPU
72a8cf8d
SG
173 help
174 Print information about available CPUs. This normally shows the
175 number of CPUs, type (e.g. manufacturer, architecture, product or
176 internal name) and clock frequency. Other information may be
177 available depending on the CPU driver.
178
e68c03be
SG
179config CMD_FWU_METADATA
180 bool "fwu metadata read"
181 depends on FWU_MULTI_BANK_UPDATE
182 help
183 Command to read the metadata and dump it's contents
184
33eb0b9e
SG
185config CMD_HISTORY
186 bool "history"
187 depends on CMDLINE_EDITING
188 help
189 Show the command-line history, i.e. a list of commands that are in
190 the history buffer.
191
421359ac
HZ
192config CMD_HISTORY_USE_CALLOC
193 bool "dynamically allocate memory"
194 default y
195 depends on CMD_HISTORY
196 help
197 Saying Y to this will use calloc to get the space for history
198 storing. Otherwise the history buffer will be an uninitialized
199 static array directly, without the memory allocation, and it is
200 writable after relocation to RAM. If u-boot is running from ROM
201 all the time or unsure, say Y to this.
202
72a8cf8d
SG
203config CMD_LICENSE
204 bool "license"
d726f225 205 select BUILD_BIN2C
cf536dae 206 depends on GZIP
72a8cf8d
SG
207 help
208 Print GPL license text
209
3b65ee34
SG
210config CMD_PMC
211 bool "pmc"
212 help
213 Provides access to the Intel Power-Management Controller (PMC) so
214 that its state can be examined. This does not currently support
215 changing the state but it is still useful for debugging and seeing
216 what is going on.
217
fa379223
CL
218config CMD_REGINFO
219 bool "reginfo"
220 depends on PPC
221 help
222 Register dump
223
1c79f2ff
BS
224config CMD_TLV_EEPROM
225 bool "tlv_eeprom"
226 depends on I2C_EEPROM
56e3d6ef 227 select CRC32
1c79f2ff
BS
228 help
229 Display and program the system EEPROM data block in ONIE Tlvinfo
230 format. TLV stands for Type-Length-Value.
231
232config SPL_CMD_TLV_EEPROM
233 bool "tlv_eeprom for SPL"
234 depends on SPL_I2C_EEPROM
9ca00684 235 select SPL_DRIVERS_MISC
56e3d6ef 236 select SPL_CRC32
1c79f2ff
BS
237 help
238 Read system EEPROM data block in ONIE Tlvinfo format from SPL.
239
c92b50a4
HS
240config CMD_SBI
241 bool "sbi"
242 depends on RISCV_SMODE && SBI_V02
243 help
244 Display information about the SBI implementation.
245
9de4ec81
HS
246config CMD_SMBIOS
247 bool "smbios"
248 depends on SMBIOS
249 help
250 Display the SMBIOS information.
251
72a8cf8d
SG
252endmenu
253
254menu "Boot commands"
255
256config CMD_BOOTD
257 bool "bootd"
258 default y
259 help
260 Run the command stored in the environment "bootcmd", i.e.
261 "bootd" does the same thing as "run bootcmd".
262
263config CMD_BOOTM
264 bool "bootm"
265 default y
266 help
267 Boot an application image from the memory.
268
9d46e63d
PR
269config CMD_BOOTM_PRE_LOAD
270 bool "enable pre-load on bootm"
271 depends on CMD_BOOTM
272 depends on IMAGE_PRE_LOAD
9d46e63d 273 help
608a88c2 274 Enable support of stage pre-load for the bootm command.
9d46e63d
PR
275 This stage allow to check or modify the image provided
276 to the bootm command.
277
5d053cca
SG
278config CMD_BOOTDEV
279 bool "bootdev"
280 depends on BOOTSTD
281 default y if BOOTSTD_FULL
282 help
283 Support listing available bootdevs (boot devices) which can provide an
284 OS to boot, as well as showing information about a particular one.
285
286 This command is not necessary for bootstd to work.
287
2d653f68
SG
288config CMD_BOOTFLOW
289 bool "bootflow"
290 depends on BOOTSTD
291 default y
292 help
293 Support scanning for bootflows available with the bootdevs. The
294 bootflows can optionally be booted.
295
296config CMD_BOOTFLOW_FULL
297 bool "bootflow - extract subcommands"
298 depends on BOOTSTD_FULL
d8d40bc3 299 default y
2d653f68
SG
300 help
301 Add the ability to list the available bootflows, select one and obtain
302 information about it.
303
304 This command is not necessary for bootstd to work.
305
7fca71d0
SG
306config CMD_BOOTMETH
307 bool "bootmeth"
308 depends on BOOTSTD
309 default y if BOOTSTD_FULL
310 help
20a03831 311 Support listing available bootmeths (methods used to boot an
7fca71d0
SG
312 Operating System), as well as selecting the order that the bootmeths
313 are used.
314
315 This command is not necessary for bootstd to work.
316
ecc7fdaa
CC
317config BOOTM_EFI
318 bool "Support booting UEFI FIT images"
6422820a 319 depends on EFI_BINARY_EXEC && CMD_BOOTM && FIT
ecc7fdaa
CC
320 default y
321 help
322 Support booting UEFI FIT images via the bootm command.
323
2abf14df
MM
324config BOOTM_ELF
325 bool "Support booting ELF images"
326 depends on CMD_BOOTM && LIB_ELF
0e463846 327 default y if LIB_ELF
2abf14df
MM
328 help
329 Support booting ELF images via the bootm command.
330
ab8243e4
DN
331config CMD_BOOTZ
332 bool "bootz"
333 help
334 Boot the Linux zImage
335
26959271
MY
336config CMD_BOOTI
337 bool "booti"
6b8f26bc 338 depends on ARM64 || RISCV || SANDBOX
26959271
MY
339 default y
340 help
341 Boot an AArch64 Linux Kernel image from memory.
342
cdd20e3f
TR
343config BOOTM_LINUX
344 bool "Support booting Linux OS images"
345 depends on CMD_BOOTM || CMD_BOOTZ || CMD_BOOTI
346 default y
347 help
348 Support booting the Linux kernel directly via a command such as bootm
349 or booti or bootz.
350
351config BOOTM_NETBSD
352 bool "Support booting NetBSD (non-EFI) loader images"
353 depends on CMD_BOOTM
354 default y
355 help
356 Support booting NetBSD via the bootm command.
357
358config BOOTM_OPENRTOS
359 bool "Support booting OPENRTOS / FreeRTOS images"
360 depends on CMD_BOOTM
361 help
362 Support booting OPENRTOS / FreeRTOS via the bootm command.
363
364config BOOTM_OSE
365 bool "Support booting Enea OSE images"
366 depends on (ARM && (ARM64 || CPU_V7A || CPU_V7R) || SANDBOX || PPC || X86)
367 depends on CMD_BOOTM
368 help
369 Support booting Enea OSE images via the bootm command.
370
371config BOOTM_PLAN9
372 bool "Support booting Plan9 OS images"
373 depends on CMD_BOOTM
374 default y
375 help
376 Support booting Plan9 images via the bootm command.
377
378config BOOTM_RTEMS
379 bool "Support booting RTEMS OS images"
380 depends on CMD_BOOTM
381 default y
382 help
383 Support booting RTEMS images via the bootm command.
384
41a29f28
LW
385config CMD_SEAMA
386 bool "Support read SEAMA NAND images"
387 depends on MTD_RAW_NAND
388 help
389 Support reading NAND Seattle Image (SEAMA) images.
390
264f4b0b
SG
391config CMD_UPL
392 bool "upl - Universal Payload Specification"
393 help
394 Provides commands to deal with UPL payloads and handoff information.
395 U-Boot supports generating and accepting handoff information. The
396 mkimage tool will eventually support creating payloads.
397
5fe76d46
SG
398config CMD_VBE
399 bool "vbe - Verified Boot for Embedded"
400 depends on BOOTMETH_VBE
2d74226f 401 default y if BOOTSTD_FULL
5fe76d46
SG
402 help
403 Provides various subcommands related to VBE, such as listing the
404 available methods, looking at the state and changing which method
405 is used to boot. Updating the parameters is not currently
406 supported.
407
cdd20e3f
TR
408config BOOTM_VXWORKS
409 bool "Support booting VxWorks OS images"
410 depends on CMD_BOOTM
411 default y
412 help
413 Support booting VxWorks images via the bootm command.
414
fefff636
AT
415config CMD_BOOTEFI
416 bool "bootefi"
417 depends on EFI_LOADER
418 default y
419 help
420 Boot an EFI image from memory.
421
296faf4f
AT
422if CMD_BOOTEFI
423config CMD_BOOTEFI_BINARY
424 bool "Allow booting an EFI binary directly"
6422820a 425 depends on EFI_BINARY_EXEC
296faf4f
AT
426 default y
427 help
428 Select this option to enable direct execution of binary at 'bootefi'.
429 This subcommand will allow you to load the UEFI binary using
430 other U-Boot commands or external methods and then run it.
431
422822cf
SG
432config CMD_BOOTEFI_BOOTMGR
433 bool "UEFI Boot Manager command"
279b03d9 434 depends on EFI_BOOTMGR
422822cf
SG
435 default y
436 help
437 Select this option to enable the 'bootmgr' subcommand of 'bootefi'.
438 This subcommand will allow you to select the UEFI binary to be booted
439 via UEFI variables Boot####, BootOrder, and BootNext.
440
c7ae3dfd
SG
441config CMD_BOOTEFI_HELLO
442 bool "Allow booting a standard EFI hello world for testing"
6fe80876 443 depends on CMD_BOOTEFI_BINARY && BOOTEFI_HELLO_COMPILE
ec5f0ed3 444 default y if CMD_BOOTEFI_SELFTEST
c7ae3dfd
SG
445 help
446 This adds a standard EFI hello world application to U-Boot so that
447 it can be used with the 'bootefi hello' command. This is useful
448 for testing that EFI is working at a basic level, and for bringing
449 up EFI support on a new architecture.
450
953d335d 451source "lib/efi_selftest/Kconfig"
296faf4f 452endif
623b3a57 453
4880b026
TR
454config CMD_BOOTMENU
455 bool "bootmenu"
456 select MENU
a3d0aa87 457 select CHARSET
4880b026
TR
458 help
459 Add an ANSI terminal boot menu command.
460
b84acf10
ER
461config CMD_ADTIMG
462 bool "adtimg"
d03e76af
SP
463 help
464 Android DTB/DTBO image manipulation commands. Read dtb/dtbo files from
465 image into RAM, dump image structure information, etc. Those dtb/dtbo
466 files should be merged in one dtb further, which needs to be passed to
467 the kernel, as part of a boot process.
468
94f6d0d1
SP
469config CMD_ABOOTIMG
470 bool "abootimg"
471 depends on ANDROID_BOOT_IMAGE
472 help
473 Android Boot Image manipulation commands. Allows one to extract
474 images contained in boot.img, like kernel, ramdisk, dtb, etc, and
475 obtain corresponding meta-information from boot.img.
476
34b43193
SP
477 See doc/android/boot-image.rst for details.
478
a0874dc4
SG
479config CMD_CEDIT
480 bool "cedit - Configuration editor"
481 depends on CEDIT
482 default y
483 help
484 Provides a command to allow editing of board configuration and
485 providing a UI for the user to adjust settings. Subcommands allow
486 loading and saving of configuration as well as showing an editor.
487
72a8cf8d 488config CMD_ELF
080bb848 489 bool "bootelf"
72a8cf8d 490 default y
805b3cac 491 select LIB_ELF
72a8cf8d 492 help
080bb848
DP
493 Boot an ELF image from memory.
494
495config CMD_ELF_BOOTVX
496 bool "bootvx"
497 default y
498 depends on CMD_ELF
499 help
500 Boot a vxWorks image from memory
72a8cf8d 501
6d1734f0
MM
502config CMD_ELF_FDT_SETUP
503 bool "Flattened Device Tree setup in bootelf cmd"
6d1734f0 504 depends on CMD_ELF
0e463846 505 select OF_LIBFDT
6d1734f0
MM
506 help
507 Do FDT setup in bootelf command optionally by param -d, which
508 allows to bring additional system info (e.g. /memory node) to
509 the Operating System or application.
510
23922e26
MS
511config CMD_FDT
512 bool "Flattened Device Tree utility commands"
513 default y
514 depends on OF_LIBFDT
515 help
516 Do FDT related setup before booting into the Operating System.
517
2f84e9cf
KM
518config SUPPORT_EXTENSION_SCAN
519 bool
520
521config CMD_EXTENSION
522 bool "Extension board management command"
523 select CMD_FDT
524 depends on SUPPORT_EXTENSION_SCAN
525 help
526 Enables the "extension" command, which allows to detect
527 extension boards connected to the system, and apply
528 corresponding Device Tree overlays.
529
72a8cf8d
SG
530config CMD_GO
531 bool "go"
532 default y
533 help
534 Start an application at a given address.
535
536config CMD_RUN
537 bool "run"
538 default y
539 help
540 Run the command in the given environment variable.
541
542config CMD_IMI
543 bool "iminfo"
544 default y
545 help
546 Print header information for application image.
547
548config CMD_IMLS
549 bool "imls"
03de305e 550 depends on MTD_NOR_FLASH || FLASH_CFI_DRIVER
72a8cf8d
SG
551 help
552 List all images found in flash
553
554config CMD_XIMG
555 bool "imxtract"
556 default y
557 help
558 Extract a part of a multi-image.
559
05e8e240
NS
560config SYS_XIMG_LEN
561 hex "imxtract max gunzip size"
562 default 0x800000
563 depends on CMD_XIMG && GZIP
564 help
565 This provides the size of the commad-line argument area
566 used by imxtract for extracting pieces of FIT image.
567 It should be large enough to fit uncompressed size of
568 FIT piece we are extracting.
569
72c3033f
SG
570config CMD_SPL
571 bool "spl export - Export boot information for Falcon boot"
572 depends on SPL
573 help
574 Falcon mode allows booting directly from SPL into an Operating
575 System such as Linux, thus skipping U-Boot proper. See
576 doc/README.falcon for full information about how to use this
577 command.
578
203dc1b3 579config CMD_SPL_NAND_OFS
f63c43b8 580 hex "Offset of OS args or dtb for Falcon-mode NAND boot"
7cb179ee 581 depends on CMD_SPL && (TPL_NAND_SUPPORT || SPL_NAND_SUPPORT)
a077ac13 582 default 0x0
203dc1b3
SG
583 help
584 This provides the offset of the command line arguments for Linux
585 when booting from NAND in Falcon mode. See doc/README.falcon
586 for full information about how to use this option (and also see
587 board/gateworks/gw_ventana/README for an example).
588
ef9e57d3
LM
589config CMD_SPL_NOR_OFS
590 hex "Offset of OS args or dtb for Falcon-mode NOR boot"
591 depends on CMD_SPL && SPL_NOR_SUPPORT
a077ac13 592 default 0x0
ef9e57d3
LM
593 help
594 This provides the offset of the command line arguments or dtb for
595 Linux when booting from NOR in Falcon mode.
596
3a91a253
SG
597config CMD_SPL_WRITE_SIZE
598 hex "Size of argument area"
599 depends on CMD_SPL
600 default 0x2000
601 help
602 This provides the size of the command-line argument area in NAND
603 flash used by Falcon-mode boot. See the documentation until CMD_SPL
604 for detail.
605
9b92a8d7
SG
606config CMD_THOR_DOWNLOAD
607 bool "thor - TIZEN 'thor' download"
909338c3 608 select DFU
16794d30
VYA
609 select USB_FUNCTION_THOR
610 depends on USB_GADGET_DOWNLOAD
9b92a8d7
SG
611 help
612 Implements the 'thor' download protocol. This is a way of
613 downloading a software update over USB from an attached host.
614 There is no documentation about this within the U-Boot source code
615 but you should be able to find something on the interwebs.
616
60910a3f
TR
617config THOR_RESET_OFF
618 bool "thor: Disable reset on completion"
619 depends on CMD_THOR_DOWNLOAD
620
e7a815f3
SG
621config CMD_ZBOOT
622 bool "zboot - x86 boot command"
80d4c987
SG
623 depends on ZBOOT
624 default y
e7a815f3
SG
625 help
626 With x86 machines it is common to boot a bzImage file which
627 contains both a kernel and a setup.bin file. The latter includes
628 configuration information from the dark ages which x86 boards still
629 need to pick things out of.
630
631 Consider using FIT in preference to this since it supports directly
632 booting both 32- and 64-bit kernels, as well as secure boot.
082b4675 633 Documentation is available in doc/usage/fit/x86-fit-boot.rst.
e7a815f3 634
72a8cf8d
SG
635endmenu
636
637menu "Environment commands"
638
ab8243e4
DN
639config CMD_ASKENV
640 bool "ask for env variable"
641 help
642 Ask for environment variable
643
72a8cf8d
SG
644config CMD_EXPORTENV
645 bool "env export"
646 default y
647 help
648 Export environments.
649
650config CMD_IMPORTENV
651 bool "env import"
652 default y
653 help
654 Import environments.
655
656config CMD_EDITENV
657 bool "editenv"
658 default y
659 help
660 Edit environment variable.
661
ab8243e4
DN
662config CMD_GREPENV
663 bool "search env"
664 help
665 Allow for searching environment variables
666
72a8cf8d
SG
667config CMD_SAVEENV
668 bool "saveenv"
669 default y
670 help
671 Save all environment variables into the compiled-in persistent
672 storage.
673
cd121bdb
FW
674config CMD_ERASEENV
675 bool "eraseenv"
cd121bdb
FW
676 depends on CMD_SAVEENV
677 help
678 Erase environment variables from the compiled-in persistent
679 storage.
680
72a8cf8d
SG
681config CMD_ENV_EXISTS
682 bool "env exists"
683 default y
684 help
685 Check if a variable is defined in the environment for use in
686 shell scripting.
687
a55d29d2
SG
688config CMD_ENV_CALLBACK
689 bool "env callbacks - print callbacks and their associated variables"
690 help
691 Some environment variable have callbacks defined by
692 U_BOOT_ENV_CALLBACK. These are called when the variable changes.
693 For example changing "baudrate" adjust the serial baud rate. This
694 command lists the currently defined callbacks.
695
ffc76589
SG
696config CMD_ENV_FLAGS
697 bool "env flags -print variables that have non-default flags"
698 help
699 Some environment variables have special flags that control their
700 behaviour. For example, serial# can only be written once and cannot
701 be deleted. This command shows the variables that have special
702 flags.
703
49d81fdf
AT
704config CMD_NVEDIT_EFI
705 bool "env [set|print] -e - set/print UEFI variables"
706 depends on EFI_LOADER
49d81fdf
AT
707 imply HEXDUMP
708 help
709 UEFI variables are encoded as some form of U-Boot variables.
710 If enabled, we are allowed to set/print UEFI variables using
711 "env" command with "-e" option without knowing details.
712
ec57bd74
SDR
713config CMD_NVEDIT_INDIRECT
714 bool "env indirect - Sets environment value from another"
715
8e92120b
LR
716config CMD_NVEDIT_INFO
717 bool "env info - print or evaluate environment information"
718 help
719 Print environment information:
720 - env_valid : is environment valid
721 - env_ready : is environment imported into hash table
722 - env_use_default : is default environment used
723
724 This command can be optionally used for evaluation in scripts:
725 [-d] : evaluate whether default environment is used
726 [-p] : evaluate whether environment can be persisted
6718ebd0 727 [-q] : quiet output
8e92120b
LR
728 The result of multiple evaluations will be combined with AND.
729
0115dd3a
PD
730config CMD_NVEDIT_LOAD
731 bool "env load"
732 help
733 Load all environment variables from the compiled-in persistent
734 storage.
735
a97d22eb
PD
736config CMD_NVEDIT_SELECT
737 bool "env select"
738 help
739 Select the compiled-in persistent storage of environment variables.
740
72a8cf8d
SG
741endmenu
742
743menu "Memory commands"
744
55b25561
MS
745config CMD_BINOP
746 bool "binop"
747 help
748 Compute binary operations (xor, or, and) of byte arrays of arbitrary
749 size from memory and store the result in memory or the environment.
750
4aed2276
SG
751config CMD_BLOBLIST
752 bool "bloblist"
aa028df7
HS
753 depends on BLOBLIST
754 default y
4aed2276
SG
755 help
756 Show information about the bloblist, a collection of binary blobs
757 held in memory that persist between SPL and U-Boot. In the case of
758 x86 devices the bloblist can be used to hold ACPI tables so that they
759 remain available in memory.
760
72a8cf8d
SG
761config CMD_CRC32
762 bool "crc32"
763 default y
5ed063d1 764 select HASH
72a8cf8d
SG
765 help
766 Compute CRC32.
767
221a949e
DT
768config CRC32_VERIFY
769 bool "crc32 -v"
770 depends on CMD_CRC32
771 help
772 Add -v option to verify data against a crc32 checksum.
773
a1dc980d
SG
774config CMD_EEPROM
775 bool "eeprom - EEPROM subsystem"
407184cd 776 depends on DM_I2C || SYS_I2C_LEGACY
a1dc980d
SG
777 help
778 (deprecated, needs conversion to driver model)
779 Provides commands to read and write EEPROM (Electrically Erasable
780 Programmable Read Only Memory) chips that are connected over an
781 I2C bus.
782
783config CMD_EEPROM_LAYOUT
784 bool "Enable layout-aware eeprom commands"
785 depends on CMD_EEPROM
786 help
787 (deprecated, needs conversion to driver model)
788 When enabled, additional eeprom sub-commands become available.
789
790 eeprom print - prints the contents of the eeprom in a human-readable
791 way (eeprom layout fields, and data formatted to be fit for human
792 consumption).
793
794 eeprom update - allows user to update eeprom fields by specifying
795 the field name, and providing the new data in a human readable format
796 (same format as displayed by the eeprom print command).
797
798 Both commands can either auto detect the layout, or be told which
799 layout to use.
800
801 Feature API:
802 __weak int parse_layout_version(char *str)
803 - override to provide your own layout name parsing
804 __weak void __eeprom_layout_assign(struct eeprom_layout *layout,
805 int layout_version);
806 - override to setup the layout metadata based on the version
807 __weak int eeprom_layout_detect(unsigned char *data)
808 - override to provide your own algorithm for detecting layout
809 version
810 eeprom_field.c
811 - contains various printing and updating functions for common
812 types of eeprom fields. Can be used for defining
813 custom layouts.
814
2d49dafe
MB
815config EEPROM_LAYOUT_VERSIONS
816 bool "Support specifying eeprom layout version"
817 depends on CMD_EEPROM_LAYOUT
818 help
819 Support specifying eeprom layout version in the 'eeprom' command
820 via the -l option.
821
a1dc980d
SG
822config EEPROM_LAYOUT_HELP_STRING
823 string "Tells user what layout names are supported"
2d49dafe 824 depends on EEPROM_LAYOUT_VERSIONS
a1dc980d
SG
825 default "<not defined>"
826 help
827 Help printed with the LAYOUT VERSIONS part of the 'eeprom'
828 command's help.
829
88cd7d0e
TR
830config SYS_I2C_EEPROM_BUS
831 int "I2C bus of the EEPROM device."
832 depends on CMD_EEPROM
833 default 0
834
835config SYS_I2C_EEPROM_ADDR_LEN
836 int "Length in bytes of the EEPROM memory array address"
837 depends on CMD_EEPROM || ID_EEPROM
838 default 1
839 range 1 2
840 help
841 Note: This is NOT the chip address length!
842
843config SYS_EEPROM_SIZE
844 depends on CMD_EEPROM
845 int "Size in bytes of the EEPROM device"
846 default 256
847
848config SYS_EEPROM_PAGE_WRITE_BITS
849 int "Number of bits used to address bytes in a single page"
03de305e 850 depends on CMD_EEPROM || ENV_IS_IN_EEPROM
88cd7d0e
TR
851 default 8
852 help
853 The EEPROM page size is 2^SYS_EEPROM_PAGE_WRITE_BITS.
854 A 64 byte page, for example would require six bits.
855
856config SYS_EEPROM_PAGE_WRITE_DELAY_MS
857 int "Number of milliseconds to delay between page writes"
858 depends on CMD_EEPROM || CMD_I2C
859 default 0
860
ba71be54
SG
861config LOOPW
862 bool "loopw"
863 help
864 Infinite write loop on address range
865
bea79d7d
AP
866config CMD_MD5SUM
867 bool "md5sum"
bea79d7d 868 select MD5
6ec3f920 869 select HASH
bea79d7d
AP
870 help
871 Compute MD5 checksum.
872
221a949e 873config MD5SUM_VERIFY
bea79d7d 874 bool "md5sum -v"
bea79d7d
AP
875 depends on CMD_MD5SUM
876 help
877 Add -v option to verify data against an MD5 checksum.
878
ba71be54
SG
879config CMD_MEMINFO
880 bool "meminfo"
221a949e 881 help
ba71be54 882 Display memory information.
221a949e 883
ba71be54
SG
884config CMD_MEMORY
885 bool "md, mm, nm, mw, cp, cmp, base, loop"
886 default y
72a8cf8d 887 help
ba71be54
SG
888 Memory commands.
889 md - memory display
890 mm - memory modify (auto-incrementing address)
891 nm - memory modify (constant address)
892 mw - memory write (fill)
893 cp - memory copy
894 cmp - memory compare
895 base - print or set address offset
896 loop - initialize loop on address range
72a8cf8d 897
550a9e79 898config CMD_MEM_SEARCH
bdded201
SG
899 bool "ms - Memory search"
900 help
901 Memory-search command
902
903 This allows searching through a region of memory looking for hex
904 data (byte, 16-bit word, 32-bit long, also 64-bit on machines that
905 support it). It is also possible to search for a string. The
906 command accepts a memory range and a list of values to search for.
907 The values need to appear in memory in the same order they are given
908 in the command. At most 10 matches can be returned at a time, but
909 pressing return will show the next 10 matches. Environment variables
910 are set for use with scripting (memmatches, memaddr, mempos).
911
72732318 912config CMD_MX_CYCLIC
78f28773
AF
913 bool "Enable cyclic md/mw commands"
914 depends on CMD_MEMORY
915 help
608a88c2
AM
916 Add the "mdc" and "mwc" memory commands. These are cyclic
917 "md/mw" commands.
918 Examples:
78f28773
AF
919
920 => mdc.b 10 4 500
921 This command will print 4 bytes (10,11,12,13) each 500 ms.
922
923 => mwc.l 100 12345678 10
924 This command will write 12345678 to address 100 all 10 ms.
925
803e1a3d
JJH
926config CMD_RANDOM
927 bool "random"
928 default y
929 depends on CMD_MEMORY && (LIB_RAND || LIB_HW_RAND)
930 help
931 random - fill memory with random data
932
72a8cf8d
SG
933config CMD_MEMTEST
934 bool "memtest"
935 help
936 Simple RAM read/write test.
937
e89f8aae
MS
938if CMD_MEMTEST
939
940config SYS_ALT_MEMTEST
941 bool "Alternative test"
942 help
943 Use a more complete alternative memory test.
944
9989fb18
RS
945if SYS_ALT_MEMTEST
946
947config SYS_ALT_MEMTEST_BITFLIP
948 bool "Bitflip test"
949 default y
950 help
951 The alternative memory test includes bitflip test since 2020.07.
952 The bitflip test significantly increases the overall test time.
953 Bitflip test can optionally be disabled here.
954
955endif
956
702de89c
ARS
957config SYS_MEMTEST_START
958 hex "default start address for mtest"
ff27af12 959 default 0x0
702de89c
ARS
960 help
961 This is the default start address for mtest for simple read/write
962 test. If no arguments are given to mtest, default address is used
963 as start address.
964
965config SYS_MEMTEST_END
966 hex "default end address for mtest"
967 default 0x1000
968 help
969 This is the default end address for mtest for simple read/write
970 test. If no arguments are given to mtest, default address is used
971 as end address.
972
e89f8aae
MS
973endif
974
ba71be54
SG
975config CMD_SHA1SUM
976 bool "sha1sum"
977 select SHA1
72a8cf8d 978 help
ba71be54
SG
979 Compute SHA1 checksum.
980
981config SHA1SUM_VERIFY
982 bool "sha1sum -v"
983 depends on CMD_SHA1SUM
984 help
985 Add -v option to verify data against a SHA1 checksum.
72a8cf8d 986
00805d7a
SG
987config CMD_STRINGS
988 bool "strings - display strings in memory"
989 help
990 This works similarly to the Unix 'strings' command except that it
991 works with a memory range. String of printable characters found
992 within the range are displayed. The minimum number of characters
993 for a sequence to be considered a string can be provided.
994
ee7c0e71
SG
995endmenu
996
997menu "Compression commands"
998
999config CMD_LZMADEC
1000 bool "lzmadec"
99e46dfc 1001 default y if CMD_BOOTI
ee7c0e71
SG
1002 select LZMA
1003 help
1004 Support decompressing an LZMA (Lempel-Ziv-Markov chain algorithm)
1005 image from memory.
1006
a1732232
YA
1007config CMD_UNLZ4
1008 bool "unlz4"
1009 default y if CMD_BOOTI
1010 select LZ4
1011 help
1012 Support decompressing an LZ4 image from memory region.
1013
e9d33e73
MY
1014config CMD_UNZIP
1015 bool "unzip"
99e46dfc 1016 default y if CMD_BOOTI
56c311bd 1017 select GZIP
e9d33e73
MY
1018 help
1019 Uncompress a zip-compressed memory region.
1020
1021config CMD_ZIP
1022 bool "zip"
eff5a547 1023 select GZIP_COMPRESSED
e9d33e73
MY
1024 help
1025 Compress a memory region with zlib deflate method.
1026
72a8cf8d
SG
1027endmenu
1028
1029menu "Device access commands"
1030
f16a48fe
AEK
1031config CMD_ARMFFA
1032 bool "Arm FF-A test command"
1033 depends on ARM_FFA_TRANSPORT
1034 help
1035 Provides a test command for the FF-A support
1036 supported options:
1037 - Listing the partition(s) info
1038 - Sending a data pattern to the specified partition
1039 - Displaying the arm_ffa device info
1040
0c19b4d1 1041config CMD_ARMFLASH
0c19b4d1 1042 bool "armflash"
03de305e 1043 depends on FLASH_CFI_DRIVER
0c19b4d1
SG
1044 help
1045 ARM Ltd reference designs flash partition access
1046
051ebe32
NA
1047config CMD_ADC
1048 bool "adc - Access Analog to Digital Converters info and data"
1049 select ADC
6e741cfa 1050 depends on DM_REGULATOR
051ebe32
NA
1051 help
1052 Shows ADC device info and permit printing one-shot analog converted
1053 data from a named Analog to Digital Converter.
1054
db7b7a05
ER
1055config CMD_BCB
1056 bool "bcb"
db7b7a05
ER
1057 depends on PARTITIONS
1058 help
1059 Read/modify/write the fields of Bootloader Control Block, usually
1060 stored on the flash "misc" partition with its structure defined in:
1061 https://android.googlesource.com/platform/bootable/recovery/+/master/
1062 bootloader_message/include/bootloader_message/bootloader_message.h
1063
1064 Some real-life use-cases include (but are not limited to):
1065 - Determine the "boot reason" (and act accordingly):
1066 https://source.android.com/devices/bootloader/boot-reason
1067 - Get/pass a list of commands from/to recovery:
1068 https://android.googlesource.com/platform/bootable/recovery
1069 - Inspect/dump the contents of the BCB fields
1070
49c752c9
JJH
1071config CMD_BIND
1072 bool "bind/unbind - Bind or unbind a device to/from a driver"
1073 depends on DM
249a75d8 1074 imply CMD_DM
49c752c9
JJH
1075 help
1076 Bind or unbind a device to/from a driver from the command line.
1077 This is useful in situations where a device may be handled by several
1078 drivers. For example, this can be used to bind a UDC to the usb ether
1079 gadget driver from the command line.
1080
d315628e 1081config CMD_CLK
56efea88
HS
1082 bool "clk - Show and set clock frequencies"
1083 depends on CLK
d315628e 1084 help
56efea88 1085 Show and set clock frequencies managed by CLK uclass drivers.
d315628e 1086
0c19b4d1
SG
1087config CMD_DEMO
1088 bool "demo - Demonstration commands for driver model"
1089 depends on DM
1090 help
1091 Provides a 'demo' command which can be used to play around with
1092 driver model. To use this properly you will need to enable one or
1093 both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
1094 Otherwise you will always get an empty list of devices. The demo
1095 devices are defined in the sandbox device tree, so the easiest
1096 option is to use sandbox and pass the -d point to sandbox's
1097 u-boot.dtb file.
1098
1099config CMD_DFU
1100 bool "dfu"
0f44d335 1101 select DFU
0c19b4d1
SG
1102 help
1103 Enables the command "dfu" which is used to have U-Boot create a DFU
00fd59dd
SG
1104 class device via USB. This command requires that the "dfu_alt_info"
1105 environment variable be set and define the alt settings to expose to
1106 the host.
0c19b4d1 1107
72a8cf8d
SG
1108config CMD_DM
1109 bool "dm - Access to driver model information"
1110 depends on DM
72a8cf8d
SG
1111 help
1112 Provides access to driver model data structures and information,
1113 such as a list of devices, list of uclasses and the state of each
1114 device (e.g. activated). This is not required for operation, but
1115 can be useful to see the state of driver model for debugging or
1116 interest.
1117
312a10f1
AK
1118config CMD_FASTBOOT
1119 bool "fastboot - Android fastboot support"
1120 depends on FASTBOOT
1121 help
1122 This enables the command "fastboot" which enables the Android
1123 fastboot mode for the platform. Fastboot is a protocol for
1124 downloading images, flashing and device control used on
f73a7df9
AK
1125 Android devices. Fastboot requires either the network stack
1126 enabled or support for acting as a USB device.
312a10f1 1127
586a1bf5 1128 See doc/android/fastboot.rst for more information.
312a10f1 1129
0c19b4d1
SG
1130config CMD_FLASH
1131 bool "flinfo, erase, protect"
1132 default y
cda3f81b 1133 depends on FLASH_CFI_DRIVER || MTD_NOR_FLASH
0c19b4d1
SG
1134 help
1135 NOR flash support.
1136 flinfo - print FLASH memory information
1137 erase - FLASH memory
1138 protect - enable or disable FLASH write protection
1139
1140config CMD_FPGA
1141 bool "fpga"
a4fa8114 1142 depends on FPGA
0c19b4d1
SG
1143 default y
1144 help
1145 FPGA support.
1146
1147config CMD_FPGA_LOADBP
1148 bool "fpga loadbp - load partial bitstream (Xilinx only)"
1149 depends on CMD_FPGA
1150 help
1151 Supports loading an FPGA device from a bitstream buffer containing
1152 a partial bitstream.
1153
1154config CMD_FPGA_LOADFS
1155 bool "fpga loadfs - load bitstream from FAT filesystem (Xilinx only)"
1156 depends on CMD_FPGA
1157 help
1158 Supports loading an FPGA device from a FAT filesystem.
1159
1160config CMD_FPGA_LOADMK
1161 bool "fpga loadmk - load bitstream from image"
1162 depends on CMD_FPGA
1163 help
1164 Supports loading an FPGA device from a image generated by mkimage.
1165
1166config CMD_FPGA_LOADP
1167 bool "fpga loadp - load partial bitstream"
1168 depends on CMD_FPGA
1169 help
1170 Supports loading an FPGA device from a bitstream buffer containing
1171 a partial bitstream.
1172
cedd48e2 1173config CMD_FPGA_LOAD_SECURE
fb2b8856 1174 bool "fpga loads - loads secure bitstreams"
cedd48e2 1175 depends on CMD_FPGA
fb2b8856 1176 select FPGA_LOAD_SECURE
cedd48e2
SDPP
1177 help
1178 Enables the fpga loads command which is used to load secure
1179 (authenticated or encrypted or both) bitstreams on to FPGA.
1180
0c19b4d1
SG
1181config CMD_FPGAD
1182 bool "fpgad - dump FPGA registers"
03de305e 1183 depends on GDSYS_LEGACY_DRIVERS
0c19b4d1
SG
1184 help
1185 (legacy, needs conversion to driver model)
1186 Provides a way to dump FPGA registers by calling the board-specific
1187 fpga_get_reg() function. This functions similarly to the 'md'
1188 command.
1189
1190config CMD_FUSE
1191 bool "fuse - support for the fuse subssystem"
1192 help
1193 (deprecated - needs conversion to driver model)
1194 This allows reading, sensing, programming or overriding fuses
1195 which control the behaviour of the device. The command uses the
1196 fuse_...() API.
1197
1198config CMD_GPIO
1199 bool "gpio"
1200 help
1201 GPIO support.
1202
dd2b8c11
DR
1203config CMD_GPIO_READ
1204 bool "gpio read - save GPIO value to variable"
1205 depends on CMD_GPIO
1206 help
1207 Enables the 'gpio read' command that saves the value
1208 of a GPIO pin to a variable.
1209
9e9a530a
PP
1210config CMD_PWM
1211 bool "pwm"
1212 depends on DM_PWM
1213 help
1214 Control PWM channels, this allows invert/config/enable/disable PWM channels.
1215
0c19b4d1
SG
1216config CMD_GPT
1217 bool "GPT (GUID Partition Table) command"
0c19b4d1 1218 select EFI_PARTITION
5ed063d1 1219 select PARTITION_UUIDS
47738acc 1220 imply RANDOM_UUID
0c19b4d1
SG
1221 help
1222 Enable the 'gpt' command to ready and write GPT style partition
1223 tables.
1224
1225config CMD_GPT_RENAME
1226 bool "GPT partition renaming commands"
1227 depends on CMD_GPT
1228 help
1229 Enables the 'gpt' command to interchange names on two GPT
1230 partitions via the 'gpt swap' command or to rename single
1231 partitions via the 'rename' command.
72a8cf8d 1232
75eb9976
SG
1233config CMD_IDE
1234 bool "ide - Support for IDE drivers"
fc843a02 1235 select IDE
75eb9976
SG
1236 help
1237 Provides an 'ide' command which allows accessing the IDE drive,
1107b062 1238 resetting the IDE interface, printing the partition table and
75eb9976
SG
1239 geting device info. It also enables the 'diskboot' command which
1240 permits booting from an IDE drive.
1241
594e8d1c
SG
1242config CMD_IO
1243 bool "io - Support for performing I/O accesses"
1244 help
1245 Provides an 'iod' command to display I/O space and an 'iow' command
1246 to write values to the I/O space. This can be useful for manually
1247 checking the state of devices during boot when debugging device
1248 drivers, etc.
1249
7d0f5c13
SG
1250config CMD_IOTRACE
1251 bool "iotrace - Support for tracing I/O activity"
1252 help
1253 Provides an 'iotrace' command which supports recording I/O reads and
1254 writes in a trace buffer in memory . It also maintains a checksum
1255 of the trace records (even if space is exhausted) so that the
1256 sequence of I/O accesses can be verified.
1257
1258 When debugging drivers it is useful to see what I/O accesses were
1259 done and in what order.
1260
1261 Even if the individual accesses are of little interest it can be
1262 useful to verify that the access pattern is consistent each time
1263 an operation is performed. In this case a checksum can be used to
1264 characterise the operation of a driver. The checksum can be compared
1265 across different runs of the operation to verify that the driver is
1266 working properly.
1267
1268 In particular, when performing major refactoring of the driver, where
1269 the access pattern should not change, the checksum provides assurance
1270 that the refactoring work has not broken the driver.
1271
1272 This works by sneaking into the io.h heder for an architecture and
1273 redirecting I/O accesses through iotrace's tracing mechanism.
1274
1275 For now no commands are provided to examine the trace buffer. The
1276 format is fairly simple, so 'md' is a reasonable substitute.
1277
1278 Note: The checksum feature is only useful for I/O regions where the
1279 contents do not change outside of software control. Where this is not
1280 suitable you can fall back to manually comparing the addresses. It
1281 might be useful to enhance tracing to only checksum the accesses and
1282 not the data read/written.
1283
0c19b4d1
SG
1284config CMD_I2C
1285 bool "i2c"
1286 help
1287 I2C support.
1288
d05266f7
EH
1289config CMD_W1
1290 depends on W1
1291 default y if W1
1292 bool "w1 - Support for Dallas 1-Wire protocol"
1293 help
1294 Dallas 1-wire protocol support
1295
72a8cf8d
SG
1296config CMD_LOADB
1297 bool "loadb"
1298 default y
1299 help
1300 Load a binary file over serial line.
1301
bfef72e4
RMS
1302config CMD_LOADM
1303 bool "loadm"
1304 help
1305 Load a binary over memory mapped.
1306
72a8cf8d 1307config CMD_LOADS
2c8d04dd 1308 bool "loads - Load a file over serial in S-Record format"
72a8cf8d
SG
1309 default y
1310 help
1311 Load an S-Record file over serial line
1312
2c8d04dd
TR
1313config LOADS_ECHO
1314 bool "Echo all characters received during a loads back to console"
1315 depends on CMD_LOADS
1316 help
1317 If enabled, all characters received during a serial download (using
1318 the "loads" command) are echoed back. This might be needed by some
1319 terminal emulations (like "cu"), but may as well just take time on
1320 others. This sets the initial value of the "loads_echo" environment
1321 variable to 1.
1322
1323config CMD_SAVES
1324 bool "saves - Save a file over serial in S-Record format"
aadc1a60 1325 depends on CMD_LOADS
2c8d04dd
TR
1326 help
1327 Provides a way to save a binary file using the Motorola S-Record
1328 format over the serial line.
1329
1330config SYS_LOADS_BAUD_CHANGE
1331 bool "Enable a temporary baudrate change during loads/saves command"
1332 depends on CMD_LOADS || CMD_SAVES
1333
1b3e6820
T
1334config CMD_LOADXY_TIMEOUT
1335 int "loadxy_timeout"
1336 range 0 2000
1337 default 90
1338 help
1339 Initial timeout for loadx and loady commands. Zero means infinity.
1340
e3697908
NF
1341config CMD_LSBLK
1342 depends on BLK
1343 bool "lsblk - list block drivers and devices"
1344 help
1345 Print list of available block device drivers, and for each, the list
1346 of known block devices.
1347
750c543c
MS
1348config CMD_MBR
1349 bool "MBR (Master Boot Record) command"
1350 select DOS_PARTITION
750c543c
MS
1351 help
1352 Enable the 'mbr' command to ready and write MBR (Master Boot Record)
1353 style partition tables.
1354
3bc0db11
BM
1355config CMD_MISC
1356 bool "misc"
1357 depends on MISC
1358 help
1359 Enable the command "misc" for accessing miscellaneous devices with
1360 a MISC uclass driver. The command provides listing all MISC devices
1361 as well as read and write functionalities via their drivers.
1362
ab8243e4
DN
1363config CMD_MMC
1364 bool "mmc"
ec611871 1365 depends on MMC
ab8243e4
DN
1366 help
1367 MMC memory mapped support.
1368
453d2138
HS
1369if CMD_MMC
1370
1371config CMD_BKOPS_ENABLE
1372 bool "mmc bkops enable"
1373 depends on CMD_MMC
453d2138
HS
1374 help
1375 Enable command for setting manual background operations handshake
1376 on a eMMC device. The feature is optionally available on eMMC devices
1377 conforming to standard >= 4.41.
1378
b5f40393
MV
1379config CMD_MMC_REG
1380 bool "Enable support for reading card registers in the mmc command"
1381 depends on CMD_MMC
1382 help
1383 Enable the commands for reading card registers. This is useful
1384 mostly for debugging or extracting details from the card.
1385
5a7b11e6
AK
1386config CMD_MMC_RPMB
1387 bool "Enable support for RPMB in the mmc command"
453d2138 1388 depends on SUPPORT_EMMC_RPMB
5a7b11e6
AK
1389 help
1390 Enable the commands for reading, writing and programming the
1391 key for the Replay Protection Memory Block partition in eMMC.
1392
c232d14d
AK
1393config CMD_MMC_SWRITE
1394 bool "mmc swrite"
453d2138 1395 depends on MMC_WRITE
c232d14d
AK
1396 select IMAGE_SPARSE
1397 help
1398 Enable support for the "mmc swrite" command to write Android sparse
1399 images to eMMC.
1400
39aa94a5
MV
1401config MMC_SPEED_MODE_SET
1402 bool "set speed mode using mmc command"
1403 help
1404 Enable setting speed mode using mmc rescan and mmc dev commands.
1405 The speed mode is provided as the last argument in these commands
1406 and is indicated using the index from enum bus_mode in
1407 include/mmc.h. A speed mode can be set only if it has already
1408 been enabled in the device tree.
1409
453d2138
HS
1410endif
1411
4a4830cf
JC
1412config CMD_CLONE
1413 bool "clone"
1414 depends on BLK
1415 help
1416 Enable storage cloning over block devices, useful for
1417 initial flashing by external block device without network
1418 or usb support.
1419
bcc6c574
RG
1420config CMD_OPTEE_RPMB
1421 bool "Enable read/write support on RPMB via OPTEE"
dfac18e9
IO
1422 depends on (SUPPORT_EMMC_RPMB && OPTEE) || SANDBOX_TEE
1423 default y if SANDBOX_TEE
1424 select OPTEE_TA_AVB if SANDBOX_TEE
bcc6c574
RG
1425 help
1426 Enable the commands for reading, writing persistent named values
1427 in the Replay Protection Memory Block partition in eMMC by
1428 using Persistent Objects in OPTEE
1429
5db66b3a
MR
1430config CMD_MTD
1431 bool "mtd"
ff102c54 1432 depends on MTD
5db66b3a
MR
1433 select MTD_PARTITIONS
1434 help
1435 MTD commands support.
1436
248fc160
AK
1437config CMD_MTD_OTP
1438 bool "mtd otp"
1439 depends on CMD_MTD
1440 select HEXDUMP
1441 help
1442 MTD commands for OTP access.
1443
05115abe
PY
1444config CMD_MUX
1445 bool "mux"
1446 depends on MULTIPLEXER
1447 help
1448 List, select, and deselect mux controllers on the fly.
1449
72a8cf8d
SG
1450config CMD_NAND
1451 bool "nand"
522c282f 1452 default y if NAND_SUNXI
ff102c54 1453 depends on MTD_RAW_NAND
72a8cf8d
SG
1454 help
1455 NAND support.
1456
e915d201
BB
1457if CMD_NAND
1458config CMD_NAND_TRIMFFS
1459 bool "nand write.trimffs"
d482a8df 1460 default y if ARCH_SUNXI
e915d201
BB
1461 help
1462 Allows one to skip empty pages when flashing something on a NAND.
1463
1464config CMD_NAND_LOCK_UNLOCK
1465 bool "nand lock/unlock"
1466 help
1467 NAND locking support.
1468
1469config CMD_NAND_TORTURE
1470 bool "nand torture"
1471 help
1472 NAND torture support.
1473
1474endif # CMD_NAND
1475
0adc38be
ZZ
1476config CMD_NVME
1477 bool "nvme"
1478 depends on NVME
1479 default y if NVME
1480 help
1481 NVM Express device support
1482
978f0854
SG
1483config CMD_ONENAND
1484 bool "onenand - access to onenand device"
ff102c54 1485 depends on MTD
978f0854
SG
1486 help
1487 OneNAND is a brand of NAND ('Not AND' gate) flash which provides
1488 various useful features. This command allows reading, writing,
1489 and erasing blocks. It allso provides a way to show and change
1490 bad blocks, and test the device.
1491
dd4bf244
TR
1492config USE_ONENAND_BOARD_INIT
1493 bool "Call onenand_board_init() in the onenand command"
1494 depends on CMD_ONENAND
1495
3bf65cb5
MS
1496config CMD_OSD
1497 bool "osd"
650883a5 1498 depends on OSD
3bf65cb5
MS
1499 help
1500 Enable the 'osd' command which allows to query information from and
1501 write text data to a on-screen display (OSD) device; a virtual device
1502 associated with a display capable of displaying a text overlay on the
1503 display it's associated with..
1504
b331cd62
PD
1505config CMD_PART
1506 bool "part"
64efbd12 1507 depends on PARTITIONS
5ed063d1 1508 select PARTITION_UUIDS
b331cd62
PD
1509 help
1510 Read and display information about the partition table on
1511 various media.
1512
6500ec7a
SG
1513config CMD_PCI
1514 bool "pci - Access PCI devices"
1515 help
1516 Provide access to PCI (Peripheral Interconnect Bus), a type of bus
1517 used on some devices to allow the CPU to communicate with its
1518 peripherals. Sub-commands allow bus enumeration, displaying and
1519 changing configuration space and a few other features.
1520
59b1c9be
SC
1521config CMD_PCI_MPS
1522 bool "pci_mps - Configure PCI device MPS"
1523 depends on PCI
1524 help
1525 Enables PCI Express Maximum Packet Size (MPS) tuning. This
1526 command configures the PCI Express MPS of each endpoint to the
1527 largest value supported by all devices below the root complex.
1528 The Maximum Read Request Size will not be altered. This method is
1529 the same algorithm as used by Linux pci=pcie_bus_safe.
1530
d5a83139
PC
1531config CMD_PINMUX
1532 bool "pinmux - show pins muxing"
a70abcff 1533 depends on PINCTRL
d5a83139
PC
1534 default y if PINCTRL
1535 help
1536 Parse all available pin-controllers and show pins muxing. This
1537 is useful for debug purpoer to check the pin muxing and to know if
1538 a pin is configured as a GPIO or as an alternate function.
1539
577c40ae
AF
1540config CMD_POWEROFF
1541 bool "poweroff"
1542 help
1543 Poweroff/Shutdown the system
1544
b75dfd2d
SG
1545config CMD_READ
1546 bool "read - Read binary data from a partition"
1547 help
1548 Provides low-level access to the data in a partition.
1549
0c19b4d1
SG
1550config CMD_REMOTEPROC
1551 bool "remoteproc"
1552 depends on REMOTEPROC
1553 help
1554 Support for Remote Processor control
1555
1556config CMD_SATA
1557 bool "sata - Access SATA subsystem"
1558 select SATA
1559 help
1560 SATA (Serial Advanced Technology Attachment) is a serial bus
1561 standard for connecting to hard drives and other storage devices.
1562 This command provides information about attached devices and allows
1563 reading, writing and other operations.
1564
1565 SATA replaces PATA (originally just ATA), which stands for Parallel AT
1566 Attachment, where AT refers to an IBM AT (Advanced Technology)
1567 computer released in 1984.
1568
0c3fecd0
HS
1569config CMD_SCSI
1570 bool "scsi - Access to SCSI devices"
fa3f0cbe
HS
1571 depends on SCSI
1572 default y
0c3fecd0
HS
1573 help
1574 This provides a 'scsi' command which provides access to SCSI (Small
1575 Computer System Interface) devices. The command provides a way to
1576 scan the bus, reset the bus, read and write data and get information
1577 about devices.
1578
efce2442
SG
1579config CMD_SDRAM
1580 bool "sdram - Print SDRAM configuration information"
1581 help
1582 Provides information about attached SDRAM. This assumed that the
1583 SDRAM has an EEPROM with information that can be read using the
1584 I2C bus. This is only available on some boards.
1585
72a8cf8d
SG
1586config CMD_SF
1587 bool "sf"
a4298dda 1588 depends on DM_SPI_FLASH || SPI_FLASH
c2af7fb1 1589 default y if DM_SPI_FLASH
72a8cf8d
SG
1590 help
1591 SPI Flash support
1592
719d36ee
SG
1593config CMD_SF_TEST
1594 bool "sf test - Allow testing of SPI flash"
a4298dda 1595 depends on CMD_SF
719d36ee
SG
1596 help
1597 Provides a way to test that SPI flash is working correctly. The
1598 test is destructive, in that an area of SPI flash must be provided
1599 for the test to use. Performance information is also provided,
1600 measuring the performance of reading, writing and erasing in
1601 Mbps (Million Bits Per Second). This value should approximately
1602 equal the SPI bus speed for a single-bit-wide SPI bus, assuming
1603 everything is working properly.
1604
72a8cf8d 1605config CMD_SPI
c95e632d 1606 bool "sspi - Command to access spi device"
a4298dda 1607 depends on SPI
72a8cf8d
SG
1608 help
1609 SPI utility command.
1610
c95e632d
PD
1611config DEFAULT_SPI_BUS
1612 int "default spi bus used by sspi command"
1613 depends on CMD_SPI
1614 default 0
1615
1616config DEFAULT_SPI_MODE
1617 hex "default spi mode used by sspi command (see include/spi.h)"
1618 depends on CMD_SPI
a077ac13 1619 default 0x0
c95e632d 1620
7f673bb8
RM
1621config CMD_TEMPERATURE
1622 bool "temperature - display the temperature from thermal sensors"
1623 depends on DM_THERMAL
1624 help
1625 Provides a way to list thermal sensors and to get their readings.
1626
5605aa8a
SG
1627config CMD_TSI148
1628 bool "tsi148 - Command to access tsi148 device"
03de305e 1629 depends on DM_PCI_COMPAT
5605aa8a
SG
1630 help
1631 This provides various sub-commands to initialise and configure the
1632 Turndra tsi148 device. See the command help for full details.
1633
a539c8bd 1634config CMD_UFS
ff039a87 1635 bool "ufs - Universal Flash Storage commands"
a539c8bd
FA
1636 depends on UFS
1637 help
1638 "This provides commands to initialise and configure universal flash
1639 subsystem devices"
1640
2a242e3e
SG
1641config CMD_UNIVERSE
1642 bool "universe - Command to set up the Turndra Universe controller"
03de305e 1643 depends on DM_PCI_COMPAT
2a242e3e
SG
1644 help
1645 This allows setting up the VMEbus provided by this controller.
1646 See the command help for full details.
1647
72a8cf8d
SG
1648config CMD_USB
1649 bool "usb"
e8d3eaad 1650 depends on USB_HOST
72a8cf8d
SG
1651 help
1652 USB support.
1653
2f005695
SA
1654config CMD_USB_SDP
1655 bool "sdp"
8cb33035 1656 depends on USB_GADGET_DOWNLOAD
2f005695
SA
1657 select USB_FUNCTION_SDP
1658 help
1659 Enables the command "sdp" which is used to have U-Boot emulating the
1660 Serial Download Protocol (SDP) via USB.
6e7bdde4 1661
aacf214d
JJ
1662config CMD_RKMTD
1663 bool "rkmtd"
1664 select RKMTD
1665 help
1666 Enable the command "rkmtd" to create a virtual block device to transfer
1667 Rockchip boot block data to and from NAND with block orientated tools
1668 like "ums" and "rockusb".
1669
453c95e0
EC
1670config CMD_ROCKUSB
1671 bool "rockusb"
1672 depends on USB_FUNCTION_ROCKUSB
1673 help
6e7bdde4 1674 Rockusb protocol is widely used by Rockchip SoC based devices. It can
453c95e0
EC
1675 read/write info, image to/from devices. This enable rockusb command
1676 support to communication with rockusb device. for more detail about
1677 this command, please read doc/README.rockusb.
2f005695 1678
ab8243e4
DN
1679config CMD_USB_MASS_STORAGE
1680 bool "UMS usb mass storage"
c74758cc 1681 depends on BLK && USB_GADGET_DOWNLOAD
e4d4604a 1682 select USB_FUNCTION_MASS_STORAGE
ab8243e4 1683 help
6b8d9c92
PD
1684 Enables the command "ums" and the USB mass storage support to the
1685 export a block device: U-Boot, the USB device, acts as a simple
1686 external hard drive plugged on the host USB port.
ab8243e4 1687
a57adacf
SR
1688config CMD_UMS_ABORT_KEYED
1689 bool "UMS abort with any key"
1690 depends on CMD_USB_MASS_STORAGE
1691 help
1692 Allow interruption of usb mass storage run with any key pressed.
1693
722bc5b5
AL
1694config CMD_PVBLOCK
1695 bool "Xen para-virtualized block device"
1696 depends on XEN
1697 select PVBLOCK
1698 help
1699 Xen para-virtualized block device support
1700
78e12901
TT
1701config CMD_VIRTIO
1702 bool "virtio"
1703 depends on VIRTIO
1704 default y if VIRTIO
1705 help
1706 VirtIO block device support
1707
82a00be3
MW
1708config CMD_WDT
1709 bool "wdt"
1710 depends on WDT
1711 help
1712 This provides commands to control the watchdog timer devices.
1713
8311ac5f
RV
1714config CMD_WRITE
1715 bool "write - Write binary data to a partition"
1716 help
1717 Provides low-level write access to a partition.
1718
37c4a5f6
MS
1719config CMD_AXI
1720 bool "axi"
1721 depends on AXI
1722 help
1723 Enable the command "axi" for accessing AXI (Advanced eXtensible
1724 Interface) busses, a on-chip interconnect specification for managing
1725 functional blocks in SoC designs, which is also often used in designs
1726 involving FPGAs (e.g. communication with IP cores in Xilinx FPGAs).
72a8cf8d
SG
1727endmenu
1728
1729
1730menu "Shell scripting commands"
1731
690a1d69
RK
1732config CMD_CAT
1733 bool "cat"
1734 help
1735 Print file to standard output
1736
72a8cf8d
SG
1737config CMD_ECHO
1738 bool "echo"
1739 default y
1740 help
1741 Echo args to console
1742
1743config CMD_ITEST
1744 bool "itest"
1745 default y
1746 help
1747 Return true/false on integer compare.
1748
1749config CMD_SOURCE
1750 bool "source"
1751 default y
1752 help
1753 Run script from memory
1754
1755config CMD_SETEXPR
1756 bool "setexpr"
1757 default y
1758 help
1759 Evaluate boolean and math expressions and store the result in an env
1760 variable.
1761 Also supports loading the value at a memory location into a variable.
1762 If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
1763
f4f8d8bb
RG
1764config CMD_SETEXPR_FMT
1765 bool "setexpr_fmt"
f4f8d8bb
RG
1766 depends on CMD_SETEXPR
1767 help
1768 Evaluate format string expression and store result in an environment
1769 variable.
1770
c3b27a82
RK
1771config CMD_XXD
1772 bool "xxd"
1773 help
1774 Print file as hexdump to standard output
1775
72a8cf8d
SG
1776endmenu
1777
17030c7c
RT
1778menu "Android support commands"
1779
1780config CMD_AB_SELECT
1781 bool "ab_select"
17030c7c
RT
1782 depends on ANDROID_AB
1783 help
1784 On Android devices with more than one boot slot (multiple copies of
1785 the kernel and system images) this provides a command to select which
1786 slot should be used to boot from and register the boot attempt. This
1787 is used by the new A/B update model where one slot is updated in the
1788 background while running from the other slot.
1789
1790endmenu
1791
98ad145d 1792if NET || NET_LWIP
3b3ea2c5 1793
d7a45eaf
JH
1794menuconfig CMD_NET
1795 bool "Network commands"
1796 default y
1797
98ad145d
JF
1798endif
1799
1800if NET
1801
d7a45eaf
JH
1802if CMD_NET
1803
1804config CMD_BOOTP
1805 bool "bootp"
72a8cf8d
SG
1806 default y
1807 help
72a8cf8d 1808 bootp - boot image via network using BOOTP/TFTP protocol
d7a45eaf 1809
7d018892
SE
1810config CMD_DHCP6
1811 bool "dhcp6"
1812 depends on IPV6
1813 help
1814 Boot image via network using DHCPv6/TFTP protocol using IPv6.
1815
1816 Will perform 4-message exchange with DHCPv6 server, requesting
1817 the minimum required options to TFTP boot. Complies with RFC 8415.
1818
84e000c9
HS
1819if CMD_DHCP6
1820
1821config DHCP6_PXE_CLIENTARCH
1822 hex
1823 default 0x16 if ARM64
1824 default 0x15 if ARM
1825 default 0xFF
1826
1827config DHCP6_PXE_DHCP_OPTION
1828 bool "Request & store 'pxe_configfile' from DHCP6 server"
1829
1830config DHCP6_ENTERPRISE_ID
1831 int "Enterprise ID to send in DHCPv6 Vendor Class Option"
1832 default 0
1833
1834endif
1835
a542e430
TR
1836config BOOTP_MAY_FAIL
1837 bool "Allow for the BOOTP/DHCP server to not be found"
1838 depends on CMD_BOOTP
1839 help
1840 If the DHCP server is not found after the configured retry count, the
1841 call will fail instead of starting over. This can be used to fail
1842 over to Link-local IP address configuration if the DHCP server is not
1843 available.
1844
92fa44d5 1845config BOOTP_BOOTPATH
8df69d90 1846 bool "Request & store 'rootpath' from BOOTP/DHCP server"
3dfbc53b 1847 default y
92fa44d5 1848 depends on CMD_BOOTP
8df69d90
JH
1849 help
1850 Even though the config is called BOOTP_BOOTPATH, it stores the
1851 path in the variable 'rootpath'.
92fa44d5 1852
a542e430
TR
1853config BOOTP_VENDOREX
1854 bool "Support vendor extensions from BOOTP/DHCP server"
1855 depends on CMD_BOOTP
1856
1857config BOOTP_BOOTFILESIZE
1858 bool "Request & store 'bootfilesize' from BOOTP/DHCP server"
1859 depends on CMD_BOOTP
1860
92fa44d5 1861config BOOTP_DNS
8df69d90 1862 bool "Request & store 'dnsip' from BOOTP/DHCP server"
3dfbc53b 1863 default y
92fa44d5 1864 depends on CMD_BOOTP
8df69d90
JH
1865 help
1866 The primary DNS server is stored as 'dnsip'. If two servers are
1867 returned, you must set BOOTP_DNS2 to store that second server IP
1868 also.
92fa44d5 1869
80449c03
JH
1870config BOOTP_DNS2
1871 bool "Store 'dnsip2' from BOOTP/DHCP server"
1872 depends on BOOTP_DNS
1873 help
1874 If a DHCP client requests the DNS server IP from a DHCP server,
1875 it is possible that more than one DNS serverip is offered to the
1876 client. If CONFIG_BOOTP_DNS2 is enabled, the secondary DNS
1877 server IP will be stored in the additional environment
1878 variable "dnsip2". The first DNS serverip is always
1879 stored in the variable "dnsip", when BOOTP_DNS is defined.
1880
92fa44d5 1881config BOOTP_GATEWAY
8df69d90 1882 bool "Request & store 'gatewayip' from BOOTP/DHCP server"
3dfbc53b 1883 default y
92fa44d5
JH
1884 depends on CMD_BOOTP
1885
1886config BOOTP_HOSTNAME
8df69d90 1887 bool "Request & store 'hostname' from BOOTP/DHCP server"
3dfbc53b 1888 default y
92fa44d5 1889 depends on CMD_BOOTP
8df69d90
JH
1890 help
1891 The name may or may not be qualified with the local domain name.
92fa44d5 1892
bdce340c
AG
1893config BOOTP_PREFER_SERVERIP
1894 bool "serverip variable takes precedent over DHCP server IP."
1895 depends on CMD_BOOTP
1896 help
1897 By default a BOOTP/DHCP reply will overwrite the 'serverip' variable.
1898
1899 With this option enabled, the 'serverip' variable in the environment
1900 takes precedence over DHCP server IP and will only be set by the DHCP
1901 server if not already set in the environment.
1902
92fa44d5 1903config BOOTP_SUBNETMASK
8df69d90 1904 bool "Request & store 'netmask' from BOOTP/DHCP server"
3dfbc53b 1905 default y
92fa44d5
JH
1906 depends on CMD_BOOTP
1907
a542e430
TR
1908config BOOTP_NISDOMAIN
1909 bool "Request & store 'nisdomain' from BOOTP/DHCP server"
1910 depends on CMD_BOOTP
1911
9b23c73d
CP
1912config BOOTP_NTPSERVER
1913 bool "Request & store 'ntpserverip' from BOOTP/DHCP server"
1914 depends on CMD_BOOTP
1915
a542e430
TR
1916config BOOTP_TIMEOFFSET
1917 bool "Request & store 'timeoffset' from BOOTP/DHCP server"
1918 depends on CMD_BOOTP && CMD_SNTP
1919
3eaac630
RF
1920config CMD_PCAP
1921 bool "pcap capture"
1922 help
1923 Selecting this will allow capturing all Ethernet packets and store
1924 them in physical memory in a PCAP formated file,
1925 later to be analyzed by PCAP reader application (IE. WireShark).
1926
92fa44d5 1927config BOOTP_PXE
2b9f486b 1928 bool "Send PXE client arch to BOOTP/DHCP server"
3dfbc53b 1929 default y
2b9f486b
JH
1930 depends on CMD_BOOTP && CMD_PXE
1931 help
1932 Supported for ARM, ARM64, and x86 for now.
92fa44d5
JH
1933
1934config BOOTP_PXE_CLIENTARCH
1935 hex
2b9f486b 1936 depends on BOOTP_PXE
92fa44d5
JH
1937 default 0x16 if ARM64
1938 default 0x15 if ARM
a077ac13 1939 default 0x0 if X86
92fa44d5 1940
91953956
SE
1941config BOOTP_PXE_DHCP_OPTION
1942 bool "Request & store 'pxe_configfile' from BOOTP/DHCP server"
1943 depends on BOOTP_PXE
1944
92fa44d5
JH
1945config BOOTP_VCI_STRING
1946 string
1947 depends on CMD_BOOTP
4bbd6b1d 1948 default "U-Boot.armv7" if CPU_V7A || CPU_V7M || CPU_V7R
92fa44d5
JH
1949 default "U-Boot.armv8" if ARM64
1950 default "U-Boot.arm" if ARM
1951 default "U-Boot"
1952
72a8cf8d
SG
1953config CMD_TFTPPUT
1954 bool "tftp put"
d7a45eaf 1955 depends on CMD_TFTPBOOT
72a8cf8d
SG
1956 help
1957 TFTP put command, for uploading files to a server
1958
1959config CMD_TFTPSRV
1960 bool "tftpsrv"
d7a45eaf 1961 depends on CMD_TFTPBOOT
72a8cf8d
SG
1962 help
1963 Act as a TFTP server and boot the first received file
1964
92fa44d5
JH
1965config NET_TFTP_VARS
1966 bool "Control TFTP timeout and count through environment"
1967 depends on CMD_TFTPBOOT
1968 default y
1969 help
1970 If set, allows controlling the TFTP timeout through the
1971 environment variable tftptimeout, and the TFTP maximum
1972 timeout count through the variable tftptimeoutcountmax.
1973 If unset, timeout and maximum are hard-defined as 1 second
1974 and 10 timouts per TFTP transfer.
1975
72a8cf8d
SG
1976config CMD_RARP
1977 bool "rarpboot"
1978 help
1979 Boot image via network using RARP/TFTP protocol
1980
72a8cf8d
SG
1981config CMD_NFS
1982 bool "nfs"
72a8cf8d
SG
1983 help
1984 Boot image via network using NFS protocol.
1985
eeda762a
TR
1986config NFS_TIMEOUT
1987 int "Timeout in milliseconds for NFS mounts"
1988 depends on CMD_NFS
1989 default 2000
1990 help
1991 Timeout in milliseconds used in NFS protocol. If you encounter
1992 "ERROR: Cannot umount" in nfs command, try longer timeout such as
1993 10000.
1994
bf904ea4
TR
1995config SYS_DISABLE_AUTOLOAD
1996 bool "Disable automatically loading files over the network"
1997 depends on CMD_BOOTP || CMD_DHCP || CMD_NFS || CMD_RARP
1998 help
1999 Typically, commands such as "dhcp" will attempt to automatically
2000 load a file from the network, once the initial network configuration
2001 is complete. Enable this option to disable this behavior and instead
2002 require files to be loaded over the network by subsequent commands.
2003
eeb0a2c6
VM
2004config CMD_PING6
2005 bool "ping6"
2006 depends on IPV6
2007 default y if (CMD_PING && IPV6)
2008 help
2009 Send ICMPv6 ECHO_REQUEST to network host
2010
72a8cf8d
SG
2011config CMD_CDP
2012 bool "cdp"
2013 help
2014 Perform CDP network configuration
2015
2016config CMD_SNTP
2017 bool "sntp"
912ece4c 2018 select PROT_UDP
72a8cf8d
SG
2019 help
2020 Synchronize RTC via network
2021
72a8cf8d
SG
2022config CMD_LINK_LOCAL
2023 bool "linklocal"
6f0dc0ca 2024 select LIB_RAND
72a8cf8d
SG
2025 help
2026 Acquire a network IP address using the link-local protocol
2027
4b290d4a
SMJ
2028config CMD_NCSI
2029 bool "ncsi"
2030 depends on PHY_NCSI
2031 help
2032 Manually configure the attached NIC via NC-SI.
2033 Normally this happens automatically before other network
2034 operations.
2035
6de98b60
EM
2036config IPV6_ROUTER_DISCOVERY
2037 bool "Do IPv6 router discovery"
2038 depends on IPV6
2039 help
2040 Will automatically perform router solicitation on first IPv6
2041 network operation
98ad145d 2042endif # if CMD_NET
92fa44d5 2043
ef072200
SG
2044config CMD_ETHSW
2045 bool "ethsw"
2046 help
2047 Allow control of L2 Ethernet switch commands. These are supported
2048 by the vsc9953 Ethernet driver at present. Sub-commands allow
2049 operations such as enabling / disabling a port and
2050 viewing/maintaining the filtering database (FDB)
2051
98ad145d
JF
2052config CMD_WOL
2053 bool "wol"
2054 help
2055 Wait for wake-on-lan Magic Packet
2056
2057endif # if NET
2058
2059if NET || NET_LWIP
2060
2061if CMD_NET
2062
2063config CMD_DHCP
2064 bool "dhcp"
2065 select PROT_DHCP_LWIP if NET_LWIP
2066 help
2067 Boot image via network using DHCP/TFTP protocol
2068
aedcfec9
JF
2069config CMD_DNS
2070 bool "dns"
2071 select PROT_DNS_LWIP if NET_LWIP
2072 help
2073 Lookup the IP of a hostname
2074
98ad145d
JF
2075config CMD_MII
2076 bool "mii"
2077 imply CMD_MDIO
2078 help
2079 If set, allows 802.3(clause 22) MII Management functions interface access
2080 The management interface specified in Clause 22 provides
2081 a simple, two signal, serial interface to connect a
2082 Station Management entity and a managed PHY for providing access
2083 to management parameters and services.
2084 The interface is referred to as the MII management interface.
2085
2086config MII_INIT
2087 bool "Call mii_init() in the mii command"
2088 depends on CMD_MII && (MPC8XX_FEC || FSLDMAFE || MCFFEC)
2089
2090config CMD_MDIO
2091 bool "mdio"
2092 depends on PHYLIB
2093 help
2094 If set, allows Enable 802.3(clause 45) MDIO interface registers access
2095 The MDIO interface is orthogonal to the MII interface and extends
2096 it by adding access to more registers through indirect addressing.
2097
7a5e00d5
JF
2098config CMD_PING
2099 bool "ping"
2100 select PROT_RAW_LWIP if NET_LWIP
2101 help
2102 Send ICMP ECHO_REQUEST to network host
2103
98ad145d
JF
2104config CMD_TFTPBOOT
2105 bool "tftp"
2106 select PROT_UDP_LWIP if NET_LWIP
4d4d7838 2107 default y
98ad145d
JF
2108 help
2109 tftpboot - load file via network using TFTP protocol
98ad145d 2110
3c656c92
JF
2111config CMD_WGET
2112 bool "wget"
2113 default y if SANDBOX
2114 select PROT_TCP if NET
2115 select PROT_TCP_LWIP if NET_LWIP
2116 select PROT_DNS_LWIP if NET_LWIP
2117 help
2118 wget is a simple command to download kernel, or other files,
2119 from a http server over TCP.
2120
98ad145d
JF
2121endif # if CMD_NET
2122
92fa44d5
JH
2123config CMD_PXE
2124 bool "pxe"
be43a35b 2125 select PXE_UTILS
1582e438 2126 imply CMD_TFTPBOOT
92fa44d5
JH
2127 help
2128 Boot image via network using PXE protocol
3b3ea2c5 2129
98ad145d 2130endif # if NET || NET_LWIP
72a8cf8d
SG
2131
2132menu "Misc commands"
2133
a554ee7e
SG
2134config CMD_2048
2135 bool "Play 2048"
2136 help
2137 This is a simple sliding block puzzle game designed by Italian web
2138 developer Gabriele Cirulli. The game's objective is to slide numbered
2139 tiles on a grid to combine them to create a tile with the number
2140 2048.
2141
2142 This needs ANSI support on your terminal to work. It is not fully
2143 functional on a video device.
2144
0f710258
SG
2145config CMD_BMP
2146 bool "Enable 'bmp' command"
b86986c7 2147 depends on VIDEO
373991d6 2148 select BMP
0f710258 2149 help
60a9aebd 2150 This provides a way to obtain information about a BMP-format image
0f710258
SG
2151 and to display it. BMP (which presumably stands for BitMaP) is a
2152 file format defined by Microsoft which supports images of various
2153 depths, formats and compression methods. Headers on the file
2154 determine the formats used. This command can be used by first loading
2155 the image into RAM, then using this command to look at it or display
2156 it.
2157
b11ed7d6
AK
2158config CMD_BOOTCOUNT
2159 bool "bootcount"
2160 depends on BOOTCOUNT_LIMIT
2161 help
2162 Enable the bootcount command, which allows interrogation and
2163 reset of the bootcounter.
2164
4893e34b
SG
2165config CMD_BSP
2166 bool "Enable board-specific commands"
2167 help
2168 (deprecated: instead, please define a Kconfig option for each command)
2169
2170 Some boards have board-specific commands which are only enabled
2171 during developemnt and need to be turned off for production. This
2172 option provides a way to control this. The commands that are enabled
2173 vary depending on the board.
2174
e40cf34a
EN
2175config CMD_BLOCK_CACHE
2176 bool "blkcache - control and stats for block cache"
2177 depends on BLOCK_CACHE
2178 default y if BLOCK_CACHE
2179 help
2180 Enable the blkcache command, which can be used to control the
2181 operation of the cache functions.
2182 This is most useful when fine-tuning the operation of the cache
2183 during development, but also allows the cache to be disabled when
2184 it might hurt performance (e.g. when using the ums command).
2185
bb56da11
TW
2186config CMD_BLKMAP
2187 bool "blkmap - Composable virtual block devices"
2188 depends on BLKMAP
2189 default y if BLKMAP
2190 help
2191 Create virtual block devices that are backed by various sources,
2192 e.g. RAM, or parts of an existing block device. Though much more
2193 rudimentary, it borrows a lot of ideas from Linux's device mapper
2194 subsystem.
2195
2196 Example use-cases:
2197 - Treat a region of RAM as a block device, i.e. a RAM disk. This let's
608a88c2
AM
2198 you extract files from filesystem images stored in RAM (perhaps as a
2199 result of a TFTP transfer).
bb56da11 2200 - Create a virtual partition on an existing device. This let's you
608a88c2
AM
2201 access filesystems that aren't stored at an exact partition
2202 boundary. A common example is a filesystem image embedded in an FIT
2203 image.
bb56da11 2204
325141a6
PR
2205config CMD_BUTTON
2206 bool "button"
2207 depends on BUTTON
2208 default y if BUTTON
2209 help
2210 Enable the 'button' command which allows to get the status of
2211 buttons supported by the board. The buttonss can be listed with
2212 'button list' and state can be known with 'button <label>'.
2213 Any button drivers can be controlled with this command, e.g.
2214 button_gpio.
2215
ab8243e4
DN
2216config CMD_CACHE
2217 bool "icache or dcache"
2218 help
2219 Enable the "icache" and "dcache" commands
2220
29cfc096
HS
2221config CMD_CONITRACE
2222 bool "conitrace - trace console input codes"
2223 help
2224 Enable the 'conitrace' command which displays the codes received
2225 from the console input as hexadecimal numbers.
2226
4e92e60d
AG
2227config CMD_CLS
2228 bool "Enable clear screen command 'cls'"
2fdc4c0c 2229 default y if LCD || VIDEO
4e92e60d
AG
2230 help
2231 Enable the 'cls' command which clears the screen contents
2232 on video frame buffer.
2233
59df7e7e
AT
2234config CMD_EFIDEBUG
2235 bool "efidebug - display/configure UEFI environment"
2236 depends on EFI_LOADER
64b5ba4d 2237 select EFI_DEVICE_PATH_TO_TEXT
59df7e7e
AT
2238 help
2239 Enable the 'efidebug' command which provides a subset of UEFI
2240 shell utility with simplified functionality. It will be useful
2241 particularly for managing boot parameters as well as examining
2242 various EFI status for debugging.
2243
87d79142
MK
2244config CMD_EFICONFIG
2245 bool "eficonfig - provide menu-driven uefi variables maintenance interface"
8925f0ee 2246 default y if !HAS_BOARD_SIZE_LIMIT
279b03d9 2247 depends on EFI_BOOTMGR
75d494df 2248 select MENU
87d79142
MK
2249 help
2250 Enable the 'eficonfig' command which provides the menu-driven UEFI
2251 variable maintenance interface.
2252
dab8788a
HS
2253config CMD_EXCEPTION
2254 bool "exception - raise exception"
3a5ec035 2255 depends on ARM || RISCV || SANDBOX || X86
dab8788a
HS
2256 help
2257 Enable the 'exception' command which allows to raise an exception.
2258
ffe2052d
SG
2259config CMD_LED
2260 bool "led"
2ab6e74d 2261 depends on LED
ffe2052d
SG
2262 default y if LED
2263 help
2264 Enable the 'led' command which allows for control of LEDs supported
2265 by the board. The LEDs can be listed with 'led list' and controlled
2266 with led on/off/togle/blink. Any LED drivers can be controlled with
2267 this command, e.g. led_gpio.
2268
e158c948
SG
2269config CMD_INI
2270 bool "ini"
2271 help
2272 Enable the 'ini' command which allows a .ini file to be parsed and
2273 placed into environment variables. Please check the source code for
2274 this as there is no documentation.
2275
c9032ce1
CP
2276config CMD_DATE
2277 bool "date"
2278 default y if DM_RTC
05429b6c 2279 select LIB_DATE
c9032ce1
CP
2280 help
2281 Enable the 'date' command for getting/setting the time/date in RTC
2282 devices.
2283
803a8598
RV
2284config CMD_RTC
2285 bool "rtc"
2286 depends on DM_RTC
2287 help
2288 Enable the 'rtc' command for low-level access to RTC devices.
2289
72a8cf8d
SG
2290config CMD_TIME
2291 bool "time"
2292 help
2293 Run commands and summarize execution time.
2294
d91a9d7f
SG
2295config CMD_GETTIME
2296 bool "gettime - read elapsed time"
2297 help
2298 Enable the 'gettime' command which reads the elapsed time since
2299 U-Boot started running. This shows the time in seconds and
2300 milliseconds. See also the 'bootstage' command which provides more
2301 flexibility for boot timing.
2302
dc0d17c2
SDR
2303config CMD_PAUSE
2304 bool "pause command"
2305 help
2306 Delay execution waiting for any user input.
2307 Useful to allow the user to read a failure log.
2308
4f24ac08
HS
2309config CMD_RNG
2310 bool "rng command"
2311 depends on DM_RNG
de70619d 2312 default y if SANDBOX
4f24ac08
HS
2313 select HEXDUMP
2314 help
2315 Print bytes from the hardware random number generator.
2316
fe3dde3e
CM
2317config CMD_KASLRSEED
2318 bool "kaslrseed"
2319 depends on DM_RNG
2320 help
2321 Set the kaslr-seed in the chosen node with entropy provided by a
2322 hardware random number generator.
2323
16060854 2324config CMD_SLEEP
72a8cf8d
SG
2325 bool "sleep"
2326 default y
2327 help
2328 Delay execution for some time
2329
480245cf
ARS
2330config CMD_MP
2331 bool "support for multiprocessor commands"
2332 depends on MP
2333 default y
0fd2290c 2334 help
480245cf
ARS
2335 This enables commands to bringup different processors
2336 in multiprocessor cases.
0fd2290c 2337
72a8cf8d
SG
2338config CMD_TIMER
2339 bool "timer"
2340 help
2341 Access the system timer.
2342
72a8cf8d
SG
2343config CMD_SOUND
2344 bool "sound"
2345 depends on SOUND
2346 help
2347 This provides basic access to the U-Boot's sound support. The main
2348 feature is to play a beep.
2349
2350 sound init - set up sound system
2351 sound play - play a sound
2352
993c912d
PC
2353config CMD_SYSBOOT
2354 bool "sysboot"
be43a35b 2355 select PXE_UTILS
993c912d
PC
2356 help
2357 Boot image via local extlinux.conf file
2358
18686590 2359config CMD_QFW
dd6f3abb 2360 bool "qfw"
fcf5c041 2361 select QFW
bfaa048d
TR
2362 default y if TARGET_QEMU_ARM_32BIT || TARGET_QEMU_ARM_64BIT || \
2363 TARGET_QEMU_X86 || TARGET_QEMU_X86_64
dd6f3abb
TR
2364 help
2365 This provides access to the QEMU firmware interface. The main
2366 feature is to allow easy loading of files passed to qemu-system
2367 via -kernel / -initrd
fa61ef6b 2368
9744d1a5
FD
2369config CMD_PSTORE
2370 bool "pstore"
2371 help
2372 This provides access to Linux PStore with Rammoops backend. The main
2373 feature is to allow to display or save PStore records.
2374
2375 See doc/pstore.rst for more information.
2376
2377if CMD_PSTORE
2378
2379config CMD_PSTORE_MEM_ADDR
2380 hex "Memory Address"
2381 depends on CMD_PSTORE
2382 help
2383 Base addr used for PStore ramoops memory, should be identical to
2384 ramoops.mem_address parameter used by kernel
2385
2386config CMD_PSTORE_MEM_SIZE
2387 hex "Memory size"
2388 depends on CMD_PSTORE
2389 default "0x10000"
2390 help
2391 Size of PStore ramoops memory, should be identical to ramoops.mem_size
2392 parameter used by kernel, a power of 2 and larger than the sum of the
2393 record sizes
2394
2395config CMD_PSTORE_RECORD_SIZE
2396 hex "Dump record size"
2397 depends on CMD_PSTORE
2398 default "0x1000"
2399 help
2400 Size of each dump done on oops/panic, should be identical to
2401 ramoops.record_size parameter used by kernel and a power of 2
2402 Must be non-zero
2403
2404config CMD_PSTORE_CONSOLE_SIZE
2405 hex "Kernel console log size"
2406 depends on CMD_PSTORE
2407 default "0x1000"
2408 help
2409 Size of kernel console log, should be identical to
2410 ramoops.console_size parameter used by kernel and a power of 2
2411 Must be non-zero
2412
2413config CMD_PSTORE_FTRACE_SIZE
2414 hex "FTrace log size"
2415 depends on CMD_PSTORE
2416 default "0x1000"
2417 help
2418 Size of ftrace log, should be identical to ramoops.ftrace_size
2419 parameter used by kernel and a power of 2
2420
2421config CMD_PSTORE_PMSG_SIZE
2422 hex "User space message log size"
2423 depends on CMD_PSTORE
2424 default "0x1000"
2425 help
2426 Size of user space message log, should be identical to
2427 ramoops.pmsg_size parameter used by kernel and a power of 2
2428
2429config CMD_PSTORE_ECC_SIZE
2430 int "ECC size"
2431 depends on CMD_PSTORE
2432 default "0"
2433 help
2434 if non-zero, the option enables ECC support and specifies ECC buffer
2435 size in bytes (1 is a special value, means 16 bytes ECC), should be
2436 identical to ramoops.ramoops_ecc parameter used by kernel
2437
2438endif
2439
fa61ef6b
KP
2440source "cmd/mvebu/Kconfig"
2441
3cef3b31
SG
2442config CMD_TERMINAL
2443 bool "terminal - provides a way to attach a serial terminal"
2444 help
2445 Provides a 'cu'-like serial terminal command. This can be used to
2446 access other serial ports from the system console. The terminal
2447 is very simple with no special processing of characters. As with
2448 cu, you can press ~. (tilde followed by period) to exit.
2449
1aa4e8d0
SG
2450config CMD_UUID
2451 bool "uuid, guid - generation of unique IDs"
a451bc27 2452 select LIB_UUID
1aa4e8d0
SG
2453 help
2454 This enables two commands:
2455
2456 uuid - generate random Universally Unique Identifier
2457 guid - generate Globally Unique Identifier based on random UUID
2458
2459 The two commands are very similar except for the endianness of the
2460 output.
2461
f029f90e
SG
2462config CMD_VIDCONSOLE
2463 bool "lcdputs and setcurs"
b86986c7 2464 depends on VIDEO
f029f90e
SG
2465 default y
2466 help
2467 Enabling this will provide 'setcurs' and 'lcdputs' commands which
2468 support cursor positioning and drawing strings on the video
2469 console (framebuffer).
2470
2471 The name 'lcdputs' is a bit of a misnomer, but so named because the
2472 video device is often an LCD.
2473
e7ee1fd5
DS
2474config CMD_SELECT_FONT
2475 bool "select font size"
2476 depends on VIDEO
d83f4e62 2477 default y if CONSOLE_TRUETYPE
e7ee1fd5
DS
2478 help
2479 Enabling this will provide 'font' command.
2480 Allows font selection at runtime.
2481
72a8cf8d
SG
2482endmenu
2483
5cd9661d
LV
2484source "cmd/ti/Kconfig"
2485
72a8cf8d
SG
2486config CMD_BOOTSTAGE
2487 bool "Enable the 'bootstage' command"
2488 depends on BOOTSTAGE
2489 help
2490 Add a 'bootstage' command which supports printing a report
2491 and un/stashing of bootstage data.
2492
2493menu "Power commands"
2494config CMD_PMIC
2495 bool "Enable Driver Model PMIC command"
2496 depends on DM_PMIC
2497 help
2498 This is the pmic command, based on a driver model pmic's API.
2499 Command features are unchanged:
2500 - list - list pmic devices
2501 - pmic dev <id> - show or [set] operating pmic device (NEW)
2502 - pmic dump - dump registers
2503 - pmic read address - read byte of register at address
2504 - pmic write address - write byte to register at address
2505 The only one change for this command is 'dev' subcommand.
2506
2507config CMD_REGULATOR
2508 bool "Enable Driver Model REGULATOR command"
2509 depends on DM_REGULATOR
2510 help
2511 This command is based on driver model regulator's API.
2512 User interface features:
2513 - list - list regulator devices
2514 - regulator dev <id> - show or [set] operating regulator device
2515 - regulator info - print constraints info
2516 - regulator status - print operating status
2517 - regulator value <val] <-f> - print/[set] voltage value [uV]
2518 - regulator current <val> - print/[set] current value [uA]
2519 - regulator mode <id> - print/[set] operating mode id
2520 - regulator enable - enable the regulator output
2521 - regulator disable - disable the regulator output
2522
2523 The '-f' (force) option can be used for set the value which exceeds
2524 the limits, which are found in device-tree and are kept in regulator's
caa4daa2 2525 uclass plat structure.
72a8cf8d
SG
2526
2527endmenu
2528
2529menu "Security commands"
b1a873df
SG
2530config CMD_AES
2531 bool "Enable the 'aes' command"
2532 select AES
2533 help
2534 This provides a means to encrypt and decrypt data using the AES
2535 (Advanced Encryption Standard). This algorithm uses a symetric key
2536 and is widely used as a streaming cipher. Different key lengths are
2537 supported by the algorithm but this command only supports 128 bits
2538 at present.
2539
c04b9b34
SG
2540config CMD_BLOB
2541 bool "Enable the 'blob' command"
2532429b
AS
2542 depends on !MX6ULL && !MX6SLL && !MX6SL
2543 select IMX_HAB if ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP || ARCH_IMX8M
c04b9b34
SG
2544 help
2545 This is used with the Freescale secure boot mechanism.
2546
2547 Freescale's SEC block has built-in Blob Protocol which provides
2548 a method for protecting user-defined data across system power
2549 cycles. SEC block protects data in a data structure called a Blob,
2550 which provides both confidentiality and integrity protection.
2551
2552 Encapsulating data as a blob
2553 Each time that the Blob Protocol is used to protect data, a
2554 different randomly generated key is used to encrypt the data.
2555 This random key is itself encrypted using a key which is derived
2556 from SoC's non-volatile secret key and a 16 bit Key identifier.
2557 The resulting encrypted key along with encrypted data is called a
2558 blob. The non-volatile secure key is available for use only during
2559 secure boot.
2560
2561 During decapsulation, the reverse process is performed to get back
2562 the original data.
2563
2564 Sub-commands:
6e7bdde4 2565 blob enc - encapsulating data as a cryptgraphic blob
c04b9b34
SG
2566 blob dec - decapsulating cryptgraphic blob to get the data
2567
2568 Syntax:
2569
2570 blob enc src dst len km
2571
2572 Encapsulate and create blob of data $len bytes long
2573 at address $src and store the result at address $dst.
2574 $km is the 16 byte key modifier is also required for
2575 generation/use as key for cryptographic operation. Key
2576 modifier should be 16 byte long.
2577
2578 blob dec src dst len km
2579
2580 Decapsulate the blob of data at address $src and
2581 store result of $len byte at addr $dst.
2582 $km is the 16 byte key modifier is also required for
2583 generation/use as key for cryptographic operation. Key
2584 modifier should be 16 byte long.
2585
551c3934
SG
2586config CMD_HASH
2587 bool "Support 'hash' command"
d70f919e 2588 select HASH
551c3934
SG
2589 help
2590 This provides a way to hash data in memory using various supported
2591 algorithms (such as SHA1, MD5, CRC32). The computed digest can be
2592 saved to memory or to an environment variable. It is also possible
2593 to verify a hash against data in memory.
2594
666028fc
MP
2595config CMD_HVC
2596 bool "Support the 'hvc' command"
2597 depends on ARM_SMCCC
2598 help
2599 Allows issuing Hypervisor Calls (HVCs). Mostly useful for
2600 development and testing.
2601
2602config CMD_SMC
2603 bool "Support the 'smc' command"
2604 depends on ARM_SMCCC
2605 help
2606 Allows issuing Secure Monitor Calls (SMCs). Mostly useful for
2607 development and testing.
2608
221a949e
DT
2609config HASH_VERIFY
2610 bool "hash -v"
2611 depends on CMD_HASH
2612 help
2613 Add -v option to verify data against a hash.
2614
26839e5d
JRO
2615config CMD_SCP03
2616 bool "scp03 - SCP03 enable and rotate/provision operations"
2617 depends on SCP03
2618 help
2619 This command provides access to a Trusted Application
2620 running in a TEE to request Secure Channel Protocol 03
2621 (SCP03) enablement and/or rotation of its SCP03 keys.
2622
9f9ce3c3
MR
2623config CMD_TPM_V1
2624 bool
2625
2626config CMD_TPM_V2
2627 bool
2628
72a8cf8d
SG
2629config CMD_TPM
2630 bool "Enable the 'tpm' command"
9f9ce3c3
MR
2631 depends on TPM_V1 || TPM_V2
2632 select CMD_TPM_V1 if TPM_V1
2633 select CMD_TPM_V2 if TPM_V2
72a8cf8d
SG
2634 help
2635 This provides a means to talk to a TPM from the command line. A wide
2636 range of commands if provided - see 'tpm help' for details. The
2637 command requires a suitable TPM on your board and the correct driver
2638 must be enabled.
2639
9f9ce3c3
MR
2640if CMD_TPM
2641
72a8cf8d
SG
2642config CMD_TPM_TEST
2643 bool "Enable the 'tpm test' command"
9f9ce3c3 2644 depends on TPM_V1
72a8cf8d 2645 help
9f9ce3c3
MR
2646 This provides a a series of tests to confirm that the TPMv1.x is
2647 working correctly. The tests cover initialisation, non-volatile RAM,
2648 extend, global lock and checking that timing is within expectations.
2649 The tests pass correctly on Infineon TPMs but may need to be adjusted
72a8cf8d
SG
2650 for other devices.
2651
9f9ce3c3
MR
2652endif
2653
72a8cf8d 2654endmenu
bfeba017
MF
2655
2656menu "Firmware commands"
2657config CMD_CROS_EC
2658 bool "Enable crosec command"
2659 depends on CROS_EC
2660 default y
2661 help
2662 Enable command-line access to the Chrome OS EC (Embedded
2663 Controller). This provides the 'crosec' command which has
2664 a number of sub-commands for performing EC tasks such as
2665 updating its flash, accessing a small saved context area
2666 and talking to the I2C bus behind the EC (if there is one).
8055f90b
AT
2667
2668config CMD_SCMI
2669 bool "Enable scmi command"
2670 depends on SCMI_FIRMWARE
8055f90b
AT
2671 help
2672 This command provides user interfaces to several SCMI (System
2673 Control and Management Interface) protocols available on Arm
2674 platforms to manage system resources.
bfeba017 2675endmenu
72a8cf8d 2676
ab8243e4 2677menu "Filesystem commands"
9d845509
MB
2678config CMD_BTRFS
2679 bool "Enable the 'btrsubvol' command"
2680 select FS_BTRFS
2681 help
2682 This enables the 'btrsubvol' command to list subvolumes
2683 of a BTRFS filesystem. There are no special commands for
2684 listing BTRFS directories or loading BTRFS files - this
2685 can be done by the generic 'fs' commands (see CMD_FS_GENERIC)
2686 when BTRFS is enabled (see FS_BTRFS).
2687
d66a10fc
SG
2688config CMD_CBFS
2689 bool "Enable the 'cbfs' command"
deb95999 2690 depends on FS_CBFS
d66a10fc
SG
2691 help
2692 Define this to enable support for reading from a Coreboot
2693 filesystem. This is a ROM-based filesystem used for accessing files
2694 on systems that use coreboot as the first boot-loader and then load
2695 U-Boot to actually boot the Operating System. Available commands are
2696 cbfsinit, cbfsinfo, cbfsls and cbfsload.
2697
97072747
SG
2698config CMD_CRAMFS
2699 bool "Enable the 'cramfs' command"
80e44cfe 2700 depends on FS_CRAMFS
97072747
SG
2701 help
2702 This provides commands for dealing with CRAMFS (Compressed ROM
2703 filesystem). CRAMFS is useful when space is tight since files are
2704 compressed. Two commands are provided:
2705
2706 cramfsls - lists files in a cramfs image
2707 cramfsload - loads a file from a cramfs image
2708
739941e1
HJ
2709config CMD_EROFS
2710 bool "EROFS command support"
2711 select FS_EROFS
2712 help
2713 Support for the EROFS fs
2714
ab8243e4
DN
2715config CMD_EXT2
2716 bool "ext2 command support"
3d22bae5 2717 select FS_EXT4
ab8243e4
DN
2718 help
2719 Enables EXT2 FS command
2720
2721config CMD_EXT4
2722 bool "ext4 command support"
3d22bae5 2723 select FS_EXT4
ab8243e4
DN
2724 help
2725 Enables EXT4 FS command
2726
2727config CMD_EXT4_WRITE
2728 depends on CMD_EXT4
2729 bool "ext4 write command support"
3d22bae5 2730 select EXT4_WRITE
ab8243e4
DN
2731 help
2732 Enables EXT4 FS write command
2733
2734config CMD_FAT
2735 bool "FAT command support"
eedfb89e 2736 select FS_FAT
ab8243e4
DN
2737 help
2738 Support for the FAT fs
2739
bba604b6
JMC
2740config CMD_SQUASHFS
2741 bool "SquashFS command support"
2742 select FS_SQUASHFS
2743 help
2744 Enables SquashFS filesystem commands (e.g. load, ls).
2745
ab8243e4
DN
2746config CMD_FS_GENERIC
2747 bool "filesystem commands"
2748 help
2749 Enables filesystem commands (e.g. load, ls) that work for multiple
2750 fs types.
0269dfae 2751
efbe99ce
JM
2752config CMD_FS_UUID
2753 bool "fsuuid command"
2754 help
2755 Enables fsuuid command for filesystem UUID.
2756
b8682a7f
SG
2757config CMD_JFFS2
2758 bool "jffs2 command"
59e12a4a 2759 select FS_JFFS2
b8682a7f
SG
2760 help
2761 Enables commands to support the JFFS2 (Journalling Flash File System
2762 version 2) filesystem. This enables fsload, ls and fsinfo which
2763 provide the ability to load files, list directories and obtain
2764 filesystem information.
2765
968c6210
TR
2766config JFFS2_DEV
2767 string "Default device for JFFS2"
2768 depends on CMD_JFFS2
2769 default "nor0"
2770 help
2771 The default device to use with the jffs2 command.
2772
2773config JFFS2_PART_OFFSET
2774 hex "Default offset within flash to locate the JFFS2 image"
2775 depends on CMD_JFFS2
2776 default 0x0
2777 help
2778 The default offset within flash to locate the JFFS2 image.
2779
2780config JFFS2_PART_SIZE
2781 hex "Default size of JFFS2 partition"
2782 depends on CMD_JFFS2
2783 default 0xFFFFFFFF
2784 help
2785 The default size of the JFFS2 partition
2786
0269dfae 2787config CMD_MTDPARTS
0269dfae 2788 bool "MTD partition support"
ff102c54 2789 depends on MTD
246c94f1 2790 select MTD_PARTITIONS
0269dfae 2791 help
938db6fe
MR
2792 MTD partitioning tool support.
2793 It is strongly encouraged to avoid using this command
2794 anymore along with 'sf', 'nand', 'onenand'. One can still
2795 declare the partitions in the mtdparts environment variable
2796 but better use the MTD stack and the 'mtd' command instead.
0269dfae 2797
cb70e6cb
SG
2798config CMD_MTDPARTS_SPREAD
2799 bool "Padd partition size to take account of bad blocks"
2800 depends on CMD_MTDPARTS
2801 help
2802 This enables the 'spread' sub-command of the mtdparts command.
2803 This command will modify the existing mtdparts variable by increasing
2804 the size of the partitions such that 1) each partition's net size is
2805 at least as large as the size specified in the mtdparts variable and
2806 2) each partition starts on a good block.
2807
672c5705
AD
2808config CMD_MTDPARTS_SHOW_NET_SIZES
2809 bool "Show net size (w/o bad blocks) of partitions"
2810 depends on CMD_MTDPARTS
2811 help
2812 Adds two columns to the printed partition table showing the
2813 effective usable size of a partition, if bad blocks are taken
2814 into account.
2815
587f4457
MR
2816config MTDIDS_DEFAULT
2817 string "Default MTD IDs"
ff102c54 2818 depends on MTD || SPI_FLASH
6762c8dd 2819 depends on !SYS_MTDPARTS_RUNTIME
587f4457
MR
2820 help
2821 Defines a default MTD IDs list for use with MTD partitions in the
2822 Linux MTD command line partitions format.
2823
2824config MTDPARTS_DEFAULT
2825 string "Default MTD partition scheme"
ff102c54 2826 depends on MTD || SPI_FLASH
6762c8dd 2827 depends on !SYS_MTDPARTS_RUNTIME
587f4457
MR
2828 help
2829 Defines a default MTD partitioning scheme in the Linux MTD command
2830 line partitions format
2831
7a764318
SG
2832config CMD_YAFFS2
2833 bool "yaffs2 - Access of YAFFS2 filesystem"
2834 depends on YAFFS2
2835 default y
2836 help
2837 This provides commands for accessing a YAFFS2 filesystem. Yet
2838 Another Flash Filesystem 2 is a filesystem designed specifically
2839 for NAND flash. It incorporates bad-block management and ensures
2840 that device writes are sequential regardless of filesystem
2841 activity.
2842
54feea17
SG
2843config CMD_ZFS
2844 bool "zfs - Access of ZFS filesystem"
2845 help
2846 This provides commands to accessing a ZFS filesystem, commonly used
2847 on Solaris systems. Two sub-commands are provided:
2848
2849 zfsls - list files in a directory
2850 zfsload - load a file
2851
2852 See doc/README.zfs for more details.
2853
ab8243e4
DN
2854endmenu
2855
ac20a1b2
SG
2856menu "Debug commands"
2857
71cebf0b
SG
2858config CMD_CBSYSINFO
2859 bool "cbsysinfo"
2860 depends on X86
2861 default y if SYS_COREBOOT
2862 help
2863 This provides information about the coreboot sysinfo table stored in
2864 memory by coreboot before jumping to U-Boot. It can be useful for
2865 debugging the beaaviour of coreboot or U-Boot.
2866
1f865ee0
SR
2867config CMD_CYCLIC
2868 bool "cyclic - Show information about cyclic functions"
2869 depends on CYCLIC
2870 default y
2871 help
2872 This enables the 'cyclic' command which provides information about
2873 cyclic execution functions. This infrastructure allows registering
2874 functions to be executed cyclically, e.g. every 100ms. These commands
2875 are supported:
2876
2877 cyclic list - list cyclic functions
2878 cyclic cyclic demo <cycletime_ms> <delay_us> - register cyclic
2879 demo function
2880
2881 See doc/develop/cyclic.rst for more details.
2882
3bd25cb5
SG
2883config CMD_DIAG
2884 bool "diag - Board diagnostics"
2885 help
2886 This command provides access to board diagnostic tests. These are
2887 called Power-on Self Tests (POST). The command allows listing of
2888 available tests and running either all the tests, or specific tests
2889 identified by name.
2890
c81b460c
SG
2891config CMD_EVENT
2892 bool "event - Show information about events"
448e2b63 2893 depends on EVENT
c81b460c
SG
2894 default y if EVENT_DEBUG
2895 help
2896 This enables the 'event' command which provides information about
2897 events and event-handler routines. This can help to device event
2898 hadling.
2899
1b330894
SG
2900config CMD_IRQ
2901 bool "irq - Show information about interrupts"
c5a7e5b3 2902 depends on !ARM && !MIPS && !RISCV && !SH
1b330894
SG
2903 help
2904 This enables two commands:
2905
2906 interrupts - enable or disable interrupts
2907 irqinfo - print device-specific interrupt information
6bac227a
SG
2908
2909config CMD_KGDB
2910 bool "kgdb - Allow debugging of U-Boot with gdb"
b9205506 2911 depends on PPC
6bac227a
SG
2912 help
2913 This enables a 'kgdb' command which allows gdb to connect to U-Boot
2914 over a serial link for debugging purposes. This allows
2915 single-stepping, inspecting variables, etc. This is supported only
2916 on PowerPC at present.
2917
d5f61f27
SG
2918config CMD_LOG
2919 bool "log - Generation, control and access to logging"
83a1f933 2920 select LOG
3e40976a 2921 select GETOPT
d5f61f27
SG
2922 help
2923 This provides access to logging features. It allows the output of
2924 log data to be controlled to a limited extent (setting up the default
ef11ed82
SG
2925 maximum log level for emitting of records). It also provides access
2926 to a command used for testing the log system.
d5f61f27 2927
ce058ae5
SG
2928config CMD_TRACE
2929 bool "trace - Support tracing of function calls and timing"
89050244
SG
2930 depends on TRACE
2931 default y
ce058ae5
SG
2932 help
2933 Enables a command to control using of function tracing within
2934 U-Boot. This allows recording of call traces including timing
2935 information. The command can write data to memory for exporting
6d9a851e
VS
2936 for analysis (e.g. using bootchart). See doc/develop/trace.rst
2937 for full details.
ce058ae5 2938
60b2f9e7
IO
2939config CMD_AVB
2940 bool "avb - Android Verified Boot 2.0 operations"
b0aa74a2 2941 depends on AVB_VERIFY
60b2f9e7
IO
2942 help
2943 Enables a "avb" command to perform verification of partitions using
2944 Android Verified Boot 2.0 functionality. It includes such subcommands:
2945 avb init - initialize avb2 subsystem
2946 avb read_rb - read rollback index
2947 avb write_rb - write rollback index
2948 avb is_unlocked - check device lock state
2949 avb get_uuid - read and print uuid of a partition
2950 avb read_part - read data from partition
2951 avb read_part_hex - read data from partition and output to stdout
2952 avb write_part - write data to partition
2953 avb verify - run full verification chain
4e9bce12
JP
2954
2955config CMD_STACKPROTECTOR_TEST
2956 bool "Test command for stack protector"
2957 depends on STACKPROTECTOR
2958 help
2959 Enable stackprot_test command
2960 The stackprot_test command will force a stack overrun to test
2961 the stack smashing detection mechanisms.
2962
ac20a1b2
SG
2963endmenu
2964
8f2fe0c8
HS
2965config CMD_UBI
2966 tristate "Enable UBI - Unsorted block images commands"
8f2fe0c8
HS
2967 select MTD_UBI
2968 help
2969 UBI is a software layer above MTD layer which admits use of LVM-like
2970 logical volumes on top of MTD devices, hides some complexities of
2971 flash chips like wear and bad blocks and provides some other useful
2972 capabilities. Please, consult the MTD web site for more details
2973 (www.linux-mtd.infradead.org). Activate this option if you want
2974 to use U-Boot UBI commands.
c58fb2cd
MR
2975 It is also strongly encouraged to also enable CONFIG_MTD to get full
2976 partition support.
8f2fe0c8 2977
83f7078b
PR
2978config CMD_UBI_RENAME
2979 bool "Enable rename"
2980 depends on CMD_UBI
83f7078b 2981 help
608a88c2 2982 Enable a "ubi" command to rename ubi volume:
83f7078b
PR
2983 ubi rename <oldname> <newname>
2984
173aafbf
BB
2985config CMD_UBIFS
2986 tristate "Enable UBIFS - Unsorted block images filesystem commands"
2bc734b1 2987 depends on CMD_UBI
5ed063d1 2988 default y if CMD_UBI
24fc9531 2989 select LZO
b257c4e9 2990 select GZIP
173aafbf
BB
2991 help
2992 UBIFS is a file system for flash devices which works on top of UBI.
2993
311106a1
AR
2994config CMD_MESON
2995 bool "Amlogic Meson commands"
2996 depends on ARCH_MESON
2997 default y
2998 help
2999 Enable useful commands for the Meson Soc family developed by Amlogic Inc.
88d9b261
SG
3000
3001endif
This page took 0.941965 seconds and 4 git commands to generate.