blob: 15715ac6ad31f1948ca8799fd838f4b264e9fe9d [file] [log] [blame]
Simon Glass88d9b262023-10-26 14:31:29 -04001menuconfig CMDLINE
2 bool "Command line interface"
Simon Glass302a6482016-03-13 19:07:28 -06003 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
Simon Glass88d9b262023-10-26 14:31:29 -040012if CMDLINE
13
Simon Glass72a8cf82016-01-17 20:53:51 -070014config HUSH_PARSER
15 bool "Use hush shell"
Simon Glass72a8cf82016-01-17 20:53:51 -070016 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
Francis Laniel30dcef82023-12-22 22:02:29 +010025menu "Hush flavor to use"
26depends on HUSH_PARSER
27
28config HUSH_OLD_PARSER
29 bool "Use hush old parser"
30 default y
31 help
32 This option enables the old flavor of hush based on hush Busybox from
33 2005.
34
35 It is actually the default U-Boot shell when decided to use hush as shell.
36endmenu
37
Adam Fordd021e942018-02-06 07:58:59 -060038config CMDLINE_EDITING
39 bool "Enable command line editing"
Adam Fordd021e942018-02-06 07:58:59 -060040 default y
41 help
42 Enable editing and History functions for interactive command line
43 input operations
44
Tom Rinidafcd962022-03-30 18:07:14 -040045config CMDLINE_PS_SUPPORT
46 bool "Enable support for changing the command prompt string at run-time"
47 depends on HUSH_PARSER
48 help
49 Only static string in the prompt is supported so far. The string is
50 obtained from environment variables PS1 and PS2.
51
Adam Fordd021e942018-02-06 07:58:59 -060052config AUTO_COMPLETE
53 bool "Enable auto complete using TAB"
Adam Fordd021e942018-02-06 07:58:59 -060054 default y
55 help
56 Enable auto completion of commands using TAB.
57
58config SYS_LONGHELP
59 bool "Enable long help messages"
Simon Glass88d9b262023-10-26 14:31:29 -040060 default y
Adam Fordd021e942018-02-06 07:58:59 -060061 help
62 Defined when you want long help messages included
63 Do not set this option when short of memory.
64
Simon Glass72a8cf82016-01-17 20:53:51 -070065config SYS_PROMPT
66 string "Shell prompt"
Michal Simeka91feae2019-09-25 12:32:41 +020067 default "Zynq> " if ARCH_ZYNQ
Michal Simek3c3886d2019-09-25 12:37:15 +020068 default "ZynqMP> " if ARCH_ZYNQMP
Simon Glass72a8cf82016-01-17 20:53:51 -070069 default "=> "
70 help
71 This string is displayed in the command line to the left of the
72 cursor.
73
Patrick Delaunay48aee0a2020-10-26 09:31:42 +010074config SYS_PROMPT_HUSH_PS2
75 string "Hush shell secondary prompt"
76 depends on HUSH_PARSER
77 default "> "
78 help
79 This defines the secondary prompt string, which is
80 printed when the command interpreter needs more input
81 to complete a command. Usually "> ".
82
Tom Rinicf493582022-05-11 16:21:06 -040083config SYS_MAXARGS
84 int "Maximum number arguments accepted by commands"
85 default 16
86
Christoph Muellner7ae31fc2019-04-05 13:03:46 +020087config SYS_XTRACE
Sean Andersonb935d192021-03-04 11:34:23 -050088 bool "Command execution tracer"
Simon Glass88d9b262023-10-26 14:31:29 -040089 default y
Christoph Muellner7ae31fc2019-04-05 13:03:46 +020090 help
91 This option enables the possiblity to print all commands before
92 executing them and after all variables are evaluated (similar
93 to Bash's xtrace/'set -x' feature).
94 To enable the tracer a variable "xtrace" needs to be defined in
95 the environment.
96
Sam Protsenko610eec72017-09-28 12:33:45 -070097config BUILD_BIN2C
98 bool
99
Simon Glass72a8cf82016-01-17 20:53:51 -0700100comment "Commands"
101
102menu "Info commands"
103
Simon Glass0b885bc2020-04-26 09:19:53 -0600104config CMD_ACPI
105 bool "acpi"
Simon Glass0992a902023-05-04 16:54:57 -0600106 depends on ACPI
Heinrich Schuchardt12218c12021-01-20 21:37:56 +0100107 default y
Simon Glass0b885bc2020-04-26 09:19:53 -0600108 help
109 List and dump ACPI tables. ACPI (Advanced Configuration and Power
110 Interface) is used mostly on x86 for providing information to the
111 Operating System about devices in the system. The tables are set up
112 by the firmware, typically U-Boot but possibly an earlier firmware
113 module, if U-Boot is chain-loaded from something else. ACPI tables
114 can also include code, to perform hardware-specific tasks required
115 by the Operating Systems. This allows some amount of separation
116 between the firmware and OS, and is particularly useful when you
117 want to make hardware changes without the OS needing to be adjusted.
118
Bin Meng56d06352021-02-25 17:22:34 +0800119config CMD_ADDRMAP
120 bool "addrmap"
121 depends on ADDR_MAP
122 default y
123 help
124 List non-identity virtual-physical memory mappings for 32-bit CPUs.
125
Simon Glass72a8cf82016-01-17 20:53:51 -0700126config CMD_BDI
127 bool "bdinfo"
128 default y
129 help
130 Print board info
131
Simon Glassb279f512023-07-15 21:38:46 -0600132config CMD_BDINFO_EXTRA
133 bool "bdinfo extra features"
134 default y if SANDBOX || X86
135 help
136 Show additional information about the board. This uses a little more
137 code space but provides more options, particularly those useful for
138 bringup, development and debugging.
139
Masahiro Yamada61304db2017-01-30 11:12:07 +0900140config CMD_CONFIG
141 bool "config"
Masahiro Yamada61304db2017-01-30 11:12:07 +0900142 default SANDBOX
Michal Simek5ed063d2018-07-23 15:55:13 +0200143 select BUILD_BIN2C
Masahiro Yamada61304db2017-01-30 11:12:07 +0900144 help
145 Print ".config" contents.
146
147 If this option is enabled, the ".config" file contents are embedded
148 in the U-Boot image and can be printed on the console by the "config"
149 command. This provides information of which options are enabled on
150 the running U-Boot.
151
Simon Glass72a8cf82016-01-17 20:53:51 -0700152config CMD_CONSOLE
153 bool "coninfo"
154 default y
155 help
156 Print console devices and information.
157
158config CMD_CPU
159 bool "cpu"
Heinrich Schuchardt622178d2020-11-05 00:29:11 +0100160 depends on CPU
Simon Glass72a8cf82016-01-17 20:53:51 -0700161 help
162 Print information about available CPUs. This normally shows the
163 number of CPUs, type (e.g. manufacturer, architecture, product or
164 internal name) and clock frequency. Other information may be
165 available depending on the CPU driver.
166
Sughosh Ganue68c03b2022-10-21 18:16:04 +0530167config CMD_FWU_METADATA
168 bool "fwu metadata read"
169 depends on FWU_MULTI_BANK_UPDATE
170 help
171 Command to read the metadata and dump it's contents
172
Simon Glass33eb0b92023-10-01 19:13:06 -0600173config CMD_HISTORY
174 bool "history"
175 depends on CMDLINE_EDITING
176 help
177 Show the command-line history, i.e. a list of commands that are in
178 the history buffer.
179
Simon Glass72a8cf82016-01-17 20:53:51 -0700180config CMD_LICENSE
181 bool "license"
Masahiro Yamadad726f222017-01-30 11:12:08 +0900182 select BUILD_BIN2C
Simon Glass72a8cf82016-01-17 20:53:51 -0700183 help
184 Print GPL license text
185
Simon Glass3b65ee32019-12-06 21:41:54 -0700186config CMD_PMC
187 bool "pmc"
188 help
189 Provides access to the Intel Power-Management Controller (PMC) so
190 that its state can be examined. This does not currently support
191 changing the state but it is still useful for debugging and seeing
192 what is going on.
193
Christophe Leroyfa379222017-08-04 16:34:40 -0600194config CMD_REGINFO
195 bool "reginfo"
196 depends on PPC
197 help
198 Register dump
199
Baruch Siach1c79f2f2020-01-21 15:44:54 +0200200config CMD_TLV_EEPROM
201 bool "tlv_eeprom"
202 depends on I2C_EEPROM
Pali Rohár56e3d6e2022-05-30 10:42:35 +0200203 select CRC32
Baruch Siach1c79f2f2020-01-21 15:44:54 +0200204 help
205 Display and program the system EEPROM data block in ONIE Tlvinfo
206 format. TLV stands for Type-Length-Value.
207
208config SPL_CMD_TLV_EEPROM
209 bool "tlv_eeprom for SPL"
210 depends on SPL_I2C_EEPROM
Simon Glass9ca00682021-07-10 21:14:31 -0600211 select SPL_DRIVERS_MISC
Pali Rohár56e3d6e2022-05-30 10:42:35 +0200212 select SPL_CRC32
Baruch Siach1c79f2f2020-01-21 15:44:54 +0200213 help
214 Read system EEPROM data block in ONIE Tlvinfo format from SPL.
215
Heinrich Schuchardtc92b50a2020-08-20 19:43:39 +0200216config CMD_SBI
217 bool "sbi"
218 depends on RISCV_SMODE && SBI_V02
219 help
220 Display information about the SBI implementation.
221
Simon Glass72a8cf82016-01-17 20:53:51 -0700222endmenu
223
224menu "Boot commands"
225
226config CMD_BOOTD
227 bool "bootd"
228 default y
229 help
230 Run the command stored in the environment "bootcmd", i.e.
231 "bootd" does the same thing as "run bootcmd".
232
233config CMD_BOOTM
234 bool "bootm"
235 default y
236 help
237 Boot an application image from the memory.
238
Philippe Reynes9d46e632022-03-28 22:57:00 +0200239config CMD_BOOTM_PRE_LOAD
240 bool "enable pre-load on bootm"
241 depends on CMD_BOOTM
242 depends on IMAGE_PRE_LOAD
Philippe Reynes9d46e632022-03-28 22:57:00 +0200243 help
244 Enable support of stage pre-load for the bootm command.
245 This stage allow to check or modify the image provided
246 to the bootm command.
247
Simon Glass5d053cc2022-04-24 23:31:10 -0600248config CMD_BOOTDEV
249 bool "bootdev"
250 depends on BOOTSTD
251 default y if BOOTSTD_FULL
252 help
253 Support listing available bootdevs (boot devices) which can provide an
254 OS to boot, as well as showing information about a particular one.
255
256 This command is not necessary for bootstd to work.
257
Simon Glass2d653f62022-04-24 23:31:11 -0600258config CMD_BOOTFLOW
259 bool "bootflow"
260 depends on BOOTSTD
261 default y
262 help
263 Support scanning for bootflows available with the bootdevs. The
264 bootflows can optionally be booted.
265
266config CMD_BOOTFLOW_FULL
267 bool "bootflow - extract subcommands"
268 depends on BOOTSTD_FULL
Simon Glassd8d40bc2023-05-06 08:27:09 -0600269 default y
Simon Glass2d653f62022-04-24 23:31:11 -0600270 help
271 Add the ability to list the available bootflows, select one and obtain
272 information about it.
273
274 This command is not necessary for bootstd to work.
275
Simon Glass7fca71d2022-04-24 23:31:12 -0600276config CMD_BOOTMETH
277 bool "bootmeth"
278 depends on BOOTSTD
279 default y if BOOTSTD_FULL
280 help
281 Support listing available bootmethds (methods used to boot an
282 Operating System), as well as selecting the order that the bootmeths
283 are used.
284
285 This command is not necessary for bootstd to work.
286
Cristian Ciocalteaecc7fda2019-12-24 18:05:39 +0200287config BOOTM_EFI
288 bool "Support booting UEFI FIT images"
AKASHI Takahiro7017fc52023-11-21 10:29:46 +0900289 depends on BOOTEFI_BOOTMGR && CMD_BOOTM && FIT
Cristian Ciocalteaecc7fda2019-12-24 18:05:39 +0200290 default y
291 help
292 Support booting UEFI FIT images via the bootm command.
293
Dinh Nguyenab8243e2016-04-21 09:05:23 -0500294config CMD_BOOTZ
295 bool "bootz"
296 help
297 Boot the Linux zImage
298
Masahiro Yamada26959272016-08-12 08:31:16 -0400299config CMD_BOOTI
300 bool "booti"
Simon Glass6b8f26b2023-10-01 19:15:24 -0600301 depends on ARM64 || RISCV || SANDBOX
Masahiro Yamada26959272016-08-12 08:31:16 -0400302 default y
303 help
304 Boot an AArch64 Linux Kernel image from memory.
305
Tom Rini4b0bcfa2019-09-20 17:36:50 -0400306config BOOTM_LINUX
307 bool "Support booting Linux OS images"
308 depends on CMD_BOOTM || CMD_BOOTZ || CMD_BOOTI
309 default y
310 help
311 Support booting the Linux kernel directly via a command such as bootm
312 or booti or bootz.
313
314config BOOTM_NETBSD
315 bool "Support booting NetBSD (non-EFI) loader images"
316 depends on CMD_BOOTM
317 default y
318 help
319 Support booting NetBSD via the bootm command.
320
321config BOOTM_OPENRTOS
322 bool "Support booting OPENRTOS / FreeRTOS images"
323 depends on CMD_BOOTM
324 help
325 Support booting OPENRTOS / FreeRTOS via the bootm command.
326
327config BOOTM_OSE
328 bool "Support booting Enea OSE images"
Tom Rini14a2dee2019-12-05 18:46:11 -0500329 depends on (ARM && (ARM64 || CPU_V7A || CPU_V7R) || SANDBOX || PPC || X86)
Tom Rini4b0bcfa2019-09-20 17:36:50 -0400330 depends on CMD_BOOTM
331 help
332 Support booting Enea OSE images via the bootm command.
333
334config BOOTM_PLAN9
335 bool "Support booting Plan9 OS images"
336 depends on CMD_BOOTM
337 default y
338 help
339 Support booting Plan9 images via the bootm command.
340
341config BOOTM_RTEMS
342 bool "Support booting RTEMS OS images"
343 depends on CMD_BOOTM
344 default y
345 help
346 Support booting RTEMS images via the bootm command.
347
Linus Walleij41a29f22023-02-01 00:16:13 +0100348config CMD_SEAMA
349 bool "Support read SEAMA NAND images"
350 depends on MTD_RAW_NAND
351 help
352 Support reading NAND Seattle Image (SEAMA) images.
353
Simon Glass5fe76d42022-07-30 15:52:37 -0600354config CMD_VBE
355 bool "vbe - Verified Boot for Embedded"
356 depends on BOOTMETH_VBE
Simon Glass2d742262022-08-23 10:14:05 -0700357 default y if BOOTSTD_FULL
Simon Glass5fe76d42022-07-30 15:52:37 -0600358 help
359 Provides various subcommands related to VBE, such as listing the
360 available methods, looking at the state and changing which method
361 is used to boot. Updating the parameters is not currently
362 supported.
363
Tom Rini4b0bcfa2019-09-20 17:36:50 -0400364config BOOTM_VXWORKS
365 bool "Support booting VxWorks OS images"
366 depends on CMD_BOOTM
367 default y
368 help
369 Support booting VxWorks images via the bootm command.
370
AKASHI Takahirofefff632019-11-08 10:32:15 +0900371config CMD_BOOTEFI
372 bool "bootefi"
373 depends on EFI_LOADER
374 default y
375 help
376 Boot an EFI image from memory.
377
AKASHI Takahiro296faf42023-11-21 10:29:40 +0900378if CMD_BOOTEFI
379config CMD_BOOTEFI_BINARY
380 bool "Allow booting an EFI binary directly"
381 depends on BOOTEFI_BOOTMGR
382 default y
383 help
384 Select this option to enable direct execution of binary at 'bootefi'.
385 This subcommand will allow you to load the UEFI binary using
386 other U-Boot commands or external methods and then run it.
387
Simon Glass422822c2023-10-26 14:31:20 -0400388config CMD_BOOTEFI_BOOTMGR
389 bool "UEFI Boot Manager command"
AKASHI Takahiro296faf42023-11-21 10:29:40 +0900390 depends on BOOTEFI_BOOTMGR
Simon Glass422822c2023-10-26 14:31:20 -0400391 default y
392 help
393 Select this option to enable the 'bootmgr' subcommand of 'bootefi'.
394 This subcommand will allow you to select the UEFI binary to be booted
395 via UEFI variables Boot####, BootOrder, and BootNext.
396
Alexander Graf95b62b22016-11-17 22:40:10 +0100397config CMD_BOOTEFI_HELLO_COMPILE
398 bool "Compile a standard EFI hello world binary for testing"
Alexander Graf95b62b22016-11-17 22:40:10 +0100399 default y
400 help
401 This compiles a standard EFI hello world application with U-Boot so
402 that it can be used with the test/py testing framework. This is useful
403 for testing that EFI is working at a basic level, and for bringing
404 up EFI support on a new architecture.
405
406 No additional space will be required in the resulting U-Boot binary
407 when this option is enabled.
408
Simon Glassc7ae3df2016-11-07 08:47:08 -0700409config CMD_BOOTEFI_HELLO
410 bool "Allow booting a standard EFI hello world for testing"
Alexander Graf95b62b22016-11-17 22:40:10 +0100411 depends on CMD_BOOTEFI_HELLO_COMPILE
Heinrich Schuchardtec5f0ed2020-07-13 07:33:40 +0200412 default y if CMD_BOOTEFI_SELFTEST
Simon Glassc7ae3df2016-11-07 08:47:08 -0700413 help
414 This adds a standard EFI hello world application to U-Boot so that
415 it can be used with the 'bootefi hello' command. This is useful
416 for testing that EFI is working at a basic level, and for bringing
417 up EFI support on a new architecture.
418
Heinrich Schuchardt623b3a52017-09-15 10:06:11 +0200419source lib/efi_selftest/Kconfig
AKASHI Takahiro296faf42023-11-21 10:29:40 +0900420endif
Heinrich Schuchardt623b3a52017-09-15 10:06:11 +0200421
Tom Rini4880b022016-11-29 09:14:56 -0500422config CMD_BOOTMENU
423 bool "bootmenu"
424 select MENU
Masahisa Kojimaa3d0aa82022-04-28 17:09:41 +0900425 select CHARSET
Tom Rini4880b022016-11-29 09:14:56 -0500426 help
427 Add an ANSI terminal boot menu command.
428
Eugeniu Roscab84acf12019-12-24 17:51:06 +0100429config CMD_ADTIMG
430 bool "adtimg"
Sam Protsenkod03e76a2018-08-16 23:34:13 +0300431 help
432 Android DTB/DTBO image manipulation commands. Read dtb/dtbo files from
433 image into RAM, dump image structure information, etc. Those dtb/dtbo
434 files should be merged in one dtb further, which needs to be passed to
435 the kernel, as part of a boot process.
436
Sam Protsenko94f6d0d2020-01-24 17:53:42 +0200437config CMD_ABOOTIMG
438 bool "abootimg"
439 depends on ANDROID_BOOT_IMAGE
440 help
441 Android Boot Image manipulation commands. Allows one to extract
442 images contained in boot.img, like kernel, ramdisk, dtb, etc, and
443 obtain corresponding meta-information from boot.img.
444
Sam Protsenko34b43192020-01-24 17:53:43 +0200445 See doc/android/boot-image.rst for details.
446
Simon Glassa0874dc2023-06-01 10:23:02 -0600447config CMD_CEDIT
448 bool "cedit - Configuration editor"
449 depends on CEDIT
450 default y
451 help
452 Provides a command to allow editing of board configuration and
453 providing a UI for the user to adjust settings. Subcommands allow
454 loading and saving of configuration as well as showing an editor.
455
Simon Glass72a8cf82016-01-17 20:53:51 -0700456config CMD_ELF
457 bool "bootelf, bootvx"
458 default y
Keerthy805b3ca2020-02-12 13:55:03 +0530459 select LIB_ELF
Simon Glass72a8cf82016-01-17 20:53:51 -0700460 help
461 Boot an ELF/vxWorks image from the memory.
462
Michal Simek23922e22016-04-06 20:28:04 +0200463config CMD_FDT
464 bool "Flattened Device Tree utility commands"
465 default y
466 depends on OF_LIBFDT
467 help
468 Do FDT related setup before booting into the Operating System.
469
Kory Maincent2f84e9c2021-05-04 19:31:22 +0200470config SUPPORT_EXTENSION_SCAN
471 bool
472
473config CMD_EXTENSION
474 bool "Extension board management command"
475 select CMD_FDT
476 depends on SUPPORT_EXTENSION_SCAN
477 help
478 Enables the "extension" command, which allows to detect
479 extension boards connected to the system, and apply
480 corresponding Device Tree overlays.
481
Simon Glass72a8cf82016-01-17 20:53:51 -0700482config CMD_GO
483 bool "go"
484 default y
485 help
486 Start an application at a given address.
487
488config CMD_RUN
489 bool "run"
490 default y
491 help
492 Run the command in the given environment variable.
493
494config CMD_IMI
495 bool "iminfo"
496 default y
497 help
498 Print header information for application image.
499
500config CMD_IMLS
501 bool "imls"
Simon Glass72a8cf82016-01-17 20:53:51 -0700502 help
503 List all images found in flash
504
505config CMD_XIMG
506 bool "imxtract"
507 default y
508 help
509 Extract a part of a multi-image.
510
Nikita Shubin05e8e242022-12-19 11:05:27 +0300511config SYS_XIMG_LEN
512 hex "imxtract max gunzip size"
513 default 0x800000
514 depends on CMD_XIMG && GZIP
515 help
516 This provides the size of the commad-line argument area
517 used by imxtract for extracting pieces of FIT image.
518 It should be large enough to fit uncompressed size of
519 FIT piece we are extracting.
520
Simon Glass72c30332017-08-04 16:34:48 -0600521config CMD_SPL
522 bool "spl export - Export boot information for Falcon boot"
523 depends on SPL
524 help
525 Falcon mode allows booting directly from SPL into an Operating
526 System such as Linux, thus skipping U-Boot proper. See
527 doc/README.falcon for full information about how to use this
528 command.
529
Simon Glass203dc1b2017-08-04 16:34:49 -0600530config CMD_SPL_NAND_OFS
Lukasz Majewskif63c43b2019-05-16 16:01:36 +0200531 hex "Offset of OS args or dtb for Falcon-mode NAND boot"
Lukasz Majewski7cb179e2019-05-16 16:01:35 +0200532 depends on CMD_SPL && (TPL_NAND_SUPPORT || SPL_NAND_SUPPORT)
Tom Rinia077ac12023-08-02 11:09:43 -0400533 default 0x0
Simon Glass203dc1b2017-08-04 16:34:49 -0600534 help
535 This provides the offset of the command line arguments for Linux
536 when booting from NAND in Falcon mode. See doc/README.falcon
537 for full information about how to use this option (and also see
538 board/gateworks/gw_ventana/README for an example).
539
Lukasz Majewskief9e57d2019-05-16 16:01:37 +0200540config CMD_SPL_NOR_OFS
541 hex "Offset of OS args or dtb for Falcon-mode NOR boot"
542 depends on CMD_SPL && SPL_NOR_SUPPORT
Tom Rinia077ac12023-08-02 11:09:43 -0400543 default 0x0
Lukasz Majewskief9e57d2019-05-16 16:01:37 +0200544 help
545 This provides the offset of the command line arguments or dtb for
546 Linux when booting from NOR in Falcon mode.
547
Simon Glass3a91a252017-08-04 16:34:50 -0600548config CMD_SPL_WRITE_SIZE
549 hex "Size of argument area"
550 depends on CMD_SPL
551 default 0x2000
552 help
553 This provides the size of the command-line argument area in NAND
554 flash used by Falcon-mode boot. See the documentation until CMD_SPL
555 for detail.
556
Simon Glass9b92a8d2017-08-04 16:34:57 -0600557config CMD_THOR_DOWNLOAD
558 bool "thor - TIZEN 'thor' download"
Marek Szyprowski909338c2019-10-02 12:29:08 +0200559 select DFU
Venkatesh Yadav Abbarapu16794d32023-09-04 08:45:27 +0530560 select USB_FUNCTION_THOR
561 depends on USB_GADGET_DOWNLOAD
Simon Glass9b92a8d2017-08-04 16:34:57 -0600562 help
563 Implements the 'thor' download protocol. This is a way of
564 downloading a software update over USB from an attached host.
565 There is no documentation about this within the U-Boot source code
566 but you should be able to find something on the interwebs.
567
Tom Rini60910a32022-12-02 16:42:46 -0500568config THOR_RESET_OFF
569 bool "thor: Disable reset on completion"
570 depends on CMD_THOR_DOWNLOAD
571
Simon Glasse7a815f2017-08-04 16:35:03 -0600572config CMD_ZBOOT
573 bool "zboot - x86 boot command"
574 help
575 With x86 machines it is common to boot a bzImage file which
576 contains both a kernel and a setup.bin file. The latter includes
577 configuration information from the dark ages which x86 boards still
578 need to pick things out of.
579
580 Consider using FIT in preference to this since it supports directly
581 booting both 32- and 64-bit kernels, as well as secure boot.
582 Documentation is available in doc/uImage.FIT/x86-fit-boot.txt
583
Simon Glass72a8cf82016-01-17 20:53:51 -0700584endmenu
585
586menu "Environment commands"
587
Dinh Nguyenab8243e2016-04-21 09:05:23 -0500588config CMD_ASKENV
589 bool "ask for env variable"
590 help
591 Ask for environment variable
592
Simon Glass72a8cf82016-01-17 20:53:51 -0700593config CMD_EXPORTENV
594 bool "env export"
595 default y
596 help
597 Export environments.
598
599config CMD_IMPORTENV
600 bool "env import"
601 default y
602 help
603 Import environments.
604
605config CMD_EDITENV
606 bool "editenv"
607 default y
608 help
609 Edit environment variable.
610
Dinh Nguyenab8243e2016-04-21 09:05:23 -0500611config CMD_GREPENV
612 bool "search env"
613 help
614 Allow for searching environment variables
615
Simon Glass72a8cf82016-01-17 20:53:51 -0700616config CMD_SAVEENV
617 bool "saveenv"
618 default y
619 help
620 Save all environment variables into the compiled-in persistent
621 storage.
622
Frank Wunderlichcd121bd2019-06-29 11:36:19 +0200623config CMD_ERASEENV
624 bool "eraseenv"
Frank Wunderlichcd121bd2019-06-29 11:36:19 +0200625 depends on CMD_SAVEENV
626 help
627 Erase environment variables from the compiled-in persistent
628 storage.
629
Simon Glass72a8cf82016-01-17 20:53:51 -0700630config CMD_ENV_EXISTS
631 bool "env exists"
632 default y
633 help
634 Check if a variable is defined in the environment for use in
635 shell scripting.
636
Simon Glassa55d29d2017-05-17 03:25:13 -0600637config CMD_ENV_CALLBACK
638 bool "env callbacks - print callbacks and their associated variables"
639 help
640 Some environment variable have callbacks defined by
641 U_BOOT_ENV_CALLBACK. These are called when the variable changes.
642 For example changing "baudrate" adjust the serial baud rate. This
643 command lists the currently defined callbacks.
644
Simon Glassffc76582017-05-17 03:25:14 -0600645config CMD_ENV_FLAGS
646 bool "env flags -print variables that have non-default flags"
647 help
648 Some environment variables have special flags that control their
649 behaviour. For example, serial# can only be written once and cannot
650 be deleted. This command shows the variables that have special
651 flags.
652
AKASHI Takahiro49d81fd2019-02-25 15:54:36 +0900653config CMD_NVEDIT_EFI
654 bool "env [set|print] -e - set/print UEFI variables"
655 depends on EFI_LOADER
AKASHI Takahiro49d81fd2019-02-25 15:54:36 +0900656 imply HEXDUMP
657 help
658 UEFI variables are encoded as some form of U-Boot variables.
659 If enabled, we are allowed to set/print UEFI variables using
660 "env" command with "-e" option without knowing details.
661
Samuel Dionne-Rielec57bd72021-12-20 18:31:56 -0500662config CMD_NVEDIT_INDIRECT
663 bool "env indirect - Sets environment value from another"
664
Leo Ruan8e921202019-05-24 17:20:19 +0200665config CMD_NVEDIT_INFO
666 bool "env info - print or evaluate environment information"
667 help
668 Print environment information:
669 - env_valid : is environment valid
670 - env_ready : is environment imported into hash table
671 - env_use_default : is default environment used
672
673 This command can be optionally used for evaluation in scripts:
674 [-d] : evaluate whether default environment is used
675 [-p] : evaluate whether environment can be persisted
Patrick Delaunay6718ebd2020-06-19 14:03:34 +0200676 [-q] : quiet output
Leo Ruan8e921202019-05-24 17:20:19 +0200677 The result of multiple evaluations will be combined with AND.
678
Patrick Delaunay0115dd32020-07-28 11:51:20 +0200679config CMD_NVEDIT_LOAD
680 bool "env load"
681 help
682 Load all environment variables from the compiled-in persistent
683 storage.
684
Patrick Delaunaya97d22e2020-07-28 11:51:21 +0200685config CMD_NVEDIT_SELECT
686 bool "env select"
687 help
688 Select the compiled-in persistent storage of environment variables.
689
Simon Glass72a8cf82016-01-17 20:53:51 -0700690endmenu
691
692menu "Memory commands"
693
Mario Six55b25562018-03-28 14:39:18 +0200694config CMD_BINOP
695 bool "binop"
696 help
697 Compute binary operations (xor, or, and) of byte arrays of arbitrary
698 size from memory and store the result in memory or the environment.
699
Simon Glass4aed2272020-09-19 18:49:26 -0600700config CMD_BLOBLIST
701 bool "bloblist"
702 default y if BLOBLIST
703 help
704 Show information about the bloblist, a collection of binary blobs
705 held in memory that persist between SPL and U-Boot. In the case of
706 x86 devices the bloblist can be used to hold ACPI tables so that they
707 remain available in memory.
708
Simon Glass72a8cf82016-01-17 20:53:51 -0700709config CMD_CRC32
710 bool "crc32"
711 default y
Michal Simek5ed063d2018-07-23 15:55:13 +0200712 select HASH
Simon Glass72a8cf82016-01-17 20:53:51 -0700713 help
714 Compute CRC32.
715
Daniel Thompson221a9492017-05-19 17:26:58 +0100716config CRC32_VERIFY
717 bool "crc32 -v"
718 depends on CMD_CRC32
719 help
720 Add -v option to verify data against a crc32 checksum.
721
Simon Glassa1dc9802017-05-17 03:25:10 -0600722config CMD_EEPROM
723 bool "eeprom - EEPROM subsystem"
724 help
725 (deprecated, needs conversion to driver model)
726 Provides commands to read and write EEPROM (Electrically Erasable
727 Programmable Read Only Memory) chips that are connected over an
728 I2C bus.
729
730config CMD_EEPROM_LAYOUT
731 bool "Enable layout-aware eeprom commands"
732 depends on CMD_EEPROM
733 help
734 (deprecated, needs conversion to driver model)
735 When enabled, additional eeprom sub-commands become available.
736
737 eeprom print - prints the contents of the eeprom in a human-readable
738 way (eeprom layout fields, and data formatted to be fit for human
739 consumption).
740
741 eeprom update - allows user to update eeprom fields by specifying
742 the field name, and providing the new data in a human readable format
743 (same format as displayed by the eeprom print command).
744
745 Both commands can either auto detect the layout, or be told which
746 layout to use.
747
748 Feature API:
749 __weak int parse_layout_version(char *str)
750 - override to provide your own layout name parsing
751 __weak void __eeprom_layout_assign(struct eeprom_layout *layout,
752 int layout_version);
753 - override to setup the layout metadata based on the version
754 __weak int eeprom_layout_detect(unsigned char *data)
755 - override to provide your own algorithm for detecting layout
756 version
757 eeprom_field.c
758 - contains various printing and updating functions for common
759 types of eeprom fields. Can be used for defining
760 custom layouts.
761
762config EEPROM_LAYOUT_HELP_STRING
763 string "Tells user what layout names are supported"
764 depends on CMD_EEPROM_LAYOUT
765 default "<not defined>"
766 help
767 Help printed with the LAYOUT VERSIONS part of the 'eeprom'
768 command's help.
769
Tom Rini88cd7d02021-08-17 17:59:45 -0400770config SYS_I2C_EEPROM_BUS
771 int "I2C bus of the EEPROM device."
772 depends on CMD_EEPROM
773 default 0
774
775config SYS_I2C_EEPROM_ADDR_LEN
776 int "Length in bytes of the EEPROM memory array address"
777 depends on CMD_EEPROM || ID_EEPROM
778 default 1
779 range 1 2
780 help
781 Note: This is NOT the chip address length!
782
783config SYS_EEPROM_SIZE
784 depends on CMD_EEPROM
785 int "Size in bytes of the EEPROM device"
786 default 256
787
788config SYS_EEPROM_PAGE_WRITE_BITS
789 int "Number of bits used to address bytes in a single page"
790 depends on CMD_EEPROM
791 default 8
792 help
793 The EEPROM page size is 2^SYS_EEPROM_PAGE_WRITE_BITS.
794 A 64 byte page, for example would require six bits.
795
796config SYS_EEPROM_PAGE_WRITE_DELAY_MS
797 int "Number of milliseconds to delay between page writes"
798 depends on CMD_EEPROM || CMD_I2C
799 default 0
800
Simon Glassba71be52017-08-04 16:34:51 -0600801config LOOPW
802 bool "loopw"
803 help
804 Infinite write loop on address range
805
Andre Przywarabea79d72017-03-15 01:19:05 +0000806config CMD_MD5SUM
807 bool "md5sum"
Andre Przywarabea79d72017-03-15 01:19:05 +0000808 select MD5
809 help
810 Compute MD5 checksum.
811
Daniel Thompson221a9492017-05-19 17:26:58 +0100812config MD5SUM_VERIFY
Andre Przywarabea79d72017-03-15 01:19:05 +0000813 bool "md5sum -v"
Andre Przywarabea79d72017-03-15 01:19:05 +0000814 depends on CMD_MD5SUM
815 help
816 Add -v option to verify data against an MD5 checksum.
817
Simon Glassba71be52017-08-04 16:34:51 -0600818config CMD_MEMINFO
819 bool "meminfo"
Daniel Thompson221a9492017-05-19 17:26:58 +0100820 help
Simon Glassba71be52017-08-04 16:34:51 -0600821 Display memory information.
Daniel Thompson221a9492017-05-19 17:26:58 +0100822
Simon Glassba71be52017-08-04 16:34:51 -0600823config CMD_MEMORY
824 bool "md, mm, nm, mw, cp, cmp, base, loop"
825 default y
Daniel Thompson221a9492017-05-19 17:26:58 +0100826 help
Simon Glassba71be52017-08-04 16:34:51 -0600827 Memory commands.
828 md - memory display
829 mm - memory modify (auto-incrementing address)
830 nm - memory modify (constant address)
831 mw - memory write (fill)
832 cp - memory copy
833 cmp - memory compare
834 base - print or set address offset
835 loop - initialize loop on address range
Simon Glass72a8cf82016-01-17 20:53:51 -0700836
Simon Glass550a9e72020-07-28 19:41:14 -0600837config CMD_MEM_SEARCH
Simon Glassbdded202020-06-02 19:26:49 -0600838 bool "ms - Memory search"
839 help
840 Memory-search command
841
842 This allows searching through a region of memory looking for hex
843 data (byte, 16-bit word, 32-bit long, also 64-bit on machines that
844 support it). It is also possible to search for a string. The
845 command accepts a memory range and a list of values to search for.
846 The values need to appear in memory in the same order they are given
847 in the command. At most 10 matches can be returned at a time, but
848 pressing return will show the next 10 matches. Environment variables
849 are set for use with scripting (memmatches, memaddr, mempos).
850
Joel Johnson72732312020-01-29 09:17:18 -0700851config CMD_MX_CYCLIC
Adam Ford78f28772019-08-14 07:54:34 -0500852 bool "Enable cyclic md/mw commands"
853 depends on CMD_MEMORY
854 help
855 Add the "mdc" and "mwc" memory commands. These are cyclic
856 "md/mw" commands.
857 Examples:
858
859 => mdc.b 10 4 500
860 This command will print 4 bytes (10,11,12,13) each 500 ms.
861
862 => mwc.l 100 12345678 10
863 This command will write 12345678 to address 100 all 10 ms.
864
Jean-Jacques Hiblot803e1a32019-07-02 14:23:26 +0200865config CMD_RANDOM
866 bool "random"
867 default y
868 depends on CMD_MEMORY && (LIB_RAND || LIB_HW_RAND)
869 help
870 random - fill memory with random data
871
Simon Glass72a8cf82016-01-17 20:53:51 -0700872config CMD_MEMTEST
873 bool "memtest"
874 help
875 Simple RAM read/write test.
876
Mario Sixe89f8aa2018-03-28 14:38:14 +0200877if CMD_MEMTEST
878
879config SYS_ALT_MEMTEST
880 bool "Alternative test"
881 help
882 Use a more complete alternative memory test.
883
Ralph Siemsen9989fb12020-09-09 12:10:00 -0400884if SYS_ALT_MEMTEST
885
886config SYS_ALT_MEMTEST_BITFLIP
887 bool "Bitflip test"
888 default y
889 help
890 The alternative memory test includes bitflip test since 2020.07.
891 The bitflip test significantly increases the overall test time.
892 Bitflip test can optionally be disabled here.
893
894endif
895
Ashok Reddy Soma702de892020-05-04 15:26:21 +0200896config SYS_MEMTEST_START
897 hex "default start address for mtest"
Tom Riniff27af12021-12-12 22:12:29 -0500898 default 0x0
Ashok Reddy Soma702de892020-05-04 15:26:21 +0200899 help
900 This is the default start address for mtest for simple read/write
901 test. If no arguments are given to mtest, default address is used
902 as start address.
903
904config SYS_MEMTEST_END
905 hex "default end address for mtest"
906 default 0x1000
907 help
908 This is the default end address for mtest for simple read/write
909 test. If no arguments are given to mtest, default address is used
910 as end address.
911
Mario Sixe89f8aa2018-03-28 14:38:14 +0200912endif
913
Simon Glassba71be52017-08-04 16:34:51 -0600914config CMD_SHA1SUM
915 bool "sha1sum"
916 select SHA1
Simon Glass72a8cf82016-01-17 20:53:51 -0700917 help
Simon Glassba71be52017-08-04 16:34:51 -0600918 Compute SHA1 checksum.
919
920config SHA1SUM_VERIFY
921 bool "sha1sum -v"
922 depends on CMD_SHA1SUM
923 help
924 Add -v option to verify data against a SHA1 checksum.
Simon Glass72a8cf82016-01-17 20:53:51 -0700925
Simon Glass00805d72017-08-04 16:34:52 -0600926config CMD_STRINGS
927 bool "strings - display strings in memory"
928 help
929 This works similarly to the Unix 'strings' command except that it
930 works with a memory range. String of printable characters found
931 within the range are displayed. The minimum number of characters
932 for a sequence to be considered a string can be provided.
933
Simon Glassee7c0e72017-05-17 03:25:43 -0600934endmenu
935
936menu "Compression commands"
937
938config CMD_LZMADEC
939 bool "lzmadec"
Tom Rini99e46df2017-09-29 14:32:44 -0400940 default y if CMD_BOOTI
Simon Glassee7c0e72017-05-17 03:25:43 -0600941 select LZMA
942 help
943 Support decompressing an LZMA (Lempel-Ziv-Markov chain algorithm)
944 image from memory.
945
Yusuke Ashidukaa1732232020-02-20 20:48:01 +0900946config CMD_UNLZ4
947 bool "unlz4"
948 default y if CMD_BOOTI
949 select LZ4
950 help
951 Support decompressing an LZ4 image from memory region.
952
Masahiro Yamadae9d33e72017-02-05 10:42:56 +0900953config CMD_UNZIP
954 bool "unzip"
Tom Rini99e46df2017-09-29 14:32:44 -0400955 default y if CMD_BOOTI
Michael Walle56c311b2020-05-22 14:07:35 +0200956 select GZIP
Masahiro Yamadae9d33e72017-02-05 10:42:56 +0900957 help
958 Uncompress a zip-compressed memory region.
959
960config CMD_ZIP
961 bool "zip"
Michael Walleeff5a542020-05-22 14:07:36 +0200962 select GZIP_COMPRESSED
Masahiro Yamadae9d33e72017-02-05 10:42:56 +0900963 help
964 Compress a memory region with zlib deflate method.
965
Simon Glass72a8cf82016-01-17 20:53:51 -0700966endmenu
967
968menu "Device access commands"
969
Abdellatif El Khlifif16a48f2023-08-04 14:33:43 +0100970config CMD_ARMFFA
971 bool "Arm FF-A test command"
972 depends on ARM_FFA_TRANSPORT
973 help
974 Provides a test command for the FF-A support
975 supported options:
976 - Listing the partition(s) info
977 - Sending a data pattern to the specified partition
978 - Displaying the arm_ffa device info
979
Simon Glass0c19b4d2017-08-04 16:34:28 -0600980config CMD_ARMFLASH
981 #depends on FLASH_CFI_DRIVER
982 bool "armflash"
983 help
984 ARM Ltd reference designs flash partition access
985
Neil Armstrong051ebe32018-04-27 15:17:57 +0200986config CMD_ADC
987 bool "adc - Access Analog to Digital Converters info and data"
988 select ADC
Michal Simek6e741cf2020-08-19 10:44:17 +0200989 depends on DM_REGULATOR
Neil Armstrong051ebe32018-04-27 15:17:57 +0200990 help
991 Shows ADC device info and permit printing one-shot analog converted
992 data from a named Analog to Digital Converter.
993
Eugeniu Roscadb7b7a02019-05-23 17:32:22 +0200994config CMD_BCB
995 bool "bcb"
Eugeniu Roscadb7b7a02019-05-23 17:32:22 +0200996 depends on PARTITIONS
997 help
998 Read/modify/write the fields of Bootloader Control Block, usually
999 stored on the flash "misc" partition with its structure defined in:
1000 https://android.googlesource.com/platform/bootable/recovery/+/master/
1001 bootloader_message/include/bootloader_message/bootloader_message.h
1002
1003 Some real-life use-cases include (but are not limited to):
1004 - Determine the "boot reason" (and act accordingly):
1005 https://source.android.com/devices/bootloader/boot-reason
1006 - Get/pass a list of commands from/to recovery:
1007 https://android.googlesource.com/platform/bootable/recovery
1008 - Inspect/dump the contents of the BCB fields
1009
Jean-Jacques Hiblot49c752c2018-08-09 16:17:46 +02001010config CMD_BIND
1011 bool "bind/unbind - Bind or unbind a device to/from a driver"
1012 depends on DM
Miquel Raynal249a75d2023-10-10 11:03:03 +02001013 imply CMD_DM
Jean-Jacques Hiblot49c752c2018-08-09 16:17:46 +02001014 help
1015 Bind or unbind a device to/from a driver from the command line.
1016 This is useful in situations where a device may be handled by several
1017 drivers. For example, this can be used to bind a UDC to the usb ether
1018 gadget driver from the command line.
1019
Simon Glassd3156282017-04-26 22:28:02 -06001020config CMD_CLK
1021 bool "clk - Show clock frequencies"
1022 help
1023 (deprecated)
1024 Shows clock frequences by calling a sock_clk_dump() hook function.
1025 This is depreated in favour of using the CLK uclass and accessing
1026 clock values from associated drivers. However currently no command
1027 exists for this.
1028
Simon Glass72a8cf82016-01-17 20:53:51 -07001029config CMD_DEMO
1030 bool "demo - Demonstration commands for driver model"
1031 depends on DM
1032 help
1033 Provides a 'demo' command which can be used to play around with
1034 driver model. To use this properly you will need to enable one or
1035 both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
1036 Otherwise you will always get an empty list of devices. The demo
1037 devices are defined in the sandbox device tree, so the easiest
1038 option is to use sandbox and pass the -d point to sandbox's
1039 u-boot.dtb file.
1040
Simon Glass0c19b4d2017-08-04 16:34:28 -06001041config CMD_DFU
1042 bool "dfu"
Marek Vasut0f44d332018-02-16 16:41:17 +01001043 select DFU
Simon Glass0c19b4d2017-08-04 16:34:28 -06001044 help
1045 Enables the command "dfu" which is used to have U-Boot create a DFU
Simon Glass00fd59d2017-08-04 16:35:06 -06001046 class device via USB. This command requires that the "dfu_alt_info"
1047 environment variable be set and define the alt settings to expose to
1048 the host.
Simon Glass0c19b4d2017-08-04 16:34:28 -06001049
1050config CMD_DM
1051 bool "dm - Access to driver model information"
1052 depends on DM
Simon Glass0c19b4d2017-08-04 16:34:28 -06001053 help
1054 Provides access to driver model data structures and information,
1055 such as a list of devices, list of uclasses and the state of each
1056 device (e.g. activated). This is not required for operation, but
1057 can be useful to see the state of driver model for debugging or
1058 interest.
1059
Alex Kiernan312a10f2018-05-29 15:30:39 +00001060config CMD_FASTBOOT
1061 bool "fastboot - Android fastboot support"
1062 depends on FASTBOOT
1063 help
1064 This enables the command "fastboot" which enables the Android
1065 fastboot mode for the platform. Fastboot is a protocol for
1066 downloading images, flashing and device control used on
Alex Kiernanf73a7df2018-05-29 15:30:53 +00001067 Android devices. Fastboot requires either the network stack
1068 enabled or support for acting as a USB device.
Alex Kiernan312a10f2018-05-29 15:30:39 +00001069
Sam Protsenko586a1bf2020-01-24 17:53:44 +02001070 See doc/android/fastboot.rst for more information.
Alex Kiernan312a10f2018-05-29 15:30:39 +00001071
Simon Glass0c19b4d2017-08-04 16:34:28 -06001072config CMD_FLASH
1073 bool "flinfo, erase, protect"
1074 default y
Miquel Raynalff102c52019-10-25 19:39:30 +02001075 depends on MTD || FLASH_CFI_DRIVER || MTD_NOR_FLASH
Simon Glass0c19b4d2017-08-04 16:34:28 -06001076 help
1077 NOR flash support.
1078 flinfo - print FLASH memory information
1079 erase - FLASH memory
1080 protect - enable or disable FLASH write protection
1081
1082config CMD_FPGA
1083 bool "fpga"
Tuomas Tynkkynena4fa8112018-01-27 20:28:40 +02001084 depends on FPGA
Simon Glass0c19b4d2017-08-04 16:34:28 -06001085 default y
1086 help
1087 FPGA support.
1088
1089config CMD_FPGA_LOADBP
1090 bool "fpga loadbp - load partial bitstream (Xilinx only)"
1091 depends on CMD_FPGA
1092 help
1093 Supports loading an FPGA device from a bitstream buffer containing
1094 a partial bitstream.
1095
1096config CMD_FPGA_LOADFS
1097 bool "fpga loadfs - load bitstream from FAT filesystem (Xilinx only)"
1098 depends on CMD_FPGA
1099 help
1100 Supports loading an FPGA device from a FAT filesystem.
1101
1102config CMD_FPGA_LOADMK
1103 bool "fpga loadmk - load bitstream from image"
1104 depends on CMD_FPGA
1105 help
1106 Supports loading an FPGA device from a image generated by mkimage.
1107
1108config CMD_FPGA_LOADP
1109 bool "fpga loadp - load partial bitstream"
1110 depends on CMD_FPGA
1111 help
1112 Supports loading an FPGA device from a bitstream buffer containing
1113 a partial bitstream.
1114
Siva Durga Prasad Paladugucedd48e2018-05-31 15:10:22 +05301115config CMD_FPGA_LOAD_SECURE
Oleksandr Suvorovfb2b8852022-07-22 17:16:02 +03001116 bool "fpga loads - loads secure bitstreams"
Siva Durga Prasad Paladugucedd48e2018-05-31 15:10:22 +05301117 depends on CMD_FPGA
Oleksandr Suvorovfb2b8852022-07-22 17:16:02 +03001118 select FPGA_LOAD_SECURE
Siva Durga Prasad Paladugucedd48e2018-05-31 15:10:22 +05301119 help
1120 Enables the fpga loads command which is used to load secure
1121 (authenticated or encrypted or both) bitstreams on to FPGA.
1122
Simon Glass0c19b4d2017-08-04 16:34:28 -06001123config CMD_FPGAD
1124 bool "fpgad - dump FPGA registers"
1125 help
1126 (legacy, needs conversion to driver model)
1127 Provides a way to dump FPGA registers by calling the board-specific
1128 fpga_get_reg() function. This functions similarly to the 'md'
1129 command.
1130
1131config CMD_FUSE
1132 bool "fuse - support for the fuse subssystem"
1133 help
1134 (deprecated - needs conversion to driver model)
1135 This allows reading, sensing, programming or overriding fuses
1136 which control the behaviour of the device. The command uses the
1137 fuse_...() API.
1138
1139config CMD_GPIO
1140 bool "gpio"
1141 help
1142 GPIO support.
1143
Diego Rondinidd2b8c12022-04-11 12:02:09 +02001144config CMD_GPIO_READ
1145 bool "gpio read - save GPIO value to variable"
1146 depends on CMD_GPIO
1147 help
1148 Enables the 'gpio read' command that saves the value
1149 of a GPIO pin to a variable.
1150
Pragnesh Patel9e9a5302020-12-22 11:30:05 +05301151config CMD_PWM
1152 bool "pwm"
1153 depends on DM_PWM
1154 help
1155 Control PWM channels, this allows invert/config/enable/disable PWM channels.
1156
Simon Glass0c19b4d2017-08-04 16:34:28 -06001157config CMD_GPT
1158 bool "GPT (GUID Partition Table) command"
Simon Glass0c19b4d2017-08-04 16:34:28 -06001159 select EFI_PARTITION
Michal Simek5ed063d2018-07-23 15:55:13 +02001160 select PARTITION_UUIDS
Maxime Ripard47738ac2017-08-24 11:52:32 +02001161 imply RANDOM_UUID
Simon Glass0c19b4d2017-08-04 16:34:28 -06001162 help
1163 Enable the 'gpt' command to ready and write GPT style partition
1164 tables.
1165
1166config CMD_GPT_RENAME
1167 bool "GPT partition renaming commands"
1168 depends on CMD_GPT
1169 help
1170 Enables the 'gpt' command to interchange names on two GPT
1171 partitions via the 'gpt swap' command or to rename single
1172 partitions via the 'rename' command.
1173
Simon Glass75eb9972017-05-17 03:25:29 -06001174config CMD_IDE
1175 bool "ide - Support for IDE drivers"
Simon Glassfc843a02017-05-17 03:25:30 -06001176 select IDE
Simon Glass75eb9972017-05-17 03:25:29 -06001177 help
1178 Provides an 'ide' command which allows accessing the IDE drive,
Vagrant Cascadian1107b062021-12-21 13:06:56 -08001179 resetting the IDE interface, printing the partition table and
Simon Glass75eb9972017-05-17 03:25:29 -06001180 geting device info. It also enables the 'diskboot' command which
1181 permits booting from an IDE drive.
1182
Simon Glass594e8d12017-05-17 03:25:34 -06001183config CMD_IO
1184 bool "io - Support for performing I/O accesses"
1185 help
1186 Provides an 'iod' command to display I/O space and an 'iow' command
1187 to write values to the I/O space. This can be useful for manually
1188 checking the state of devices during boot when debugging device
1189 drivers, etc.
1190
Simon Glass7d0f5c12017-05-17 03:25:36 -06001191config CMD_IOTRACE
1192 bool "iotrace - Support for tracing I/O activity"
1193 help
1194 Provides an 'iotrace' command which supports recording I/O reads and
1195 writes in a trace buffer in memory . It also maintains a checksum
1196 of the trace records (even if space is exhausted) so that the
1197 sequence of I/O accesses can be verified.
1198
1199 When debugging drivers it is useful to see what I/O accesses were
1200 done and in what order.
1201
1202 Even if the individual accesses are of little interest it can be
1203 useful to verify that the access pattern is consistent each time
1204 an operation is performed. In this case a checksum can be used to
1205 characterise the operation of a driver. The checksum can be compared
1206 across different runs of the operation to verify that the driver is
1207 working properly.
1208
1209 In particular, when performing major refactoring of the driver, where
1210 the access pattern should not change, the checksum provides assurance
1211 that the refactoring work has not broken the driver.
1212
1213 This works by sneaking into the io.h heder for an architecture and
1214 redirecting I/O accesses through iotrace's tracing mechanism.
1215
1216 For now no commands are provided to examine the trace buffer. The
1217 format is fairly simple, so 'md' is a reasonable substitute.
1218
1219 Note: The checksum feature is only useful for I/O regions where the
1220 contents do not change outside of software control. Where this is not
1221 suitable you can fall back to manually comparing the addresses. It
1222 might be useful to enhance tracing to only checksum the accesses and
1223 not the data read/written.
1224
Simon Glass0c19b4d2017-08-04 16:34:28 -06001225config CMD_I2C
1226 bool "i2c"
1227 help
1228 I2C support.
1229
Eugen Hristevd05266f2018-09-18 10:35:33 +03001230config CMD_W1
1231 depends on W1
1232 default y if W1
1233 bool "w1 - Support for Dallas 1-Wire protocol"
1234 help
1235 Dallas 1-wire protocol support
1236
Simon Glass72a8cf82016-01-17 20:53:51 -07001237config CMD_LOADB
1238 bool "loadb"
1239 default y
1240 help
1241 Load a binary file over serial line.
1242
Rui Miguel Silvabfef72e2022-05-11 10:55:40 +01001243config CMD_LOADM
1244 bool "loadm"
1245 help
1246 Load a binary over memory mapped.
1247
Simon Glass72a8cf82016-01-17 20:53:51 -07001248config CMD_LOADS
Tom Rini2c8d04d2022-10-28 20:27:02 -04001249 bool "loads - Load a file over serial in S-Record format"
Simon Glass72a8cf82016-01-17 20:53:51 -07001250 default y
1251 help
1252 Load an S-Record file over serial line
1253
Tom Rini2c8d04d2022-10-28 20:27:02 -04001254config LOADS_ECHO
1255 bool "Echo all characters received during a loads back to console"
1256 depends on CMD_LOADS
1257 help
1258 If enabled, all characters received during a serial download (using
1259 the "loads" command) are echoed back. This might be needed by some
1260 terminal emulations (like "cu"), but may as well just take time on
1261 others. This sets the initial value of the "loads_echo" environment
1262 variable to 1.
1263
1264config CMD_SAVES
1265 bool "saves - Save a file over serial in S-Record format"
Ying Sunaadc1a62023-06-25 16:24:47 +08001266 depends on CMD_LOADS
Tom Rini2c8d04d2022-10-28 20:27:02 -04001267 help
1268 Provides a way to save a binary file using the Motorola S-Record
1269 format over the serial line.
1270
1271config SYS_LOADS_BAUD_CHANGE
1272 bool "Enable a temporary baudrate change during loads/saves command"
1273 depends on CMD_LOADS || CMD_SAVES
1274
Pali Rohár1b3e6822022-08-27 16:37:55 +02001275config CMD_LOADXY_TIMEOUT
1276 int "loadxy_timeout"
1277 range 0 2000
1278 default 90
1279 help
1280 Initial timeout for loadx and loady commands. Zero means infinity.
1281
Niel Fouriee3697902020-03-30 17:22:58 +02001282config CMD_LSBLK
1283 depends on BLK
1284 bool "lsblk - list block drivers and devices"
1285 help
1286 Print list of available block device drivers, and for each, the list
1287 of known block devices.
1288
Marek Szyprowski750c5432020-12-23 13:55:15 +01001289config CMD_MBR
1290 bool "MBR (Master Boot Record) command"
1291 select DOS_PARTITION
Marek Szyprowski750c5432020-12-23 13:55:15 +01001292 help
1293 Enable the 'mbr' command to ready and write MBR (Master Boot Record)
1294 style partition tables.
1295
Bin Meng3bc0db12020-10-14 14:34:52 +08001296config CMD_MISC
1297 bool "misc"
1298 depends on MISC
1299 help
1300 Enable the command "misc" for accessing miscellaneous devices with
1301 a MISC uclass driver. The command provides listing all MISC devices
1302 as well as read and write functionalities via their drivers.
1303
Dinh Nguyenab8243e2016-04-21 09:05:23 -05001304config CMD_MMC
1305 bool "mmc"
Heinrich Schuchardtec611872021-03-27 11:43:54 +01001306 depends on MMC
Dinh Nguyenab8243e2016-04-21 09:05:23 -05001307 help
1308 MMC memory mapped support.
1309
Heinrich Schuchardt453d2132020-03-31 17:39:28 +00001310if CMD_MMC
1311
1312config CMD_BKOPS_ENABLE
1313 bool "mmc bkops enable"
1314 depends on CMD_MMC
Heinrich Schuchardt453d2132020-03-31 17:39:28 +00001315 help
1316 Enable command for setting manual background operations handshake
1317 on a eMMC device. The feature is optionally available on eMMC devices
1318 conforming to standard >= 4.41.
1319
Marek Vasutb5f40392023-10-31 13:20:17 +01001320config CMD_MMC_REG
1321 bool "Enable support for reading card registers in the mmc command"
1322 depends on CMD_MMC
1323 help
1324 Enable the commands for reading card registers. This is useful
1325 mostly for debugging or extracting details from the card.
1326
Alex Kiernan5a7b11e2018-05-08 04:43:31 +00001327config CMD_MMC_RPMB
1328 bool "Enable support for RPMB in the mmc command"
Heinrich Schuchardt453d2132020-03-31 17:39:28 +00001329 depends on SUPPORT_EMMC_RPMB
Alex Kiernan5a7b11e2018-05-08 04:43:31 +00001330 help
1331 Enable the commands for reading, writing and programming the
1332 key for the Replay Protection Memory Block partition in eMMC.
1333
Alex Kiernanc232d142018-05-29 15:30:52 +00001334config CMD_MMC_SWRITE
1335 bool "mmc swrite"
Heinrich Schuchardt453d2132020-03-31 17:39:28 +00001336 depends on MMC_WRITE
Alex Kiernanc232d142018-05-29 15:30:52 +00001337 select IMAGE_SPARSE
1338 help
1339 Enable support for the "mmc swrite" command to write Android sparse
1340 images to eMMC.
1341
Heinrich Schuchardt453d2132020-03-31 17:39:28 +00001342endif
1343
John Chau4a4830c2020-07-02 12:01:21 +08001344config CMD_CLONE
1345 bool "clone"
1346 depends on BLK
1347 help
1348 Enable storage cloning over block devices, useful for
1349 initial flashing by external block device without network
1350 or usb support.
1351
Ruchika Guptabcc6c572020-10-23 13:39:33 +05301352config CMD_OPTEE_RPMB
1353 bool "Enable read/write support on RPMB via OPTEE"
1354 depends on SUPPORT_EMMC_RPMB && OPTEE
1355 help
1356 Enable the commands for reading, writing persistent named values
1357 in the Replay Protection Memory Block partition in eMMC by
1358 using Persistent Objects in OPTEE
1359
Miquel Raynal5db66b32018-09-29 12:58:28 +02001360config CMD_MTD
1361 bool "mtd"
Miquel Raynalff102c52019-10-25 19:39:30 +02001362 depends on MTD
Miquel Raynal5db66b32018-09-29 12:58:28 +02001363 select MTD_PARTITIONS
1364 help
1365 MTD commands support.
1366
Pratyush Yadav05115ab2020-10-16 16:16:35 +05301367config CMD_MUX
1368 bool "mux"
1369 depends on MULTIPLEXER
1370 help
1371 List, select, and deselect mux controllers on the fly.
1372
Simon Glass72a8cf82016-01-17 20:53:51 -07001373config CMD_NAND
1374 bool "nand"
Maxime Ripard522c2822017-03-03 15:13:30 +01001375 default y if NAND_SUNXI
Miquel Raynalff102c52019-10-25 19:39:30 +02001376 depends on MTD_RAW_NAND
Simon Glass72a8cf82016-01-17 20:53:51 -07001377 help
1378 NAND support.
1379
Boris Brezillone915d202017-02-27 18:22:07 +01001380if CMD_NAND
1381config CMD_NAND_TRIMFFS
1382 bool "nand write.trimffs"
Hans de Goeded482a8d2017-02-27 18:22:10 +01001383 default y if ARCH_SUNXI
Boris Brezillone915d202017-02-27 18:22:07 +01001384 help
1385 Allows one to skip empty pages when flashing something on a NAND.
1386
1387config CMD_NAND_LOCK_UNLOCK
1388 bool "nand lock/unlock"
1389 help
1390 NAND locking support.
1391
1392config CMD_NAND_TORTURE
1393 bool "nand torture"
1394 help
1395 NAND torture support.
1396
1397endif # CMD_NAND
1398
Zhikang Zhang0adc38b2017-08-03 02:30:59 -07001399config CMD_NVME
1400 bool "nvme"
1401 depends on NVME
1402 default y if NVME
1403 help
1404 NVM Express device support
1405
Simon Glass978f0852017-08-04 16:34:31 -06001406config CMD_ONENAND
1407 bool "onenand - access to onenand device"
Miquel Raynalff102c52019-10-25 19:39:30 +02001408 depends on MTD
Simon Glass978f0852017-08-04 16:34:31 -06001409 help
1410 OneNAND is a brand of NAND ('Not AND' gate) flash which provides
1411 various useful features. This command allows reading, writing,
1412 and erasing blocks. It allso provides a way to show and change
1413 bad blocks, and test the device.
1414
Tom Rinidd4bf242022-06-15 12:03:51 -04001415config USE_ONENAND_BOARD_INIT
1416 bool "Call onenand_board_init() in the onenand command"
1417 depends on CMD_ONENAND
1418
Mario Six3bf65cb2018-09-27 09:19:34 +02001419config CMD_OSD
1420 bool "osd"
1421 help
1422 Enable the 'osd' command which allows to query information from and
1423 write text data to a on-screen display (OSD) device; a virtual device
1424 associated with a display capable of displaying a text overlay on the
1425 display it's associated with..
1426
Patrick Delaunayb331cd62017-01-27 11:00:42 +01001427config CMD_PART
1428 bool "part"
AKASHI Takahiro64efbd12022-04-22 10:44:30 +09001429 depends on PARTITIONS
Michal Simek5ed063d2018-07-23 15:55:13 +02001430 select PARTITION_UUIDS
Patrick Delaunayb331cd62017-01-27 11:00:42 +01001431 help
1432 Read and display information about the partition table on
1433 various media.
1434
Simon Glass6500ec72017-08-04 16:34:34 -06001435config CMD_PCI
1436 bool "pci - Access PCI devices"
1437 help
1438 Provide access to PCI (Peripheral Interconnect Bus), a type of bus
1439 used on some devices to allow the CPU to communicate with its
1440 peripherals. Sub-commands allow bus enumeration, displaying and
1441 changing configuration space and a few other features.
1442
Stephen Carlson59b1c9b2023-03-10 11:07:13 -08001443config CMD_PCI_MPS
1444 bool "pci_mps - Configure PCI device MPS"
1445 depends on PCI
1446 help
1447 Enables PCI Express Maximum Packet Size (MPS) tuning. This
1448 command configures the PCI Express MPS of each endpoint to the
1449 largest value supported by all devices below the root complex.
1450 The Maximum Read Request Size will not be altered. This method is
1451 the same algorithm as used by Linux pci=pcie_bus_safe.
1452
Patrice Chotardd5a83132018-10-24 14:10:17 +02001453config CMD_PINMUX
1454 bool "pinmux - show pins muxing"
Marek Behúna70abcf2021-02-09 21:23:47 +01001455 depends on PINCTRL
Patrice Chotardd5a83132018-10-24 14:10:17 +02001456 default y if PINCTRL
1457 help
1458 Parse all available pin-controllers and show pins muxing. This
1459 is useful for debug purpoer to check the pin muxing and to know if
1460 a pin is configured as a GPIO or as an alternate function.
1461
Adam Ford577c40a2018-09-09 07:05:57 -05001462config CMD_POWEROFF
1463 bool "poweroff"
1464 help
1465 Poweroff/Shutdown the system
1466
Simon Glassb75dfd22017-08-04 16:34:39 -06001467config CMD_READ
1468 bool "read - Read binary data from a partition"
1469 help
1470 Provides low-level access to the data in a partition.
1471
Simon Glass72a8cf82016-01-17 20:53:51 -07001472config CMD_REMOTEPROC
1473 bool "remoteproc"
1474 depends on REMOTEPROC
1475 help
1476 Support for Remote Processor control
1477
Simon Glass3bf926c2017-06-14 21:28:24 -06001478config CMD_SATA
1479 bool "sata - Access SATA subsystem"
Simon Glass10e40d52017-06-14 21:28:25 -06001480 select SATA
Simon Glass3bf926c2017-06-14 21:28:24 -06001481 help
1482 SATA (Serial Advanced Technology Attachment) is a serial bus
1483 standard for connecting to hard drives and other storage devices.
1484 This command provides information about attached devices and allows
1485 reading, writing and other operations.
1486
1487 SATA replaces PATA (originally just ATA), which stands for Parallel AT
1488 Attachment, where AT refers to an IBM AT (Advanced Technology)
1489 computer released in 1984.
1490
Heinrich Schuchardt0c3fecd2018-02-14 08:05:44 +01001491config CMD_SCSI
1492 bool "scsi - Access to SCSI devices"
Heinrich Schuchardtfa3f0cb2023-03-26 19:10:38 +02001493 depends on SCSI
1494 default y
Heinrich Schuchardt0c3fecd2018-02-14 08:05:44 +01001495 help
1496 This provides a 'scsi' command which provides access to SCSI (Small
1497 Computer System Interface) devices. The command provides a way to
1498 scan the bus, reset the bus, read and write data and get information
1499 about devices.
1500
Simon Glassefce2442017-08-04 16:34:45 -06001501config CMD_SDRAM
1502 bool "sdram - Print SDRAM configuration information"
1503 help
1504 Provides information about attached SDRAM. This assumed that the
1505 SDRAM has an EEPROM with information that can be read using the
1506 I2C bus. This is only available on some boards.
1507
Simon Glass0c19b4d2017-08-04 16:34:28 -06001508config CMD_SF
1509 bool "sf"
Tom Rinia4298dd2019-05-29 17:01:28 -04001510 depends on DM_SPI_FLASH || SPI_FLASH
Jagan Tekic2af7fb2019-10-16 17:59:42 +05301511 default y if DM_SPI_FLASH
Simon Glass0c19b4d2017-08-04 16:34:28 -06001512 help
1513 SPI Flash support
1514
Simon Glass719d36e2017-08-04 16:34:46 -06001515config CMD_SF_TEST
1516 bool "sf test - Allow testing of SPI flash"
Tom Rinia4298dd2019-05-29 17:01:28 -04001517 depends on CMD_SF
Simon Glass719d36e2017-08-04 16:34:46 -06001518 help
1519 Provides a way to test that SPI flash is working correctly. The
1520 test is destructive, in that an area of SPI flash must be provided
1521 for the test to use. Performance information is also provided,
1522 measuring the performance of reading, writing and erasing in
1523 Mbps (Million Bits Per Second). This value should approximately
1524 equal the SPI bus speed for a single-bit-wide SPI bus, assuming
1525 everything is working properly.
1526
Simon Glass0c19b4d2017-08-04 16:34:28 -06001527config CMD_SPI
Patrick Delaunayc95e6322019-02-27 15:20:37 +01001528 bool "sspi - Command to access spi device"
Tom Rinia4298dd2019-05-29 17:01:28 -04001529 depends on SPI
Simon Glass0c19b4d2017-08-04 16:34:28 -06001530 help
1531 SPI utility command.
1532
Patrick Delaunayc95e6322019-02-27 15:20:37 +01001533config DEFAULT_SPI_BUS
1534 int "default spi bus used by sspi command"
1535 depends on CMD_SPI
1536 default 0
1537
1538config DEFAULT_SPI_MODE
1539 hex "default spi mode used by sspi command (see include/spi.h)"
1540 depends on CMD_SPI
Tom Rinia077ac12023-08-02 11:09:43 -04001541 default 0x0
Patrick Delaunayc95e6322019-02-27 15:20:37 +01001542
Robert Marko7f673bb2022-09-06 13:30:33 +02001543config CMD_TEMPERATURE
1544 bool "temperature - display the temperature from thermal sensors"
1545 depends on DM_THERMAL
1546 help
1547 Provides a way to list thermal sensors and to get their readings.
1548
Simon Glass5605aa82017-08-04 16:35:00 -06001549config CMD_TSI148
1550 bool "tsi148 - Command to access tsi148 device"
1551 help
1552 This provides various sub-commands to initialise and configure the
1553 Turndra tsi148 device. See the command help for full details.
1554
Faiz Abbasa539c8b2019-10-15 18:24:40 +05301555config CMD_UFS
Bin Mengff039a82023-10-11 21:15:46 +08001556 bool "ufs - Universal Flash Storage commands"
Faiz Abbasa539c8b2019-10-15 18:24:40 +05301557 depends on UFS
1558 help
1559 "This provides commands to initialise and configure universal flash
1560 subsystem devices"
1561
Simon Glass2a242e32017-08-04 16:35:01 -06001562config CMD_UNIVERSE
1563 bool "universe - Command to set up the Turndra Universe controller"
1564 help
1565 This allows setting up the VMEbus provided by this controller.
1566 See the command help for full details.
1567
Simon Glass0c19b4d2017-08-04 16:34:28 -06001568config CMD_USB
1569 bool "usb"
Tom Rinie8d3eaa2021-07-09 10:11:55 -04001570 depends on USB_HOST
Simon Glass0c19b4d2017-08-04 16:34:28 -06001571 help
1572 USB support.
1573
Stefan Agner2f005692017-08-16 11:00:53 -07001574config CMD_USB_SDP
1575 bool "sdp"
1576 select USB_FUNCTION_SDP
1577 help
1578 Enables the command "sdp" which is used to have U-Boot emulating the
1579 Serial Download Protocol (SDP) via USB.
Michal Simek6e7bdde2018-07-23 15:55:12 +02001580
Johan Jonkeraacf2142023-10-18 16:01:40 +02001581config CMD_RKMTD
1582 bool "rkmtd"
1583 select RKMTD
1584 help
1585 Enable the command "rkmtd" to create a virtual block device to transfer
1586 Rockchip boot block data to and from NAND with block orientated tools
1587 like "ums" and "rockusb".
1588
Eddie Cai453c95e2017-12-15 08:17:11 +08001589config CMD_ROCKUSB
1590 bool "rockusb"
1591 depends on USB_FUNCTION_ROCKUSB
1592 help
Michal Simek6e7bdde2018-07-23 15:55:12 +02001593 Rockusb protocol is widely used by Rockchip SoC based devices. It can
Eddie Cai453c95e2017-12-15 08:17:11 +08001594 read/write info, image to/from devices. This enable rockusb command
1595 support to communication with rockusb device. for more detail about
1596 this command, please read doc/README.rockusb.
Stefan Agner2f005692017-08-16 11:00:53 -07001597
Simon Glass0c19b4d2017-08-04 16:34:28 -06001598config CMD_USB_MASS_STORAGE
1599 bool "UMS usb mass storage"
Tom Rini123dc512021-05-22 08:47:16 -04001600 depends on USB_GADGET_DOWNLOAD
Lukasz Majewskie4d46042018-01-29 19:28:02 +01001601 select USB_FUNCTION_MASS_STORAGE
Patrick Delaunay6b8d9c92021-06-04 18:51:46 +02001602 depends on BLK && USB_GADGET
Simon Glass0c19b4d2017-08-04 16:34:28 -06001603 help
Patrick Delaunay6b8d9c92021-06-04 18:51:46 +02001604 Enables the command "ums" and the USB mass storage support to the
1605 export a block device: U-Boot, the USB device, acts as a simple
1606 external hard drive plugged on the host USB port.
Simon Glass0c19b4d2017-08-04 16:34:28 -06001607
Svyatoslav Ryhela57adac2023-03-20 21:01:43 +02001608config CMD_UMS_ABORT_KEYED
1609 bool "UMS abort with any key"
1610 depends on CMD_USB_MASS_STORAGE
1611 help
1612 Allow interruption of usb mass storage run with any key pressed.
1613
Anastasiia Lukianenko722bc5b2020-08-06 12:42:55 +03001614config CMD_PVBLOCK
1615 bool "Xen para-virtualized block device"
1616 depends on XEN
1617 select PVBLOCK
1618 help
1619 Xen para-virtualized block device support
1620
Tuomas Tynkkynen78e12902018-10-15 02:21:12 -07001621config CMD_VIRTIO
1622 bool "virtio"
1623 depends on VIRTIO
1624 default y if VIRTIO
1625 help
1626 VirtIO block device support
1627
Michael Walle82a00be2019-04-06 02:24:02 +02001628config CMD_WDT
1629 bool "wdt"
1630 depends on WDT
1631 help
1632 This provides commands to control the watchdog timer devices.
1633
Rasmus Villemoes8311ac52023-03-02 09:12:22 +01001634config CMD_WRITE
1635 bool "write - Write binary data to a partition"
1636 help
1637 Provides low-level write access to a partition.
1638
Mario Six37c4a5f2018-08-09 14:51:21 +02001639config CMD_AXI
1640 bool "axi"
1641 depends on AXI
1642 help
1643 Enable the command "axi" for accessing AXI (Advanced eXtensible
1644 Interface) busses, a on-chip interconnect specification for managing
1645 functional blocks in SoC designs, which is also often used in designs
1646 involving FPGAs (e.g. communication with IP cores in Xilinx FPGAs).
Simon Glass72a8cf82016-01-17 20:53:51 -07001647endmenu
1648
1649
1650menu "Shell scripting commands"
1651
Roger Knecht690a1d62022-09-03 11:34:53 +00001652config CMD_CAT
1653 bool "cat"
1654 help
1655 Print file to standard output
1656
Simon Glass72a8cf82016-01-17 20:53:51 -07001657config CMD_ECHO
1658 bool "echo"
1659 default y
1660 help
1661 Echo args to console
1662
1663config CMD_ITEST
1664 bool "itest"
1665 default y
1666 help
1667 Return true/false on integer compare.
1668
1669config CMD_SOURCE
1670 bool "source"
1671 default y
1672 help
1673 Run script from memory
1674
1675config CMD_SETEXPR
1676 bool "setexpr"
1677 default y
1678 help
1679 Evaluate boolean and math expressions and store the result in an env
1680 variable.
1681 Also supports loading the value at a memory location into a variable.
1682 If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
1683
Roland Gaudigf4f8d8b2021-07-23 12:29:21 +00001684config CMD_SETEXPR_FMT
1685 bool "setexpr_fmt"
Roland Gaudigf4f8d8b2021-07-23 12:29:21 +00001686 depends on CMD_SETEXPR
1687 help
1688 Evaluate format string expression and store result in an environment
1689 variable.
1690
Roger Knechtc3b27a82023-09-07 14:51:43 +00001691config CMD_XXD
1692 bool "xxd"
1693 help
1694 Print file as hexdump to standard output
1695
Simon Glass72a8cf82016-01-17 20:53:51 -07001696endmenu
1697
Ruslan Trofymenko17030c72019-07-05 15:37:33 +03001698menu "Android support commands"
1699
1700config CMD_AB_SELECT
1701 bool "ab_select"
Ruslan Trofymenko17030c72019-07-05 15:37:33 +03001702 depends on ANDROID_AB
1703 help
1704 On Android devices with more than one boot slot (multiple copies of
1705 the kernel and system images) this provides a command to select which
1706 slot should be used to boot from and register the boot attempt. This
1707 is used by the new A/B update model where one slot is updated in the
1708 background while running from the other slot.
1709
1710endmenu
1711
Michal Simek3b3ea2c2018-02-26 16:01:02 +01001712if NET
1713
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -05001714menuconfig CMD_NET
1715 bool "Network commands"
1716 default y
1717
1718if CMD_NET
1719
1720config CMD_BOOTP
1721 bool "bootp"
Simon Glass72a8cf82016-01-17 20:53:51 -07001722 default y
1723 help
Simon Glass72a8cf82016-01-17 20:53:51 -07001724 bootp - boot image via network using BOOTP/TFTP protocol
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -05001725
Joe Hershbergere88b2562018-04-13 15:26:33 -05001726config CMD_DHCP
1727 bool "dhcp"
1728 depends on CMD_BOOTP
1729 help
1730 Boot image via network using DHCP/TFTP protocol
1731
Sean Edmond7d018892023-04-11 10:48:47 -07001732config CMD_DHCP6
1733 bool "dhcp6"
1734 depends on IPV6
1735 help
1736 Boot image via network using DHCPv6/TFTP protocol using IPv6.
1737
1738 Will perform 4-message exchange with DHCPv6 server, requesting
1739 the minimum required options to TFTP boot. Complies with RFC 8415.
1740
Tom Rinia542e432022-02-25 11:19:50 -05001741config BOOTP_MAY_FAIL
1742 bool "Allow for the BOOTP/DHCP server to not be found"
1743 depends on CMD_BOOTP
1744 help
1745 If the DHCP server is not found after the configured retry count, the
1746 call will fail instead of starting over. This can be used to fail
1747 over to Link-local IP address configuration if the DHCP server is not
1748 available.
1749
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001750config BOOTP_BOOTPATH
Joe Hershberger8df69d92018-04-13 15:26:34 -05001751 bool "Request & store 'rootpath' from BOOTP/DHCP server"
Joe Hershberger3dfbc532018-04-13 15:26:37 -05001752 default y
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001753 depends on CMD_BOOTP
Joe Hershberger8df69d92018-04-13 15:26:34 -05001754 help
1755 Even though the config is called BOOTP_BOOTPATH, it stores the
1756 path in the variable 'rootpath'.
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001757
Tom Rinia542e432022-02-25 11:19:50 -05001758config BOOTP_VENDOREX
1759 bool "Support vendor extensions from BOOTP/DHCP server"
1760 depends on CMD_BOOTP
1761
1762config BOOTP_BOOTFILESIZE
1763 bool "Request & store 'bootfilesize' from BOOTP/DHCP server"
1764 depends on CMD_BOOTP
1765
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001766config BOOTP_DNS
Joe Hershberger8df69d92018-04-13 15:26:34 -05001767 bool "Request & store 'dnsip' from BOOTP/DHCP server"
Joe Hershberger3dfbc532018-04-13 15:26:37 -05001768 default y
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001769 depends on CMD_BOOTP
Joe Hershberger8df69d92018-04-13 15:26:34 -05001770 help
1771 The primary DNS server is stored as 'dnsip'. If two servers are
1772 returned, you must set BOOTP_DNS2 to store that second server IP
1773 also.
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001774
Joe Hershberger80449c02018-04-13 15:26:35 -05001775config BOOTP_DNS2
1776 bool "Store 'dnsip2' from BOOTP/DHCP server"
1777 depends on BOOTP_DNS
1778 help
1779 If a DHCP client requests the DNS server IP from a DHCP server,
1780 it is possible that more than one DNS serverip is offered to the
1781 client. If CONFIG_BOOTP_DNS2 is enabled, the secondary DNS
1782 server IP will be stored in the additional environment
1783 variable "dnsip2". The first DNS serverip is always
1784 stored in the variable "dnsip", when BOOTP_DNS is defined.
1785
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001786config BOOTP_GATEWAY
Joe Hershberger8df69d92018-04-13 15:26:34 -05001787 bool "Request & store 'gatewayip' from BOOTP/DHCP server"
Joe Hershberger3dfbc532018-04-13 15:26:37 -05001788 default y
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001789 depends on CMD_BOOTP
1790
1791config BOOTP_HOSTNAME
Joe Hershberger8df69d92018-04-13 15:26:34 -05001792 bool "Request & store 'hostname' from BOOTP/DHCP server"
Joe Hershberger3dfbc532018-04-13 15:26:37 -05001793 default y
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001794 depends on CMD_BOOTP
Joe Hershberger8df69d92018-04-13 15:26:34 -05001795 help
1796 The name may or may not be qualified with the local domain name.
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001797
Alexander Grafbdce3402018-06-15 10:29:28 +02001798config BOOTP_PREFER_SERVERIP
1799 bool "serverip variable takes precedent over DHCP server IP."
1800 depends on CMD_BOOTP
1801 help
1802 By default a BOOTP/DHCP reply will overwrite the 'serverip' variable.
1803
1804 With this option enabled, the 'serverip' variable in the environment
1805 takes precedence over DHCP server IP and will only be set by the DHCP
1806 server if not already set in the environment.
1807
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001808config BOOTP_SUBNETMASK
Joe Hershberger8df69d92018-04-13 15:26:34 -05001809 bool "Request & store 'netmask' from BOOTP/DHCP server"
Joe Hershberger3dfbc532018-04-13 15:26:37 -05001810 default y
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001811 depends on CMD_BOOTP
1812
Tom Rinia542e432022-02-25 11:19:50 -05001813config BOOTP_NISDOMAIN
1814 bool "Request & store 'nisdomain' from BOOTP/DHCP server"
1815 depends on CMD_BOOTP
1816
Chris Packham9b23c732018-05-03 20:19:02 +12001817config BOOTP_NTPSERVER
1818 bool "Request & store 'ntpserverip' from BOOTP/DHCP server"
1819 depends on CMD_BOOTP
1820
Tom Rinia542e432022-02-25 11:19:50 -05001821config BOOTP_TIMEOFFSET
1822 bool "Request & store 'timeoffset' from BOOTP/DHCP server"
1823 depends on CMD_BOOTP && CMD_SNTP
1824
Ramon Fried3eaac632019-07-18 21:43:30 +03001825config CMD_PCAP
1826 bool "pcap capture"
1827 help
1828 Selecting this will allow capturing all Ethernet packets and store
1829 them in physical memory in a PCAP formated file,
1830 later to be analyzed by PCAP reader application (IE. WireShark).
1831
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001832config BOOTP_PXE
Joe Hershberger2b9f4862018-04-13 15:26:36 -05001833 bool "Send PXE client arch to BOOTP/DHCP server"
Joe Hershberger3dfbc532018-04-13 15:26:37 -05001834 default y
Joe Hershberger2b9f4862018-04-13 15:26:36 -05001835 depends on CMD_BOOTP && CMD_PXE
1836 help
1837 Supported for ARM, ARM64, and x86 for now.
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001838
1839config BOOTP_PXE_CLIENTARCH
1840 hex
Joe Hershberger2b9f4862018-04-13 15:26:36 -05001841 depends on BOOTP_PXE
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001842 default 0x16 if ARM64
1843 default 0x15 if ARM
Tom Rinia077ac12023-08-02 11:09:43 -04001844 default 0x0 if X86
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001845
Sean Edmond91953952023-07-25 16:20:30 -07001846config BOOTP_PXE_DHCP_OPTION
1847 bool "Request & store 'pxe_configfile' from BOOTP/DHCP server"
1848 depends on BOOTP_PXE
1849
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001850config BOOTP_VCI_STRING
1851 string
1852 depends on CMD_BOOTP
Michal Simek4bbd6b12018-04-26 18:21:29 +05301853 default "U-Boot.armv7" if CPU_V7A || CPU_V7M || CPU_V7R
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001854 default "U-Boot.armv8" if ARM64
1855 default "U-Boot.arm" if ARM
1856 default "U-Boot"
1857
Sean Edmond7d018892023-04-11 10:48:47 -07001858if CMD_DHCP6
1859
1860config DHCP6_PXE_CLIENTARCH
1861 hex
1862 default 0x16 if ARM64
1863 default 0x15 if ARM
1864 default 0xFF
1865
1866config DHCP6_PXE_DHCP_OPTION
1867 bool "Request & store 'pxe_configfile' from DHCP6 server"
1868
1869config DHCP6_ENTERPRISE_ID
1870 int "Enterprise ID to send in DHCPv6 Vendor Class Option"
1871 default 0
1872
1873endif
1874
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -05001875config CMD_TFTPBOOT
1876 bool "tftpboot"
1877 default y
1878 help
Heinrich Schuchardt651031e2022-09-04 09:08:11 +02001879 tftpboot - load file via network using TFTP protocol
Simon Glass72a8cf82016-01-17 20:53:51 -07001880
1881config CMD_TFTPPUT
1882 bool "tftp put"
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -05001883 depends on CMD_TFTPBOOT
Simon Glass72a8cf82016-01-17 20:53:51 -07001884 help
1885 TFTP put command, for uploading files to a server
1886
1887config CMD_TFTPSRV
1888 bool "tftpsrv"
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -05001889 depends on CMD_TFTPBOOT
Simon Glass72a8cf82016-01-17 20:53:51 -07001890 help
1891 Act as a TFTP server and boot the first received file
1892
Joe Hershberger92fa44d2018-04-13 15:26:32 -05001893config NET_TFTP_VARS
1894 bool "Control TFTP timeout and count through environment"
1895 depends on CMD_TFTPBOOT
1896 default y
1897 help
1898 If set, allows controlling the TFTP timeout through the
1899 environment variable tftptimeout, and the TFTP maximum
1900 timeout count through the variable tftptimeoutcountmax.
1901 If unset, timeout and maximum are hard-defined as 1 second
1902 and 10 timouts per TFTP transfer.
1903
Simon Glass72a8cf82016-01-17 20:53:51 -07001904config CMD_RARP
1905 bool "rarpboot"
1906 help
1907 Boot image via network using RARP/TFTP protocol
1908
Simon Glass72a8cf82016-01-17 20:53:51 -07001909config CMD_NFS
1910 bool "nfs"
Simon Glass72a8cf82016-01-17 20:53:51 -07001911 help
1912 Boot image via network using NFS protocol.
1913
Tom Rinieeda7622022-03-11 09:12:05 -05001914config NFS_TIMEOUT
1915 int "Timeout in milliseconds for NFS mounts"
1916 depends on CMD_NFS
1917 default 2000
1918 help
1919 Timeout in milliseconds used in NFS protocol. If you encounter
1920 "ERROR: Cannot umount" in nfs command, try longer timeout such as
1921 10000.
1922
Tom Rinibf904ea2022-06-13 22:57:35 -04001923config SYS_DISABLE_AUTOLOAD
1924 bool "Disable automatically loading files over the network"
1925 depends on CMD_BOOTP || CMD_DHCP || CMD_NFS || CMD_RARP
1926 help
1927 Typically, commands such as "dhcp" will attempt to automatically
1928 load a file from the network, once the initial network configuration
1929 is complete. Enable this option to disable this behavior and instead
1930 require files to be loaded over the network by subsequent commands.
1931
Ying-Chun Liu (PaulLiu)cfbae482022-11-08 14:17:29 +08001932config CMD_WGET
1933 bool "wget"
Michael Walle20422d62022-12-28 16:27:15 +01001934 select PROT_TCP
Ying-Chun Liu (PaulLiu)cfbae482022-11-08 14:17:29 +08001935 help
1936 wget is a simple command to download kernel, or other files,
1937 from a http server over TCP.
1938
Dinh Nguyenab8243e2016-04-21 09:05:23 -05001939config CMD_MII
1940 bool "mii"
Ramon Fried7d9701d2019-09-13 18:25:03 +03001941 imply CMD_MDIO
Dinh Nguyenab8243e2016-04-21 09:05:23 -05001942 help
Ramon Fried7d9701d2019-09-13 18:25:03 +03001943 If set, allows 802.3(clause 22) MII Management functions interface access
1944 The management interface specified in Clause 22 provides
1945 a simple, two signal, serial interface to connect a
1946 Station Management entity and a managed PHY for providing access
1947 to management parameters and services.
1948 The interface is referred to as the MII management interface.
1949
Tom Rinicc386f12022-03-18 08:38:27 -04001950config MII_INIT
1951 bool "Call mii_init() in the mii command"
1952 depends on CMD_MII && (MPC8XX_FEC || FSLDMAFE || MCFFEC)
1953
Ramon Fried7d9701d2019-09-13 18:25:03 +03001954config CMD_MDIO
1955 bool "mdio"
1956 depends on PHYLIB
1957 help
1958 If set, allows Enable 802.3(clause 45) MDIO interface registers access
1959 The MDIO interface is orthogonal to the MII interface and extends
1960 it by adding access to more registers through indirect addressing.
Dinh Nguyenab8243e2016-04-21 09:05:23 -05001961
Simon Glass72a8cf82016-01-17 20:53:51 -07001962config CMD_PING
1963 bool "ping"
1964 help
1965 Send ICMP ECHO_REQUEST to network host
1966
Viacheslav Mitrofanoveeb0a2c2022-12-02 12:18:08 +03001967config CMD_PING6
1968 bool "ping6"
1969 depends on IPV6
1970 default y if (CMD_PING && IPV6)
1971 help
1972 Send ICMPv6 ECHO_REQUEST to network host
1973
Simon Glass72a8cf82016-01-17 20:53:51 -07001974config CMD_CDP
1975 bool "cdp"
1976 help
1977 Perform CDP network configuration
1978
1979config CMD_SNTP
1980 bool "sntp"
Philippe Reynes912ece42020-09-18 14:13:02 +02001981 select PROT_UDP
Simon Glass72a8cf82016-01-17 20:53:51 -07001982 help
1983 Synchronize RTC via network
1984
1985config CMD_DNS
1986 bool "dns"
1987 help
1988 Lookup the IP of a hostname
1989
1990config CMD_LINK_LOCAL
1991 bool "linklocal"
Joe Hershberger6f0dc0c2018-04-30 12:45:22 -05001992 select LIB_RAND
Simon Glass72a8cf82016-01-17 20:53:51 -07001993 help
1994 Acquire a network IP address using the link-local protocol
1995
Samuel Mendoza-Jonas4b290d42022-08-08 21:46:04 +09301996config CMD_NCSI
1997 bool "ncsi"
1998 depends on PHY_NCSI
1999 help
2000 Manually configure the attached NIC via NC-SI.
2001 Normally this happens automatically before other network
2002 operations.
2003
Ehsan Mohandesi6de98b62023-04-21 17:08:21 -07002004config IPV6_ROUTER_DISCOVERY
2005 bool "Do IPv6 router discovery"
2006 depends on IPV6
2007 help
2008 Will automatically perform router solicitation on first IPv6
2009 network operation
Joe Hershberger92fa44d2018-04-13 15:26:32 -05002010endif
2011
Simon Glassef072202017-05-17 03:25:17 -06002012config CMD_ETHSW
2013 bool "ethsw"
2014 help
2015 Allow control of L2 Ethernet switch commands. These are supported
2016 by the vsc9953 Ethernet driver at present. Sub-commands allow
2017 operations such as enabling / disabling a port and
2018 viewing/maintaining the filtering database (FDB)
2019
Joe Hershberger92fa44d2018-04-13 15:26:32 -05002020config CMD_PXE
2021 bool "pxe"
John Keepingbe43a352022-07-28 11:19:15 +01002022 select PXE_UTILS
Joe Hershberger92fa44d2018-04-13 15:26:32 -05002023 help
2024 Boot image via network using PXE protocol
Michal Simek3b3ea2c2018-02-26 16:01:02 +01002025
Lothar Feltend8970da2018-06-22 22:29:54 +02002026config CMD_WOL
2027 bool "wol"
2028 help
2029 Wait for wake-on-lan Magic Packet
2030
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -05002031endif
Simon Glass72a8cf82016-01-17 20:53:51 -07002032
2033menu "Misc commands"
2034
Simon Glassa554ee72023-02-07 14:33:53 -07002035config CMD_2048
2036 bool "Play 2048"
2037 help
2038 This is a simple sliding block puzzle game designed by Italian web
2039 developer Gabriele Cirulli. The game's objective is to slide numbered
2040 tiles on a grid to combine them to create a tile with the number
2041 2048.
2042
2043 This needs ANSI support on your terminal to work. It is not fully
2044 functional on a video device.
2045
Simon Glass0f710252017-04-26 22:27:55 -06002046config CMD_BMP
2047 bool "Enable 'bmp' command"
Simon Glassb86986c2022-10-18 07:46:31 -06002048 depends on VIDEO
Samuel Dionne-Riel373991d62023-07-18 14:27:36 +05302049 select BMP
Simon Glass0f710252017-04-26 22:27:55 -06002050 help
Andrius Štikonas60a9aeb2019-09-23 22:43:41 +01002051 This provides a way to obtain information about a BMP-format image
Simon Glass0f710252017-04-26 22:27:55 -06002052 and to display it. BMP (which presumably stands for BitMaP) is a
2053 file format defined by Microsoft which supports images of various
2054 depths, formats and compression methods. Headers on the file
2055 determine the formats used. This command can be used by first loading
2056 the image into RAM, then using this command to look at it or display
2057 it.
2058
Alex Kiernanb11ed7d2018-05-12 05:49:47 +00002059config CMD_BOOTCOUNT
2060 bool "bootcount"
2061 depends on BOOTCOUNT_LIMIT
2062 help
2063 Enable the bootcount command, which allows interrogation and
2064 reset of the bootcounter.
2065
Simon Glass4893e342017-04-26 22:27:56 -06002066config CMD_BSP
2067 bool "Enable board-specific commands"
2068 help
2069 (deprecated: instead, please define a Kconfig option for each command)
2070
2071 Some boards have board-specific commands which are only enabled
2072 during developemnt and need to be turned off for production. This
2073 option provides a way to control this. The commands that are enabled
2074 vary depending on the board.
2075
Eric Nelsone40cf342016-03-28 10:05:44 -07002076config CMD_BLOCK_CACHE
2077 bool "blkcache - control and stats for block cache"
2078 depends on BLOCK_CACHE
2079 default y if BLOCK_CACHE
2080 help
2081 Enable the blkcache command, which can be used to control the
2082 operation of the cache functions.
2083 This is most useful when fine-tuning the operation of the cache
2084 during development, but also allows the cache to be disabled when
2085 it might hurt performance (e.g. when using the ums command).
2086
Tobias Waldekranzbb56da12023-02-16 16:33:52 +01002087config CMD_BLKMAP
2088 bool "blkmap - Composable virtual block devices"
2089 depends on BLKMAP
2090 default y if BLKMAP
2091 help
2092 Create virtual block devices that are backed by various sources,
2093 e.g. RAM, or parts of an existing block device. Though much more
2094 rudimentary, it borrows a lot of ideas from Linux's device mapper
2095 subsystem.
2096
2097 Example use-cases:
2098 - Treat a region of RAM as a block device, i.e. a RAM disk. This let's
2099 you extract files from filesystem images stored in RAM (perhaps as a
2100 result of a TFTP transfer).
2101 - Create a virtual partition on an existing device. This let's you
2102 access filesystems that aren't stored at an exact partition
2103 boundary. A common example is a filesystem image embedded in an FIT
2104 image.
2105
Philippe Reynes325141a2020-07-24 18:19:47 +02002106config CMD_BUTTON
2107 bool "button"
2108 depends on BUTTON
2109 default y if BUTTON
2110 help
2111 Enable the 'button' command which allows to get the status of
2112 buttons supported by the board. The buttonss can be listed with
2113 'button list' and state can be known with 'button <label>'.
2114 Any button drivers can be controlled with this command, e.g.
2115 button_gpio.
2116
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002117config CMD_CACHE
2118 bool "icache or dcache"
2119 help
2120 Enable the "icache" and "dcache" commands
2121
Heinrich Schuchardt29cfc092018-09-07 19:43:11 +02002122config CMD_CONITRACE
2123 bool "conitrace - trace console input codes"
2124 help
2125 Enable the 'conitrace' command which displays the codes received
2126 from the console input as hexadecimal numbers.
2127
Anatolij Gustschin4e92e602018-12-01 10:47:20 +01002128config CMD_CLS
2129 bool "Enable clear screen command 'cls'"
John Keeping2fdc4c02022-11-23 17:16:14 +00002130 default y if LCD || VIDEO
Anatolij Gustschin4e92e602018-12-01 10:47:20 +01002131 help
2132 Enable the 'cls' command which clears the screen contents
2133 on video frame buffer.
2134
AKASHI Takahiro59df7e72019-02-25 15:54:38 +09002135config CMD_EFIDEBUG
2136 bool "efidebug - display/configure UEFI environment"
2137 depends on EFI_LOADER
Heinrich Schuchardt64b5ba42019-05-11 09:53:33 +02002138 select EFI_DEVICE_PATH_TO_TEXT
AKASHI Takahiro59df7e72019-02-25 15:54:38 +09002139 help
2140 Enable the 'efidebug' command which provides a subset of UEFI
2141 shell utility with simplified functionality. It will be useful
2142 particularly for managing boot parameters as well as examining
2143 various EFI status for debugging.
2144
Masahisa Kojima87d79142022-09-12 17:33:50 +09002145config CMD_EFICONFIG
2146 bool "eficonfig - provide menu-driven uefi variables maintenance interface"
Heinrich Schuchardt8925f0e2023-02-08 09:57:00 +01002147 default y if !HAS_BOARD_SIZE_LIMIT
Simon Glass422822c2023-10-26 14:31:20 -04002148 depends on BOOTEFI_BOOTMGR
Heinrich Schuchardt75d494d2023-02-08 13:56:33 +01002149 select MENU
Masahisa Kojima87d79142022-09-12 17:33:50 +09002150 help
2151 Enable the 'eficonfig' command which provides the menu-driven UEFI
2152 variable maintenance interface.
2153
Heinrich Schuchardtdab87882018-12-26 17:20:35 +01002154config CMD_EXCEPTION
2155 bool "exception - raise exception"
Heinrich Schuchardt3a5ec032020-11-12 00:29:57 +01002156 depends on ARM || RISCV || SANDBOX || X86
Heinrich Schuchardtdab87882018-12-26 17:20:35 +01002157 help
2158 Enable the 'exception' command which allows to raise an exception.
2159
Simon Glassffe20522017-04-10 11:34:59 -06002160config CMD_LED
2161 bool "led"
Jan Kiszka2ab6e742019-01-03 09:08:42 +01002162 depends on LED
Simon Glassffe20522017-04-10 11:34:59 -06002163 default y if LED
2164 help
2165 Enable the 'led' command which allows for control of LEDs supported
2166 by the board. The LEDs can be listed with 'led list' and controlled
2167 with led on/off/togle/blink. Any LED drivers can be controlled with
2168 this command, e.g. led_gpio.
2169
Simon Glasse158c942023-02-01 13:19:24 -07002170config CMD_INI
2171 bool "ini"
2172 help
2173 Enable the 'ini' command which allows a .ini file to be parsed and
2174 placed into environment variables. Please check the source code for
2175 this as there is no documentation.
2176
Chris Packhamc9032ce2017-04-29 15:20:28 +12002177config CMD_DATE
2178 bool "date"
2179 default y if DM_RTC
AKASHI Takahiro05429b62019-11-13 09:44:49 +09002180 select LIB_DATE
Chris Packhamc9032ce2017-04-29 15:20:28 +12002181 help
2182 Enable the 'date' command for getting/setting the time/date in RTC
2183 devices.
2184
Rasmus Villemoes803a8592020-07-06 22:01:15 +02002185config CMD_RTC
2186 bool "rtc"
2187 depends on DM_RTC
2188 help
2189 Enable the 'rtc' command for low-level access to RTC devices.
2190
Simon Glass72a8cf82016-01-17 20:53:51 -07002191config CMD_TIME
2192 bool "time"
2193 help
2194 Run commands and summarize execution time.
2195
Simon Glassd91a9d72017-05-17 03:25:23 -06002196config CMD_GETTIME
2197 bool "gettime - read elapsed time"
2198 help
2199 Enable the 'gettime' command which reads the elapsed time since
2200 U-Boot started running. This shows the time in seconds and
2201 milliseconds. See also the 'bootstage' command which provides more
2202 flexibility for boot timing.
2203
Samuel Dionne-Rieldc0d17c2022-08-18 15:44:04 -04002204config CMD_PAUSE
2205 bool "pause command"
2206 help
2207 Delay execution waiting for any user input.
2208 Useful to allow the user to read a failure log.
2209
Heinrich Schuchardt4f24ac02019-12-24 22:17:37 +01002210config CMD_RNG
2211 bool "rng command"
2212 depends on DM_RNG
Sughosh Ganude706192022-07-22 21:32:09 +05302213 default y if SANDBOX
Heinrich Schuchardt4f24ac02019-12-24 22:17:37 +01002214 select HEXDUMP
2215 help
2216 Print bytes from the hardware random number generator.
2217
Chris Morganfe3dde32021-08-25 11:22:57 -05002218config CMD_KASLRSEED
2219 bool "kaslrseed"
2220 depends on DM_RNG
2221 help
2222 Set the kaslr-seed in the chosen node with entropy provided by a
2223 hardware random number generator.
2224
Bin Meng16060852020-10-13 18:45:05 +08002225config CMD_SLEEP
Simon Glass72a8cf82016-01-17 20:53:51 -07002226 bool "sleep"
2227 default y
2228 help
2229 Delay execution for some time
2230
Ashok Reddy Soma480245c2022-01-17 10:16:50 +01002231config CMD_MP
2232 bool "support for multiprocessor commands"
2233 depends on MP
2234 default y
Siva Durga Prasad Paladugu0fd2290c2018-06-19 12:24:23 +02002235 help
Ashok Reddy Soma480245c2022-01-17 10:16:50 +01002236 This enables commands to bringup different processors
2237 in multiprocessor cases.
Siva Durga Prasad Paladugu0fd2290c2018-06-19 12:24:23 +02002238
Simon Glass72a8cf82016-01-17 20:53:51 -07002239config CMD_TIMER
2240 bool "timer"
2241 help
2242 Access the system timer.
2243
Simon Glass72a8cf82016-01-17 20:53:51 -07002244config CMD_SOUND
2245 bool "sound"
2246 depends on SOUND
2247 help
2248 This provides basic access to the U-Boot's sound support. The main
2249 feature is to play a beep.
2250
2251 sound init - set up sound system
2252 sound play - play a sound
2253
Patrice Chotard993c9122019-11-25 09:07:38 +01002254config CMD_SYSBOOT
2255 bool "sysboot"
John Keepingbe43a352022-07-28 11:19:15 +01002256 select PXE_UTILS
Patrice Chotard993c9122019-11-25 09:07:38 +01002257 help
2258 Boot image via local extlinux.conf file
2259
Miao Yan18686592016-05-22 19:37:17 -07002260config CMD_QFW
Tom Rinidd6f3ab2016-05-06 10:40:22 -04002261 bool "qfw"
Miao Yanfcf5c042016-05-22 19:37:14 -07002262 select QFW
Tom Rinibfaa0482023-10-26 14:31:14 -04002263 default y if TARGET_QEMU_ARM_32BIT || TARGET_QEMU_ARM_64BIT || \
2264 TARGET_QEMU_X86 || TARGET_QEMU_X86_64
Tom Rinidd6f3ab2016-05-06 10:40:22 -04002265 help
2266 This provides access to the QEMU firmware interface. The main
2267 feature is to allow easy loading of files passed to qemu-system
2268 via -kernel / -initrd
Konstantin Porotchkinfa61ef62016-12-08 12:22:28 +02002269
Frédéric Danis9744d1a2020-03-20 10:59:22 +01002270config CMD_PSTORE
2271 bool "pstore"
2272 help
2273 This provides access to Linux PStore with Rammoops backend. The main
2274 feature is to allow to display or save PStore records.
2275
2276 See doc/pstore.rst for more information.
2277
2278if CMD_PSTORE
2279
2280config CMD_PSTORE_MEM_ADDR
2281 hex "Memory Address"
2282 depends on CMD_PSTORE
2283 help
2284 Base addr used for PStore ramoops memory, should be identical to
2285 ramoops.mem_address parameter used by kernel
2286
2287config CMD_PSTORE_MEM_SIZE
2288 hex "Memory size"
2289 depends on CMD_PSTORE
2290 default "0x10000"
2291 help
2292 Size of PStore ramoops memory, should be identical to ramoops.mem_size
2293 parameter used by kernel, a power of 2 and larger than the sum of the
2294 record sizes
2295
2296config CMD_PSTORE_RECORD_SIZE
2297 hex "Dump record size"
2298 depends on CMD_PSTORE
2299 default "0x1000"
2300 help
2301 Size of each dump done on oops/panic, should be identical to
2302 ramoops.record_size parameter used by kernel and a power of 2
2303 Must be non-zero
2304
2305config CMD_PSTORE_CONSOLE_SIZE
2306 hex "Kernel console log size"
2307 depends on CMD_PSTORE
2308 default "0x1000"
2309 help
2310 Size of kernel console log, should be identical to
2311 ramoops.console_size parameter used by kernel and a power of 2
2312 Must be non-zero
2313
2314config CMD_PSTORE_FTRACE_SIZE
2315 hex "FTrace log size"
2316 depends on CMD_PSTORE
2317 default "0x1000"
2318 help
2319 Size of ftrace log, should be identical to ramoops.ftrace_size
2320 parameter used by kernel and a power of 2
2321
2322config CMD_PSTORE_PMSG_SIZE
2323 hex "User space message log size"
2324 depends on CMD_PSTORE
2325 default "0x1000"
2326 help
2327 Size of user space message log, should be identical to
2328 ramoops.pmsg_size parameter used by kernel and a power of 2
2329
2330config CMD_PSTORE_ECC_SIZE
2331 int "ECC size"
2332 depends on CMD_PSTORE
2333 default "0"
2334 help
2335 if non-zero, the option enables ECC support and specifies ECC buffer
2336 size in bytes (1 is a special value, means 16 bytes ECC), should be
2337 identical to ramoops.ramoops_ecc parameter used by kernel
2338
2339endif
2340
Konstantin Porotchkinfa61ef62016-12-08 12:22:28 +02002341source "cmd/mvebu/Kconfig"
2342
Simon Glass3cef3b32017-08-04 16:34:55 -06002343config CMD_TERMINAL
2344 bool "terminal - provides a way to attach a serial terminal"
2345 help
2346 Provides a 'cu'-like serial terminal command. This can be used to
2347 access other serial ports from the system console. The terminal
2348 is very simple with no special processing of characters. As with
2349 cu, you can press ~. (tilde followed by period) to exit.
2350
Simon Glass1aa4e8d2017-08-04 16:35:02 -06002351config CMD_UUID
2352 bool "uuid, guid - generation of unique IDs"
Adam Forda451bc22018-02-06 12:14:28 -06002353 select LIB_UUID
Simon Glass1aa4e8d2017-08-04 16:35:02 -06002354 help
2355 This enables two commands:
2356
2357 uuid - generate random Universally Unique Identifier
2358 guid - generate Globally Unique Identifier based on random UUID
2359
2360 The two commands are very similar except for the endianness of the
2361 output.
2362
Simon Glassf029f902022-10-06 08:36:06 -06002363config CMD_VIDCONSOLE
2364 bool "lcdputs and setcurs"
Simon Glassb86986c2022-10-18 07:46:31 -06002365 depends on VIDEO
Simon Glassf029f902022-10-06 08:36:06 -06002366 default y
2367 help
2368 Enabling this will provide 'setcurs' and 'lcdputs' commands which
2369 support cursor positioning and drawing strings on the video
2370 console (framebuffer).
2371
2372 The name 'lcdputs' is a bit of a misnomer, but so named because the
2373 video device is often an LCD.
2374
Dzmitry Sankouskie7ee1fd2023-03-07 13:21:16 +03002375config CMD_SELECT_FONT
2376 bool "select font size"
2377 depends on VIDEO
Simon Glassd83f4e62023-10-26 14:31:18 -04002378 default y if CONSOLE_TRUETYPE
Dzmitry Sankouskie7ee1fd2023-03-07 13:21:16 +03002379 help
2380 Enabling this will provide 'font' command.
2381 Allows font selection at runtime.
2382
Simon Glass72a8cf82016-01-17 20:53:51 -07002383endmenu
2384
Lokesh Vutla5cd96612017-12-29 11:47:49 +05302385source "cmd/ti/Kconfig"
2386
Simon Glass72a8cf82016-01-17 20:53:51 -07002387config CMD_BOOTSTAGE
2388 bool "Enable the 'bootstage' command"
2389 depends on BOOTSTAGE
2390 help
2391 Add a 'bootstage' command which supports printing a report
2392 and un/stashing of bootstage data.
2393
2394menu "Power commands"
2395config CMD_PMIC
2396 bool "Enable Driver Model PMIC command"
2397 depends on DM_PMIC
2398 help
2399 This is the pmic command, based on a driver model pmic's API.
2400 Command features are unchanged:
2401 - list - list pmic devices
2402 - pmic dev <id> - show or [set] operating pmic device (NEW)
2403 - pmic dump - dump registers
2404 - pmic read address - read byte of register at address
2405 - pmic write address - write byte to register at address
2406 The only one change for this command is 'dev' subcommand.
2407
2408config CMD_REGULATOR
2409 bool "Enable Driver Model REGULATOR command"
2410 depends on DM_REGULATOR
2411 help
2412 This command is based on driver model regulator's API.
2413 User interface features:
2414 - list - list regulator devices
2415 - regulator dev <id> - show or [set] operating regulator device
2416 - regulator info - print constraints info
2417 - regulator status - print operating status
2418 - regulator value <val] <-f> - print/[set] voltage value [uV]
2419 - regulator current <val> - print/[set] current value [uA]
2420 - regulator mode <id> - print/[set] operating mode id
2421 - regulator enable - enable the regulator output
2422 - regulator disable - disable the regulator output
2423
2424 The '-f' (force) option can be used for set the value which exceeds
2425 the limits, which are found in device-tree and are kept in regulator's
Simon Glasscaa4daa2020-12-03 16:55:18 -07002426 uclass plat structure.
Simon Glass72a8cf82016-01-17 20:53:51 -07002427
2428endmenu
2429
2430menu "Security commands"
Simon Glassb1a873d2017-04-26 22:27:49 -06002431config CMD_AES
2432 bool "Enable the 'aes' command"
2433 select AES
2434 help
2435 This provides a means to encrypt and decrypt data using the AES
2436 (Advanced Encryption Standard). This algorithm uses a symetric key
2437 and is widely used as a streaming cipher. Different key lengths are
2438 supported by the algorithm but this command only supports 128 bits
2439 at present.
2440
Simon Glassc04b9b32017-04-26 22:27:53 -06002441config CMD_BLOB
2442 bool "Enable the 'blob' command"
Aymen Sghaier25324292021-03-25 17:30:27 +08002443 depends on !MX6ULL && !MX6SLL && !MX6SL
2444 select IMX_HAB if ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP || ARCH_IMX8M
Simon Glassc04b9b32017-04-26 22:27:53 -06002445 help
2446 This is used with the Freescale secure boot mechanism.
2447
2448 Freescale's SEC block has built-in Blob Protocol which provides
2449 a method for protecting user-defined data across system power
2450 cycles. SEC block protects data in a data structure called a Blob,
2451 which provides both confidentiality and integrity protection.
2452
2453 Encapsulating data as a blob
2454 Each time that the Blob Protocol is used to protect data, a
2455 different randomly generated key is used to encrypt the data.
2456 This random key is itself encrypted using a key which is derived
2457 from SoC's non-volatile secret key and a 16 bit Key identifier.
2458 The resulting encrypted key along with encrypted data is called a
2459 blob. The non-volatile secure key is available for use only during
2460 secure boot.
2461
2462 During decapsulation, the reverse process is performed to get back
2463 the original data.
2464
2465 Sub-commands:
Michal Simek6e7bdde2018-07-23 15:55:12 +02002466 blob enc - encapsulating data as a cryptgraphic blob
Simon Glassc04b9b32017-04-26 22:27:53 -06002467 blob dec - decapsulating cryptgraphic blob to get the data
2468
2469 Syntax:
2470
2471 blob enc src dst len km
2472
2473 Encapsulate and create blob of data $len bytes long
2474 at address $src and store the result at address $dst.
2475 $km is the 16 byte key modifier is also required for
2476 generation/use as key for cryptographic operation. Key
2477 modifier should be 16 byte long.
2478
2479 blob dec src dst len km
2480
2481 Decapsulate the blob of data at address $src and
2482 store result of $len byte at addr $dst.
2483 $km is the 16 byte key modifier is also required for
2484 generation/use as key for cryptographic operation. Key
2485 modifier should be 16 byte long.
2486
Simon Glass551c3932017-05-17 03:25:25 -06002487config CMD_HASH
2488 bool "Support 'hash' command"
Simon Glassd70f9192017-05-17 09:05:34 -06002489 select HASH
Simon Glass551c3932017-05-17 03:25:25 -06002490 help
2491 This provides a way to hash data in memory using various supported
2492 algorithms (such as SHA1, MD5, CRC32). The computed digest can be
2493 saved to memory or to an environment variable. It is also possible
2494 to verify a hash against data in memory.
2495
Michalis Pappas666028f2018-04-13 10:40:57 +03002496config CMD_HVC
2497 bool "Support the 'hvc' command"
2498 depends on ARM_SMCCC
2499 help
2500 Allows issuing Hypervisor Calls (HVCs). Mostly useful for
2501 development and testing.
2502
2503config CMD_SMC
2504 bool "Support the 'smc' command"
2505 depends on ARM_SMCCC
2506 help
2507 Allows issuing Secure Monitor Calls (SMCs). Mostly useful for
2508 development and testing.
2509
Daniel Thompson221a9492017-05-19 17:26:58 +01002510config HASH_VERIFY
2511 bool "hash -v"
2512 depends on CMD_HASH
2513 help
2514 Add -v option to verify data against a hash.
2515
Jorge Ramirez-Ortiz26839e52021-02-14 16:27:24 +01002516config CMD_SCP03
2517 bool "scp03 - SCP03 enable and rotate/provision operations"
2518 depends on SCP03
2519 help
2520 This command provides access to a Trusted Application
2521 running in a TEE to request Secure Channel Protocol 03
2522 (SCP03) enablement and/or rotation of its SCP03 keys.
2523
Miquel Raynal9f9ce3c2018-05-15 11:57:05 +02002524config CMD_TPM_V1
2525 bool
2526
2527config CMD_TPM_V2
2528 bool
2529
Simon Glass72a8cf82016-01-17 20:53:51 -07002530config CMD_TPM
2531 bool "Enable the 'tpm' command"
Miquel Raynal9f9ce3c2018-05-15 11:57:05 +02002532 depends on TPM_V1 || TPM_V2
2533 select CMD_TPM_V1 if TPM_V1
2534 select CMD_TPM_V2 if TPM_V2
Simon Glass72a8cf82016-01-17 20:53:51 -07002535 help
2536 This provides a means to talk to a TPM from the command line. A wide
2537 range of commands if provided - see 'tpm help' for details. The
2538 command requires a suitable TPM on your board and the correct driver
2539 must be enabled.
2540
Miquel Raynal9f9ce3c2018-05-15 11:57:05 +02002541if CMD_TPM
2542
Simon Glass72a8cf82016-01-17 20:53:51 -07002543config CMD_TPM_TEST
2544 bool "Enable the 'tpm test' command"
Miquel Raynal9f9ce3c2018-05-15 11:57:05 +02002545 depends on TPM_V1
Simon Glass72a8cf82016-01-17 20:53:51 -07002546 help
Miquel Raynal9f9ce3c2018-05-15 11:57:05 +02002547 This provides a a series of tests to confirm that the TPMv1.x is
2548 working correctly. The tests cover initialisation, non-volatile RAM,
2549 extend, global lock and checking that timing is within expectations.
2550 The tests pass correctly on Infineon TPMs but may need to be adjusted
Simon Glass72a8cf82016-01-17 20:53:51 -07002551 for other devices.
2552
Miquel Raynal9f9ce3c2018-05-15 11:57:05 +02002553endif
2554
Simon Glass72a8cf82016-01-17 20:53:51 -07002555endmenu
2556
Moritz Fischerbfeba012016-10-04 17:08:08 -07002557menu "Firmware commands"
2558config CMD_CROS_EC
2559 bool "Enable crosec command"
2560 depends on CROS_EC
2561 default y
2562 help
2563 Enable command-line access to the Chrome OS EC (Embedded
2564 Controller). This provides the 'crosec' command which has
2565 a number of sub-commands for performing EC tasks such as
2566 updating its flash, accessing a small saved context area
2567 and talking to the I2C bus behind the EC (if there is one).
AKASHI Takahiro8055f902023-11-14 11:14:26 +09002568
2569config CMD_SCMI
2570 bool "Enable scmi command"
2571 depends on SCMI_FIRMWARE
2572 default n
2573 help
2574 This command provides user interfaces to several SCMI (System
2575 Control and Management Interface) protocols available on Arm
2576 platforms to manage system resources.
Moritz Fischerbfeba012016-10-04 17:08:08 -07002577endmenu
2578
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002579menu "Filesystem commands"
Marek Behún9d845502017-09-03 17:00:30 +02002580config CMD_BTRFS
2581 bool "Enable the 'btrsubvol' command"
2582 select FS_BTRFS
2583 help
2584 This enables the 'btrsubvol' command to list subvolumes
2585 of a BTRFS filesystem. There are no special commands for
2586 listing BTRFS directories or loading BTRFS files - this
2587 can be done by the generic 'fs' commands (see CMD_FS_GENERIC)
2588 when BTRFS is enabled (see FS_BTRFS).
2589
Simon Glassd66a10f2017-04-26 22:27:58 -06002590config CMD_CBFS
2591 bool "Enable the 'cbfs' command"
Simon Glassdeb959992017-04-26 22:27:59 -06002592 depends on FS_CBFS
Simon Glassd66a10f2017-04-26 22:27:58 -06002593 help
2594 Define this to enable support for reading from a Coreboot
2595 filesystem. This is a ROM-based filesystem used for accessing files
2596 on systems that use coreboot as the first boot-loader and then load
2597 U-Boot to actually boot the Operating System. Available commands are
2598 cbfsinit, cbfsinfo, cbfsls and cbfsload.
2599
Simon Glass97072742017-04-26 22:28:03 -06002600config CMD_CRAMFS
2601 bool "Enable the 'cramfs' command"
Simon Glass80e44cf2017-04-26 22:28:04 -06002602 depends on FS_CRAMFS
Simon Glass97072742017-04-26 22:28:03 -06002603 help
2604 This provides commands for dealing with CRAMFS (Compressed ROM
2605 filesystem). CRAMFS is useful when space is tight since files are
2606 compressed. Two commands are provided:
2607
2608 cramfsls - lists files in a cramfs image
2609 cramfsload - loads a file from a cramfs image
2610
Huang Jianan739941e2022-02-26 15:05:50 +08002611config CMD_EROFS
2612 bool "EROFS command support"
2613 select FS_EROFS
2614 help
2615 Support for the EROFS fs
2616
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002617config CMD_EXT2
2618 bool "ext2 command support"
Tuomas Tynkkynen3d22bae2018-01-05 02:45:17 +02002619 select FS_EXT4
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002620 help
2621 Enables EXT2 FS command
2622
2623config CMD_EXT4
2624 bool "ext4 command support"
Tuomas Tynkkynen3d22bae2018-01-05 02:45:17 +02002625 select FS_EXT4
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002626 help
2627 Enables EXT4 FS command
2628
2629config CMD_EXT4_WRITE
2630 depends on CMD_EXT4
2631 bool "ext4 write command support"
Tuomas Tynkkynen3d22bae2018-01-05 02:45:17 +02002632 select EXT4_WRITE
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002633 help
2634 Enables EXT4 FS write command
2635
2636config CMD_FAT
2637 bool "FAT command support"
Sekhar Norieedfb892017-06-02 17:53:59 +05302638 select FS_FAT
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002639 help
2640 Support for the FAT fs
2641
Joao Marcos Costabba604b2020-07-30 15:33:48 +02002642config CMD_SQUASHFS
2643 bool "SquashFS command support"
2644 select FS_SQUASHFS
2645 help
2646 Enables SquashFS filesystem commands (e.g. load, ls).
2647
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002648config CMD_FS_GENERIC
2649 bool "filesystem commands"
2650 help
2651 Enables filesystem commands (e.g. load, ls) that work for multiple
2652 fs types.
Maxime Ripard0269dfa2017-02-27 18:22:04 +01002653
Josua Mayerefbe99c2017-04-24 10:10:45 +02002654config CMD_FS_UUID
2655 bool "fsuuid command"
2656 help
2657 Enables fsuuid command for filesystem UUID.
2658
Simon Glassb8682a72017-05-17 03:25:37 -06002659config CMD_JFFS2
2660 bool "jffs2 command"
Simon Glass59e12a42017-05-17 03:25:38 -06002661 select FS_JFFS2
Simon Glassb8682a72017-05-17 03:25:37 -06002662 help
2663 Enables commands to support the JFFS2 (Journalling Flash File System
2664 version 2) filesystem. This enables fsload, ls and fsinfo which
2665 provide the ability to load files, list directories and obtain
2666 filesystem information.
2667
Tom Rini968c6212021-12-17 18:08:47 -05002668config JFFS2_DEV
2669 string "Default device for JFFS2"
2670 depends on CMD_JFFS2
2671 default "nor0"
2672 help
2673 The default device to use with the jffs2 command.
2674
2675config JFFS2_PART_OFFSET
2676 hex "Default offset within flash to locate the JFFS2 image"
2677 depends on CMD_JFFS2
2678 default 0x0
2679 help
2680 The default offset within flash to locate the JFFS2 image.
2681
2682config JFFS2_PART_SIZE
2683 hex "Default size of JFFS2 partition"
2684 depends on CMD_JFFS2
2685 default 0xFFFFFFFF
2686 help
2687 The default size of the JFFS2 partition
2688
Maxime Ripard0269dfa2017-02-27 18:22:04 +01002689config CMD_MTDPARTS
Maxime Ripard0269dfa2017-02-27 18:22:04 +01002690 bool "MTD partition support"
Miquel Raynalff102c52019-10-25 19:39:30 +02002691 depends on MTD
Maxime Ripard0269dfa2017-02-27 18:22:04 +01002692 help
Miquel Raynal938db6f2018-09-29 12:58:30 +02002693 MTD partitioning tool support.
2694 It is strongly encouraged to avoid using this command
2695 anymore along with 'sf', 'nand', 'onenand'. One can still
2696 declare the partitions in the mtdparts environment variable
2697 but better use the MTD stack and the 'mtd' command instead.
Maxime Ripard0269dfa2017-02-27 18:22:04 +01002698
Simon Glasscb70e6c2017-08-04 16:34:30 -06002699config CMD_MTDPARTS_SPREAD
2700 bool "Padd partition size to take account of bad blocks"
2701 depends on CMD_MTDPARTS
2702 help
2703 This enables the 'spread' sub-command of the mtdparts command.
2704 This command will modify the existing mtdparts variable by increasing
2705 the size of the partitions such that 1) each partition's net size is
2706 at least as large as the size specified in the mtdparts variable and
2707 2) each partition starts on a good block.
2708
Alexander Dahl672c5702019-10-30 16:53:55 +01002709config CMD_MTDPARTS_SHOW_NET_SIZES
2710 bool "Show net size (w/o bad blocks) of partitions"
2711 depends on CMD_MTDPARTS
2712 help
2713 Adds two columns to the printed partition table showing the
2714 effective usable size of a partition, if bad blocks are taken
2715 into account.
2716
Miquel Raynal587f4452019-10-03 19:50:25 +02002717config MTDIDS_DEFAULT
2718 string "Default MTD IDs"
Miquel Raynalff102c52019-10-25 19:39:30 +02002719 depends on MTD || SPI_FLASH
Patrick Delaunay6762c8d2022-12-08 09:10:13 +01002720 depends on !SYS_MTDPARTS_RUNTIME
Miquel Raynal587f4452019-10-03 19:50:25 +02002721 help
2722 Defines a default MTD IDs list for use with MTD partitions in the
2723 Linux MTD command line partitions format.
2724
2725config MTDPARTS_DEFAULT
2726 string "Default MTD partition scheme"
Miquel Raynalff102c52019-10-25 19:39:30 +02002727 depends on MTD || SPI_FLASH
Patrick Delaunay6762c8d2022-12-08 09:10:13 +01002728 depends on !SYS_MTDPARTS_RUNTIME
Miquel Raynal587f4452019-10-03 19:50:25 +02002729 help
2730 Defines a default MTD partitioning scheme in the Linux MTD command
2731 line partitions format
2732
Simon Glassf8803a92017-08-04 16:34:41 -06002733config CMD_REISER
2734 bool "reiser - Access to reiserfs filesystems"
2735 help
2736 This provides two commands which operate on a resierfs filesystem,
2737 commonly used some years ago:
2738
2739 reiserls - list files
2740 reiserload - load a file
2741
Simon Glass7a764312017-08-04 16:34:58 -06002742config CMD_YAFFS2
2743 bool "yaffs2 - Access of YAFFS2 filesystem"
2744 depends on YAFFS2
2745 default y
2746 help
2747 This provides commands for accessing a YAFFS2 filesystem. Yet
2748 Another Flash Filesystem 2 is a filesystem designed specifically
2749 for NAND flash. It incorporates bad-block management and ensures
2750 that device writes are sequential regardless of filesystem
2751 activity.
2752
Simon Glass54feea12017-08-04 16:35:04 -06002753config CMD_ZFS
2754 bool "zfs - Access of ZFS filesystem"
2755 help
2756 This provides commands to accessing a ZFS filesystem, commonly used
2757 on Solaris systems. Two sub-commands are provided:
2758
2759 zfsls - list files in a directory
2760 zfsload - load a file
2761
2762 See doc/README.zfs for more details.
2763
Dinh Nguyenab8243e2016-04-21 09:05:23 -05002764endmenu
2765
Simon Glassac20a1b2017-04-26 22:27:52 -06002766menu "Debug commands"
2767
Simon Glass71cebf02021-03-15 18:00:24 +13002768config CMD_CBSYSINFO
2769 bool "cbsysinfo"
2770 depends on X86
2771 default y if SYS_COREBOOT
2772 help
2773 This provides information about the coreboot sysinfo table stored in
2774 memory by coreboot before jumping to U-Boot. It can be useful for
2775 debugging the beaaviour of coreboot or U-Boot.
2776
Stefan Roese1f865ee2022-09-02 13:57:51 +02002777config CMD_CYCLIC
2778 bool "cyclic - Show information about cyclic functions"
2779 depends on CYCLIC
2780 default y
2781 help
2782 This enables the 'cyclic' command which provides information about
2783 cyclic execution functions. This infrastructure allows registering
2784 functions to be executed cyclically, e.g. every 100ms. These commands
2785 are supported:
2786
2787 cyclic list - list cyclic functions
2788 cyclic cyclic demo <cycletime_ms> <delay_us> - register cyclic
2789 demo function
2790
2791 See doc/develop/cyclic.rst for more details.
2792
Simon Glass3bd25cb2017-04-26 22:28:08 -06002793config CMD_DIAG
2794 bool "diag - Board diagnostics"
2795 help
2796 This command provides access to board diagnostic tests. These are
2797 called Power-on Self Tests (POST). The command allows listing of
2798 available tests and running either all the tests, or specific tests
2799 identified by name.
2800
Simon Glassc81b4602022-03-04 08:43:06 -07002801config CMD_EVENT
2802 bool "event - Show information about events"
Tom Rini448e2b62023-01-16 15:46:49 -05002803 depends on EVENT
Simon Glassc81b4602022-03-04 08:43:06 -07002804 default y if EVENT_DEBUG
2805 help
2806 This enables the 'event' command which provides information about
2807 events and event-handler routines. This can help to device event
2808 hadling.
2809
Simon Glass1b330892017-05-17 03:25:39 -06002810config CMD_IRQ
2811 bool "irq - Show information about interrupts"
Pragnesh Patelc5a7e5b2020-08-24 20:38:55 +05302812 depends on !ARM && !MIPS && !RISCV && !SH
Simon Glass1b330892017-05-17 03:25:39 -06002813 help
2814 This enables two commands:
2815
2816 interrupts - enable or disable interrupts
2817 irqinfo - print device-specific interrupt information
Simon Glass6bac2272017-05-17 03:25:40 -06002818
2819config CMD_KGDB
2820 bool "kgdb - Allow debugging of U-Boot with gdb"
Michal Simekb9205502018-10-04 14:26:13 +02002821 depends on PPC
Simon Glass6bac2272017-05-17 03:25:40 -06002822 help
2823 This enables a 'kgdb' command which allows gdb to connect to U-Boot
2824 over a serial link for debugging purposes. This allows
2825 single-stepping, inspecting variables, etc. This is supported only
2826 on PowerPC at present.
2827
Simon Glassd5f61f22017-12-04 13:48:26 -07002828config CMD_LOG
2829 bool "log - Generation, control and access to logging"
Heinrich Schuchardt83a1f932018-04-19 22:02:46 +02002830 select LOG
Sean Anderson3e409762020-10-27 19:55:38 -04002831 select GETOPT
Simon Glassd5f61f22017-12-04 13:48:26 -07002832 help
2833 This provides access to logging features. It allows the output of
2834 log data to be controlled to a limited extent (setting up the default
Simon Glassef11ed82017-12-04 13:48:27 -07002835 maximum log level for emitting of records). It also provides access
2836 to a command used for testing the log system.
Simon Glassd5f61f22017-12-04 13:48:26 -07002837
Simon Glassce058ae2017-08-04 16:34:59 -06002838config CMD_TRACE
2839 bool "trace - Support tracing of function calls and timing"
Simon Glass89050242021-11-24 09:26:39 -07002840 depends on TRACE
2841 default y
Simon Glassce058ae2017-08-04 16:34:59 -06002842 help
2843 Enables a command to control using of function tracing within
2844 U-Boot. This allows recording of call traces including timing
2845 information. The command can write data to memory for exporting
Simon Glassa24a78d2019-04-08 13:20:51 -06002846 for analysis (e.g. using bootchart). See doc/README.trace for full
Simon Glassce058ae2017-08-04 16:34:59 -06002847 details.
2848
Igor Opaniuk60b2f9e2018-06-03 21:56:39 +03002849config CMD_AVB
2850 bool "avb - Android Verified Boot 2.0 operations"
Igor Opaniukb0aa74a2018-07-17 14:33:25 +03002851 depends on AVB_VERIFY
Igor Opaniuk60b2f9e2018-06-03 21:56:39 +03002852 help
2853 Enables a "avb" command to perform verification of partitions using
2854 Android Verified Boot 2.0 functionality. It includes such subcommands:
2855 avb init - initialize avb2 subsystem
2856 avb read_rb - read rollback index
2857 avb write_rb - write rollback index
2858 avb is_unlocked - check device lock state
2859 avb get_uuid - read and print uuid of a partition
2860 avb read_part - read data from partition
2861 avb read_part_hex - read data from partition and output to stdout
2862 avb write_part - write data to partition
2863 avb verify - run full verification chain
Joel Peshkin4e9bce12021-04-11 11:21:58 +02002864
2865config CMD_STACKPROTECTOR_TEST
2866 bool "Test command for stack protector"
2867 depends on STACKPROTECTOR
2868 help
2869 Enable stackprot_test command
2870 The stackprot_test command will force a stack overrun to test
2871 the stack smashing detection mechanisms.
2872
Simon Glassac20a1b2017-04-26 22:27:52 -06002873endmenu
2874
Heiko Schocher8f2fe0c2016-09-21 07:58:19 +02002875config CMD_UBI
2876 tristate "Enable UBI - Unsorted block images commands"
Heiko Schocher8f2fe0c2016-09-21 07:58:19 +02002877 select MTD_UBI
2878 help
2879 UBI is a software layer above MTD layer which admits use of LVM-like
2880 logical volumes on top of MTD devices, hides some complexities of
2881 flash chips like wear and bad blocks and provides some other useful
2882 capabilities. Please, consult the MTD web site for more details
2883 (www.linux-mtd.infradead.org). Activate this option if you want
2884 to use U-Boot UBI commands.
Miquel Raynalc58fb2c2018-09-29 12:58:29 +02002885 It is also strongly encouraged to also enable CONFIG_MTD to get full
2886 partition support.
Heiko Schocher8f2fe0c2016-09-21 07:58:19 +02002887
Philippe Reynes83f70782020-03-23 19:20:47 +01002888config CMD_UBI_RENAME
2889 bool "Enable rename"
2890 depends on CMD_UBI
Philippe Reynes83f70782020-03-23 19:20:47 +01002891 help
2892 Enable a "ubi" command to rename ubi volume:
2893 ubi rename <oldname> <newname>
2894
Boris Brezillon173aafb2017-02-27 18:22:06 +01002895config CMD_UBIFS
2896 tristate "Enable UBIFS - Unsorted block images filesystem commands"
Maxime Ripard2bc734b2017-03-03 14:53:22 +01002897 depends on CMD_UBI
Michal Simek5ed063d2018-07-23 15:55:13 +02002898 default y if CMD_UBI
Karl Beldan24fc9532017-07-12 16:11:47 +00002899 select LZO
Pali Rohárb257c4e2022-05-23 22:50:36 +02002900 select GZIP
Boris Brezillon173aafb2017-02-27 18:22:06 +01002901 help
2902 UBIFS is a file system for flash devices which works on top of UBI.
2903
Aswath Govindraju19f7a342021-08-13 23:04:41 +05302904config MMC_SPEED_MODE_SET
2905 bool "set speed mode using mmc command"
2906 depends on CMD_MMC
Aswath Govindraju19f7a342021-08-13 23:04:41 +05302907 help
2908 Enable setting speed mode using mmc rescan and mmc dev commands.
2909 The speed mode is provided as the last argument in these commands
2910 and is indicated using the index from enum bus_mode in
2911 include/mmc.h. A speed mode can be set only if it has already
2912 been enabled in the device tree.
Alexey Romanov311106a2023-01-10 13:56:47 +03002913
2914config CMD_MESON
2915 bool "Amlogic Meson commands"
2916 depends on ARCH_MESON
2917 default y
2918 help
2919 Enable useful commands for the Meson Soc family developed by Amlogic Inc.
Simon Glass88d9b262023-10-26 14:31:29 -04002920
2921endif