blob: 1ba6a38e78338c13a3dc8b50ca143358fb90fadd [file] [log] [blame]
Simon Glass29499a02016-01-17 20:53:51 -07001menu "Command line interface"
2
Simon Glassaa34ef22016-03-13 19:07:28 -06003config CMDLINE
4 bool "Support U-Boot commands"
5 default y
6 help
7 Enable U-Boot's command-line functions. This provides a means
8 to enter commands into U-Boot for a wide variety of purposes. It
9 also allows scripts (containing commands) to be executed.
10 Various commands and command categorys can be indivdually enabled.
11 Depending on the number of commands enabled, this can add
12 substantially to the size of U-Boot.
13
Simon Glass29499a02016-01-17 20:53:51 -070014config HUSH_PARSER
15 bool "Use hush shell"
Simon Glassaa34ef22016-03-13 19:07:28 -060016 depends on CMDLINE
Simon Glass29499a02016-01-17 20:53:51 -070017 help
18 This option enables the "hush" shell (from Busybox) as command line
19 interpreter, thus enabling powerful command line syntax like
20 if...then...else...fi conditionals or `&&' and '||'
21 constructs ("shell scripts").
22
23 If disabled, you get the old, much simpler behaviour with a somewhat
24 smaller memory footprint.
25
Adam Ford58dbf862018-02-06 07:58:59 -060026config CMDLINE_EDITING
27 bool "Enable command line editing"
28 depends on CMDLINE
29 default y
30 help
31 Enable editing and History functions for interactive command line
32 input operations
33
Tom Rini24d32042022-03-30 18:07:14 -040034config CMDLINE_PS_SUPPORT
35 bool "Enable support for changing the command prompt string at run-time"
36 depends on HUSH_PARSER
37 help
38 Only static string in the prompt is supported so far. The string is
39 obtained from environment variables PS1 and PS2.
40
Adam Ford58dbf862018-02-06 07:58:59 -060041config AUTO_COMPLETE
42 bool "Enable auto complete using TAB"
43 depends on CMDLINE
44 default y
45 help
46 Enable auto completion of commands using TAB.
47
48config SYS_LONGHELP
49 bool "Enable long help messages"
50 depends on CMDLINE
51 default y if CMDLINE
52 help
53 Defined when you want long help messages included
54 Do not set this option when short of memory.
55
Simon Glass29499a02016-01-17 20:53:51 -070056config SYS_PROMPT
57 string "Shell prompt"
Michal Simekf048cae2019-09-25 12:32:41 +020058 default "Zynq> " if ARCH_ZYNQ
Michal Simek4f107432019-09-25 12:37:15 +020059 default "ZynqMP> " if ARCH_ZYNQMP
Simon Glass29499a02016-01-17 20:53:51 -070060 default "=> "
61 help
62 This string is displayed in the command line to the left of the
63 cursor.
64
Patrick Delaunaya81e9dc2020-10-26 09:31:42 +010065config SYS_PROMPT_HUSH_PS2
66 string "Hush shell secondary prompt"
67 depends on HUSH_PARSER
68 default "> "
69 help
70 This defines the secondary prompt string, which is
71 printed when the command interpreter needs more input
72 to complete a command. Usually "> ".
73
Tom Riniba5c2b02022-05-11 16:21:06 -040074config SYS_MAXARGS
75 int "Maximum number arguments accepted by commands"
76 default 16
77
Christoph Muellner388b1452019-04-05 13:03:46 +020078config SYS_XTRACE
Sean Anderson1f863052021-03-04 11:34:23 -050079 bool "Command execution tracer"
Christoph Muellner388b1452019-04-05 13:03:46 +020080 depends on CMDLINE
81 default y if CMDLINE
82 help
83 This option enables the possiblity to print all commands before
84 executing them and after all variables are evaluated (similar
85 to Bash's xtrace/'set -x' feature).
86 To enable the tracer a variable "xtrace" needs to be defined in
87 the environment.
88
Sam Protsenko13c1f3a2017-09-28 12:33:45 -070089config BUILD_BIN2C
90 bool
91
Simon Glass29499a02016-01-17 20:53:51 -070092comment "Commands"
93
94menu "Info commands"
95
Simon Glassfaf08c72020-04-26 09:19:53 -060096config CMD_ACPI
97 bool "acpi"
Simon Glasse264be42023-05-04 16:54:57 -060098 depends on ACPI
Heinrich Schuchardt97430462021-01-20 21:37:56 +010099 default y
Simon Glassfaf08c72020-04-26 09:19:53 -0600100 help
101 List and dump ACPI tables. ACPI (Advanced Configuration and Power
102 Interface) is used mostly on x86 for providing information to the
103 Operating System about devices in the system. The tables are set up
104 by the firmware, typically U-Boot but possibly an earlier firmware
105 module, if U-Boot is chain-loaded from something else. ACPI tables
106 can also include code, to perform hardware-specific tasks required
107 by the Operating Systems. This allows some amount of separation
108 between the firmware and OS, and is particularly useful when you
109 want to make hardware changes without the OS needing to be adjusted.
110
Bin Meng70b22cf2021-02-25 17:22:34 +0800111config CMD_ADDRMAP
112 bool "addrmap"
113 depends on ADDR_MAP
114 default y
115 help
116 List non-identity virtual-physical memory mappings for 32-bit CPUs.
117
Simon Glass29499a02016-01-17 20:53:51 -0700118config CMD_BDI
119 bool "bdinfo"
120 default y
121 help
122 Print board info
123
Simon Glass5087c772023-07-15 21:38:46 -0600124config CMD_BDINFO_EXTRA
125 bool "bdinfo extra features"
126 default y if SANDBOX || X86
127 help
128 Show additional information about the board. This uses a little more
129 code space but provides more options, particularly those useful for
130 bringup, development and debugging.
131
Masahiro Yamadabb92b422017-01-30 11:12:07 +0900132config CMD_CONFIG
133 bool "config"
Masahiro Yamadabb92b422017-01-30 11:12:07 +0900134 default SANDBOX
Michal Simek84f3dec2018-07-23 15:55:13 +0200135 select BUILD_BIN2C
Masahiro Yamadabb92b422017-01-30 11:12:07 +0900136 help
137 Print ".config" contents.
138
139 If this option is enabled, the ".config" file contents are embedded
140 in the U-Boot image and can be printed on the console by the "config"
141 command. This provides information of which options are enabled on
142 the running U-Boot.
143
Simon Glass29499a02016-01-17 20:53:51 -0700144config CMD_CONSOLE
145 bool "coninfo"
146 default y
147 help
148 Print console devices and information.
149
150config CMD_CPU
151 bool "cpu"
Heinrich Schuchardt1cdcd0c2020-11-05 00:29:11 +0100152 depends on CPU
Simon Glass29499a02016-01-17 20:53:51 -0700153 help
154 Print information about available CPUs. This normally shows the
155 number of CPUs, type (e.g. manufacturer, architecture, product or
156 internal name) and clock frequency. Other information may be
157 available depending on the CPU driver.
158
Sughosh Ganu0f951fd2022-10-21 18:16:04 +0530159config CMD_FWU_METADATA
160 bool "fwu metadata read"
161 depends on FWU_MULTI_BANK_UPDATE
162 help
163 Command to read the metadata and dump it's contents
164
Simon Glass4c0bf972023-10-01 19:13:06 -0600165config CMD_HISTORY
166 bool "history"
167 depends on CMDLINE_EDITING
168 help
169 Show the command-line history, i.e. a list of commands that are in
170 the history buffer.
171
Simon Glass29499a02016-01-17 20:53:51 -0700172config CMD_LICENSE
173 bool "license"
Masahiro Yamada81680332017-01-30 11:12:08 +0900174 select BUILD_BIN2C
Simon Glass29499a02016-01-17 20:53:51 -0700175 help
176 Print GPL license text
177
Simon Glass8c501022019-12-06 21:41:54 -0700178config CMD_PMC
179 bool "pmc"
180 help
181 Provides access to the Intel Power-Management Controller (PMC) so
182 that its state can be examined. This does not currently support
183 changing the state but it is still useful for debugging and seeing
184 what is going on.
185
Christophe Leroye538bbc2017-08-04 16:34:40 -0600186config CMD_REGINFO
187 bool "reginfo"
188 depends on PPC
189 help
190 Register dump
191
Baruch Siachfad48982020-01-21 15:44:54 +0200192config CMD_TLV_EEPROM
193 bool "tlv_eeprom"
194 depends on I2C_EEPROM
Pali Rohár2bbf40b2022-05-30 10:42:35 +0200195 select CRC32
Baruch Siachfad48982020-01-21 15:44:54 +0200196 help
197 Display and program the system EEPROM data block in ONIE Tlvinfo
198 format. TLV stands for Type-Length-Value.
199
200config SPL_CMD_TLV_EEPROM
201 bool "tlv_eeprom for SPL"
202 depends on SPL_I2C_EEPROM
Simon Glass284cb9c2021-07-10 21:14:31 -0600203 select SPL_DRIVERS_MISC
Pali Rohár2bbf40b2022-05-30 10:42:35 +0200204 select SPL_CRC32
Baruch Siachfad48982020-01-21 15:44:54 +0200205 help
206 Read system EEPROM data block in ONIE Tlvinfo format from SPL.
207
Heinrich Schuchardt95492ae2020-08-20 19:43:39 +0200208config CMD_SBI
209 bool "sbi"
210 depends on RISCV_SMODE && SBI_V02
211 help
212 Display information about the SBI implementation.
213
Simon Glass29499a02016-01-17 20:53:51 -0700214endmenu
215
216menu "Boot commands"
217
218config CMD_BOOTD
219 bool "bootd"
220 default y
221 help
222 Run the command stored in the environment "bootcmd", i.e.
223 "bootd" does the same thing as "run bootcmd".
224
225config CMD_BOOTM
226 bool "bootm"
227 default y
228 help
229 Boot an application image from the memory.
230
Philippe Reynesae1f2ca2022-03-28 22:57:00 +0200231config CMD_BOOTM_PRE_LOAD
232 bool "enable pre-load on bootm"
233 depends on CMD_BOOTM
234 depends on IMAGE_PRE_LOAD
Philippe Reynesae1f2ca2022-03-28 22:57:00 +0200235 help
236 Enable support of stage pre-load for the bootm command.
237 This stage allow to check or modify the image provided
238 to the bootm command.
239
Simon Glass379f4382022-04-24 23:31:10 -0600240config CMD_BOOTDEV
241 bool "bootdev"
242 depends on BOOTSTD
243 default y if BOOTSTD_FULL
244 help
245 Support listing available bootdevs (boot devices) which can provide an
246 OS to boot, as well as showing information about a particular one.
247
248 This command is not necessary for bootstd to work.
249
Simon Glass7617f492022-04-24 23:31:11 -0600250config CMD_BOOTFLOW
251 bool "bootflow"
252 depends on BOOTSTD
253 default y
254 help
255 Support scanning for bootflows available with the bootdevs. The
256 bootflows can optionally be booted.
257
258config CMD_BOOTFLOW_FULL
259 bool "bootflow - extract subcommands"
260 depends on BOOTSTD_FULL
Simon Glass2d5a8e12023-05-06 08:27:09 -0600261 default y
Simon Glass7617f492022-04-24 23:31:11 -0600262 help
263 Add the ability to list the available bootflows, select one and obtain
264 information about it.
265
266 This command is not necessary for bootstd to work.
267
Simon Glassc49fd722022-04-24 23:31:12 -0600268config CMD_BOOTMETH
269 bool "bootmeth"
270 depends on BOOTSTD
271 default y if BOOTSTD_FULL
272 help
273 Support listing available bootmethds (methods used to boot an
274 Operating System), as well as selecting the order that the bootmeths
275 are used.
276
277 This command is not necessary for bootstd to work.
278
Cristian Ciocaltea6aca5982019-12-24 18:05:39 +0200279config BOOTM_EFI
280 bool "Support booting UEFI FIT images"
281 depends on CMD_BOOTEFI && CMD_BOOTM && FIT
282 default y
283 help
284 Support booting UEFI FIT images via the bootm command.
285
Dinh Nguyen0685bef2016-04-21 09:05:23 -0500286config CMD_BOOTZ
287 bool "bootz"
288 help
289 Boot the Linux zImage
290
Masahiro Yamada04cf1552016-08-12 08:31:16 -0400291config CMD_BOOTI
292 bool "booti"
Atish Patra583b4092019-05-06 17:49:39 -0700293 depends on ARM64 || RISCV
Masahiro Yamada04cf1552016-08-12 08:31:16 -0400294 default y
295 help
296 Boot an AArch64 Linux Kernel image from memory.
297
Tom Rini9a102072019-09-20 17:36:50 -0400298config BOOTM_LINUX
299 bool "Support booting Linux OS images"
300 depends on CMD_BOOTM || CMD_BOOTZ || CMD_BOOTI
301 default y
302 help
303 Support booting the Linux kernel directly via a command such as bootm
304 or booti or bootz.
305
306config BOOTM_NETBSD
307 bool "Support booting NetBSD (non-EFI) loader images"
308 depends on CMD_BOOTM
309 default y
310 help
311 Support booting NetBSD via the bootm command.
312
313config BOOTM_OPENRTOS
314 bool "Support booting OPENRTOS / FreeRTOS images"
315 depends on CMD_BOOTM
316 help
317 Support booting OPENRTOS / FreeRTOS via the bootm command.
318
319config BOOTM_OSE
320 bool "Support booting Enea OSE images"
Tom Rini1d0b1fc2019-12-05 18:46:11 -0500321 depends on (ARM && (ARM64 || CPU_V7A || CPU_V7R) || SANDBOX || PPC || X86)
Tom Rini9a102072019-09-20 17:36:50 -0400322 depends on CMD_BOOTM
323 help
324 Support booting Enea OSE images via the bootm command.
325
326config BOOTM_PLAN9
327 bool "Support booting Plan9 OS images"
328 depends on CMD_BOOTM
329 default y
330 help
331 Support booting Plan9 images via the bootm command.
332
333config BOOTM_RTEMS
334 bool "Support booting RTEMS OS images"
335 depends on CMD_BOOTM
336 default y
337 help
338 Support booting RTEMS images via the bootm command.
339
Linus Walleijbef39252023-02-01 00:16:13 +0100340config CMD_SEAMA
341 bool "Support read SEAMA NAND images"
342 depends on MTD_RAW_NAND
343 help
344 Support reading NAND Seattle Image (SEAMA) images.
345
Simon Glasse5a7b772022-07-30 15:52:37 -0600346config CMD_VBE
347 bool "vbe - Verified Boot for Embedded"
348 depends on BOOTMETH_VBE
Simon Glassd39d5b22022-08-23 10:14:05 -0700349 default y if BOOTSTD_FULL
Simon Glasse5a7b772022-07-30 15:52:37 -0600350 help
351 Provides various subcommands related to VBE, such as listing the
352 available methods, looking at the state and changing which method
353 is used to boot. Updating the parameters is not currently
354 supported.
355
Tom Rini9a102072019-09-20 17:36:50 -0400356config BOOTM_VXWORKS
357 bool "Support booting VxWorks OS images"
358 depends on CMD_BOOTM
359 default y
360 help
361 Support booting VxWorks images via the bootm command.
362
Tom Rinif3c2f992022-06-25 19:29:46 -0400363config SYS_BOOTM_LEN
364 hex "Maximum size of a decompresed OS image"
Marek Vasut5be531b2023-05-29 14:04:06 +0200365 depends on CMD_BOOTM || CMD_BOOTI || CMD_BOOTZ || \
366 LEGACY_IMAGE_FORMAT || SPL_LEGACY_IMAGE_FORMAT
Tom Rinif3c2f992022-06-25 19:29:46 -0400367 default 0x4000000 if PPC || ARM64
368 default 0x1000000 if X86 || ARCH_MX6 || ARCH_MX7
369 default 0x800000
370 help
371 This is the maximum size of the buffer that is used to decompress the OS
372 image in to, if passing a compressed image to bootm/booti/bootz.
373
AKASHI Takahiro8d95b6e2019-11-08 10:32:15 +0900374config CMD_BOOTEFI
375 bool "bootefi"
376 depends on EFI_LOADER
377 default y
378 help
379 Boot an EFI image from memory.
380
Simon Glassd1e46f02023-10-26 14:31:20 -0400381config CMD_BOOTEFI_BOOTMGR
382 bool "UEFI Boot Manager command"
383 depends on BOOTEFI_BOOTMGR && CMD_BOOTEFI
384 default y
385 help
386 Select this option to enable the 'bootmgr' subcommand of 'bootefi'.
387 This subcommand will allow you to select the UEFI binary to be booted
388 via UEFI variables Boot####, BootOrder, and BootNext.
389
Alexander Grafb5483512016-11-17 22:40:10 +0100390config CMD_BOOTEFI_HELLO_COMPILE
391 bool "Compile a standard EFI hello world binary for testing"
Heinrich Schuchardt0f675d92019-11-07 08:05:17 +0100392 depends on CMD_BOOTEFI && !CPU_V7M
Alexander Grafb5483512016-11-17 22:40:10 +0100393 default y
394 help
395 This compiles a standard EFI hello world application with U-Boot so
396 that it can be used with the test/py testing framework. This is useful
397 for testing that EFI is working at a basic level, and for bringing
398 up EFI support on a new architecture.
399
400 No additional space will be required in the resulting U-Boot binary
401 when this option is enabled.
402
Simon Glassfac4ced2016-11-07 08:47:08 -0700403config CMD_BOOTEFI_HELLO
404 bool "Allow booting a standard EFI hello world for testing"
Alexander Grafb5483512016-11-17 22:40:10 +0100405 depends on CMD_BOOTEFI_HELLO_COMPILE
Heinrich Schuchardt9ad6e1e2020-07-13 07:33:40 +0200406 default y if CMD_BOOTEFI_SELFTEST
Simon Glassfac4ced2016-11-07 08:47:08 -0700407 help
408 This adds a standard EFI hello world application to U-Boot so that
409 it can be used with the 'bootefi hello' command. This is useful
410 for testing that EFI is working at a basic level, and for bringing
411 up EFI support on a new architecture.
412
Heinrich Schuchardtd33ae3e2017-09-15 10:06:11 +0200413source lib/efi_selftest/Kconfig
414
Tom Rini697f4732016-11-29 09:14:56 -0500415config CMD_BOOTMENU
416 bool "bootmenu"
417 select MENU
Masahisa Kojima015405a2022-04-28 17:09:41 +0900418 select CHARSET
Tom Rini697f4732016-11-29 09:14:56 -0500419 help
420 Add an ANSI terminal boot menu command.
421
Eugeniu Roscaee98dac2019-12-24 17:51:06 +0100422config CMD_ADTIMG
423 bool "adtimg"
Sam Protsenko92f95bb2018-08-16 23:34:13 +0300424 help
425 Android DTB/DTBO image manipulation commands. Read dtb/dtbo files from
426 image into RAM, dump image structure information, etc. Those dtb/dtbo
427 files should be merged in one dtb further, which needs to be passed to
428 the kernel, as part of a boot process.
429
Sam Protsenko035502e2020-01-24 17:53:42 +0200430config CMD_ABOOTIMG
431 bool "abootimg"
432 depends on ANDROID_BOOT_IMAGE
433 help
434 Android Boot Image manipulation commands. Allows one to extract
435 images contained in boot.img, like kernel, ramdisk, dtb, etc, and
436 obtain corresponding meta-information from boot.img.
437
Sam Protsenkod8efc7c2020-01-24 17:53:43 +0200438 See doc/android/boot-image.rst for details.
439
Simon Glassc8925112023-06-01 10:23:02 -0600440config CMD_CEDIT
441 bool "cedit - Configuration editor"
442 depends on CEDIT
443 default y
444 help
445 Provides a command to allow editing of board configuration and
446 providing a UI for the user to adjust settings. Subcommands allow
447 loading and saving of configuration as well as showing an editor.
448
Simon Glass29499a02016-01-17 20:53:51 -0700449config CMD_ELF
450 bool "bootelf, bootvx"
451 default y
Keerthy76f361a2020-02-12 13:55:03 +0530452 select LIB_ELF
Simon Glass29499a02016-01-17 20:53:51 -0700453 help
454 Boot an ELF/vxWorks image from the memory.
455
Michal Simekf168c652016-04-06 20:28:04 +0200456config CMD_FDT
457 bool "Flattened Device Tree utility commands"
458 default y
459 depends on OF_LIBFDT
460 help
461 Do FDT related setup before booting into the Operating System.
462
Kory Maincent7444a7d2021-05-04 19:31:22 +0200463config SUPPORT_EXTENSION_SCAN
464 bool
465
466config CMD_EXTENSION
467 bool "Extension board management command"
468 select CMD_FDT
469 depends on SUPPORT_EXTENSION_SCAN
470 help
471 Enables the "extension" command, which allows to detect
472 extension boards connected to the system, and apply
473 corresponding Device Tree overlays.
474
Simon Glass29499a02016-01-17 20:53:51 -0700475config CMD_GO
476 bool "go"
477 default y
478 help
479 Start an application at a given address.
480
481config CMD_RUN
482 bool "run"
483 default y
484 help
485 Run the command in the given environment variable.
486
487config CMD_IMI
488 bool "iminfo"
489 default y
490 help
491 Print header information for application image.
492
493config CMD_IMLS
494 bool "imls"
Simon Glass29499a02016-01-17 20:53:51 -0700495 help
496 List all images found in flash
497
498config CMD_XIMG
499 bool "imxtract"
500 default y
501 help
502 Extract a part of a multi-image.
503
Simon Glassc6567fa2017-08-04 16:34:48 -0600504config CMD_SPL
505 bool "spl export - Export boot information for Falcon boot"
506 depends on SPL
507 help
508 Falcon mode allows booting directly from SPL into an Operating
509 System such as Linux, thus skipping U-Boot proper. See
510 doc/README.falcon for full information about how to use this
511 command.
512
Simon Glassc034e3d2017-08-04 16:34:49 -0600513config CMD_SPL_NAND_OFS
Lukasz Majewski10797442019-05-16 16:01:36 +0200514 hex "Offset of OS args or dtb for Falcon-mode NAND boot"
Lukasz Majewskie73ce322019-05-16 16:01:35 +0200515 depends on CMD_SPL && (TPL_NAND_SUPPORT || SPL_NAND_SUPPORT)
Tom Rinif18679c2023-08-02 11:09:43 -0400516 default 0x0
Simon Glassc034e3d2017-08-04 16:34:49 -0600517 help
518 This provides the offset of the command line arguments for Linux
519 when booting from NAND in Falcon mode. See doc/README.falcon
520 for full information about how to use this option (and also see
521 board/gateworks/gw_ventana/README for an example).
522
Lukasz Majewski06d92532019-05-16 16:01:37 +0200523config CMD_SPL_NOR_OFS
524 hex "Offset of OS args or dtb for Falcon-mode NOR boot"
525 depends on CMD_SPL && SPL_NOR_SUPPORT
Tom Rinif18679c2023-08-02 11:09:43 -0400526 default 0x0
Lukasz Majewski06d92532019-05-16 16:01:37 +0200527 help
528 This provides the offset of the command line arguments or dtb for
529 Linux when booting from NOR in Falcon mode.
530
Simon Glass51ef45a2017-08-04 16:34:50 -0600531config CMD_SPL_WRITE_SIZE
532 hex "Size of argument area"
533 depends on CMD_SPL
534 default 0x2000
535 help
536 This provides the size of the command-line argument area in NAND
537 flash used by Falcon-mode boot. See the documentation until CMD_SPL
538 for detail.
539
Simon Glassa18b9692017-08-04 16:34:57 -0600540config CMD_THOR_DOWNLOAD
541 bool "thor - TIZEN 'thor' download"
Marek Szyprowskide4752e2019-10-02 12:29:08 +0200542 select DFU
Venkatesh Yadav Abbarapu7143f2a2023-09-04 08:45:27 +0530543 select USB_FUNCTION_THOR
544 depends on USB_GADGET_DOWNLOAD
Simon Glassa18b9692017-08-04 16:34:57 -0600545 help
546 Implements the 'thor' download protocol. This is a way of
547 downloading a software update over USB from an attached host.
548 There is no documentation about this within the U-Boot source code
549 but you should be able to find something on the interwebs.
550
Tom Rini40791152022-12-02 16:42:46 -0500551config THOR_RESET_OFF
552 bool "thor: Disable reset on completion"
553 depends on CMD_THOR_DOWNLOAD
554
Simon Glass01d097d2017-08-04 16:35:03 -0600555config CMD_ZBOOT
556 bool "zboot - x86 boot command"
557 help
558 With x86 machines it is common to boot a bzImage file which
559 contains both a kernel and a setup.bin file. The latter includes
560 configuration information from the dark ages which x86 boards still
561 need to pick things out of.
562
563 Consider using FIT in preference to this since it supports directly
564 booting both 32- and 64-bit kernels, as well as secure boot.
565 Documentation is available in doc/uImage.FIT/x86-fit-boot.txt
566
Simon Glass29499a02016-01-17 20:53:51 -0700567endmenu
568
569menu "Environment commands"
570
Dinh Nguyen0685bef2016-04-21 09:05:23 -0500571config CMD_ASKENV
572 bool "ask for env variable"
573 help
574 Ask for environment variable
575
Simon Glass29499a02016-01-17 20:53:51 -0700576config CMD_EXPORTENV
577 bool "env export"
578 default y
579 help
580 Export environments.
581
582config CMD_IMPORTENV
583 bool "env import"
584 default y
585 help
586 Import environments.
587
588config CMD_EDITENV
589 bool "editenv"
590 default y
591 help
592 Edit environment variable.
593
Dinh Nguyen0685bef2016-04-21 09:05:23 -0500594config CMD_GREPENV
595 bool "search env"
596 help
597 Allow for searching environment variables
598
Simon Glass29499a02016-01-17 20:53:51 -0700599config CMD_SAVEENV
600 bool "saveenv"
601 default y
602 help
603 Save all environment variables into the compiled-in persistent
604 storage.
605
Frank Wunderlich33afa932019-06-29 11:36:19 +0200606config CMD_ERASEENV
607 bool "eraseenv"
Frank Wunderlich33afa932019-06-29 11:36:19 +0200608 depends on CMD_SAVEENV
609 help
610 Erase environment variables from the compiled-in persistent
611 storage.
612
Simon Glass29499a02016-01-17 20:53:51 -0700613config CMD_ENV_EXISTS
614 bool "env exists"
615 default y
616 help
617 Check if a variable is defined in the environment for use in
618 shell scripting.
619
Simon Glass84d67c72017-05-17 03:25:13 -0600620config CMD_ENV_CALLBACK
621 bool "env callbacks - print callbacks and their associated variables"
622 help
623 Some environment variable have callbacks defined by
624 U_BOOT_ENV_CALLBACK. These are called when the variable changes.
625 For example changing "baudrate" adjust the serial baud rate. This
626 command lists the currently defined callbacks.
627
Simon Glassc31e2d82017-05-17 03:25:14 -0600628config CMD_ENV_FLAGS
629 bool "env flags -print variables that have non-default flags"
630 help
631 Some environment variables have special flags that control their
632 behaviour. For example, serial# can only be written once and cannot
633 be deleted. This command shows the variables that have special
634 flags.
635
AKASHI Takahiro117e68a2019-02-25 15:54:36 +0900636config CMD_NVEDIT_EFI
637 bool "env [set|print] -e - set/print UEFI variables"
638 depends on EFI_LOADER
AKASHI Takahiro117e68a2019-02-25 15:54:36 +0900639 imply HEXDUMP
640 help
641 UEFI variables are encoded as some form of U-Boot variables.
642 If enabled, we are allowed to set/print UEFI variables using
643 "env" command with "-e" option without knowing details.
644
Samuel Dionne-Riel46127db2021-12-20 18:31:56 -0500645config CMD_NVEDIT_INDIRECT
646 bool "env indirect - Sets environment value from another"
647
Leo Ruan7450b872019-05-24 17:20:19 +0200648config CMD_NVEDIT_INFO
649 bool "env info - print or evaluate environment information"
650 help
651 Print environment information:
652 - env_valid : is environment valid
653 - env_ready : is environment imported into hash table
654 - env_use_default : is default environment used
655
656 This command can be optionally used for evaluation in scripts:
657 [-d] : evaluate whether default environment is used
658 [-p] : evaluate whether environment can be persisted
Patrick Delaunay109ec8f2020-06-19 14:03:34 +0200659 [-q] : quiet output
Leo Ruan7450b872019-05-24 17:20:19 +0200660 The result of multiple evaluations will be combined with AND.
661
Patrick Delaunay748e42e2020-07-28 11:51:20 +0200662config CMD_NVEDIT_LOAD
663 bool "env load"
664 help
665 Load all environment variables from the compiled-in persistent
666 storage.
667
Patrick Delaunaya59f7ec2020-07-28 11:51:21 +0200668config CMD_NVEDIT_SELECT
669 bool "env select"
670 help
671 Select the compiled-in persistent storage of environment variables.
672
Simon Glass29499a02016-01-17 20:53:51 -0700673endmenu
674
675menu "Memory commands"
676
Mario Six8a4f6642018-03-28 14:39:18 +0200677config CMD_BINOP
678 bool "binop"
679 help
680 Compute binary operations (xor, or, and) of byte arrays of arbitrary
681 size from memory and store the result in memory or the environment.
682
Simon Glassb936a972020-09-19 18:49:26 -0600683config CMD_BLOBLIST
684 bool "bloblist"
685 default y if BLOBLIST
686 help
687 Show information about the bloblist, a collection of binary blobs
688 held in memory that persist between SPL and U-Boot. In the case of
689 x86 devices the bloblist can be used to hold ACPI tables so that they
690 remain available in memory.
691
Simon Glass29499a02016-01-17 20:53:51 -0700692config CMD_CRC32
693 bool "crc32"
694 default y
Michal Simek84f3dec2018-07-23 15:55:13 +0200695 select HASH
Simon Glass29499a02016-01-17 20:53:51 -0700696 help
697 Compute CRC32.
698
Daniel Thompsona9e2c672017-05-19 17:26:58 +0100699config CRC32_VERIFY
700 bool "crc32 -v"
701 depends on CMD_CRC32
702 help
703 Add -v option to verify data against a crc32 checksum.
704
Simon Glass4590d4e2017-05-17 03:25:10 -0600705config CMD_EEPROM
706 bool "eeprom - EEPROM subsystem"
707 help
708 (deprecated, needs conversion to driver model)
709 Provides commands to read and write EEPROM (Electrically Erasable
710 Programmable Read Only Memory) chips that are connected over an
711 I2C bus.
712
713config CMD_EEPROM_LAYOUT
714 bool "Enable layout-aware eeprom commands"
715 depends on CMD_EEPROM
716 help
717 (deprecated, needs conversion to driver model)
718 When enabled, additional eeprom sub-commands become available.
719
720 eeprom print - prints the contents of the eeprom in a human-readable
721 way (eeprom layout fields, and data formatted to be fit for human
722 consumption).
723
724 eeprom update - allows user to update eeprom fields by specifying
725 the field name, and providing the new data in a human readable format
726 (same format as displayed by the eeprom print command).
727
728 Both commands can either auto detect the layout, or be told which
729 layout to use.
730
731 Feature API:
732 __weak int parse_layout_version(char *str)
733 - override to provide your own layout name parsing
734 __weak void __eeprom_layout_assign(struct eeprom_layout *layout,
735 int layout_version);
736 - override to setup the layout metadata based on the version
737 __weak int eeprom_layout_detect(unsigned char *data)
738 - override to provide your own algorithm for detecting layout
739 version
740 eeprom_field.c
741 - contains various printing and updating functions for common
742 types of eeprom fields. Can be used for defining
743 custom layouts.
744
745config EEPROM_LAYOUT_HELP_STRING
746 string "Tells user what layout names are supported"
747 depends on CMD_EEPROM_LAYOUT
748 default "<not defined>"
749 help
750 Help printed with the LAYOUT VERSIONS part of the 'eeprom'
751 command's help.
752
Tom Rinifaed5672021-08-17 17:59:45 -0400753config SYS_I2C_EEPROM_BUS
754 int "I2C bus of the EEPROM device."
755 depends on CMD_EEPROM
756 default 0
757
758config SYS_I2C_EEPROM_ADDR_LEN
759 int "Length in bytes of the EEPROM memory array address"
760 depends on CMD_EEPROM || ID_EEPROM
761 default 1
762 range 1 2
763 help
764 Note: This is NOT the chip address length!
765
766config SYS_EEPROM_SIZE
767 depends on CMD_EEPROM
768 int "Size in bytes of the EEPROM device"
769 default 256
770
771config SYS_EEPROM_PAGE_WRITE_BITS
772 int "Number of bits used to address bytes in a single page"
773 depends on CMD_EEPROM
774 default 8
775 help
776 The EEPROM page size is 2^SYS_EEPROM_PAGE_WRITE_BITS.
777 A 64 byte page, for example would require six bits.
778
779config SYS_EEPROM_PAGE_WRITE_DELAY_MS
780 int "Number of milliseconds to delay between page writes"
781 depends on CMD_EEPROM || CMD_I2C
782 default 0
783
Simon Glass26c20532017-08-04 16:34:51 -0600784config LOOPW
785 bool "loopw"
786 help
787 Infinite write loop on address range
788
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000789config CMD_MD5SUM
790 bool "md5sum"
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000791 select MD5
792 help
793 Compute MD5 checksum.
794
Daniel Thompsona9e2c672017-05-19 17:26:58 +0100795config MD5SUM_VERIFY
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000796 bool "md5sum -v"
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000797 depends on CMD_MD5SUM
798 help
799 Add -v option to verify data against an MD5 checksum.
800
Simon Glass26c20532017-08-04 16:34:51 -0600801config CMD_MEMINFO
802 bool "meminfo"
Daniel Thompsona9e2c672017-05-19 17:26:58 +0100803 help
Simon Glass26c20532017-08-04 16:34:51 -0600804 Display memory information.
Daniel Thompsona9e2c672017-05-19 17:26:58 +0100805
Simon Glass26c20532017-08-04 16:34:51 -0600806config CMD_MEMORY
807 bool "md, mm, nm, mw, cp, cmp, base, loop"
808 default y
Simon Glass29499a02016-01-17 20:53:51 -0700809 help
Simon Glass26c20532017-08-04 16:34:51 -0600810 Memory commands.
811 md - memory display
812 mm - memory modify (auto-incrementing address)
813 nm - memory modify (constant address)
814 mw - memory write (fill)
815 cp - memory copy
816 cmp - memory compare
817 base - print or set address offset
818 loop - initialize loop on address range
Simon Glass29499a02016-01-17 20:53:51 -0700819
Simon Glass573c0fa2020-07-28 19:41:14 -0600820config CMD_MEM_SEARCH
Simon Glass19038de2020-06-02 19:26:49 -0600821 bool "ms - Memory search"
822 help
823 Memory-search command
824
825 This allows searching through a region of memory looking for hex
826 data (byte, 16-bit word, 32-bit long, also 64-bit on machines that
827 support it). It is also possible to search for a string. The
828 command accepts a memory range and a list of values to search for.
829 The values need to appear in memory in the same order they are given
830 in the command. At most 10 matches can be returned at a time, but
831 pressing return will show the next 10 matches. Environment variables
832 are set for use with scripting (memmatches, memaddr, mempos).
833
Joel Johnsondb5a97e2020-01-29 09:17:18 -0700834config CMD_MX_CYCLIC
Adam Ford1ef0c492019-08-14 07:54:34 -0500835 bool "Enable cyclic md/mw commands"
836 depends on CMD_MEMORY
837 help
838 Add the "mdc" and "mwc" memory commands. These are cyclic
839 "md/mw" commands.
840 Examples:
841
842 => mdc.b 10 4 500
843 This command will print 4 bytes (10,11,12,13) each 500 ms.
844
845 => mwc.l 100 12345678 10
846 This command will write 12345678 to address 100 all 10 ms.
847
Jean-Jacques Hiblotd3f09372019-07-02 14:23:26 +0200848config CMD_RANDOM
849 bool "random"
850 default y
851 depends on CMD_MEMORY && (LIB_RAND || LIB_HW_RAND)
852 help
853 random - fill memory with random data
854
Simon Glass29499a02016-01-17 20:53:51 -0700855config CMD_MEMTEST
856 bool "memtest"
857 help
858 Simple RAM read/write test.
859
Mario Six00518992018-03-28 14:38:14 +0200860if CMD_MEMTEST
861
862config SYS_ALT_MEMTEST
863 bool "Alternative test"
864 help
865 Use a more complete alternative memory test.
866
Ralph Siemsen1c39c102020-09-09 12:10:00 -0400867if SYS_ALT_MEMTEST
868
869config SYS_ALT_MEMTEST_BITFLIP
870 bool "Bitflip test"
871 default y
872 help
873 The alternative memory test includes bitflip test since 2020.07.
874 The bitflip test significantly increases the overall test time.
875 Bitflip test can optionally be disabled here.
876
877endif
878
Ashok Reddy Soma41e8edf2020-05-04 15:26:21 +0200879config SYS_MEMTEST_START
880 hex "default start address for mtest"
Tom Rinic2ac2f62021-12-12 22:12:29 -0500881 default 0x0
Ashok Reddy Soma41e8edf2020-05-04 15:26:21 +0200882 help
883 This is the default start address for mtest for simple read/write
884 test. If no arguments are given to mtest, default address is used
885 as start address.
886
887config SYS_MEMTEST_END
888 hex "default end address for mtest"
889 default 0x1000
890 help
891 This is the default end address for mtest for simple read/write
892 test. If no arguments are given to mtest, default address is used
893 as end address.
894
Mario Six00518992018-03-28 14:38:14 +0200895endif
896
Simon Glass26c20532017-08-04 16:34:51 -0600897config CMD_SHA1SUM
898 bool "sha1sum"
899 select SHA1
Simon Glass29499a02016-01-17 20:53:51 -0700900 help
Simon Glass26c20532017-08-04 16:34:51 -0600901 Compute SHA1 checksum.
902
903config SHA1SUM_VERIFY
904 bool "sha1sum -v"
905 depends on CMD_SHA1SUM
906 help
907 Add -v option to verify data against a SHA1 checksum.
Simon Glass29499a02016-01-17 20:53:51 -0700908
Simon Glass8e83ca82017-08-04 16:34:52 -0600909config CMD_STRINGS
910 bool "strings - display strings in memory"
911 help
912 This works similarly to the Unix 'strings' command except that it
913 works with a memory range. String of printable characters found
914 within the range are displayed. The minimum number of characters
915 for a sequence to be considered a string can be provided.
916
Simon Glassbecaa8f2017-05-17 03:25:43 -0600917endmenu
918
919menu "Compression commands"
920
921config CMD_LZMADEC
922 bool "lzmadec"
Tom Rini3237bc62017-09-29 14:32:44 -0400923 default y if CMD_BOOTI
Simon Glassbecaa8f2017-05-17 03:25:43 -0600924 select LZMA
925 help
926 Support decompressing an LZMA (Lempel-Ziv-Markov chain algorithm)
927 image from memory.
928
Yusuke Ashidukaa20545d2020-02-20 20:48:01 +0900929config CMD_UNLZ4
930 bool "unlz4"
931 default y if CMD_BOOTI
932 select LZ4
933 help
934 Support decompressing an LZ4 image from memory region.
935
Masahiro Yamada2737fd32017-02-05 10:42:56 +0900936config CMD_UNZIP
937 bool "unzip"
Tom Rini3237bc62017-09-29 14:32:44 -0400938 default y if CMD_BOOTI
Michael Wallef253f2c2020-05-22 14:07:35 +0200939 select GZIP
Masahiro Yamada2737fd32017-02-05 10:42:56 +0900940 help
941 Uncompress a zip-compressed memory region.
942
943config CMD_ZIP
944 bool "zip"
Michael Walle3a6e3512020-05-22 14:07:36 +0200945 select GZIP_COMPRESSED
Masahiro Yamada2737fd32017-02-05 10:42:56 +0900946 help
947 Compress a memory region with zlib deflate method.
948
Simon Glass29499a02016-01-17 20:53:51 -0700949endmenu
950
951menu "Device access commands"
952
Abdellatif El Khlifi5ad079f2023-08-04 14:33:43 +0100953config CMD_ARMFFA
954 bool "Arm FF-A test command"
955 depends on ARM_FFA_TRANSPORT
956 help
957 Provides a test command for the FF-A support
958 supported options:
959 - Listing the partition(s) info
960 - Sending a data pattern to the specified partition
961 - Displaying the arm_ffa device info
962
Simon Glass036bbb12017-08-04 16:34:28 -0600963config CMD_ARMFLASH
964 #depends on FLASH_CFI_DRIVER
965 bool "armflash"
966 help
967 ARM Ltd reference designs flash partition access
968
Neil Armstrong49261c72018-04-27 15:17:57 +0200969config CMD_ADC
970 bool "adc - Access Analog to Digital Converters info and data"
971 select ADC
Michal Simek463c3862020-08-19 10:44:17 +0200972 depends on DM_REGULATOR
Neil Armstrong49261c72018-04-27 15:17:57 +0200973 help
974 Shows ADC device info and permit printing one-shot analog converted
975 data from a named Analog to Digital Converter.
976
Eugeniu Rosca35c34be2019-05-23 17:32:22 +0200977config CMD_BCB
978 bool "bcb"
979 depends on MMC
980 depends on PARTITIONS
981 help
982 Read/modify/write the fields of Bootloader Control Block, usually
983 stored on the flash "misc" partition with its structure defined in:
984 https://android.googlesource.com/platform/bootable/recovery/+/master/
985 bootloader_message/include/bootloader_message/bootloader_message.h
986
987 Some real-life use-cases include (but are not limited to):
988 - Determine the "boot reason" (and act accordingly):
989 https://source.android.com/devices/bootloader/boot-reason
990 - Get/pass a list of commands from/to recovery:
991 https://android.googlesource.com/platform/bootable/recovery
992 - Inspect/dump the contents of the BCB fields
993
Jean-Jacques Hiblote83a31b2018-08-09 16:17:46 +0200994config CMD_BIND
995 bool "bind/unbind - Bind or unbind a device to/from a driver"
996 depends on DM
Tom Rini1f9c3d02023-08-04 12:06:21 -0400997 default y if USB_ETHER
Jean-Jacques Hiblote83a31b2018-08-09 16:17:46 +0200998 help
999 Bind or unbind a device to/from a driver from the command line.
1000 This is useful in situations where a device may be handled by several
1001 drivers. For example, this can be used to bind a UDC to the usb ether
1002 gadget driver from the command line.
1003
Simon Glass04ac6f12017-04-26 22:28:02 -06001004config CMD_CLK
1005 bool "clk - Show clock frequencies"
1006 help
1007 (deprecated)
1008 Shows clock frequences by calling a sock_clk_dump() hook function.
1009 This is depreated in favour of using the CLK uclass and accessing
1010 clock values from associated drivers. However currently no command
1011 exists for this.
1012
Simon Glass036bbb12017-08-04 16:34:28 -06001013config CMD_DEMO
1014 bool "demo - Demonstration commands for driver model"
1015 depends on DM
1016 help
1017 Provides a 'demo' command which can be used to play around with
1018 driver model. To use this properly you will need to enable one or
1019 both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
1020 Otherwise you will always get an empty list of devices. The demo
1021 devices are defined in the sandbox device tree, so the easiest
1022 option is to use sandbox and pass the -d point to sandbox's
1023 u-boot.dtb file.
1024
1025config CMD_DFU
1026 bool "dfu"
Marek Vasutea84f802018-02-16 16:41:17 +01001027 select DFU
Simon Glass036bbb12017-08-04 16:34:28 -06001028 help
1029 Enables the command "dfu" which is used to have U-Boot create a DFU
Simon Glass663b0cc2017-08-04 16:35:06 -06001030 class device via USB. This command requires that the "dfu_alt_info"
1031 environment variable be set and define the alt settings to expose to
1032 the host.
Simon Glass036bbb12017-08-04 16:34:28 -06001033
Simon Glass29499a02016-01-17 20:53:51 -07001034config CMD_DM
1035 bool "dm - Access to driver model information"
1036 depends on DM
Simon Glass29499a02016-01-17 20:53:51 -07001037 help
1038 Provides access to driver model data structures and information,
1039 such as a list of devices, list of uclasses and the state of each
1040 device (e.g. activated). This is not required for operation, but
1041 can be useful to see the state of driver model for debugging or
1042 interest.
1043
Alex Kiernan65de9552018-05-29 15:30:39 +00001044config CMD_FASTBOOT
1045 bool "fastboot - Android fastboot support"
1046 depends on FASTBOOT
1047 help
1048 This enables the command "fastboot" which enables the Android
1049 fastboot mode for the platform. Fastboot is a protocol for
1050 downloading images, flashing and device control used on
Alex Kiernand5aa57c2018-05-29 15:30:53 +00001051 Android devices. Fastboot requires either the network stack
1052 enabled or support for acting as a USB device.
Alex Kiernan65de9552018-05-29 15:30:39 +00001053
Sam Protsenkocd43fa12020-01-24 17:53:44 +02001054 See doc/android/fastboot.rst for more information.
Alex Kiernan65de9552018-05-29 15:30:39 +00001055
Simon Glass036bbb12017-08-04 16:34:28 -06001056config CMD_FLASH
1057 bool "flinfo, erase, protect"
1058 default y
Miquel Raynald2418202019-10-25 19:39:30 +02001059 depends on MTD || FLASH_CFI_DRIVER || MTD_NOR_FLASH
Simon Glass036bbb12017-08-04 16:34:28 -06001060 help
1061 NOR flash support.
1062 flinfo - print FLASH memory information
1063 erase - FLASH memory
1064 protect - enable or disable FLASH write protection
1065
1066config CMD_FPGA
1067 bool "fpga"
Tuomas Tynkkynen5ca16b32018-01-27 20:28:40 +02001068 depends on FPGA
Simon Glass036bbb12017-08-04 16:34:28 -06001069 default y
1070 help
1071 FPGA support.
1072
1073config CMD_FPGA_LOADBP
1074 bool "fpga loadbp - load partial bitstream (Xilinx only)"
1075 depends on CMD_FPGA
1076 help
1077 Supports loading an FPGA device from a bitstream buffer containing
1078 a partial bitstream.
1079
1080config CMD_FPGA_LOADFS
1081 bool "fpga loadfs - load bitstream from FAT filesystem (Xilinx only)"
1082 depends on CMD_FPGA
1083 help
1084 Supports loading an FPGA device from a FAT filesystem.
1085
1086config CMD_FPGA_LOADMK
1087 bool "fpga loadmk - load bitstream from image"
1088 depends on CMD_FPGA
1089 help
1090 Supports loading an FPGA device from a image generated by mkimage.
1091
1092config CMD_FPGA_LOADP
1093 bool "fpga loadp - load partial bitstream"
1094 depends on CMD_FPGA
1095 help
1096 Supports loading an FPGA device from a bitstream buffer containing
1097 a partial bitstream.
1098
Siva Durga Prasad Paladugucce0cb02018-05-31 15:10:22 +05301099config CMD_FPGA_LOAD_SECURE
Oleksandr Suvorovfbe31bb2022-07-22 17:16:02 +03001100 bool "fpga loads - loads secure bitstreams"
Siva Durga Prasad Paladugucce0cb02018-05-31 15:10:22 +05301101 depends on CMD_FPGA
Oleksandr Suvorovfbe31bb2022-07-22 17:16:02 +03001102 select FPGA_LOAD_SECURE
Siva Durga Prasad Paladugucce0cb02018-05-31 15:10:22 +05301103 help
1104 Enables the fpga loads command which is used to load secure
1105 (authenticated or encrypted or both) bitstreams on to FPGA.
1106
Simon Glass036bbb12017-08-04 16:34:28 -06001107config CMD_FPGAD
1108 bool "fpgad - dump FPGA registers"
1109 help
1110 (legacy, needs conversion to driver model)
1111 Provides a way to dump FPGA registers by calling the board-specific
1112 fpga_get_reg() function. This functions similarly to the 'md'
1113 command.
1114
1115config CMD_FUSE
1116 bool "fuse - support for the fuse subssystem"
1117 help
1118 (deprecated - needs conversion to driver model)
1119 This allows reading, sensing, programming or overriding fuses
1120 which control the behaviour of the device. The command uses the
1121 fuse_...() API.
1122
1123config CMD_GPIO
1124 bool "gpio"
1125 help
1126 GPIO support.
1127
Diego Rondini5ffde632022-04-11 12:02:09 +02001128config CMD_GPIO_READ
1129 bool "gpio read - save GPIO value to variable"
1130 depends on CMD_GPIO
1131 help
1132 Enables the 'gpio read' command that saves the value
1133 of a GPIO pin to a variable.
1134
Pragnesh Patel1d5955f2020-12-22 11:30:05 +05301135config CMD_PWM
1136 bool "pwm"
1137 depends on DM_PWM
1138 help
1139 Control PWM channels, this allows invert/config/enable/disable PWM channels.
1140
Simon Glass036bbb12017-08-04 16:34:28 -06001141config CMD_GPT
1142 bool "GPT (GUID Partition Table) command"
Simon Glass036bbb12017-08-04 16:34:28 -06001143 select EFI_PARTITION
Michal Simek84f3dec2018-07-23 15:55:13 +02001144 select PARTITION_UUIDS
Maxime Ripard24336442017-08-24 11:52:32 +02001145 imply RANDOM_UUID
Simon Glass036bbb12017-08-04 16:34:28 -06001146 help
1147 Enable the 'gpt' command to ready and write GPT style partition
1148 tables.
1149
Maxime Ripard24336442017-08-24 11:52:32 +02001150config RANDOM_UUID
1151 bool "GPT Random UUID generation"
Adam Ford70c8f052018-02-06 12:14:28 -06001152 select LIB_UUID
Maxime Ripard24336442017-08-24 11:52:32 +02001153 help
1154 Enable the generation of partitions with random UUIDs if none
1155 are provided.
1156
Simon Glass036bbb12017-08-04 16:34:28 -06001157config CMD_GPT_RENAME
1158 bool "GPT partition renaming commands"
1159 depends on CMD_GPT
1160 help
1161 Enables the 'gpt' command to interchange names on two GPT
1162 partitions via the 'gpt swap' command or to rename single
1163 partitions via the 'rename' command.
Simon Glass29499a02016-01-17 20:53:51 -07001164
Simon Glassa831eca2017-05-17 03:25:29 -06001165config CMD_IDE
1166 bool "ide - Support for IDE drivers"
Simon Glassb569a012017-05-17 03:25:30 -06001167 select IDE
Simon Glassa831eca2017-05-17 03:25:29 -06001168 help
1169 Provides an 'ide' command which allows accessing the IDE drive,
Vagrant Cascadian33203c32021-12-21 13:06:56 -08001170 resetting the IDE interface, printing the partition table and
Simon Glassa831eca2017-05-17 03:25:29 -06001171 geting device info. It also enables the 'diskboot' command which
1172 permits booting from an IDE drive.
1173
Simon Glass3bebbe62017-05-17 03:25:34 -06001174config CMD_IO
1175 bool "io - Support for performing I/O accesses"
1176 help
1177 Provides an 'iod' command to display I/O space and an 'iow' command
1178 to write values to the I/O space. This can be useful for manually
1179 checking the state of devices during boot when debugging device
1180 drivers, etc.
1181
Simon Glass30daabc2017-05-17 03:25:36 -06001182config CMD_IOTRACE
1183 bool "iotrace - Support for tracing I/O activity"
1184 help
1185 Provides an 'iotrace' command which supports recording I/O reads and
1186 writes in a trace buffer in memory . It also maintains a checksum
1187 of the trace records (even if space is exhausted) so that the
1188 sequence of I/O accesses can be verified.
1189
1190 When debugging drivers it is useful to see what I/O accesses were
1191 done and in what order.
1192
1193 Even if the individual accesses are of little interest it can be
1194 useful to verify that the access pattern is consistent each time
1195 an operation is performed. In this case a checksum can be used to
1196 characterise the operation of a driver. The checksum can be compared
1197 across different runs of the operation to verify that the driver is
1198 working properly.
1199
1200 In particular, when performing major refactoring of the driver, where
1201 the access pattern should not change, the checksum provides assurance
1202 that the refactoring work has not broken the driver.
1203
1204 This works by sneaking into the io.h heder for an architecture and
1205 redirecting I/O accesses through iotrace's tracing mechanism.
1206
1207 For now no commands are provided to examine the trace buffer. The
1208 format is fairly simple, so 'md' is a reasonable substitute.
1209
1210 Note: The checksum feature is only useful for I/O regions where the
1211 contents do not change outside of software control. Where this is not
1212 suitable you can fall back to manually comparing the addresses. It
1213 might be useful to enhance tracing to only checksum the accesses and
1214 not the data read/written.
1215
Simon Glass036bbb12017-08-04 16:34:28 -06001216config CMD_I2C
1217 bool "i2c"
1218 help
1219 I2C support.
1220
Eugen Hristevb879c842018-09-18 10:35:33 +03001221config CMD_W1
1222 depends on W1
1223 default y if W1
1224 bool "w1 - Support for Dallas 1-Wire protocol"
1225 help
1226 Dallas 1-wire protocol support
1227
Simon Glass29499a02016-01-17 20:53:51 -07001228config CMD_LOADB
1229 bool "loadb"
1230 default y
1231 help
1232 Load a binary file over serial line.
1233
Rui Miguel Silva433f15a2022-05-11 10:55:40 +01001234config CMD_LOADM
1235 bool "loadm"
1236 help
1237 Load a binary over memory mapped.
1238
Simon Glass29499a02016-01-17 20:53:51 -07001239config CMD_LOADS
Tom Rini5a70f172022-10-28 20:27:02 -04001240 bool "loads - Load a file over serial in S-Record format"
Simon Glass29499a02016-01-17 20:53:51 -07001241 default y
1242 help
1243 Load an S-Record file over serial line
1244
Tom Rini5a70f172022-10-28 20:27:02 -04001245config LOADS_ECHO
1246 bool "Echo all characters received during a loads back to console"
1247 depends on CMD_LOADS
1248 help
1249 If enabled, all characters received during a serial download (using
1250 the "loads" command) are echoed back. This might be needed by some
1251 terminal emulations (like "cu"), but may as well just take time on
1252 others. This sets the initial value of the "loads_echo" environment
1253 variable to 1.
1254
1255config CMD_SAVES
1256 bool "saves - Save a file over serial in S-Record format"
Ying Sun86dff472023-06-25 16:24:47 +08001257 depends on CMD_LOADS
Tom Rini5a70f172022-10-28 20:27:02 -04001258 help
1259 Provides a way to save a binary file using the Motorola S-Record
1260 format over the serial line.
1261
1262config SYS_LOADS_BAUD_CHANGE
1263 bool "Enable a temporary baudrate change during loads/saves command"
1264 depends on CMD_LOADS || CMD_SAVES
1265
Pali Rohár5dc80cc2022-08-27 16:37:55 +02001266config CMD_LOADXY_TIMEOUT
1267 int "loadxy_timeout"
1268 range 0 2000
1269 default 90
1270 help
1271 Initial timeout for loadx and loady commands. Zero means infinity.
1272
Niel Fourie09262bb2020-03-30 17:22:58 +02001273config CMD_LSBLK
1274 depends on BLK
1275 bool "lsblk - list block drivers and devices"
1276 help
1277 Print list of available block device drivers, and for each, the list
1278 of known block devices.
1279
Marek Szyprowski6427b5b2020-12-23 13:55:15 +01001280config CMD_MBR
1281 bool "MBR (Master Boot Record) command"
1282 select DOS_PARTITION
Marek Szyprowski6427b5b2020-12-23 13:55:15 +01001283 help
1284 Enable the 'mbr' command to ready and write MBR (Master Boot Record)
1285 style partition tables.
1286
Bin Menge1dae502020-10-14 14:34:52 +08001287config CMD_MISC
1288 bool "misc"
1289 depends on MISC
1290 help
1291 Enable the command "misc" for accessing miscellaneous devices with
1292 a MISC uclass driver. The command provides listing all MISC devices
1293 as well as read and write functionalities via their drivers.
1294
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001295config CMD_MMC
1296 bool "mmc"
Heinrich Schuchardt3ae9e6a2021-03-27 11:43:54 +01001297 depends on MMC
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001298 help
1299 MMC memory mapped support.
1300
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001301if CMD_MMC
1302
1303config CMD_BKOPS_ENABLE
1304 bool "mmc bkops enable"
1305 depends on CMD_MMC
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001306 help
1307 Enable command for setting manual background operations handshake
1308 on a eMMC device. The feature is optionally available on eMMC devices
1309 conforming to standard >= 4.41.
1310
Marek Vasut1f692e32023-10-31 13:20:17 +01001311config CMD_MMC_REG
1312 bool "Enable support for reading card registers in the mmc command"
1313 depends on CMD_MMC
1314 help
1315 Enable the commands for reading card registers. This is useful
1316 mostly for debugging or extracting details from the card.
1317
Alex Kiernan60e0f612018-05-08 04:43:31 +00001318config CMD_MMC_RPMB
1319 bool "Enable support for RPMB in the mmc command"
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001320 depends on SUPPORT_EMMC_RPMB
Alex Kiernan60e0f612018-05-08 04:43:31 +00001321 help
1322 Enable the commands for reading, writing and programming the
1323 key for the Replay Protection Memory Block partition in eMMC.
1324
Alex Kiernanc568bcb2018-05-29 15:30:52 +00001325config CMD_MMC_SWRITE
1326 bool "mmc swrite"
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001327 depends on MMC_WRITE
Alex Kiernanc568bcb2018-05-29 15:30:52 +00001328 select IMAGE_SPARSE
1329 help
1330 Enable support for the "mmc swrite" command to write Android sparse
1331 images to eMMC.
1332
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001333endif
1334
John Chaufce6f982020-07-02 12:01:21 +08001335config CMD_CLONE
1336 bool "clone"
1337 depends on BLK
1338 help
1339 Enable storage cloning over block devices, useful for
1340 initial flashing by external block device without network
1341 or usb support.
1342
Ruchika Gupta1a994352020-10-23 13:39:33 +05301343config CMD_OPTEE_RPMB
1344 bool "Enable read/write support on RPMB via OPTEE"
1345 depends on SUPPORT_EMMC_RPMB && OPTEE
1346 help
1347 Enable the commands for reading, writing persistent named values
1348 in the Replay Protection Memory Block partition in eMMC by
1349 using Persistent Objects in OPTEE
1350
Miquel Raynal741f4c72018-09-29 12:58:28 +02001351config CMD_MTD
1352 bool "mtd"
Miquel Raynald2418202019-10-25 19:39:30 +02001353 depends on MTD
Miquel Raynal741f4c72018-09-29 12:58:28 +02001354 select MTD_PARTITIONS
1355 help
1356 MTD commands support.
1357
Pratyush Yadavbecd9b72020-10-16 16:16:35 +05301358config CMD_MUX
1359 bool "mux"
1360 depends on MULTIPLEXER
1361 help
1362 List, select, and deselect mux controllers on the fly.
1363
Simon Glass29499a02016-01-17 20:53:51 -07001364config CMD_NAND
1365 bool "nand"
Maxime Ripard5a5d71f2017-03-03 15:13:30 +01001366 default y if NAND_SUNXI
Miquel Raynald2418202019-10-25 19:39:30 +02001367 depends on MTD_RAW_NAND
Simon Glass29499a02016-01-17 20:53:51 -07001368 help
1369 NAND support.
1370
Boris Brezillon19907782017-02-27 18:22:07 +01001371if CMD_NAND
1372config CMD_NAND_TRIMFFS
1373 bool "nand write.trimffs"
Hans de Goedefd42c052017-02-27 18:22:10 +01001374 default y if ARCH_SUNXI
Boris Brezillon19907782017-02-27 18:22:07 +01001375 help
1376 Allows one to skip empty pages when flashing something on a NAND.
1377
1378config CMD_NAND_LOCK_UNLOCK
1379 bool "nand lock/unlock"
1380 help
1381 NAND locking support.
1382
1383config CMD_NAND_TORTURE
1384 bool "nand torture"
1385 help
1386 NAND torture support.
1387
1388endif # CMD_NAND
1389
Zhikang Zhang49455652017-08-03 02:30:59 -07001390config CMD_NVME
1391 bool "nvme"
1392 depends on NVME
1393 default y if NVME
1394 help
1395 NVM Express device support
1396
Simon Glassa2a82072017-08-04 16:34:31 -06001397config CMD_ONENAND
1398 bool "onenand - access to onenand device"
Miquel Raynald2418202019-10-25 19:39:30 +02001399 depends on MTD
Simon Glassa2a82072017-08-04 16:34:31 -06001400 help
1401 OneNAND is a brand of NAND ('Not AND' gate) flash which provides
1402 various useful features. This command allows reading, writing,
1403 and erasing blocks. It allso provides a way to show and change
1404 bad blocks, and test the device.
1405
Tom Rinie7751242022-06-15 12:03:51 -04001406config USE_ONENAND_BOARD_INIT
1407 bool "Call onenand_board_init() in the onenand command"
1408 depends on CMD_ONENAND
1409
Mario Sixf8395902018-09-27 09:19:34 +02001410config CMD_OSD
1411 bool "osd"
1412 help
1413 Enable the 'osd' command which allows to query information from and
1414 write text data to a on-screen display (OSD) device; a virtual device
1415 associated with a display capable of displaying a text overlay on the
1416 display it's associated with..
1417
Patrick Delaunay73287092017-01-27 11:00:42 +01001418config CMD_PART
1419 bool "part"
AKASHI Takahiro783bc122022-04-22 10:44:30 +09001420 depends on PARTITIONS
Michal Simek84f3dec2018-07-23 15:55:13 +02001421 select PARTITION_UUIDS
Patrick Delaunay73287092017-01-27 11:00:42 +01001422 help
1423 Read and display information about the partition table on
1424 various media.
1425
Simon Glassc88a09a2017-08-04 16:34:34 -06001426config CMD_PCI
1427 bool "pci - Access PCI devices"
1428 help
1429 Provide access to PCI (Peripheral Interconnect Bus), a type of bus
1430 used on some devices to allow the CPU to communicate with its
1431 peripherals. Sub-commands allow bus enumeration, displaying and
1432 changing configuration space and a few other features.
1433
Stephen Carlson3d876c42023-03-10 11:07:13 -08001434config CMD_PCI_MPS
1435 bool "pci_mps - Configure PCI device MPS"
1436 depends on PCI
1437 help
1438 Enables PCI Express Maximum Packet Size (MPS) tuning. This
1439 command configures the PCI Express MPS of each endpoint to the
1440 largest value supported by all devices below the root complex.
1441 The Maximum Read Request Size will not be altered. This method is
1442 the same algorithm as used by Linux pci=pcie_bus_safe.
1443
Patrice Chotardc4b4ef02018-10-24 14:10:17 +02001444config CMD_PINMUX
1445 bool "pinmux - show pins muxing"
Marek Behún9ff24b62021-02-09 21:23:47 +01001446 depends on PINCTRL
Patrice Chotardc4b4ef02018-10-24 14:10:17 +02001447 default y if PINCTRL
1448 help
1449 Parse all available pin-controllers and show pins muxing. This
1450 is useful for debug purpoer to check the pin muxing and to know if
1451 a pin is configured as a GPIO or as an alternate function.
1452
Adam Fordc4f16322018-09-09 07:05:57 -05001453config CMD_POWEROFF
1454 bool "poweroff"
1455 help
1456 Poweroff/Shutdown the system
1457
Simon Glassc05459b2017-08-04 16:34:39 -06001458config CMD_READ
1459 bool "read - Read binary data from a partition"
1460 help
1461 Provides low-level access to the data in a partition.
1462
Simon Glass036bbb12017-08-04 16:34:28 -06001463config CMD_REMOTEPROC
1464 bool "remoteproc"
1465 depends on REMOTEPROC
1466 help
1467 Support for Remote Processor control
1468
1469config CMD_SATA
1470 bool "sata - Access SATA subsystem"
1471 select SATA
1472 help
1473 SATA (Serial Advanced Technology Attachment) is a serial bus
1474 standard for connecting to hard drives and other storage devices.
1475 This command provides information about attached devices and allows
1476 reading, writing and other operations.
1477
1478 SATA replaces PATA (originally just ATA), which stands for Parallel AT
1479 Attachment, where AT refers to an IBM AT (Advanced Technology)
1480 computer released in 1984.
1481
Heinrich Schuchardta0f52832018-02-14 08:05:44 +01001482config CMD_SCSI
1483 bool "scsi - Access to SCSI devices"
Heinrich Schuchardtb9a76c72023-03-26 19:10:38 +02001484 depends on SCSI
1485 default y
Heinrich Schuchardta0f52832018-02-14 08:05:44 +01001486 help
1487 This provides a 'scsi' command which provides access to SCSI (Small
1488 Computer System Interface) devices. The command provides a way to
1489 scan the bus, reset the bus, read and write data and get information
1490 about devices.
1491
Simon Glass6870d2e2017-08-04 16:34:45 -06001492config CMD_SDRAM
1493 bool "sdram - Print SDRAM configuration information"
1494 help
1495 Provides information about attached SDRAM. This assumed that the
1496 SDRAM has an EEPROM with information that can be read using the
1497 I2C bus. This is only available on some boards.
1498
Simon Glass29499a02016-01-17 20:53:51 -07001499config CMD_SF
1500 bool "sf"
Tom Rinie5289a72019-05-29 17:01:28 -04001501 depends on DM_SPI_FLASH || SPI_FLASH
Jagan Teki132e81f2019-10-16 17:59:42 +05301502 default y if DM_SPI_FLASH
Simon Glass29499a02016-01-17 20:53:51 -07001503 help
1504 SPI Flash support
1505
Simon Glass86b1b652017-08-04 16:34:46 -06001506config CMD_SF_TEST
1507 bool "sf test - Allow testing of SPI flash"
Tom Rinie5289a72019-05-29 17:01:28 -04001508 depends on CMD_SF
Simon Glass86b1b652017-08-04 16:34:46 -06001509 help
1510 Provides a way to test that SPI flash is working correctly. The
1511 test is destructive, in that an area of SPI flash must be provided
1512 for the test to use. Performance information is also provided,
1513 measuring the performance of reading, writing and erasing in
1514 Mbps (Million Bits Per Second). This value should approximately
1515 equal the SPI bus speed for a single-bit-wide SPI bus, assuming
1516 everything is working properly.
1517
Simon Glass29499a02016-01-17 20:53:51 -07001518config CMD_SPI
Patrick Delaunay5a6b52b2019-02-27 15:20:37 +01001519 bool "sspi - Command to access spi device"
Tom Rinie5289a72019-05-29 17:01:28 -04001520 depends on SPI
Simon Glass29499a02016-01-17 20:53:51 -07001521 help
1522 SPI utility command.
1523
Patrick Delaunay5a6b52b2019-02-27 15:20:37 +01001524config DEFAULT_SPI_BUS
1525 int "default spi bus used by sspi command"
1526 depends on CMD_SPI
1527 default 0
1528
1529config DEFAULT_SPI_MODE
1530 hex "default spi mode used by sspi command (see include/spi.h)"
1531 depends on CMD_SPI
Tom Rinif18679c2023-08-02 11:09:43 -04001532 default 0x0
Patrick Delaunay5a6b52b2019-02-27 15:20:37 +01001533
Robert Marko99e6fde2022-09-06 13:30:33 +02001534config CMD_TEMPERATURE
1535 bool "temperature - display the temperature from thermal sensors"
1536 depends on DM_THERMAL
1537 help
1538 Provides a way to list thermal sensors and to get their readings.
1539
Simon Glass80a56cd2017-08-04 16:35:00 -06001540config CMD_TSI148
1541 bool "tsi148 - Command to access tsi148 device"
1542 help
1543 This provides various sub-commands to initialise and configure the
1544 Turndra tsi148 device. See the command help for full details.
1545
Faiz Abbas61e9fbb2019-10-15 18:24:40 +05301546config CMD_UFS
1547 bool "Enable UFS - Universal Flash Subsystem commands"
1548 depends on UFS
1549 help
1550 "This provides commands to initialise and configure universal flash
1551 subsystem devices"
1552
Simon Glass0c03c1a2017-08-04 16:35:01 -06001553config CMD_UNIVERSE
1554 bool "universe - Command to set up the Turndra Universe controller"
1555 help
1556 This allows setting up the VMEbus provided by this controller.
1557 See the command help for full details.
1558
Simon Glass29499a02016-01-17 20:53:51 -07001559config CMD_USB
1560 bool "usb"
Tom Rini8a091622021-07-09 10:11:55 -04001561 depends on USB_HOST
Simon Glass29499a02016-01-17 20:53:51 -07001562 help
1563 USB support.
1564
Stefan Agnerd9d661c2017-08-16 11:00:53 -07001565config CMD_USB_SDP
1566 bool "sdp"
1567 select USB_FUNCTION_SDP
1568 help
1569 Enables the command "sdp" which is used to have U-Boot emulating the
1570 Serial Download Protocol (SDP) via USB.
Michal Simekf751ff52018-07-23 15:55:12 +02001571
Johan Jonkerff1d73f2023-10-18 16:01:40 +02001572config CMD_RKMTD
1573 bool "rkmtd"
1574 select RKMTD
1575 help
1576 Enable the command "rkmtd" to create a virtual block device to transfer
1577 Rockchip boot block data to and from NAND with block orientated tools
1578 like "ums" and "rockusb".
1579
Eddie Cai5e3020b2017-12-15 08:17:11 +08001580config CMD_ROCKUSB
1581 bool "rockusb"
1582 depends on USB_FUNCTION_ROCKUSB
1583 help
Michal Simekf751ff52018-07-23 15:55:12 +02001584 Rockusb protocol is widely used by Rockchip SoC based devices. It can
Eddie Cai5e3020b2017-12-15 08:17:11 +08001585 read/write info, image to/from devices. This enable rockusb command
1586 support to communication with rockusb device. for more detail about
1587 this command, please read doc/README.rockusb.
Stefan Agnerd9d661c2017-08-16 11:00:53 -07001588
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001589config CMD_USB_MASS_STORAGE
1590 bool "UMS usb mass storage"
Tom Rini4b783d92021-05-22 08:47:16 -04001591 depends on USB_GADGET_DOWNLOAD
Lukasz Majewski6e782742018-01-29 19:28:02 +01001592 select USB_FUNCTION_MASS_STORAGE
Patrick Delaunaye1dc2532021-06-04 18:51:46 +02001593 depends on BLK && USB_GADGET
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001594 help
Patrick Delaunaye1dc2532021-06-04 18:51:46 +02001595 Enables the command "ums" and the USB mass storage support to the
1596 export a block device: U-Boot, the USB device, acts as a simple
1597 external hard drive plugged on the host USB port.
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001598
Svyatoslav Ryhelbb8068d2023-03-20 21:01:43 +02001599config CMD_UMS_ABORT_KEYED
1600 bool "UMS abort with any key"
1601 depends on CMD_USB_MASS_STORAGE
1602 help
1603 Allow interruption of usb mass storage run with any key pressed.
1604
Anastasiia Lukianenko4fec7f82020-08-06 12:42:55 +03001605config CMD_PVBLOCK
1606 bool "Xen para-virtualized block device"
1607 depends on XEN
1608 select PVBLOCK
1609 help
1610 Xen para-virtualized block device support
1611
Tuomas Tynkkynen10a60d22018-10-15 02:21:12 -07001612config CMD_VIRTIO
1613 bool "virtio"
1614 depends on VIRTIO
1615 default y if VIRTIO
1616 help
1617 VirtIO block device support
1618
Michael Walle23964a82019-04-06 02:24:02 +02001619config CMD_WDT
1620 bool "wdt"
1621 depends on WDT
1622 help
1623 This provides commands to control the watchdog timer devices.
1624
Rasmus Villemoesc614b832023-03-02 09:12:22 +01001625config CMD_WRITE
1626 bool "write - Write binary data to a partition"
1627 help
1628 Provides low-level write access to a partition.
1629
Mario Sixfd1cc422018-08-09 14:51:21 +02001630config CMD_AXI
1631 bool "axi"
1632 depends on AXI
1633 help
1634 Enable the command "axi" for accessing AXI (Advanced eXtensible
1635 Interface) busses, a on-chip interconnect specification for managing
1636 functional blocks in SoC designs, which is also often used in designs
1637 involving FPGAs (e.g. communication with IP cores in Xilinx FPGAs).
Simon Glass29499a02016-01-17 20:53:51 -07001638endmenu
1639
1640
1641menu "Shell scripting commands"
1642
Roger Knecht11827c42022-09-03 11:34:53 +00001643config CMD_CAT
1644 bool "cat"
1645 help
1646 Print file to standard output
1647
Simon Glass29499a02016-01-17 20:53:51 -07001648config CMD_ECHO
1649 bool "echo"
1650 default y
1651 help
1652 Echo args to console
1653
1654config CMD_ITEST
1655 bool "itest"
1656 default y
1657 help
1658 Return true/false on integer compare.
1659
1660config CMD_SOURCE
1661 bool "source"
1662 default y
1663 help
1664 Run script from memory
1665
1666config CMD_SETEXPR
1667 bool "setexpr"
1668 default y
1669 help
1670 Evaluate boolean and math expressions and store the result in an env
1671 variable.
1672 Also supports loading the value at a memory location into a variable.
1673 If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
1674
Roland Gaudig2c9e7c22021-07-23 12:29:21 +00001675config CMD_SETEXPR_FMT
1676 bool "setexpr_fmt"
Roland Gaudig2c9e7c22021-07-23 12:29:21 +00001677 depends on CMD_SETEXPR
1678 help
1679 Evaluate format string expression and store result in an environment
1680 variable.
1681
Roger Knecht4c29c2b2023-09-07 14:51:43 +00001682config CMD_XXD
1683 bool "xxd"
1684 help
1685 Print file as hexdump to standard output
1686
Simon Glass29499a02016-01-17 20:53:51 -07001687endmenu
1688
Ruslan Trofymenkoa24f9b42019-07-05 15:37:33 +03001689menu "Android support commands"
1690
1691config CMD_AB_SELECT
1692 bool "ab_select"
Ruslan Trofymenkoa24f9b42019-07-05 15:37:33 +03001693 depends on ANDROID_AB
1694 help
1695 On Android devices with more than one boot slot (multiple copies of
1696 the kernel and system images) this provides a command to select which
1697 slot should be used to boot from and register the boot attempt. This
1698 is used by the new A/B update model where one slot is updated in the
1699 background while running from the other slot.
1700
1701endmenu
1702
Michal Simek2f785a12018-02-26 16:01:02 +01001703if NET
1704
Joe Hershbergerb0429462018-04-13 15:26:30 -05001705menuconfig CMD_NET
1706 bool "Network commands"
1707 default y
Adam Ford53705472018-07-20 23:03:57 -05001708 imply NETDEVICES
Joe Hershbergerb0429462018-04-13 15:26:30 -05001709
1710if CMD_NET
1711
1712config CMD_BOOTP
1713 bool "bootp"
Simon Glass29499a02016-01-17 20:53:51 -07001714 default y
1715 help
Simon Glass29499a02016-01-17 20:53:51 -07001716 bootp - boot image via network using BOOTP/TFTP protocol
Joe Hershbergerb0429462018-04-13 15:26:30 -05001717
Joe Hershberger01261792018-04-13 15:26:33 -05001718config CMD_DHCP
1719 bool "dhcp"
1720 depends on CMD_BOOTP
1721 help
1722 Boot image via network using DHCP/TFTP protocol
1723
Sean Edmondba802862023-04-11 10:48:47 -07001724config CMD_DHCP6
1725 bool "dhcp6"
1726 depends on IPV6
1727 help
1728 Boot image via network using DHCPv6/TFTP protocol using IPv6.
1729
1730 Will perform 4-message exchange with DHCPv6 server, requesting
1731 the minimum required options to TFTP boot. Complies with RFC 8415.
1732
Tom Rini1c47c4a2022-02-25 11:19:50 -05001733config BOOTP_MAY_FAIL
1734 bool "Allow for the BOOTP/DHCP server to not be found"
1735 depends on CMD_BOOTP
1736 help
1737 If the DHCP server is not found after the configured retry count, the
1738 call will fail instead of starting over. This can be used to fail
1739 over to Link-local IP address configuration if the DHCP server is not
1740 available.
1741
Joe Hershberger0824ad92018-04-13 15:26:32 -05001742config BOOTP_BOOTPATH
Joe Hershberger06661e12018-04-13 15:26:34 -05001743 bool "Request & store 'rootpath' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001744 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001745 depends on CMD_BOOTP
Joe Hershberger06661e12018-04-13 15:26:34 -05001746 help
1747 Even though the config is called BOOTP_BOOTPATH, it stores the
1748 path in the variable 'rootpath'.
Joe Hershberger0824ad92018-04-13 15:26:32 -05001749
Tom Rini1c47c4a2022-02-25 11:19:50 -05001750config BOOTP_VENDOREX
1751 bool "Support vendor extensions from BOOTP/DHCP server"
1752 depends on CMD_BOOTP
1753
1754config BOOTP_BOOTFILESIZE
1755 bool "Request & store 'bootfilesize' from BOOTP/DHCP server"
1756 depends on CMD_BOOTP
1757
Joe Hershberger0824ad92018-04-13 15:26:32 -05001758config BOOTP_DNS
Joe Hershberger06661e12018-04-13 15:26:34 -05001759 bool "Request & store 'dnsip' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001760 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001761 depends on CMD_BOOTP
Joe Hershberger06661e12018-04-13 15:26:34 -05001762 help
1763 The primary DNS server is stored as 'dnsip'. If two servers are
1764 returned, you must set BOOTP_DNS2 to store that second server IP
1765 also.
Joe Hershberger0824ad92018-04-13 15:26:32 -05001766
Joe Hershberger63e70712018-04-13 15:26:35 -05001767config BOOTP_DNS2
1768 bool "Store 'dnsip2' from BOOTP/DHCP server"
1769 depends on BOOTP_DNS
1770 help
1771 If a DHCP client requests the DNS server IP from a DHCP server,
1772 it is possible that more than one DNS serverip is offered to the
1773 client. If CONFIG_BOOTP_DNS2 is enabled, the secondary DNS
1774 server IP will be stored in the additional environment
1775 variable "dnsip2". The first DNS serverip is always
1776 stored in the variable "dnsip", when BOOTP_DNS is defined.
1777
Joe Hershberger0824ad92018-04-13 15:26:32 -05001778config BOOTP_GATEWAY
Joe Hershberger06661e12018-04-13 15:26:34 -05001779 bool "Request & store 'gatewayip' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001780 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001781 depends on CMD_BOOTP
1782
1783config BOOTP_HOSTNAME
Joe Hershberger06661e12018-04-13 15:26:34 -05001784 bool "Request & store 'hostname' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001785 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001786 depends on CMD_BOOTP
Joe Hershberger06661e12018-04-13 15:26:34 -05001787 help
1788 The name may or may not be qualified with the local domain name.
Joe Hershberger0824ad92018-04-13 15:26:32 -05001789
Alexander Graf427e6952018-06-15 10:29:28 +02001790config BOOTP_PREFER_SERVERIP
1791 bool "serverip variable takes precedent over DHCP server IP."
1792 depends on CMD_BOOTP
1793 help
1794 By default a BOOTP/DHCP reply will overwrite the 'serverip' variable.
1795
1796 With this option enabled, the 'serverip' variable in the environment
1797 takes precedence over DHCP server IP and will only be set by the DHCP
1798 server if not already set in the environment.
1799
Joe Hershberger0824ad92018-04-13 15:26:32 -05001800config BOOTP_SUBNETMASK
Joe Hershberger06661e12018-04-13 15:26:34 -05001801 bool "Request & store 'netmask' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001802 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001803 depends on CMD_BOOTP
1804
Tom Rini1c47c4a2022-02-25 11:19:50 -05001805config BOOTP_NISDOMAIN
1806 bool "Request & store 'nisdomain' from BOOTP/DHCP server"
1807 depends on CMD_BOOTP
1808
Chris Packhambfa7c212018-05-03 20:19:02 +12001809config BOOTP_NTPSERVER
1810 bool "Request & store 'ntpserverip' from BOOTP/DHCP server"
1811 depends on CMD_BOOTP
1812
Tom Rini1c47c4a2022-02-25 11:19:50 -05001813config BOOTP_TIMEOFFSET
1814 bool "Request & store 'timeoffset' from BOOTP/DHCP server"
1815 depends on CMD_BOOTP && CMD_SNTP
1816
Ramon Friedac598c12019-07-18 21:43:30 +03001817config CMD_PCAP
1818 bool "pcap capture"
1819 help
1820 Selecting this will allow capturing all Ethernet packets and store
1821 them in physical memory in a PCAP formated file,
1822 later to be analyzed by PCAP reader application (IE. WireShark).
1823
Joe Hershberger0824ad92018-04-13 15:26:32 -05001824config BOOTP_PXE
Joe Hershberger84ccdbe2018-04-13 15:26:36 -05001825 bool "Send PXE client arch to BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001826 default y
Joe Hershberger84ccdbe2018-04-13 15:26:36 -05001827 depends on CMD_BOOTP && CMD_PXE
1828 help
1829 Supported for ARM, ARM64, and x86 for now.
Joe Hershberger0824ad92018-04-13 15:26:32 -05001830
1831config BOOTP_PXE_CLIENTARCH
1832 hex
Joe Hershberger84ccdbe2018-04-13 15:26:36 -05001833 depends on BOOTP_PXE
Joe Hershberger0824ad92018-04-13 15:26:32 -05001834 default 0x16 if ARM64
1835 default 0x15 if ARM
Tom Rinif18679c2023-08-02 11:09:43 -04001836 default 0x0 if X86
Joe Hershberger0824ad92018-04-13 15:26:32 -05001837
Sean Edmond57867112023-07-25 16:20:30 -07001838config BOOTP_PXE_DHCP_OPTION
1839 bool "Request & store 'pxe_configfile' from BOOTP/DHCP server"
1840 depends on BOOTP_PXE
1841
Joe Hershberger0824ad92018-04-13 15:26:32 -05001842config BOOTP_VCI_STRING
1843 string
1844 depends on CMD_BOOTP
Michal Simekf4359382018-04-26 18:21:29 +05301845 default "U-Boot.armv7" if CPU_V7A || CPU_V7M || CPU_V7R
Joe Hershberger0824ad92018-04-13 15:26:32 -05001846 default "U-Boot.armv8" if ARM64
1847 default "U-Boot.arm" if ARM
1848 default "U-Boot"
1849
Sean Edmondba802862023-04-11 10:48:47 -07001850if CMD_DHCP6
1851
1852config DHCP6_PXE_CLIENTARCH
1853 hex
1854 default 0x16 if ARM64
1855 default 0x15 if ARM
1856 default 0xFF
1857
1858config DHCP6_PXE_DHCP_OPTION
1859 bool "Request & store 'pxe_configfile' from DHCP6 server"
1860
1861config DHCP6_ENTERPRISE_ID
1862 int "Enterprise ID to send in DHCPv6 Vendor Class Option"
1863 default 0
1864
1865endif
1866
Joe Hershbergerb0429462018-04-13 15:26:30 -05001867config CMD_TFTPBOOT
1868 bool "tftpboot"
1869 default y
1870 help
Heinrich Schuchardt7d289f12022-09-04 09:08:11 +02001871 tftpboot - load file via network using TFTP protocol
Simon Glass29499a02016-01-17 20:53:51 -07001872
1873config CMD_TFTPPUT
1874 bool "tftp put"
Joe Hershbergerb0429462018-04-13 15:26:30 -05001875 depends on CMD_TFTPBOOT
Simon Glass29499a02016-01-17 20:53:51 -07001876 help
1877 TFTP put command, for uploading files to a server
1878
1879config CMD_TFTPSRV
1880 bool "tftpsrv"
Joe Hershbergerb0429462018-04-13 15:26:30 -05001881 depends on CMD_TFTPBOOT
Simon Glass29499a02016-01-17 20:53:51 -07001882 help
1883 Act as a TFTP server and boot the first received file
1884
Joe Hershberger0824ad92018-04-13 15:26:32 -05001885config NET_TFTP_VARS
1886 bool "Control TFTP timeout and count through environment"
1887 depends on CMD_TFTPBOOT
1888 default y
1889 help
1890 If set, allows controlling the TFTP timeout through the
1891 environment variable tftptimeout, and the TFTP maximum
1892 timeout count through the variable tftptimeoutcountmax.
1893 If unset, timeout and maximum are hard-defined as 1 second
1894 and 10 timouts per TFTP transfer.
1895
Simon Glass29499a02016-01-17 20:53:51 -07001896config CMD_RARP
1897 bool "rarpboot"
1898 help
1899 Boot image via network using RARP/TFTP protocol
1900
Simon Glass29499a02016-01-17 20:53:51 -07001901config CMD_NFS
1902 bool "nfs"
Simon Glass29499a02016-01-17 20:53:51 -07001903 help
1904 Boot image via network using NFS protocol.
1905
Tom Rini0d1c4742022-03-11 09:12:05 -05001906config NFS_TIMEOUT
1907 int "Timeout in milliseconds for NFS mounts"
1908 depends on CMD_NFS
1909 default 2000
1910 help
1911 Timeout in milliseconds used in NFS protocol. If you encounter
1912 "ERROR: Cannot umount" in nfs command, try longer timeout such as
1913 10000.
1914
Tom Rini065d6612022-06-13 22:57:35 -04001915config SYS_DISABLE_AUTOLOAD
1916 bool "Disable automatically loading files over the network"
1917 depends on CMD_BOOTP || CMD_DHCP || CMD_NFS || CMD_RARP
1918 help
1919 Typically, commands such as "dhcp" will attempt to automatically
1920 load a file from the network, once the initial network configuration
1921 is complete. Enable this option to disable this behavior and instead
1922 require files to be loaded over the network by subsequent commands.
1923
Ying-Chun Liu (PaulLiu)cc96a1d2022-11-08 14:17:29 +08001924config CMD_WGET
1925 bool "wget"
Michael Walle34aa0752022-12-28 16:27:15 +01001926 select PROT_TCP
Ying-Chun Liu (PaulLiu)cc96a1d2022-11-08 14:17:29 +08001927 help
1928 wget is a simple command to download kernel, or other files,
1929 from a http server over TCP.
1930
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001931config CMD_MII
1932 bool "mii"
Ramon Frieddeb6c502019-09-13 18:25:03 +03001933 imply CMD_MDIO
1934 help
1935 If set, allows 802.3(clause 22) MII Management functions interface access
1936 The management interface specified in Clause 22 provides
1937 a simple, two signal, serial interface to connect a
1938 Station Management entity and a managed PHY for providing access
1939 to management parameters and services.
1940 The interface is referred to as the MII management interface.
1941
Tom Rini1a0c7dc2022-03-18 08:38:27 -04001942config MII_INIT
1943 bool "Call mii_init() in the mii command"
1944 depends on CMD_MII && (MPC8XX_FEC || FSLDMAFE || MCFFEC)
1945
Ramon Frieddeb6c502019-09-13 18:25:03 +03001946config CMD_MDIO
1947 bool "mdio"
1948 depends on PHYLIB
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001949 help
Ramon Frieddeb6c502019-09-13 18:25:03 +03001950 If set, allows Enable 802.3(clause 45) MDIO interface registers access
1951 The MDIO interface is orthogonal to the MII interface and extends
1952 it by adding access to more registers through indirect addressing.
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001953
Simon Glass29499a02016-01-17 20:53:51 -07001954config CMD_PING
1955 bool "ping"
1956 help
1957 Send ICMP ECHO_REQUEST to network host
1958
Viacheslav Mitrofanove03c8aa2022-12-02 12:18:08 +03001959config CMD_PING6
1960 bool "ping6"
1961 depends on IPV6
1962 default y if (CMD_PING && IPV6)
1963 help
1964 Send ICMPv6 ECHO_REQUEST to network host
1965
Simon Glass29499a02016-01-17 20:53:51 -07001966config CMD_CDP
1967 bool "cdp"
1968 help
1969 Perform CDP network configuration
1970
1971config CMD_SNTP
1972 bool "sntp"
Philippe Reynes2829d992020-09-18 14:13:02 +02001973 select PROT_UDP
Simon Glass29499a02016-01-17 20:53:51 -07001974 help
1975 Synchronize RTC via network
1976
1977config CMD_DNS
1978 bool "dns"
1979 help
1980 Lookup the IP of a hostname
1981
1982config CMD_LINK_LOCAL
1983 bool "linklocal"
Joe Hershberger51d78982018-04-30 12:45:22 -05001984 select LIB_RAND
Simon Glass29499a02016-01-17 20:53:51 -07001985 help
1986 Acquire a network IP address using the link-local protocol
1987
Samuel Mendoza-Jonasfeebd6c2022-08-08 21:46:04 +09301988config CMD_NCSI
1989 bool "ncsi"
1990 depends on PHY_NCSI
1991 help
1992 Manually configure the attached NIC via NC-SI.
1993 Normally this happens automatically before other network
1994 operations.
1995
Ehsan Mohandesia0d6d272023-04-21 17:08:21 -07001996config IPV6_ROUTER_DISCOVERY
1997 bool "Do IPv6 router discovery"
1998 depends on IPV6
1999 help
2000 Will automatically perform router solicitation on first IPv6
2001 network operation
Joe Hershberger0824ad92018-04-13 15:26:32 -05002002endif
2003
Simon Glass12b85702017-05-17 03:25:17 -06002004config CMD_ETHSW
2005 bool "ethsw"
2006 help
2007 Allow control of L2 Ethernet switch commands. These are supported
2008 by the vsc9953 Ethernet driver at present. Sub-commands allow
2009 operations such as enabling / disabling a port and
2010 viewing/maintaining the filtering database (FDB)
2011
Joe Hershberger0824ad92018-04-13 15:26:32 -05002012config CMD_PXE
2013 bool "pxe"
John Keeping9b60a172022-07-28 11:19:15 +01002014 select PXE_UTILS
Joe Hershberger0824ad92018-04-13 15:26:32 -05002015 help
2016 Boot image via network using PXE protocol
Michal Simek2f785a12018-02-26 16:01:02 +01002017
Lothar Felten776fc102018-06-22 22:29:54 +02002018config CMD_WOL
2019 bool "wol"
2020 help
2021 Wait for wake-on-lan Magic Packet
2022
Joe Hershbergerb0429462018-04-13 15:26:30 -05002023endif
Simon Glass29499a02016-01-17 20:53:51 -07002024
2025menu "Misc commands"
2026
Simon Glassb158b8f2023-02-07 14:33:53 -07002027config CMD_2048
2028 bool "Play 2048"
2029 help
2030 This is a simple sliding block puzzle game designed by Italian web
2031 developer Gabriele Cirulli. The game's objective is to slide numbered
2032 tiles on a grid to combine them to create a tile with the number
2033 2048.
2034
2035 This needs ANSI support on your terminal to work. It is not fully
2036 functional on a video device.
2037
Simon Glassb575bfc2017-04-26 22:27:55 -06002038config CMD_BMP
2039 bool "Enable 'bmp' command"
Simon Glass52cb5042022-10-18 07:46:31 -06002040 depends on VIDEO
Samuel Dionne-Rielaa3c9bb2023-07-18 14:27:36 +05302041 select BMP
Simon Glassb575bfc2017-04-26 22:27:55 -06002042 help
Andrius Štikonas1d5ccd62019-09-23 22:43:41 +01002043 This provides a way to obtain information about a BMP-format image
Simon Glassb575bfc2017-04-26 22:27:55 -06002044 and to display it. BMP (which presumably stands for BitMaP) is a
2045 file format defined by Microsoft which supports images of various
2046 depths, formats and compression methods. Headers on the file
2047 determine the formats used. This command can be used by first loading
2048 the image into RAM, then using this command to look at it or display
2049 it.
2050
Alex Kiernane710fa62018-05-12 05:49:47 +00002051config CMD_BOOTCOUNT
2052 bool "bootcount"
2053 depends on BOOTCOUNT_LIMIT
2054 help
2055 Enable the bootcount command, which allows interrogation and
2056 reset of the bootcounter.
2057
Simon Glassffab9a02017-04-26 22:27:56 -06002058config CMD_BSP
2059 bool "Enable board-specific commands"
2060 help
2061 (deprecated: instead, please define a Kconfig option for each command)
2062
2063 Some boards have board-specific commands which are only enabled
2064 during developemnt and need to be turned off for production. This
2065 option provides a way to control this. The commands that are enabled
2066 vary depending on the board.
2067
Eric Nelsonfaf4f052016-03-28 10:05:44 -07002068config CMD_BLOCK_CACHE
2069 bool "blkcache - control and stats for block cache"
2070 depends on BLOCK_CACHE
2071 default y if BLOCK_CACHE
2072 help
2073 Enable the blkcache command, which can be used to control the
2074 operation of the cache functions.
2075 This is most useful when fine-tuning the operation of the cache
2076 during development, but also allows the cache to be disabled when
2077 it might hurt performance (e.g. when using the ums command).
2078
Tobias Waldekranz91ec2592023-02-16 16:33:52 +01002079config CMD_BLKMAP
2080 bool "blkmap - Composable virtual block devices"
2081 depends on BLKMAP
2082 default y if BLKMAP
2083 help
2084 Create virtual block devices that are backed by various sources,
2085 e.g. RAM, or parts of an existing block device. Though much more
2086 rudimentary, it borrows a lot of ideas from Linux's device mapper
2087 subsystem.
2088
2089 Example use-cases:
2090 - Treat a region of RAM as a block device, i.e. a RAM disk. This let's
2091 you extract files from filesystem images stored in RAM (perhaps as a
2092 result of a TFTP transfer).
2093 - Create a virtual partition on an existing device. This let's you
2094 access filesystems that aren't stored at an exact partition
2095 boundary. A common example is a filesystem image embedded in an FIT
2096 image.
2097
Philippe Reynesa558b182020-07-24 18:19:47 +02002098config CMD_BUTTON
2099 bool "button"
2100 depends on BUTTON
2101 default y if BUTTON
2102 help
2103 Enable the 'button' command which allows to get the status of
2104 buttons supported by the board. The buttonss can be listed with
2105 'button list' and state can be known with 'button <label>'.
2106 Any button drivers can be controlled with this command, e.g.
2107 button_gpio.
2108
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002109config CMD_CACHE
2110 bool "icache or dcache"
2111 help
2112 Enable the "icache" and "dcache" commands
2113
Heinrich Schuchardt13ea6852018-09-07 19:43:11 +02002114config CMD_CONITRACE
2115 bool "conitrace - trace console input codes"
2116 help
2117 Enable the 'conitrace' command which displays the codes received
2118 from the console input as hexadecimal numbers.
2119
Anatolij Gustschine0455a42018-12-01 10:47:20 +01002120config CMD_CLS
2121 bool "Enable clear screen command 'cls'"
John Keeping36ce43b2022-11-23 17:16:14 +00002122 default y if LCD || VIDEO
Anatolij Gustschine0455a42018-12-01 10:47:20 +01002123 help
2124 Enable the 'cls' command which clears the screen contents
2125 on video frame buffer.
2126
AKASHI Takahiroe7c08832019-02-25 15:54:38 +09002127config CMD_EFIDEBUG
2128 bool "efidebug - display/configure UEFI environment"
2129 depends on EFI_LOADER
Heinrich Schuchardt3db35912019-05-11 09:53:33 +02002130 select EFI_DEVICE_PATH_TO_TEXT
AKASHI Takahiroe7c08832019-02-25 15:54:38 +09002131 help
2132 Enable the 'efidebug' command which provides a subset of UEFI
2133 shell utility with simplified functionality. It will be useful
2134 particularly for managing boot parameters as well as examining
2135 various EFI status for debugging.
2136
Masahisa Kojimac5ff0a02022-09-12 17:33:50 +09002137config CMD_EFICONFIG
2138 bool "eficonfig - provide menu-driven uefi variables maintenance interface"
Heinrich Schuchardt323bfa52023-02-08 09:57:00 +01002139 default y if !HAS_BOARD_SIZE_LIMIT
Simon Glassd1e46f02023-10-26 14:31:20 -04002140 depends on BOOTEFI_BOOTMGR
Heinrich Schuchardtaecf40e2023-02-08 13:56:33 +01002141 select MENU
Masahisa Kojimac5ff0a02022-09-12 17:33:50 +09002142 help
2143 Enable the 'eficonfig' command which provides the menu-driven UEFI
2144 variable maintenance interface.
2145
Heinrich Schuchardtf7d6b072018-12-26 17:20:35 +01002146config CMD_EXCEPTION
2147 bool "exception - raise exception"
Heinrich Schuchardtadaea9c2020-11-12 00:29:57 +01002148 depends on ARM || RISCV || SANDBOX || X86
Heinrich Schuchardtf7d6b072018-12-26 17:20:35 +01002149 help
2150 Enable the 'exception' command which allows to raise an exception.
2151
Simon Glassfc8a5292017-04-10 11:34:59 -06002152config CMD_LED
2153 bool "led"
Jan Kiszka89077ba2019-01-03 09:08:42 +01002154 depends on LED
Simon Glassfc8a5292017-04-10 11:34:59 -06002155 default y if LED
2156 help
2157 Enable the 'led' command which allows for control of LEDs supported
2158 by the board. The LEDs can be listed with 'led list' and controlled
2159 with led on/off/togle/blink. Any LED drivers can be controlled with
2160 this command, e.g. led_gpio.
2161
Simon Glassfbcd3b72023-02-01 13:19:24 -07002162config CMD_INI
2163 bool "ini"
2164 help
2165 Enable the 'ini' command which allows a .ini file to be parsed and
2166 placed into environment variables. Please check the source code for
2167 this as there is no documentation.
2168
Chris Packham3e257df2017-04-29 15:20:28 +12002169config CMD_DATE
2170 bool "date"
2171 default y if DM_RTC
AKASHI Takahiro51ba5222019-11-13 09:44:49 +09002172 select LIB_DATE
Chris Packham3e257df2017-04-29 15:20:28 +12002173 help
2174 Enable the 'date' command for getting/setting the time/date in RTC
2175 devices.
2176
Rasmus Villemoescc092022020-07-06 22:01:15 +02002177config CMD_RTC
2178 bool "rtc"
2179 depends on DM_RTC
2180 help
2181 Enable the 'rtc' command for low-level access to RTC devices.
2182
Simon Glass29499a02016-01-17 20:53:51 -07002183config CMD_TIME
2184 bool "time"
2185 help
2186 Run commands and summarize execution time.
2187
Simon Glassfa744522017-05-17 03:25:23 -06002188config CMD_GETTIME
2189 bool "gettime - read elapsed time"
2190 help
2191 Enable the 'gettime' command which reads the elapsed time since
2192 U-Boot started running. This shows the time in seconds and
2193 milliseconds. See also the 'bootstage' command which provides more
2194 flexibility for boot timing.
2195
Samuel Dionne-Riele69e1f12022-08-18 15:44:04 -04002196config CMD_PAUSE
2197 bool "pause command"
2198 help
2199 Delay execution waiting for any user input.
2200 Useful to allow the user to read a failure log.
2201
Heinrich Schuchardta31a5942019-12-24 22:17:37 +01002202config CMD_RNG
2203 bool "rng command"
2204 depends on DM_RNG
Sughosh Ganu6daac6b2022-07-22 21:32:09 +05302205 default y if SANDBOX
Heinrich Schuchardta31a5942019-12-24 22:17:37 +01002206 select HEXDUMP
2207 help
2208 Print bytes from the hardware random number generator.
2209
Chris Morgan61a96182021-08-25 11:22:57 -05002210config CMD_KASLRSEED
2211 bool "kaslrseed"
2212 depends on DM_RNG
2213 help
2214 Set the kaslr-seed in the chosen node with entropy provided by a
2215 hardware random number generator.
2216
Bin Meng7c4f7be2020-10-13 18:45:05 +08002217config CMD_SLEEP
Simon Glass29499a02016-01-17 20:53:51 -07002218 bool "sleep"
2219 default y
2220 help
2221 Delay execution for some time
2222
Ashok Reddy Soma1e6f9962022-01-17 10:16:50 +01002223config CMD_MP
2224 bool "support for multiprocessor commands"
2225 depends on MP
2226 default y
Siva Durga Prasad Paladugu8e45f1a2018-06-19 12:24:23 +02002227 help
Ashok Reddy Soma1e6f9962022-01-17 10:16:50 +01002228 This enables commands to bringup different processors
2229 in multiprocessor cases.
Siva Durga Prasad Paladugu8e45f1a2018-06-19 12:24:23 +02002230
Simon Glass29499a02016-01-17 20:53:51 -07002231config CMD_TIMER
2232 bool "timer"
2233 help
2234 Access the system timer.
2235
Simon Glass29499a02016-01-17 20:53:51 -07002236config CMD_SOUND
2237 bool "sound"
2238 depends on SOUND
2239 help
2240 This provides basic access to the U-Boot's sound support. The main
2241 feature is to play a beep.
2242
2243 sound init - set up sound system
2244 sound play - play a sound
2245
Patrice Chotard7b81c052019-11-25 09:07:38 +01002246config CMD_SYSBOOT
2247 bool "sysboot"
John Keeping9b60a172022-07-28 11:19:15 +01002248 select PXE_UTILS
Patrice Chotard7b81c052019-11-25 09:07:38 +01002249 help
2250 Boot image via local extlinux.conf file
2251
Miao Yan92106272016-05-22 19:37:17 -07002252config CMD_QFW
Tom Rinibcb3c8d2016-05-06 10:40:22 -04002253 bool "qfw"
Miao Yan4fcd7f22016-05-22 19:37:14 -07002254 select QFW
Tom Rinibbf245d2023-10-26 14:31:14 -04002255 default y if TARGET_QEMU_ARM_32BIT || TARGET_QEMU_ARM_64BIT || \
2256 TARGET_QEMU_X86 || TARGET_QEMU_X86_64
Tom Rinibcb3c8d2016-05-06 10:40:22 -04002257 help
2258 This provides access to the QEMU firmware interface. The main
2259 feature is to allow easy loading of files passed to qemu-system
2260 via -kernel / -initrd
Konstantin Porotchkin97d26782016-12-08 12:22:28 +02002261
Frédéric Danised2e8e42020-03-20 10:59:22 +01002262config CMD_PSTORE
2263 bool "pstore"
2264 help
2265 This provides access to Linux PStore with Rammoops backend. The main
2266 feature is to allow to display or save PStore records.
2267
2268 See doc/pstore.rst for more information.
2269
2270if CMD_PSTORE
2271
2272config CMD_PSTORE_MEM_ADDR
2273 hex "Memory Address"
2274 depends on CMD_PSTORE
2275 help
2276 Base addr used for PStore ramoops memory, should be identical to
2277 ramoops.mem_address parameter used by kernel
2278
2279config CMD_PSTORE_MEM_SIZE
2280 hex "Memory size"
2281 depends on CMD_PSTORE
2282 default "0x10000"
2283 help
2284 Size of PStore ramoops memory, should be identical to ramoops.mem_size
2285 parameter used by kernel, a power of 2 and larger than the sum of the
2286 record sizes
2287
2288config CMD_PSTORE_RECORD_SIZE
2289 hex "Dump record size"
2290 depends on CMD_PSTORE
2291 default "0x1000"
2292 help
2293 Size of each dump done on oops/panic, should be identical to
2294 ramoops.record_size parameter used by kernel and a power of 2
2295 Must be non-zero
2296
2297config CMD_PSTORE_CONSOLE_SIZE
2298 hex "Kernel console log size"
2299 depends on CMD_PSTORE
2300 default "0x1000"
2301 help
2302 Size of kernel console log, should be identical to
2303 ramoops.console_size parameter used by kernel and a power of 2
2304 Must be non-zero
2305
2306config CMD_PSTORE_FTRACE_SIZE
2307 hex "FTrace log size"
2308 depends on CMD_PSTORE
2309 default "0x1000"
2310 help
2311 Size of ftrace log, should be identical to ramoops.ftrace_size
2312 parameter used by kernel and a power of 2
2313
2314config CMD_PSTORE_PMSG_SIZE
2315 hex "User space message log size"
2316 depends on CMD_PSTORE
2317 default "0x1000"
2318 help
2319 Size of user space message log, should be identical to
2320 ramoops.pmsg_size parameter used by kernel and a power of 2
2321
2322config CMD_PSTORE_ECC_SIZE
2323 int "ECC size"
2324 depends on CMD_PSTORE
2325 default "0"
2326 help
2327 if non-zero, the option enables ECC support and specifies ECC buffer
2328 size in bytes (1 is a special value, means 16 bytes ECC), should be
2329 identical to ramoops.ramoops_ecc parameter used by kernel
2330
2331endif
2332
Konstantin Porotchkin97d26782016-12-08 12:22:28 +02002333source "cmd/mvebu/Kconfig"
2334
Simon Glass89342ef2017-08-04 16:34:55 -06002335config CMD_TERMINAL
2336 bool "terminal - provides a way to attach a serial terminal"
2337 help
2338 Provides a 'cu'-like serial terminal command. This can be used to
2339 access other serial ports from the system console. The terminal
2340 is very simple with no special processing of characters. As with
2341 cu, you can press ~. (tilde followed by period) to exit.
2342
Simon Glass6d56aad2017-08-04 16:35:02 -06002343config CMD_UUID
2344 bool "uuid, guid - generation of unique IDs"
Adam Ford70c8f052018-02-06 12:14:28 -06002345 select LIB_UUID
Simon Glass6d56aad2017-08-04 16:35:02 -06002346 help
2347 This enables two commands:
2348
2349 uuid - generate random Universally Unique Identifier
2350 guid - generate Globally Unique Identifier based on random UUID
2351
2352 The two commands are very similar except for the endianness of the
2353 output.
2354
Simon Glass724e2a42022-10-06 08:36:06 -06002355config CMD_VIDCONSOLE
2356 bool "lcdputs and setcurs"
Simon Glass52cb5042022-10-18 07:46:31 -06002357 depends on VIDEO
Simon Glass724e2a42022-10-06 08:36:06 -06002358 default y
2359 help
2360 Enabling this will provide 'setcurs' and 'lcdputs' commands which
2361 support cursor positioning and drawing strings on the video
2362 console (framebuffer).
2363
2364 The name 'lcdputs' is a bit of a misnomer, but so named because the
2365 video device is often an LCD.
2366
Dzmitry Sankouskibb165e42023-03-07 13:21:16 +03002367config CMD_SELECT_FONT
2368 bool "select font size"
2369 depends on VIDEO
Simon Glass9faa7a32023-10-26 14:31:18 -04002370 default y if CONSOLE_TRUETYPE
Dzmitry Sankouskibb165e42023-03-07 13:21:16 +03002371 help
2372 Enabling this will provide 'font' command.
2373 Allows font selection at runtime.
2374
Simon Glass29499a02016-01-17 20:53:51 -07002375endmenu
2376
Lokesh Vutla962c4e02017-12-29 11:47:49 +05302377source "cmd/ti/Kconfig"
2378
Simon Glass29499a02016-01-17 20:53:51 -07002379config CMD_BOOTSTAGE
2380 bool "Enable the 'bootstage' command"
2381 depends on BOOTSTAGE
2382 help
2383 Add a 'bootstage' command which supports printing a report
2384 and un/stashing of bootstage data.
2385
2386menu "Power commands"
2387config CMD_PMIC
2388 bool "Enable Driver Model PMIC command"
2389 depends on DM_PMIC
2390 help
2391 This is the pmic command, based on a driver model pmic's API.
2392 Command features are unchanged:
2393 - list - list pmic devices
2394 - pmic dev <id> - show or [set] operating pmic device (NEW)
2395 - pmic dump - dump registers
2396 - pmic read address - read byte of register at address
2397 - pmic write address - write byte to register at address
2398 The only one change for this command is 'dev' subcommand.
2399
2400config CMD_REGULATOR
2401 bool "Enable Driver Model REGULATOR command"
2402 depends on DM_REGULATOR
2403 help
2404 This command is based on driver model regulator's API.
2405 User interface features:
2406 - list - list regulator devices
2407 - regulator dev <id> - show or [set] operating regulator device
2408 - regulator info - print constraints info
2409 - regulator status - print operating status
2410 - regulator value <val] <-f> - print/[set] voltage value [uV]
2411 - regulator current <val> - print/[set] current value [uA]
2412 - regulator mode <id> - print/[set] operating mode id
2413 - regulator enable - enable the regulator output
2414 - regulator disable - disable the regulator output
2415
2416 The '-f' (force) option can be used for set the value which exceeds
2417 the limits, which are found in device-tree and are kept in regulator's
Simon Glass71fa5b42020-12-03 16:55:18 -07002418 uclass plat structure.
Simon Glass29499a02016-01-17 20:53:51 -07002419
2420endmenu
2421
2422menu "Security commands"
Simon Glass528fdd12017-04-26 22:27:49 -06002423config CMD_AES
2424 bool "Enable the 'aes' command"
2425 select AES
2426 help
2427 This provides a means to encrypt and decrypt data using the AES
2428 (Advanced Encryption Standard). This algorithm uses a symetric key
2429 and is widely used as a streaming cipher. Different key lengths are
2430 supported by the algorithm but this command only supports 128 bits
2431 at present.
2432
Simon Glass311ec4f2017-04-26 22:27:53 -06002433config CMD_BLOB
2434 bool "Enable the 'blob' command"
Aymen Sghaierf18c71f2021-03-25 17:30:27 +08002435 depends on !MX6ULL && !MX6SLL && !MX6SL
2436 select IMX_HAB if ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP || ARCH_IMX8M
Simon Glass311ec4f2017-04-26 22:27:53 -06002437 help
2438 This is used with the Freescale secure boot mechanism.
2439
2440 Freescale's SEC block has built-in Blob Protocol which provides
2441 a method for protecting user-defined data across system power
2442 cycles. SEC block protects data in a data structure called a Blob,
2443 which provides both confidentiality and integrity protection.
2444
2445 Encapsulating data as a blob
2446 Each time that the Blob Protocol is used to protect data, a
2447 different randomly generated key is used to encrypt the data.
2448 This random key is itself encrypted using a key which is derived
2449 from SoC's non-volatile secret key and a 16 bit Key identifier.
2450 The resulting encrypted key along with encrypted data is called a
2451 blob. The non-volatile secure key is available for use only during
2452 secure boot.
2453
2454 During decapsulation, the reverse process is performed to get back
2455 the original data.
2456
2457 Sub-commands:
Michal Simekf751ff52018-07-23 15:55:12 +02002458 blob enc - encapsulating data as a cryptgraphic blob
Simon Glass311ec4f2017-04-26 22:27:53 -06002459 blob dec - decapsulating cryptgraphic blob to get the data
2460
2461 Syntax:
2462
2463 blob enc src dst len km
2464
2465 Encapsulate and create blob of data $len bytes long
2466 at address $src and store the result at address $dst.
2467 $km is the 16 byte key modifier is also required for
2468 generation/use as key for cryptographic operation. Key
2469 modifier should be 16 byte long.
2470
2471 blob dec src dst len km
2472
2473 Decapsulate the blob of data at address $src and
2474 store result of $len byte at addr $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
Simon Glass027608e2017-05-17 03:25:25 -06002479config CMD_HASH
2480 bool "Support 'hash' command"
Simon Glassb22ec7a2017-05-17 09:05:34 -06002481 select HASH
Simon Glass027608e2017-05-17 03:25:25 -06002482 help
2483 This provides a way to hash data in memory using various supported
2484 algorithms (such as SHA1, MD5, CRC32). The computed digest can be
2485 saved to memory or to an environment variable. It is also possible
2486 to verify a hash against data in memory.
2487
Michalis Pappasd382d222018-04-13 10:40:57 +03002488config CMD_HVC
2489 bool "Support the 'hvc' command"
2490 depends on ARM_SMCCC
2491 help
2492 Allows issuing Hypervisor Calls (HVCs). Mostly useful for
2493 development and testing.
2494
2495config CMD_SMC
2496 bool "Support the 'smc' command"
2497 depends on ARM_SMCCC
2498 help
2499 Allows issuing Secure Monitor Calls (SMCs). Mostly useful for
2500 development and testing.
2501
Daniel Thompsona9e2c672017-05-19 17:26:58 +01002502config HASH_VERIFY
2503 bool "hash -v"
2504 depends on CMD_HASH
2505 help
2506 Add -v option to verify data against a hash.
2507
Jorge Ramirez-Ortiz7d80df92021-02-14 16:27:24 +01002508config CMD_SCP03
2509 bool "scp03 - SCP03 enable and rotate/provision operations"
2510 depends on SCP03
2511 help
2512 This command provides access to a Trusted Application
2513 running in a TEE to request Secure Channel Protocol 03
2514 (SCP03) enablement and/or rotation of its SCP03 keys.
2515
Miquel Raynal294f82a2018-05-15 11:57:05 +02002516config CMD_TPM_V1
2517 bool
2518
2519config CMD_TPM_V2
2520 bool
2521
Simon Glass29499a02016-01-17 20:53:51 -07002522config CMD_TPM
2523 bool "Enable the 'tpm' command"
Miquel Raynal294f82a2018-05-15 11:57:05 +02002524 depends on TPM_V1 || TPM_V2
2525 select CMD_TPM_V1 if TPM_V1
2526 select CMD_TPM_V2 if TPM_V2
Simon Glass29499a02016-01-17 20:53:51 -07002527 help
2528 This provides a means to talk to a TPM from the command line. A wide
2529 range of commands if provided - see 'tpm help' for details. The
2530 command requires a suitable TPM on your board and the correct driver
2531 must be enabled.
2532
Miquel Raynal294f82a2018-05-15 11:57:05 +02002533if CMD_TPM
2534
Simon Glass29499a02016-01-17 20:53:51 -07002535config CMD_TPM_TEST
2536 bool "Enable the 'tpm test' command"
Miquel Raynal294f82a2018-05-15 11:57:05 +02002537 depends on TPM_V1
Simon Glass29499a02016-01-17 20:53:51 -07002538 help
Miquel Raynal294f82a2018-05-15 11:57:05 +02002539 This provides a a series of tests to confirm that the TPMv1.x is
2540 working correctly. The tests cover initialisation, non-volatile RAM,
2541 extend, global lock and checking that timing is within expectations.
2542 The tests pass correctly on Infineon TPMs but may need to be adjusted
Simon Glass29499a02016-01-17 20:53:51 -07002543 for other devices.
2544
Miquel Raynal294f82a2018-05-15 11:57:05 +02002545endif
2546
Simon Glass29499a02016-01-17 20:53:51 -07002547endmenu
2548
Moritz Fischer62b30272016-10-04 17:08:08 -07002549menu "Firmware commands"
2550config CMD_CROS_EC
2551 bool "Enable crosec command"
2552 depends on CROS_EC
2553 default y
2554 help
2555 Enable command-line access to the Chrome OS EC (Embedded
2556 Controller). This provides the 'crosec' command which has
2557 a number of sub-commands for performing EC tasks such as
2558 updating its flash, accessing a small saved context area
2559 and talking to the I2C bus behind the EC (if there is one).
2560endmenu
2561
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002562menu "Filesystem commands"
Marek Behún27cec792017-09-03 17:00:30 +02002563config CMD_BTRFS
2564 bool "Enable the 'btrsubvol' command"
2565 select FS_BTRFS
2566 help
2567 This enables the 'btrsubvol' command to list subvolumes
2568 of a BTRFS filesystem. There are no special commands for
2569 listing BTRFS directories or loading BTRFS files - this
2570 can be done by the generic 'fs' commands (see CMD_FS_GENERIC)
2571 when BTRFS is enabled (see FS_BTRFS).
2572
Simon Glass0501e3e2017-04-26 22:27:58 -06002573config CMD_CBFS
2574 bool "Enable the 'cbfs' command"
Simon Glass579b51a2017-04-26 22:27:59 -06002575 depends on FS_CBFS
Simon Glass0501e3e2017-04-26 22:27:58 -06002576 help
2577 Define this to enable support for reading from a Coreboot
2578 filesystem. This is a ROM-based filesystem used for accessing files
2579 on systems that use coreboot as the first boot-loader and then load
2580 U-Boot to actually boot the Operating System. Available commands are
2581 cbfsinit, cbfsinfo, cbfsls and cbfsload.
2582
Simon Glass519805e2017-04-26 22:28:03 -06002583config CMD_CRAMFS
2584 bool "Enable the 'cramfs' command"
Simon Glass690f5092017-04-26 22:28:04 -06002585 depends on FS_CRAMFS
Simon Glass519805e2017-04-26 22:28:03 -06002586 help
2587 This provides commands for dealing with CRAMFS (Compressed ROM
2588 filesystem). CRAMFS is useful when space is tight since files are
2589 compressed. Two commands are provided:
2590
2591 cramfsls - lists files in a cramfs image
2592 cramfsload - loads a file from a cramfs image
2593
Huang Jiananc8eefae2022-02-26 15:05:50 +08002594config CMD_EROFS
2595 bool "EROFS command support"
2596 select FS_EROFS
2597 help
2598 Support for the EROFS fs
2599
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002600config CMD_EXT2
2601 bool "ext2 command support"
Tuomas Tynkkynen388f9a02018-01-05 02:45:17 +02002602 select FS_EXT4
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002603 help
2604 Enables EXT2 FS command
2605
2606config CMD_EXT4
2607 bool "ext4 command support"
Tuomas Tynkkynen388f9a02018-01-05 02:45:17 +02002608 select FS_EXT4
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002609 help
2610 Enables EXT4 FS command
2611
2612config CMD_EXT4_WRITE
2613 depends on CMD_EXT4
2614 bool "ext4 write command support"
Tuomas Tynkkynen388f9a02018-01-05 02:45:17 +02002615 select EXT4_WRITE
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002616 help
2617 Enables EXT4 FS write command
2618
2619config CMD_FAT
2620 bool "FAT command support"
Sekhar Nori1909a7b2017-06-02 17:53:59 +05302621 select FS_FAT
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002622 help
2623 Support for the FAT fs
2624
Joao Marcos Costaa12c66f2020-07-30 15:33:48 +02002625config CMD_SQUASHFS
2626 bool "SquashFS command support"
2627 select FS_SQUASHFS
2628 help
2629 Enables SquashFS filesystem commands (e.g. load, ls).
2630
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002631config CMD_FS_GENERIC
2632 bool "filesystem commands"
2633 help
2634 Enables filesystem commands (e.g. load, ls) that work for multiple
2635 fs types.
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002636
Josua Mayerf5ebfe72017-04-24 10:10:45 +02002637config CMD_FS_UUID
2638 bool "fsuuid command"
2639 help
2640 Enables fsuuid command for filesystem UUID.
2641
Simon Glassc4abb4b2017-05-17 03:25:37 -06002642config CMD_JFFS2
2643 bool "jffs2 command"
Simon Glass8c6c7c22017-05-17 03:25:38 -06002644 select FS_JFFS2
Simon Glassc4abb4b2017-05-17 03:25:37 -06002645 help
2646 Enables commands to support the JFFS2 (Journalling Flash File System
2647 version 2) filesystem. This enables fsload, ls and fsinfo which
2648 provide the ability to load files, list directories and obtain
2649 filesystem information.
2650
Tom Rini9c8268d2021-12-17 18:08:47 -05002651config JFFS2_DEV
2652 string "Default device for JFFS2"
2653 depends on CMD_JFFS2
2654 default "nor0"
2655 help
2656 The default device to use with the jffs2 command.
2657
2658config JFFS2_PART_OFFSET
2659 hex "Default offset within flash to locate the JFFS2 image"
2660 depends on CMD_JFFS2
2661 default 0x0
2662 help
2663 The default offset within flash to locate the JFFS2 image.
2664
2665config JFFS2_PART_SIZE
2666 hex "Default size of JFFS2 partition"
2667 depends on CMD_JFFS2
2668 default 0xFFFFFFFF
2669 help
2670 The default size of the JFFS2 partition
2671
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002672config CMD_MTDPARTS
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002673 bool "MTD partition support"
Miquel Raynald2418202019-10-25 19:39:30 +02002674 depends on MTD
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002675 help
Miquel Raynal007dddc2018-09-29 12:58:30 +02002676 MTD partitioning tool support.
2677 It is strongly encouraged to avoid using this command
2678 anymore along with 'sf', 'nand', 'onenand'. One can still
2679 declare the partitions in the mtdparts environment variable
2680 but better use the MTD stack and the 'mtd' command instead.
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002681
Simon Glass66d7db02017-08-04 16:34:30 -06002682config CMD_MTDPARTS_SPREAD
2683 bool "Padd partition size to take account of bad blocks"
2684 depends on CMD_MTDPARTS
2685 help
2686 This enables the 'spread' sub-command of the mtdparts command.
2687 This command will modify the existing mtdparts variable by increasing
2688 the size of the partitions such that 1) each partition's net size is
2689 at least as large as the size specified in the mtdparts variable and
2690 2) each partition starts on a good block.
2691
Alexander Dahl6cae4f42019-10-30 16:53:55 +01002692config CMD_MTDPARTS_SHOW_NET_SIZES
2693 bool "Show net size (w/o bad blocks) of partitions"
2694 depends on CMD_MTDPARTS
2695 help
2696 Adds two columns to the printed partition table showing the
2697 effective usable size of a partition, if bad blocks are taken
2698 into account.
2699
Miquel Raynalf21322f2019-10-03 19:50:25 +02002700config MTDIDS_DEFAULT
2701 string "Default MTD IDs"
Miquel Raynald2418202019-10-25 19:39:30 +02002702 depends on MTD || SPI_FLASH
Patrick Delaunay1e8e8282022-12-08 09:10:13 +01002703 depends on !SYS_MTDPARTS_RUNTIME
Miquel Raynalf21322f2019-10-03 19:50:25 +02002704 help
2705 Defines a default MTD IDs list for use with MTD partitions in the
2706 Linux MTD command line partitions format.
2707
2708config MTDPARTS_DEFAULT
2709 string "Default MTD partition scheme"
Miquel Raynald2418202019-10-25 19:39:30 +02002710 depends on MTD || SPI_FLASH
Patrick Delaunay1e8e8282022-12-08 09:10:13 +01002711 depends on !SYS_MTDPARTS_RUNTIME
Miquel Raynalf21322f2019-10-03 19:50:25 +02002712 help
2713 Defines a default MTD partitioning scheme in the Linux MTD command
2714 line partitions format
2715
Simon Glassed4ee312017-08-04 16:34:41 -06002716config CMD_REISER
2717 bool "reiser - Access to reiserfs filesystems"
2718 help
2719 This provides two commands which operate on a resierfs filesystem,
2720 commonly used some years ago:
2721
2722 reiserls - list files
2723 reiserload - load a file
2724
Simon Glass19c5caf2017-08-04 16:34:58 -06002725config CMD_YAFFS2
2726 bool "yaffs2 - Access of YAFFS2 filesystem"
2727 depends on YAFFS2
2728 default y
2729 help
2730 This provides commands for accessing a YAFFS2 filesystem. Yet
2731 Another Flash Filesystem 2 is a filesystem designed specifically
2732 for NAND flash. It incorporates bad-block management and ensures
2733 that device writes are sequential regardless of filesystem
2734 activity.
2735
Simon Glassdc82dee2017-08-04 16:35:04 -06002736config CMD_ZFS
2737 bool "zfs - Access of ZFS filesystem"
2738 help
2739 This provides commands to accessing a ZFS filesystem, commonly used
2740 on Solaris systems. Two sub-commands are provided:
2741
2742 zfsls - list files in a directory
2743 zfsload - load a file
2744
2745 See doc/README.zfs for more details.
2746
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002747endmenu
2748
Simon Glass3423f212017-04-26 22:27:52 -06002749menu "Debug commands"
2750
Simon Glasse1efad22021-03-15 18:00:24 +13002751config CMD_CBSYSINFO
2752 bool "cbsysinfo"
2753 depends on X86
2754 default y if SYS_COREBOOT
2755 help
2756 This provides information about the coreboot sysinfo table stored in
2757 memory by coreboot before jumping to U-Boot. It can be useful for
2758 debugging the beaaviour of coreboot or U-Boot.
2759
Stefan Roese2702b272022-09-02 13:57:51 +02002760config CMD_CYCLIC
2761 bool "cyclic - Show information about cyclic functions"
2762 depends on CYCLIC
2763 default y
2764 help
2765 This enables the 'cyclic' command which provides information about
2766 cyclic execution functions. This infrastructure allows registering
2767 functions to be executed cyclically, e.g. every 100ms. These commands
2768 are supported:
2769
2770 cyclic list - list cyclic functions
2771 cyclic cyclic demo <cycletime_ms> <delay_us> - register cyclic
2772 demo function
2773
2774 See doc/develop/cyclic.rst for more details.
2775
Simon Glass20ea5632017-04-26 22:28:08 -06002776config CMD_DIAG
2777 bool "diag - Board diagnostics"
2778 help
2779 This command provides access to board diagnostic tests. These are
2780 called Power-on Self Tests (POST). The command allows listing of
2781 available tests and running either all the tests, or specific tests
2782 identified by name.
2783
Simon Glass3304fa82022-03-04 08:43:06 -07002784config CMD_EVENT
2785 bool "event - Show information about events"
Tom Rini7d3684a2023-01-16 15:46:49 -05002786 depends on EVENT
Simon Glass3304fa82022-03-04 08:43:06 -07002787 default y if EVENT_DEBUG
2788 help
2789 This enables the 'event' command which provides information about
2790 events and event-handler routines. This can help to device event
2791 hadling.
2792
Simon Glass4c3a6202017-05-17 03:25:39 -06002793config CMD_IRQ
2794 bool "irq - Show information about interrupts"
Pragnesh Patel3375e0b2020-08-24 20:38:55 +05302795 depends on !ARM && !MIPS && !RISCV && !SH
Simon Glass4c3a6202017-05-17 03:25:39 -06002796 help
2797 This enables two commands:
2798
2799 interrupts - enable or disable interrupts
2800 irqinfo - print device-specific interrupt information
Simon Glassfd9948c2017-05-17 03:25:40 -06002801
2802config CMD_KGDB
2803 bool "kgdb - Allow debugging of U-Boot with gdb"
Michal Simek9d364412018-10-04 14:26:13 +02002804 depends on PPC
Simon Glassfd9948c2017-05-17 03:25:40 -06002805 help
2806 This enables a 'kgdb' command which allows gdb to connect to U-Boot
2807 over a serial link for debugging purposes. This allows
2808 single-stepping, inspecting variables, etc. This is supported only
2809 on PowerPC at present.
2810
Simon Glass5684f8f2017-12-04 13:48:26 -07002811config CMD_LOG
2812 bool "log - Generation, control and access to logging"
Heinrich Schuchardt74bad682018-04-19 22:02:46 +02002813 select LOG
Sean Anderson304882e2020-10-27 19:55:38 -04002814 select GETOPT
Simon Glass5684f8f2017-12-04 13:48:26 -07002815 help
2816 This provides access to logging features. It allows the output of
2817 log data to be controlled to a limited extent (setting up the default
Simon Glass14c8a062017-12-04 13:48:27 -07002818 maximum log level for emitting of records). It also provides access
2819 to a command used for testing the log system.
Simon Glass5684f8f2017-12-04 13:48:26 -07002820
Simon Glass126cb792017-08-04 16:34:59 -06002821config CMD_TRACE
2822 bool "trace - Support tracing of function calls and timing"
Simon Glass84b77112021-11-24 09:26:39 -07002823 depends on TRACE
2824 default y
Simon Glass126cb792017-08-04 16:34:59 -06002825 help
2826 Enables a command to control using of function tracing within
2827 U-Boot. This allows recording of call traces including timing
2828 information. The command can write data to memory for exporting
Simon Glassbfce7fc2019-04-08 13:20:51 -06002829 for analysis (e.g. using bootchart). See doc/README.trace for full
Simon Glass126cb792017-08-04 16:34:59 -06002830 details.
2831
Igor Opaniuk60291192018-06-03 21:56:39 +03002832config CMD_AVB
2833 bool "avb - Android Verified Boot 2.0 operations"
Igor Opaniuke0df0352018-07-17 14:33:25 +03002834 depends on AVB_VERIFY
Igor Opaniuk60291192018-06-03 21:56:39 +03002835 help
2836 Enables a "avb" command to perform verification of partitions using
2837 Android Verified Boot 2.0 functionality. It includes such subcommands:
2838 avb init - initialize avb2 subsystem
2839 avb read_rb - read rollback index
2840 avb write_rb - write rollback index
2841 avb is_unlocked - check device lock state
2842 avb get_uuid - read and print uuid of a partition
2843 avb read_part - read data from partition
2844 avb read_part_hex - read data from partition and output to stdout
2845 avb write_part - write data to partition
2846 avb verify - run full verification chain
Joel Peshkin369d87a2021-04-11 11:21:58 +02002847
2848config CMD_STACKPROTECTOR_TEST
2849 bool "Test command for stack protector"
2850 depends on STACKPROTECTOR
2851 help
2852 Enable stackprot_test command
2853 The stackprot_test command will force a stack overrun to test
2854 the stack smashing detection mechanisms.
2855
Simon Glass3423f212017-04-26 22:27:52 -06002856endmenu
2857
Heiko Schocher09dbb852016-09-21 07:58:19 +02002858config CMD_UBI
2859 tristate "Enable UBI - Unsorted block images commands"
Heiko Schocher09dbb852016-09-21 07:58:19 +02002860 select MTD_UBI
2861 help
2862 UBI is a software layer above MTD layer which admits use of LVM-like
2863 logical volumes on top of MTD devices, hides some complexities of
2864 flash chips like wear and bad blocks and provides some other useful
2865 capabilities. Please, consult the MTD web site for more details
2866 (www.linux-mtd.infradead.org). Activate this option if you want
2867 to use U-Boot UBI commands.
Miquel Raynal12f1ff12018-09-29 12:58:29 +02002868 It is also strongly encouraged to also enable CONFIG_MTD to get full
2869 partition support.
Heiko Schocher09dbb852016-09-21 07:58:19 +02002870
Philippe Reynes10d53222020-03-23 19:20:47 +01002871config CMD_UBI_RENAME
2872 bool "Enable rename"
2873 depends on CMD_UBI
Philippe Reynes10d53222020-03-23 19:20:47 +01002874 help
2875 Enable a "ubi" command to rename ubi volume:
2876 ubi rename <oldname> <newname>
2877
Boris Brezillonaa57d0f2017-02-27 18:22:06 +01002878config CMD_UBIFS
2879 tristate "Enable UBIFS - Unsorted block images filesystem commands"
Maxime Ripard1e6a0962017-03-03 14:53:22 +01002880 depends on CMD_UBI
Michal Simek84f3dec2018-07-23 15:55:13 +02002881 default y if CMD_UBI
Karl Beldan3418eeb2017-07-12 16:11:47 +00002882 select LZO
Pali Rohár67a8b272022-05-23 22:50:36 +02002883 select GZIP
Boris Brezillonaa57d0f2017-02-27 18:22:06 +01002884 help
2885 UBIFS is a file system for flash devices which works on top of UBI.
2886
Aswath Govindrajubb5b9fe2021-08-13 23:04:41 +05302887config MMC_SPEED_MODE_SET
2888 bool "set speed mode using mmc command"
2889 depends on CMD_MMC
Aswath Govindrajubb5b9fe2021-08-13 23:04:41 +05302890 help
2891 Enable setting speed mode using mmc rescan and mmc dev commands.
2892 The speed mode is provided as the last argument in these commands
2893 and is indicated using the index from enum bus_mode in
2894 include/mmc.h. A speed mode can be set only if it has already
2895 been enabled in the device tree.
Alexey Romanov68c4a372023-01-10 13:56:47 +03002896
2897config CMD_MESON
2898 bool "Amlogic Meson commands"
2899 depends on ARCH_MESON
2900 default y
2901 help
2902 Enable useful commands for the Meson Soc family developed by Amlogic Inc.
Simon Glass29499a02016-01-17 20:53:51 -07002903endmenu