blob: ecfd5752377265aa9fb35f0e113675fa1c43ae3c [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
Tom Riniae17fa32022-05-11 18:01:06 -040078config SYS_CBSIZE
79 int "Console input buffer size"
80 default 2048 if ARCH_TEGRA || ARCH_VERSAL || ARCH_ZYNQ || ARCH_ZYNQMP || \
81 RCAR_GEN3 || TARGET_SOCFPGA_SOC64
82 default 512 if ARCH_MX5 || ARCH_MX6 || ARCH_MX7 || FSL_LSCH2 || \
83 FSL_LSCH3 || X86
84 default 256 if M68K || PPC
85 default 1024
86
Tom Rinicbfa1392022-05-11 17:38:09 -040087config SYS_PBSIZE
88 int "Buffer size for console output"
Andre Przywara3f5873f2022-09-13 01:23:58 +010089 default 1024 if ARCH_SUNXI
Tom Rinicbfa1392022-05-11 17:38:09 -040090 default 1044
91
Christoph Muellner388b1452019-04-05 13:03:46 +020092config SYS_XTRACE
Sean Anderson1f863052021-03-04 11:34:23 -050093 bool "Command execution tracer"
Christoph Muellner388b1452019-04-05 13:03:46 +020094 depends on CMDLINE
95 default y if CMDLINE
96 help
97 This option enables the possiblity to print all commands before
98 executing them and after all variables are evaluated (similar
99 to Bash's xtrace/'set -x' feature).
100 To enable the tracer a variable "xtrace" needs to be defined in
101 the environment.
102
Sam Protsenko13c1f3a2017-09-28 12:33:45 -0700103config BUILD_BIN2C
104 bool
105
Simon Glass29499a02016-01-17 20:53:51 -0700106comment "Commands"
107
108menu "Info commands"
109
Simon Glassfaf08c72020-04-26 09:19:53 -0600110config CMD_ACPI
111 bool "acpi"
Simon Glasse264be42023-05-04 16:54:57 -0600112 depends on ACPI
Heinrich Schuchardt97430462021-01-20 21:37:56 +0100113 default y
Simon Glassfaf08c72020-04-26 09:19:53 -0600114 help
115 List and dump ACPI tables. ACPI (Advanced Configuration and Power
116 Interface) is used mostly on x86 for providing information to the
117 Operating System about devices in the system. The tables are set up
118 by the firmware, typically U-Boot but possibly an earlier firmware
119 module, if U-Boot is chain-loaded from something else. ACPI tables
120 can also include code, to perform hardware-specific tasks required
121 by the Operating Systems. This allows some amount of separation
122 between the firmware and OS, and is particularly useful when you
123 want to make hardware changes without the OS needing to be adjusted.
124
Bin Meng70b22cf2021-02-25 17:22:34 +0800125config CMD_ADDRMAP
126 bool "addrmap"
127 depends on ADDR_MAP
128 default y
129 help
130 List non-identity virtual-physical memory mappings for 32-bit CPUs.
131
Simon Glass29499a02016-01-17 20:53:51 -0700132config CMD_BDI
133 bool "bdinfo"
134 default y
135 help
136 Print board info
137
Simon Glass5087c772023-07-15 21:38:46 -0600138config CMD_BDINFO_EXTRA
139 bool "bdinfo extra features"
140 default y if SANDBOX || X86
141 help
142 Show additional information about the board. This uses a little more
143 code space but provides more options, particularly those useful for
144 bringup, development and debugging.
145
Masahiro Yamadabb92b422017-01-30 11:12:07 +0900146config CMD_CONFIG
147 bool "config"
Masahiro Yamadabb92b422017-01-30 11:12:07 +0900148 default SANDBOX
Michal Simek84f3dec2018-07-23 15:55:13 +0200149 select BUILD_BIN2C
Masahiro Yamadabb92b422017-01-30 11:12:07 +0900150 help
151 Print ".config" contents.
152
153 If this option is enabled, the ".config" file contents are embedded
154 in the U-Boot image and can be printed on the console by the "config"
155 command. This provides information of which options are enabled on
156 the running U-Boot.
157
Simon Glass29499a02016-01-17 20:53:51 -0700158config CMD_CONSOLE
159 bool "coninfo"
160 default y
161 help
162 Print console devices and information.
163
164config CMD_CPU
165 bool "cpu"
Heinrich Schuchardt1cdcd0c2020-11-05 00:29:11 +0100166 depends on CPU
Simon Glass29499a02016-01-17 20:53:51 -0700167 help
168 Print information about available CPUs. This normally shows the
169 number of CPUs, type (e.g. manufacturer, architecture, product or
170 internal name) and clock frequency. Other information may be
171 available depending on the CPU driver.
172
Sughosh Ganu0f951fd2022-10-21 18:16:04 +0530173config CMD_FWU_METADATA
174 bool "fwu metadata read"
175 depends on FWU_MULTI_BANK_UPDATE
176 help
177 Command to read the metadata and dump it's contents
178
Simon Glass29499a02016-01-17 20:53:51 -0700179config CMD_LICENSE
180 bool "license"
Masahiro Yamada81680332017-01-30 11:12:08 +0900181 select BUILD_BIN2C
Simon Glass29499a02016-01-17 20:53:51 -0700182 help
183 Print GPL license text
184
Simon Glass8c501022019-12-06 21:41:54 -0700185config CMD_PMC
186 bool "pmc"
187 help
188 Provides access to the Intel Power-Management Controller (PMC) so
189 that its state can be examined. This does not currently support
190 changing the state but it is still useful for debugging and seeing
191 what is going on.
192
Christophe Leroye538bbc2017-08-04 16:34:40 -0600193config CMD_REGINFO
194 bool "reginfo"
195 depends on PPC
196 help
197 Register dump
198
Baruch Siachfad48982020-01-21 15:44:54 +0200199config CMD_TLV_EEPROM
200 bool "tlv_eeprom"
201 depends on I2C_EEPROM
Pali Rohár2bbf40b2022-05-30 10:42:35 +0200202 select CRC32
Baruch Siachfad48982020-01-21 15:44:54 +0200203 help
204 Display and program the system EEPROM data block in ONIE Tlvinfo
205 format. TLV stands for Type-Length-Value.
206
207config SPL_CMD_TLV_EEPROM
208 bool "tlv_eeprom for SPL"
209 depends on SPL_I2C_EEPROM
Simon Glass284cb9c2021-07-10 21:14:31 -0600210 select SPL_DRIVERS_MISC
Pali Rohár2bbf40b2022-05-30 10:42:35 +0200211 select SPL_CRC32
Baruch Siachfad48982020-01-21 15:44:54 +0200212 help
213 Read system EEPROM data block in ONIE Tlvinfo format from SPL.
214
Heinrich Schuchardt95492ae2020-08-20 19:43:39 +0200215config CMD_SBI
216 bool "sbi"
217 depends on RISCV_SMODE && SBI_V02
218 help
219 Display information about the SBI implementation.
220
Simon Glass29499a02016-01-17 20:53:51 -0700221endmenu
222
223menu "Boot commands"
224
225config CMD_BOOTD
226 bool "bootd"
227 default y
228 help
229 Run the command stored in the environment "bootcmd", i.e.
230 "bootd" does the same thing as "run bootcmd".
231
232config CMD_BOOTM
233 bool "bootm"
234 default y
235 help
236 Boot an application image from the memory.
237
Philippe Reynesae1f2ca2022-03-28 22:57:00 +0200238config CMD_BOOTM_PRE_LOAD
239 bool "enable pre-load on bootm"
240 depends on CMD_BOOTM
241 depends on IMAGE_PRE_LOAD
242 default n
243 help
244 Enable support of stage pre-load for the bootm command.
245 This stage allow to check or modify the image provided
246 to the bootm command.
247
Simon Glass379f4382022-04-24 23:31:10 -0600248config CMD_BOOTDEV
249 bool "bootdev"
250 depends on BOOTSTD
251 default y if BOOTSTD_FULL
252 help
253 Support listing available bootdevs (boot devices) which can provide an
254 OS to boot, as well as showing information about a particular one.
255
256 This command is not necessary for bootstd to work.
257
Simon Glass7617f492022-04-24 23:31:11 -0600258config CMD_BOOTFLOW
259 bool "bootflow"
260 depends on BOOTSTD
261 default y
262 help
263 Support scanning for bootflows available with the bootdevs. The
264 bootflows can optionally be booted.
265
266config CMD_BOOTFLOW_FULL
267 bool "bootflow - extract subcommands"
268 depends on BOOTSTD_FULL
Simon Glass2d5a8e12023-05-06 08:27:09 -0600269 default y
Simon Glass7617f492022-04-24 23:31:11 -0600270 help
271 Add the ability to list the available bootflows, select one and obtain
272 information about it.
273
274 This command is not necessary for bootstd to work.
275
Simon Glassc49fd722022-04-24 23:31:12 -0600276config CMD_BOOTMETH
277 bool "bootmeth"
278 depends on BOOTSTD
279 default y if BOOTSTD_FULL
280 help
281 Support listing available bootmethds (methods used to boot an
282 Operating System), as well as selecting the order that the bootmeths
283 are used.
284
285 This command is not necessary for bootstd to work.
286
Cristian Ciocaltea6aca5982019-12-24 18:05:39 +0200287config BOOTM_EFI
288 bool "Support booting UEFI FIT images"
289 depends on CMD_BOOTEFI && CMD_BOOTM && FIT
290 default y
291 help
292 Support booting UEFI FIT images via the bootm command.
293
Dinh Nguyen0685bef2016-04-21 09:05:23 -0500294config CMD_BOOTZ
295 bool "bootz"
296 help
297 Boot the Linux zImage
298
Masahiro Yamada04cf1552016-08-12 08:31:16 -0400299config CMD_BOOTI
300 bool "booti"
Atish Patra583b4092019-05-06 17:49:39 -0700301 depends on ARM64 || RISCV
Masahiro Yamada04cf1552016-08-12 08:31:16 -0400302 default y
303 help
304 Boot an AArch64 Linux Kernel image from memory.
305
Tom Rini9a102072019-09-20 17:36:50 -0400306config BOOTM_LINUX
307 bool "Support booting Linux OS images"
308 depends on CMD_BOOTM || CMD_BOOTZ || CMD_BOOTI
309 default y
310 help
311 Support booting the Linux kernel directly via a command such as bootm
312 or booti or bootz.
313
314config BOOTM_NETBSD
315 bool "Support booting NetBSD (non-EFI) loader images"
316 depends on CMD_BOOTM
317 default y
318 help
319 Support booting NetBSD via the bootm command.
320
321config BOOTM_OPENRTOS
322 bool "Support booting OPENRTOS / FreeRTOS images"
323 depends on CMD_BOOTM
324 help
325 Support booting OPENRTOS / FreeRTOS via the bootm command.
326
327config BOOTM_OSE
328 bool "Support booting Enea OSE images"
Tom Rini1d0b1fc2019-12-05 18:46:11 -0500329 depends on (ARM && (ARM64 || CPU_V7A || CPU_V7R) || SANDBOX || PPC || X86)
Tom Rini9a102072019-09-20 17:36:50 -0400330 depends on CMD_BOOTM
331 help
332 Support booting Enea OSE images via the bootm command.
333
334config BOOTM_PLAN9
335 bool "Support booting Plan9 OS images"
336 depends on CMD_BOOTM
337 default y
338 help
339 Support booting Plan9 images via the bootm command.
340
341config BOOTM_RTEMS
342 bool "Support booting RTEMS OS images"
343 depends on CMD_BOOTM
344 default y
345 help
346 Support booting RTEMS images via the bootm command.
347
Linus Walleijbef39252023-02-01 00:16:13 +0100348config CMD_SEAMA
349 bool "Support read SEAMA NAND images"
350 depends on MTD_RAW_NAND
351 help
352 Support reading NAND Seattle Image (SEAMA) images.
353
Simon Glasse5a7b772022-07-30 15:52:37 -0600354config CMD_VBE
355 bool "vbe - Verified Boot for Embedded"
356 depends on BOOTMETH_VBE
Simon Glassd39d5b22022-08-23 10:14:05 -0700357 default y if BOOTSTD_FULL
Simon Glasse5a7b772022-07-30 15:52:37 -0600358 help
359 Provides various subcommands related to VBE, such as listing the
360 available methods, looking at the state and changing which method
361 is used to boot. Updating the parameters is not currently
362 supported.
363
Tom Rini9a102072019-09-20 17:36:50 -0400364config BOOTM_VXWORKS
365 bool "Support booting VxWorks OS images"
366 depends on CMD_BOOTM
367 default y
368 help
369 Support booting VxWorks images via the bootm command.
370
Tom Rinif3c2f992022-06-25 19:29:46 -0400371config SYS_BOOTM_LEN
372 hex "Maximum size of a decompresed OS image"
Marek Vasut5be531b2023-05-29 14:04:06 +0200373 depends on CMD_BOOTM || CMD_BOOTI || CMD_BOOTZ || \
374 LEGACY_IMAGE_FORMAT || SPL_LEGACY_IMAGE_FORMAT
Tom Rinif3c2f992022-06-25 19:29:46 -0400375 default 0x4000000 if PPC || ARM64
376 default 0x1000000 if X86 || ARCH_MX6 || ARCH_MX7
377 default 0x800000
378 help
379 This is the maximum size of the buffer that is used to decompress the OS
380 image in to, if passing a compressed image to bootm/booti/bootz.
381
AKASHI Takahiro8d95b6e2019-11-08 10:32:15 +0900382config CMD_BOOTEFI
383 bool "bootefi"
384 depends on EFI_LOADER
385 default y
386 help
387 Boot an EFI image from memory.
388
Alexander Grafb5483512016-11-17 22:40:10 +0100389config CMD_BOOTEFI_HELLO_COMPILE
390 bool "Compile a standard EFI hello world binary for testing"
Heinrich Schuchardt0f675d92019-11-07 08:05:17 +0100391 depends on CMD_BOOTEFI && !CPU_V7M
Alexander Grafb5483512016-11-17 22:40:10 +0100392 default y
393 help
394 This compiles a standard EFI hello world application with U-Boot so
395 that it can be used with the test/py testing framework. This is useful
396 for testing that EFI is working at a basic level, and for bringing
397 up EFI support on a new architecture.
398
399 No additional space will be required in the resulting U-Boot binary
400 when this option is enabled.
401
Simon Glassfac4ced2016-11-07 08:47:08 -0700402config CMD_BOOTEFI_HELLO
403 bool "Allow booting a standard EFI hello world for testing"
Alexander Grafb5483512016-11-17 22:40:10 +0100404 depends on CMD_BOOTEFI_HELLO_COMPILE
Heinrich Schuchardt9ad6e1e2020-07-13 07:33:40 +0200405 default y if CMD_BOOTEFI_SELFTEST
Simon Glassfac4ced2016-11-07 08:47:08 -0700406 help
407 This adds a standard EFI hello world application to U-Boot so that
408 it can be used with the 'bootefi hello' command. This is useful
409 for testing that EFI is working at a basic level, and for bringing
410 up EFI support on a new architecture.
411
Heinrich Schuchardtd33ae3e2017-09-15 10:06:11 +0200412source lib/efi_selftest/Kconfig
413
Tom Rini697f4732016-11-29 09:14:56 -0500414config CMD_BOOTMENU
415 bool "bootmenu"
416 select MENU
Masahisa Kojima015405a2022-04-28 17:09:41 +0900417 select CHARSET
Tom Rini697f4732016-11-29 09:14:56 -0500418 help
419 Add an ANSI terminal boot menu command.
420
Eugeniu Roscaee98dac2019-12-24 17:51:06 +0100421config CMD_ADTIMG
422 bool "adtimg"
Sam Protsenko92f95bb2018-08-16 23:34:13 +0300423 help
424 Android DTB/DTBO image manipulation commands. Read dtb/dtbo files from
425 image into RAM, dump image structure information, etc. Those dtb/dtbo
426 files should be merged in one dtb further, which needs to be passed to
427 the kernel, as part of a boot process.
428
Sam Protsenko035502e2020-01-24 17:53:42 +0200429config CMD_ABOOTIMG
430 bool "abootimg"
431 depends on ANDROID_BOOT_IMAGE
432 help
433 Android Boot Image manipulation commands. Allows one to extract
434 images contained in boot.img, like kernel, ramdisk, dtb, etc, and
435 obtain corresponding meta-information from boot.img.
436
Sam Protsenkod8efc7c2020-01-24 17:53:43 +0200437 See doc/android/boot-image.rst for details.
438
Simon Glassc8925112023-06-01 10:23:02 -0600439config CMD_CEDIT
440 bool "cedit - Configuration editor"
441 depends on CEDIT
442 default y
443 help
444 Provides a command to allow editing of board configuration and
445 providing a UI for the user to adjust settings. Subcommands allow
446 loading and saving of configuration as well as showing an editor.
447
Simon Glass29499a02016-01-17 20:53:51 -0700448config CMD_ELF
449 bool "bootelf, bootvx"
450 default y
Keerthy76f361a2020-02-12 13:55:03 +0530451 select LIB_ELF
Simon Glass29499a02016-01-17 20:53:51 -0700452 help
453 Boot an ELF/vxWorks image from the memory.
454
Michal Simekf168c652016-04-06 20:28:04 +0200455config CMD_FDT
456 bool "Flattened Device Tree utility commands"
457 default y
458 depends on OF_LIBFDT
459 help
460 Do FDT related setup before booting into the Operating System.
461
Kory Maincent7444a7d2021-05-04 19:31:22 +0200462config SUPPORT_EXTENSION_SCAN
463 bool
464
465config CMD_EXTENSION
466 bool "Extension board management command"
467 select CMD_FDT
468 depends on SUPPORT_EXTENSION_SCAN
469 help
470 Enables the "extension" command, which allows to detect
471 extension boards connected to the system, and apply
472 corresponding Device Tree overlays.
473
Simon Glass29499a02016-01-17 20:53:51 -0700474config CMD_GO
475 bool "go"
476 default y
477 help
478 Start an application at a given address.
479
480config CMD_RUN
481 bool "run"
482 default y
483 help
484 Run the command in the given environment variable.
485
486config CMD_IMI
487 bool "iminfo"
488 default y
489 help
490 Print header information for application image.
491
492config CMD_IMLS
493 bool "imls"
Simon Glass29499a02016-01-17 20:53:51 -0700494 help
495 List all images found in flash
496
497config CMD_XIMG
498 bool "imxtract"
499 default y
500 help
501 Extract a part of a multi-image.
502
Roger Knechtf841bb82022-09-03 13:15:04 +0000503config CMD_XXD
504 bool "xxd"
505 help
506 Print file as hexdump to standard output
507
Simon Glassc6567fa2017-08-04 16:34:48 -0600508config CMD_SPL
509 bool "spl export - Export boot information for Falcon boot"
510 depends on SPL
511 help
512 Falcon mode allows booting directly from SPL into an Operating
513 System such as Linux, thus skipping U-Boot proper. See
514 doc/README.falcon for full information about how to use this
515 command.
516
Simon Glassc034e3d2017-08-04 16:34:49 -0600517config CMD_SPL_NAND_OFS
Lukasz Majewski10797442019-05-16 16:01:36 +0200518 hex "Offset of OS args or dtb for Falcon-mode NAND boot"
Lukasz Majewskie73ce322019-05-16 16:01:35 +0200519 depends on CMD_SPL && (TPL_NAND_SUPPORT || SPL_NAND_SUPPORT)
Simon Glassc034e3d2017-08-04 16:34:49 -0600520 default 0
521 help
522 This provides the offset of the command line arguments for Linux
523 when booting from NAND in Falcon mode. See doc/README.falcon
524 for full information about how to use this option (and also see
525 board/gateworks/gw_ventana/README for an example).
526
Lukasz Majewski06d92532019-05-16 16:01:37 +0200527config CMD_SPL_NOR_OFS
528 hex "Offset of OS args or dtb for Falcon-mode NOR boot"
529 depends on CMD_SPL && SPL_NOR_SUPPORT
530 default 0
531 help
532 This provides the offset of the command line arguments or dtb for
533 Linux when booting from NOR in Falcon mode.
534
Simon Glass51ef45a2017-08-04 16:34:50 -0600535config CMD_SPL_WRITE_SIZE
536 hex "Size of argument area"
537 depends on CMD_SPL
538 default 0x2000
539 help
540 This provides the size of the command-line argument area in NAND
541 flash used by Falcon-mode boot. See the documentation until CMD_SPL
542 for detail.
543
Simon Glassa18b9692017-08-04 16:34:57 -0600544config CMD_THOR_DOWNLOAD
545 bool "thor - TIZEN 'thor' download"
Marek Szyprowskide4752e2019-10-02 12:29:08 +0200546 select DFU
Simon Glassa18b9692017-08-04 16:34:57 -0600547 help
548 Implements the 'thor' download protocol. This is a way of
549 downloading a software update over USB from an attached host.
550 There is no documentation about this within the U-Boot source code
551 but you should be able to find something on the interwebs.
552
Tom Rini40791152022-12-02 16:42:46 -0500553config THOR_RESET_OFF
554 bool "thor: Disable reset on completion"
555 depends on CMD_THOR_DOWNLOAD
556
Simon Glass01d097d2017-08-04 16:35:03 -0600557config CMD_ZBOOT
558 bool "zboot - x86 boot command"
559 help
560 With x86 machines it is common to boot a bzImage file which
561 contains both a kernel and a setup.bin file. The latter includes
562 configuration information from the dark ages which x86 boards still
563 need to pick things out of.
564
565 Consider using FIT in preference to this since it supports directly
566 booting both 32- and 64-bit kernels, as well as secure boot.
567 Documentation is available in doc/uImage.FIT/x86-fit-boot.txt
568
Simon Glass29499a02016-01-17 20:53:51 -0700569endmenu
570
571menu "Environment commands"
572
Dinh Nguyen0685bef2016-04-21 09:05:23 -0500573config CMD_ASKENV
574 bool "ask for env variable"
575 help
576 Ask for environment variable
577
Simon Glass29499a02016-01-17 20:53:51 -0700578config CMD_EXPORTENV
579 bool "env export"
580 default y
581 help
582 Export environments.
583
584config CMD_IMPORTENV
585 bool "env import"
586 default y
587 help
588 Import environments.
589
590config CMD_EDITENV
591 bool "editenv"
592 default y
593 help
594 Edit environment variable.
595
Dinh Nguyen0685bef2016-04-21 09:05:23 -0500596config CMD_GREPENV
597 bool "search env"
598 help
599 Allow for searching environment variables
600
Simon Glass29499a02016-01-17 20:53:51 -0700601config CMD_SAVEENV
602 bool "saveenv"
603 default y
604 help
605 Save all environment variables into the compiled-in persistent
606 storage.
607
Frank Wunderlich33afa932019-06-29 11:36:19 +0200608config CMD_ERASEENV
609 bool "eraseenv"
Frank Wunderlich33afa932019-06-29 11:36:19 +0200610 depends on CMD_SAVEENV
611 help
612 Erase environment variables from the compiled-in persistent
613 storage.
614
Simon Glass29499a02016-01-17 20:53:51 -0700615config CMD_ENV_EXISTS
616 bool "env exists"
617 default y
618 help
619 Check if a variable is defined in the environment for use in
620 shell scripting.
621
Simon Glass84d67c72017-05-17 03:25:13 -0600622config CMD_ENV_CALLBACK
623 bool "env callbacks - print callbacks and their associated variables"
624 help
625 Some environment variable have callbacks defined by
626 U_BOOT_ENV_CALLBACK. These are called when the variable changes.
627 For example changing "baudrate" adjust the serial baud rate. This
628 command lists the currently defined callbacks.
629
Simon Glassc31e2d82017-05-17 03:25:14 -0600630config CMD_ENV_FLAGS
631 bool "env flags -print variables that have non-default flags"
632 help
633 Some environment variables have special flags that control their
634 behaviour. For example, serial# can only be written once and cannot
635 be deleted. This command shows the variables that have special
636 flags.
637
AKASHI Takahiro117e68a2019-02-25 15:54:36 +0900638config CMD_NVEDIT_EFI
639 bool "env [set|print] -e - set/print UEFI variables"
640 depends on EFI_LOADER
AKASHI Takahiro117e68a2019-02-25 15:54:36 +0900641 imply HEXDUMP
642 help
643 UEFI variables are encoded as some form of U-Boot variables.
644 If enabled, we are allowed to set/print UEFI variables using
645 "env" command with "-e" option without knowing details.
646
Samuel Dionne-Riel46127db2021-12-20 18:31:56 -0500647config CMD_NVEDIT_INDIRECT
648 bool "env indirect - Sets environment value from another"
649
Leo Ruan7450b872019-05-24 17:20:19 +0200650config CMD_NVEDIT_INFO
651 bool "env info - print or evaluate environment information"
652 help
653 Print environment information:
654 - env_valid : is environment valid
655 - env_ready : is environment imported into hash table
656 - env_use_default : is default environment used
657
658 This command can be optionally used for evaluation in scripts:
659 [-d] : evaluate whether default environment is used
660 [-p] : evaluate whether environment can be persisted
Patrick Delaunay109ec8f2020-06-19 14:03:34 +0200661 [-q] : quiet output
Leo Ruan7450b872019-05-24 17:20:19 +0200662 The result of multiple evaluations will be combined with AND.
663
Patrick Delaunay748e42e2020-07-28 11:51:20 +0200664config CMD_NVEDIT_LOAD
665 bool "env load"
666 help
667 Load all environment variables from the compiled-in persistent
668 storage.
669
Patrick Delaunaya59f7ec2020-07-28 11:51:21 +0200670config CMD_NVEDIT_SELECT
671 bool "env select"
672 help
673 Select the compiled-in persistent storage of environment variables.
674
Simon Glass29499a02016-01-17 20:53:51 -0700675endmenu
676
677menu "Memory commands"
678
Mario Six8a4f6642018-03-28 14:39:18 +0200679config CMD_BINOP
680 bool "binop"
681 help
682 Compute binary operations (xor, or, and) of byte arrays of arbitrary
683 size from memory and store the result in memory or the environment.
684
Simon Glassb936a972020-09-19 18:49:26 -0600685config CMD_BLOBLIST
686 bool "bloblist"
687 default y if BLOBLIST
688 help
689 Show information about the bloblist, a collection of binary blobs
690 held in memory that persist between SPL and U-Boot. In the case of
691 x86 devices the bloblist can be used to hold ACPI tables so that they
692 remain available in memory.
693
Simon Glass29499a02016-01-17 20:53:51 -0700694config CMD_CRC32
695 bool "crc32"
696 default y
Michal Simek84f3dec2018-07-23 15:55:13 +0200697 select HASH
Simon Glass29499a02016-01-17 20:53:51 -0700698 help
699 Compute CRC32.
700
Daniel Thompsona9e2c672017-05-19 17:26:58 +0100701config CRC32_VERIFY
702 bool "crc32 -v"
703 depends on CMD_CRC32
704 help
705 Add -v option to verify data against a crc32 checksum.
706
Simon Glass4590d4e2017-05-17 03:25:10 -0600707config CMD_EEPROM
708 bool "eeprom - EEPROM subsystem"
709 help
710 (deprecated, needs conversion to driver model)
711 Provides commands to read and write EEPROM (Electrically Erasable
712 Programmable Read Only Memory) chips that are connected over an
713 I2C bus.
714
715config CMD_EEPROM_LAYOUT
716 bool "Enable layout-aware eeprom commands"
717 depends on CMD_EEPROM
718 help
719 (deprecated, needs conversion to driver model)
720 When enabled, additional eeprom sub-commands become available.
721
722 eeprom print - prints the contents of the eeprom in a human-readable
723 way (eeprom layout fields, and data formatted to be fit for human
724 consumption).
725
726 eeprom update - allows user to update eeprom fields by specifying
727 the field name, and providing the new data in a human readable format
728 (same format as displayed by the eeprom print command).
729
730 Both commands can either auto detect the layout, or be told which
731 layout to use.
732
733 Feature API:
734 __weak int parse_layout_version(char *str)
735 - override to provide your own layout name parsing
736 __weak void __eeprom_layout_assign(struct eeprom_layout *layout,
737 int layout_version);
738 - override to setup the layout metadata based on the version
739 __weak int eeprom_layout_detect(unsigned char *data)
740 - override to provide your own algorithm for detecting layout
741 version
742 eeprom_field.c
743 - contains various printing and updating functions for common
744 types of eeprom fields. Can be used for defining
745 custom layouts.
746
747config EEPROM_LAYOUT_HELP_STRING
748 string "Tells user what layout names are supported"
749 depends on CMD_EEPROM_LAYOUT
750 default "<not defined>"
751 help
752 Help printed with the LAYOUT VERSIONS part of the 'eeprom'
753 command's help.
754
Tom Rinifaed5672021-08-17 17:59:45 -0400755config SYS_I2C_EEPROM_BUS
756 int "I2C bus of the EEPROM device."
757 depends on CMD_EEPROM
758 default 0
759
760config SYS_I2C_EEPROM_ADDR_LEN
761 int "Length in bytes of the EEPROM memory array address"
762 depends on CMD_EEPROM || ID_EEPROM
763 default 1
764 range 1 2
765 help
766 Note: This is NOT the chip address length!
767
768config SYS_EEPROM_SIZE
769 depends on CMD_EEPROM
770 int "Size in bytes of the EEPROM device"
771 default 256
772
773config SYS_EEPROM_PAGE_WRITE_BITS
774 int "Number of bits used to address bytes in a single page"
775 depends on CMD_EEPROM
776 default 8
777 help
778 The EEPROM page size is 2^SYS_EEPROM_PAGE_WRITE_BITS.
779 A 64 byte page, for example would require six bits.
780
781config SYS_EEPROM_PAGE_WRITE_DELAY_MS
782 int "Number of milliseconds to delay between page writes"
783 depends on CMD_EEPROM || CMD_I2C
784 default 0
785
Simon Glass26c20532017-08-04 16:34:51 -0600786config LOOPW
787 bool "loopw"
788 help
789 Infinite write loop on address range
790
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000791config CMD_MD5SUM
792 bool "md5sum"
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000793 select MD5
794 help
795 Compute MD5 checksum.
796
Daniel Thompsona9e2c672017-05-19 17:26:58 +0100797config MD5SUM_VERIFY
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000798 bool "md5sum -v"
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000799 depends on CMD_MD5SUM
800 help
801 Add -v option to verify data against an MD5 checksum.
802
Simon Glass26c20532017-08-04 16:34:51 -0600803config CMD_MEMINFO
804 bool "meminfo"
Daniel Thompsona9e2c672017-05-19 17:26:58 +0100805 help
Simon Glass26c20532017-08-04 16:34:51 -0600806 Display memory information.
Daniel Thompsona9e2c672017-05-19 17:26:58 +0100807
Simon Glass26c20532017-08-04 16:34:51 -0600808config CMD_MEMORY
809 bool "md, mm, nm, mw, cp, cmp, base, loop"
810 default y
Simon Glass29499a02016-01-17 20:53:51 -0700811 help
Simon Glass26c20532017-08-04 16:34:51 -0600812 Memory commands.
813 md - memory display
814 mm - memory modify (auto-incrementing address)
815 nm - memory modify (constant address)
816 mw - memory write (fill)
817 cp - memory copy
818 cmp - memory compare
819 base - print or set address offset
820 loop - initialize loop on address range
Simon Glass29499a02016-01-17 20:53:51 -0700821
Simon Glass573c0fa2020-07-28 19:41:14 -0600822config CMD_MEM_SEARCH
Simon Glass19038de2020-06-02 19:26:49 -0600823 bool "ms - Memory search"
824 help
825 Memory-search command
826
827 This allows searching through a region of memory looking for hex
828 data (byte, 16-bit word, 32-bit long, also 64-bit on machines that
829 support it). It is also possible to search for a string. The
830 command accepts a memory range and a list of values to search for.
831 The values need to appear in memory in the same order they are given
832 in the command. At most 10 matches can be returned at a time, but
833 pressing return will show the next 10 matches. Environment variables
834 are set for use with scripting (memmatches, memaddr, mempos).
835
Joel Johnsondb5a97e2020-01-29 09:17:18 -0700836config CMD_MX_CYCLIC
Adam Ford1ef0c492019-08-14 07:54:34 -0500837 bool "Enable cyclic md/mw commands"
838 depends on CMD_MEMORY
839 help
840 Add the "mdc" and "mwc" memory commands. These are cyclic
841 "md/mw" commands.
842 Examples:
843
844 => mdc.b 10 4 500
845 This command will print 4 bytes (10,11,12,13) each 500 ms.
846
847 => mwc.l 100 12345678 10
848 This command will write 12345678 to address 100 all 10 ms.
849
Jean-Jacques Hiblotd3f09372019-07-02 14:23:26 +0200850config CMD_RANDOM
851 bool "random"
852 default y
853 depends on CMD_MEMORY && (LIB_RAND || LIB_HW_RAND)
854 help
855 random - fill memory with random data
856
Simon Glass29499a02016-01-17 20:53:51 -0700857config CMD_MEMTEST
858 bool "memtest"
859 help
860 Simple RAM read/write test.
861
Mario Six00518992018-03-28 14:38:14 +0200862if CMD_MEMTEST
863
864config SYS_ALT_MEMTEST
865 bool "Alternative test"
866 help
867 Use a more complete alternative memory test.
868
Ralph Siemsen1c39c102020-09-09 12:10:00 -0400869if SYS_ALT_MEMTEST
870
871config SYS_ALT_MEMTEST_BITFLIP
872 bool "Bitflip test"
873 default y
874 help
875 The alternative memory test includes bitflip test since 2020.07.
876 The bitflip test significantly increases the overall test time.
877 Bitflip test can optionally be disabled here.
878
879endif
880
Ashok Reddy Soma41e8edf2020-05-04 15:26:21 +0200881config SYS_MEMTEST_START
882 hex "default start address for mtest"
Tom Rinic2ac2f62021-12-12 22:12:29 -0500883 default 0x0
Ashok Reddy Soma41e8edf2020-05-04 15:26:21 +0200884 help
885 This is the default start address for mtest for simple read/write
886 test. If no arguments are given to mtest, default address is used
887 as start address.
888
889config SYS_MEMTEST_END
890 hex "default end address for mtest"
891 default 0x1000
892 help
893 This is the default end address for mtest for simple read/write
894 test. If no arguments are given to mtest, default address is used
895 as end address.
896
Mario Six00518992018-03-28 14:38:14 +0200897endif
898
Simon Glass26c20532017-08-04 16:34:51 -0600899config CMD_SHA1SUM
900 bool "sha1sum"
901 select SHA1
Simon Glass29499a02016-01-17 20:53:51 -0700902 help
Simon Glass26c20532017-08-04 16:34:51 -0600903 Compute SHA1 checksum.
904
905config SHA1SUM_VERIFY
906 bool "sha1sum -v"
907 depends on CMD_SHA1SUM
908 help
909 Add -v option to verify data against a SHA1 checksum.
Simon Glass29499a02016-01-17 20:53:51 -0700910
Simon Glass8e83ca82017-08-04 16:34:52 -0600911config CMD_STRINGS
912 bool "strings - display strings in memory"
913 help
914 This works similarly to the Unix 'strings' command except that it
915 works with a memory range. String of printable characters found
916 within the range are displayed. The minimum number of characters
917 for a sequence to be considered a string can be provided.
918
Simon Glassbecaa8f2017-05-17 03:25:43 -0600919endmenu
920
921menu "Compression commands"
922
923config CMD_LZMADEC
924 bool "lzmadec"
Tom Rini3237bc62017-09-29 14:32:44 -0400925 default y if CMD_BOOTI
Simon Glassbecaa8f2017-05-17 03:25:43 -0600926 select LZMA
927 help
928 Support decompressing an LZMA (Lempel-Ziv-Markov chain algorithm)
929 image from memory.
930
Yusuke Ashidukaa20545d2020-02-20 20:48:01 +0900931config CMD_UNLZ4
932 bool "unlz4"
933 default y if CMD_BOOTI
934 select LZ4
935 help
936 Support decompressing an LZ4 image from memory region.
937
Masahiro Yamada2737fd32017-02-05 10:42:56 +0900938config CMD_UNZIP
939 bool "unzip"
Tom Rini3237bc62017-09-29 14:32:44 -0400940 default y if CMD_BOOTI
Michael Wallef253f2c2020-05-22 14:07:35 +0200941 select GZIP
Masahiro Yamada2737fd32017-02-05 10:42:56 +0900942 help
943 Uncompress a zip-compressed memory region.
944
945config CMD_ZIP
946 bool "zip"
Michael Walle3a6e3512020-05-22 14:07:36 +0200947 select GZIP_COMPRESSED
Masahiro Yamada2737fd32017-02-05 10:42:56 +0900948 help
949 Compress a memory region with zlib deflate method.
950
Simon Glass29499a02016-01-17 20:53:51 -0700951endmenu
952
953menu "Device access commands"
954
Simon Glass036bbb12017-08-04 16:34:28 -0600955config CMD_ARMFLASH
956 #depends on FLASH_CFI_DRIVER
957 bool "armflash"
958 help
959 ARM Ltd reference designs flash partition access
960
Neil Armstrong49261c72018-04-27 15:17:57 +0200961config CMD_ADC
962 bool "adc - Access Analog to Digital Converters info and data"
963 select ADC
Michal Simek463c3862020-08-19 10:44:17 +0200964 depends on DM_REGULATOR
Neil Armstrong49261c72018-04-27 15:17:57 +0200965 help
966 Shows ADC device info and permit printing one-shot analog converted
967 data from a named Analog to Digital Converter.
968
Eugeniu Rosca35c34be2019-05-23 17:32:22 +0200969config CMD_BCB
970 bool "bcb"
971 depends on MMC
972 depends on PARTITIONS
973 help
974 Read/modify/write the fields of Bootloader Control Block, usually
975 stored on the flash "misc" partition with its structure defined in:
976 https://android.googlesource.com/platform/bootable/recovery/+/master/
977 bootloader_message/include/bootloader_message/bootloader_message.h
978
979 Some real-life use-cases include (but are not limited to):
980 - Determine the "boot reason" (and act accordingly):
981 https://source.android.com/devices/bootloader/boot-reason
982 - Get/pass a list of commands from/to recovery:
983 https://android.googlesource.com/platform/bootable/recovery
984 - Inspect/dump the contents of the BCB fields
985
Jean-Jacques Hiblote83a31b2018-08-09 16:17:46 +0200986config CMD_BIND
987 bool "bind/unbind - Bind or unbind a device to/from a driver"
988 depends on DM
989 help
990 Bind or unbind a device to/from a driver from the command line.
991 This is useful in situations where a device may be handled by several
992 drivers. For example, this can be used to bind a UDC to the usb ether
993 gadget driver from the command line.
994
Simon Glass04ac6f12017-04-26 22:28:02 -0600995config CMD_CLK
996 bool "clk - Show clock frequencies"
997 help
998 (deprecated)
999 Shows clock frequences by calling a sock_clk_dump() hook function.
1000 This is depreated in favour of using the CLK uclass and accessing
1001 clock values from associated drivers. However currently no command
1002 exists for this.
1003
Simon Glass036bbb12017-08-04 16:34:28 -06001004config CMD_DEMO
1005 bool "demo - Demonstration commands for driver model"
1006 depends on DM
1007 help
1008 Provides a 'demo' command which can be used to play around with
1009 driver model. To use this properly you will need to enable one or
1010 both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
1011 Otherwise you will always get an empty list of devices. The demo
1012 devices are defined in the sandbox device tree, so the easiest
1013 option is to use sandbox and pass the -d point to sandbox's
1014 u-boot.dtb file.
1015
1016config CMD_DFU
1017 bool "dfu"
Marek Vasutea84f802018-02-16 16:41:17 +01001018 select DFU
Simon Glass036bbb12017-08-04 16:34:28 -06001019 help
1020 Enables the command "dfu" which is used to have U-Boot create a DFU
Simon Glass663b0cc2017-08-04 16:35:06 -06001021 class device via USB. This command requires that the "dfu_alt_info"
1022 environment variable be set and define the alt settings to expose to
1023 the host.
Simon Glass036bbb12017-08-04 16:34:28 -06001024
Simon Glass29499a02016-01-17 20:53:51 -07001025config CMD_DM
1026 bool "dm - Access to driver model information"
1027 depends on DM
Simon Glass29499a02016-01-17 20:53:51 -07001028 help
1029 Provides access to driver model data structures and information,
1030 such as a list of devices, list of uclasses and the state of each
1031 device (e.g. activated). This is not required for operation, but
1032 can be useful to see the state of driver model for debugging or
1033 interest.
1034
Alex Kiernan65de9552018-05-29 15:30:39 +00001035config CMD_FASTBOOT
1036 bool "fastboot - Android fastboot support"
1037 depends on FASTBOOT
1038 help
1039 This enables the command "fastboot" which enables the Android
1040 fastboot mode for the platform. Fastboot is a protocol for
1041 downloading images, flashing and device control used on
Alex Kiernand5aa57c2018-05-29 15:30:53 +00001042 Android devices. Fastboot requires either the network stack
1043 enabled or support for acting as a USB device.
Alex Kiernan65de9552018-05-29 15:30:39 +00001044
Sam Protsenkocd43fa12020-01-24 17:53:44 +02001045 See doc/android/fastboot.rst for more information.
Alex Kiernan65de9552018-05-29 15:30:39 +00001046
Simon Glass036bbb12017-08-04 16:34:28 -06001047config CMD_FLASH
1048 bool "flinfo, erase, protect"
1049 default y
Miquel Raynald2418202019-10-25 19:39:30 +02001050 depends on MTD || FLASH_CFI_DRIVER || MTD_NOR_FLASH
Simon Glass036bbb12017-08-04 16:34:28 -06001051 help
1052 NOR flash support.
1053 flinfo - print FLASH memory information
1054 erase - FLASH memory
1055 protect - enable or disable FLASH write protection
1056
1057config CMD_FPGA
1058 bool "fpga"
Tuomas Tynkkynen5ca16b32018-01-27 20:28:40 +02001059 depends on FPGA
Simon Glass036bbb12017-08-04 16:34:28 -06001060 default y
1061 help
1062 FPGA support.
1063
1064config CMD_FPGA_LOADBP
1065 bool "fpga loadbp - load partial bitstream (Xilinx only)"
1066 depends on CMD_FPGA
1067 help
1068 Supports loading an FPGA device from a bitstream buffer containing
1069 a partial bitstream.
1070
1071config CMD_FPGA_LOADFS
1072 bool "fpga loadfs - load bitstream from FAT filesystem (Xilinx only)"
1073 depends on CMD_FPGA
1074 help
1075 Supports loading an FPGA device from a FAT filesystem.
1076
1077config CMD_FPGA_LOADMK
1078 bool "fpga loadmk - load bitstream from image"
1079 depends on CMD_FPGA
1080 help
1081 Supports loading an FPGA device from a image generated by mkimage.
1082
1083config CMD_FPGA_LOADP
1084 bool "fpga loadp - load partial bitstream"
1085 depends on CMD_FPGA
1086 help
1087 Supports loading an FPGA device from a bitstream buffer containing
1088 a partial bitstream.
1089
Siva Durga Prasad Paladugucce0cb02018-05-31 15:10:22 +05301090config CMD_FPGA_LOAD_SECURE
Oleksandr Suvorovfbe31bb2022-07-22 17:16:02 +03001091 bool "fpga loads - loads secure bitstreams"
Siva Durga Prasad Paladugucce0cb02018-05-31 15:10:22 +05301092 depends on CMD_FPGA
Oleksandr Suvorovfbe31bb2022-07-22 17:16:02 +03001093 select FPGA_LOAD_SECURE
Siva Durga Prasad Paladugucce0cb02018-05-31 15:10:22 +05301094 help
1095 Enables the fpga loads command which is used to load secure
1096 (authenticated or encrypted or both) bitstreams on to FPGA.
1097
Simon Glass036bbb12017-08-04 16:34:28 -06001098config CMD_FPGAD
1099 bool "fpgad - dump FPGA registers"
1100 help
1101 (legacy, needs conversion to driver model)
1102 Provides a way to dump FPGA registers by calling the board-specific
1103 fpga_get_reg() function. This functions similarly to the 'md'
1104 command.
1105
1106config CMD_FUSE
1107 bool "fuse - support for the fuse subssystem"
1108 help
1109 (deprecated - needs conversion to driver model)
1110 This allows reading, sensing, programming or overriding fuses
1111 which control the behaviour of the device. The command uses the
1112 fuse_...() API.
1113
1114config CMD_GPIO
1115 bool "gpio"
1116 help
1117 GPIO support.
1118
Diego Rondini5ffde632022-04-11 12:02:09 +02001119config CMD_GPIO_READ
1120 bool "gpio read - save GPIO value to variable"
1121 depends on CMD_GPIO
1122 help
1123 Enables the 'gpio read' command that saves the value
1124 of a GPIO pin to a variable.
1125
Pragnesh Patel1d5955f2020-12-22 11:30:05 +05301126config CMD_PWM
1127 bool "pwm"
1128 depends on DM_PWM
1129 help
1130 Control PWM channels, this allows invert/config/enable/disable PWM channels.
1131
Simon Glass036bbb12017-08-04 16:34:28 -06001132config CMD_GPT
1133 bool "GPT (GUID Partition Table) command"
Simon Glass036bbb12017-08-04 16:34:28 -06001134 select EFI_PARTITION
Michal Simek84f3dec2018-07-23 15:55:13 +02001135 select PARTITION_UUIDS
Maxime Ripard24336442017-08-24 11:52:32 +02001136 imply RANDOM_UUID
Simon Glass036bbb12017-08-04 16:34:28 -06001137 help
1138 Enable the 'gpt' command to ready and write GPT style partition
1139 tables.
1140
Maxime Ripard24336442017-08-24 11:52:32 +02001141config RANDOM_UUID
1142 bool "GPT Random UUID generation"
Adam Ford70c8f052018-02-06 12:14:28 -06001143 select LIB_UUID
Maxime Ripard24336442017-08-24 11:52:32 +02001144 help
1145 Enable the generation of partitions with random UUIDs if none
1146 are provided.
1147
Simon Glass036bbb12017-08-04 16:34:28 -06001148config CMD_GPT_RENAME
1149 bool "GPT partition renaming commands"
1150 depends on CMD_GPT
1151 help
1152 Enables the 'gpt' command to interchange names on two GPT
1153 partitions via the 'gpt swap' command or to rename single
1154 partitions via the 'rename' command.
Simon Glass29499a02016-01-17 20:53:51 -07001155
Simon Glassa831eca2017-05-17 03:25:29 -06001156config CMD_IDE
1157 bool "ide - Support for IDE drivers"
Simon Glassb569a012017-05-17 03:25:30 -06001158 select IDE
Simon Glassa831eca2017-05-17 03:25:29 -06001159 help
1160 Provides an 'ide' command which allows accessing the IDE drive,
Vagrant Cascadian33203c32021-12-21 13:06:56 -08001161 resetting the IDE interface, printing the partition table and
Simon Glassa831eca2017-05-17 03:25:29 -06001162 geting device info. It also enables the 'diskboot' command which
1163 permits booting from an IDE drive.
1164
Simon Glass3bebbe62017-05-17 03:25:34 -06001165config CMD_IO
1166 bool "io - Support for performing I/O accesses"
1167 help
1168 Provides an 'iod' command to display I/O space and an 'iow' command
1169 to write values to the I/O space. This can be useful for manually
1170 checking the state of devices during boot when debugging device
1171 drivers, etc.
1172
Simon Glass30daabc2017-05-17 03:25:36 -06001173config CMD_IOTRACE
1174 bool "iotrace - Support for tracing I/O activity"
1175 help
1176 Provides an 'iotrace' command which supports recording I/O reads and
1177 writes in a trace buffer in memory . It also maintains a checksum
1178 of the trace records (even if space is exhausted) so that the
1179 sequence of I/O accesses can be verified.
1180
1181 When debugging drivers it is useful to see what I/O accesses were
1182 done and in what order.
1183
1184 Even if the individual accesses are of little interest it can be
1185 useful to verify that the access pattern is consistent each time
1186 an operation is performed. In this case a checksum can be used to
1187 characterise the operation of a driver. The checksum can be compared
1188 across different runs of the operation to verify that the driver is
1189 working properly.
1190
1191 In particular, when performing major refactoring of the driver, where
1192 the access pattern should not change, the checksum provides assurance
1193 that the refactoring work has not broken the driver.
1194
1195 This works by sneaking into the io.h heder for an architecture and
1196 redirecting I/O accesses through iotrace's tracing mechanism.
1197
1198 For now no commands are provided to examine the trace buffer. The
1199 format is fairly simple, so 'md' is a reasonable substitute.
1200
1201 Note: The checksum feature is only useful for I/O regions where the
1202 contents do not change outside of software control. Where this is not
1203 suitable you can fall back to manually comparing the addresses. It
1204 might be useful to enhance tracing to only checksum the accesses and
1205 not the data read/written.
1206
Simon Glass036bbb12017-08-04 16:34:28 -06001207config CMD_I2C
1208 bool "i2c"
1209 help
1210 I2C support.
1211
Eugen Hristevb879c842018-09-18 10:35:33 +03001212config CMD_W1
1213 depends on W1
1214 default y if W1
1215 bool "w1 - Support for Dallas 1-Wire protocol"
1216 help
1217 Dallas 1-wire protocol support
1218
Simon Glass29499a02016-01-17 20:53:51 -07001219config CMD_LOADB
1220 bool "loadb"
1221 default y
1222 help
1223 Load a binary file over serial line.
1224
Rui Miguel Silva433f15a2022-05-11 10:55:40 +01001225config CMD_LOADM
1226 bool "loadm"
1227 help
1228 Load a binary over memory mapped.
1229
Simon Glass29499a02016-01-17 20:53:51 -07001230config CMD_LOADS
Tom Rini5a70f172022-10-28 20:27:02 -04001231 bool "loads - Load a file over serial in S-Record format"
Simon Glass29499a02016-01-17 20:53:51 -07001232 default y
1233 help
1234 Load an S-Record file over serial line
1235
Tom Rini5a70f172022-10-28 20:27:02 -04001236config LOADS_ECHO
1237 bool "Echo all characters received during a loads back to console"
1238 depends on CMD_LOADS
1239 help
1240 If enabled, all characters received during a serial download (using
1241 the "loads" command) are echoed back. This might be needed by some
1242 terminal emulations (like "cu"), but may as well just take time on
1243 others. This sets the initial value of the "loads_echo" environment
1244 variable to 1.
1245
1246config CMD_SAVES
1247 bool "saves - Save a file over serial in S-Record format"
Ying Sun86dff472023-06-25 16:24:47 +08001248 depends on CMD_LOADS
Tom Rini5a70f172022-10-28 20:27:02 -04001249 help
1250 Provides a way to save a binary file using the Motorola S-Record
1251 format over the serial line.
1252
1253config SYS_LOADS_BAUD_CHANGE
1254 bool "Enable a temporary baudrate change during loads/saves command"
1255 depends on CMD_LOADS || CMD_SAVES
1256
Pali Rohár5dc80cc2022-08-27 16:37:55 +02001257config CMD_LOADXY_TIMEOUT
1258 int "loadxy_timeout"
1259 range 0 2000
1260 default 90
1261 help
1262 Initial timeout for loadx and loady commands. Zero means infinity.
1263
Niel Fourie09262bb2020-03-30 17:22:58 +02001264config CMD_LSBLK
1265 depends on BLK
1266 bool "lsblk - list block drivers and devices"
1267 help
1268 Print list of available block device drivers, and for each, the list
1269 of known block devices.
1270
Marek Szyprowski6427b5b2020-12-23 13:55:15 +01001271config CMD_MBR
1272 bool "MBR (Master Boot Record) command"
1273 select DOS_PARTITION
Marek Szyprowski6427b5b2020-12-23 13:55:15 +01001274 help
1275 Enable the 'mbr' command to ready and write MBR (Master Boot Record)
1276 style partition tables.
1277
Bin Menge1dae502020-10-14 14:34:52 +08001278config CMD_MISC
1279 bool "misc"
1280 depends on MISC
1281 help
1282 Enable the command "misc" for accessing miscellaneous devices with
1283 a MISC uclass driver. The command provides listing all MISC devices
1284 as well as read and write functionalities via their drivers.
1285
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001286config CMD_MMC
1287 bool "mmc"
Heinrich Schuchardt3ae9e6a2021-03-27 11:43:54 +01001288 depends on MMC
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001289 help
1290 MMC memory mapped support.
1291
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001292if CMD_MMC
1293
1294config CMD_BKOPS_ENABLE
1295 bool "mmc bkops enable"
1296 depends on CMD_MMC
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001297 help
1298 Enable command for setting manual background operations handshake
1299 on a eMMC device. The feature is optionally available on eMMC devices
1300 conforming to standard >= 4.41.
1301
Alex Kiernan60e0f612018-05-08 04:43:31 +00001302config CMD_MMC_RPMB
1303 bool "Enable support for RPMB in the mmc command"
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001304 depends on SUPPORT_EMMC_RPMB
Alex Kiernan60e0f612018-05-08 04:43:31 +00001305 help
1306 Enable the commands for reading, writing and programming the
1307 key for the Replay Protection Memory Block partition in eMMC.
1308
Alex Kiernanc568bcb2018-05-29 15:30:52 +00001309config CMD_MMC_SWRITE
1310 bool "mmc swrite"
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001311 depends on MMC_WRITE
Alex Kiernanc568bcb2018-05-29 15:30:52 +00001312 select IMAGE_SPARSE
1313 help
1314 Enable support for the "mmc swrite" command to write Android sparse
1315 images to eMMC.
1316
Heinrich Schuchardt039df1a2020-03-31 17:39:28 +00001317endif
1318
John Chaufce6f982020-07-02 12:01:21 +08001319config CMD_CLONE
1320 bool "clone"
1321 depends on BLK
1322 help
1323 Enable storage cloning over block devices, useful for
1324 initial flashing by external block device without network
1325 or usb support.
1326
Ruchika Gupta1a994352020-10-23 13:39:33 +05301327config CMD_OPTEE_RPMB
1328 bool "Enable read/write support on RPMB via OPTEE"
1329 depends on SUPPORT_EMMC_RPMB && OPTEE
1330 help
1331 Enable the commands for reading, writing persistent named values
1332 in the Replay Protection Memory Block partition in eMMC by
1333 using Persistent Objects in OPTEE
1334
Miquel Raynal741f4c72018-09-29 12:58:28 +02001335config CMD_MTD
1336 bool "mtd"
Miquel Raynald2418202019-10-25 19:39:30 +02001337 depends on MTD
Miquel Raynal741f4c72018-09-29 12:58:28 +02001338 select MTD_PARTITIONS
1339 help
1340 MTD commands support.
1341
Pratyush Yadavbecd9b72020-10-16 16:16:35 +05301342config CMD_MUX
1343 bool "mux"
1344 depends on MULTIPLEXER
1345 help
1346 List, select, and deselect mux controllers on the fly.
1347
Simon Glass29499a02016-01-17 20:53:51 -07001348config CMD_NAND
1349 bool "nand"
Maxime Ripard5a5d71f2017-03-03 15:13:30 +01001350 default y if NAND_SUNXI
Miquel Raynald2418202019-10-25 19:39:30 +02001351 depends on MTD_RAW_NAND
Simon Glass29499a02016-01-17 20:53:51 -07001352 help
1353 NAND support.
1354
Boris Brezillon19907782017-02-27 18:22:07 +01001355if CMD_NAND
1356config CMD_NAND_TRIMFFS
1357 bool "nand write.trimffs"
Hans de Goedefd42c052017-02-27 18:22:10 +01001358 default y if ARCH_SUNXI
Boris Brezillon19907782017-02-27 18:22:07 +01001359 help
1360 Allows one to skip empty pages when flashing something on a NAND.
1361
1362config CMD_NAND_LOCK_UNLOCK
1363 bool "nand lock/unlock"
1364 help
1365 NAND locking support.
1366
1367config CMD_NAND_TORTURE
1368 bool "nand torture"
1369 help
1370 NAND torture support.
1371
1372endif # CMD_NAND
1373
Zhikang Zhang49455652017-08-03 02:30:59 -07001374config CMD_NVME
1375 bool "nvme"
1376 depends on NVME
1377 default y if NVME
1378 help
1379 NVM Express device support
1380
Simon Glassa2a82072017-08-04 16:34:31 -06001381config CMD_ONENAND
1382 bool "onenand - access to onenand device"
Miquel Raynald2418202019-10-25 19:39:30 +02001383 depends on MTD
Simon Glassa2a82072017-08-04 16:34:31 -06001384 help
1385 OneNAND is a brand of NAND ('Not AND' gate) flash which provides
1386 various useful features. This command allows reading, writing,
1387 and erasing blocks. It allso provides a way to show and change
1388 bad blocks, and test the device.
1389
Tom Rinie7751242022-06-15 12:03:51 -04001390config USE_ONENAND_BOARD_INIT
1391 bool "Call onenand_board_init() in the onenand command"
1392 depends on CMD_ONENAND
1393
Mario Sixf8395902018-09-27 09:19:34 +02001394config CMD_OSD
1395 bool "osd"
1396 help
1397 Enable the 'osd' command which allows to query information from and
1398 write text data to a on-screen display (OSD) device; a virtual device
1399 associated with a display capable of displaying a text overlay on the
1400 display it's associated with..
1401
Patrick Delaunay73287092017-01-27 11:00:42 +01001402config CMD_PART
1403 bool "part"
AKASHI Takahiro783bc122022-04-22 10:44:30 +09001404 depends on PARTITIONS
Michal Simek84f3dec2018-07-23 15:55:13 +02001405 select PARTITION_UUIDS
Patrick Delaunay73287092017-01-27 11:00:42 +01001406 help
1407 Read and display information about the partition table on
1408 various media.
1409
Simon Glassc88a09a2017-08-04 16:34:34 -06001410config CMD_PCI
1411 bool "pci - Access PCI devices"
1412 help
1413 Provide access to PCI (Peripheral Interconnect Bus), a type of bus
1414 used on some devices to allow the CPU to communicate with its
1415 peripherals. Sub-commands allow bus enumeration, displaying and
1416 changing configuration space and a few other features.
1417
Stephen Carlson3d876c42023-03-10 11:07:13 -08001418config CMD_PCI_MPS
1419 bool "pci_mps - Configure PCI device MPS"
1420 depends on PCI
1421 help
1422 Enables PCI Express Maximum Packet Size (MPS) tuning. This
1423 command configures the PCI Express MPS of each endpoint to the
1424 largest value supported by all devices below the root complex.
1425 The Maximum Read Request Size will not be altered. This method is
1426 the same algorithm as used by Linux pci=pcie_bus_safe.
1427
Patrice Chotardc4b4ef02018-10-24 14:10:17 +02001428config CMD_PINMUX
1429 bool "pinmux - show pins muxing"
Marek Behún9ff24b62021-02-09 21:23:47 +01001430 depends on PINCTRL
Patrice Chotardc4b4ef02018-10-24 14:10:17 +02001431 default y if PINCTRL
1432 help
1433 Parse all available pin-controllers and show pins muxing. This
1434 is useful for debug purpoer to check the pin muxing and to know if
1435 a pin is configured as a GPIO or as an alternate function.
1436
Adam Fordc4f16322018-09-09 07:05:57 -05001437config CMD_POWEROFF
1438 bool "poweroff"
1439 help
1440 Poweroff/Shutdown the system
1441
Simon Glassc05459b2017-08-04 16:34:39 -06001442config CMD_READ
1443 bool "read - Read binary data from a partition"
1444 help
1445 Provides low-level access to the data in a partition.
1446
Simon Glass036bbb12017-08-04 16:34:28 -06001447config CMD_REMOTEPROC
1448 bool "remoteproc"
1449 depends on REMOTEPROC
1450 help
1451 Support for Remote Processor control
1452
1453config CMD_SATA
1454 bool "sata - Access SATA subsystem"
1455 select SATA
1456 help
1457 SATA (Serial Advanced Technology Attachment) is a serial bus
1458 standard for connecting to hard drives and other storage devices.
1459 This command provides information about attached devices and allows
1460 reading, writing and other operations.
1461
1462 SATA replaces PATA (originally just ATA), which stands for Parallel AT
1463 Attachment, where AT refers to an IBM AT (Advanced Technology)
1464 computer released in 1984.
1465
Heinrich Schuchardta0f52832018-02-14 08:05:44 +01001466config CMD_SCSI
1467 bool "scsi - Access to SCSI devices"
Heinrich Schuchardtb9a76c72023-03-26 19:10:38 +02001468 depends on SCSI
1469 default y
Heinrich Schuchardta0f52832018-02-14 08:05:44 +01001470 help
1471 This provides a 'scsi' command which provides access to SCSI (Small
1472 Computer System Interface) devices. The command provides a way to
1473 scan the bus, reset the bus, read and write data and get information
1474 about devices.
1475
Simon Glass6870d2e2017-08-04 16:34:45 -06001476config CMD_SDRAM
1477 bool "sdram - Print SDRAM configuration information"
1478 help
1479 Provides information about attached SDRAM. This assumed that the
1480 SDRAM has an EEPROM with information that can be read using the
1481 I2C bus. This is only available on some boards.
1482
Simon Glass29499a02016-01-17 20:53:51 -07001483config CMD_SF
1484 bool "sf"
Tom Rinie5289a72019-05-29 17:01:28 -04001485 depends on DM_SPI_FLASH || SPI_FLASH
Jagan Teki132e81f2019-10-16 17:59:42 +05301486 default y if DM_SPI_FLASH
Simon Glass29499a02016-01-17 20:53:51 -07001487 help
1488 SPI Flash support
1489
Simon Glass86b1b652017-08-04 16:34:46 -06001490config CMD_SF_TEST
1491 bool "sf test - Allow testing of SPI flash"
Tom Rinie5289a72019-05-29 17:01:28 -04001492 depends on CMD_SF
Simon Glass86b1b652017-08-04 16:34:46 -06001493 help
1494 Provides a way to test that SPI flash is working correctly. The
1495 test is destructive, in that an area of SPI flash must be provided
1496 for the test to use. Performance information is also provided,
1497 measuring the performance of reading, writing and erasing in
1498 Mbps (Million Bits Per Second). This value should approximately
1499 equal the SPI bus speed for a single-bit-wide SPI bus, assuming
1500 everything is working properly.
1501
Simon Glass29499a02016-01-17 20:53:51 -07001502config CMD_SPI
Patrick Delaunay5a6b52b2019-02-27 15:20:37 +01001503 bool "sspi - Command to access spi device"
Tom Rinie5289a72019-05-29 17:01:28 -04001504 depends on SPI
Simon Glass29499a02016-01-17 20:53:51 -07001505 help
1506 SPI utility command.
1507
Patrick Delaunay5a6b52b2019-02-27 15:20:37 +01001508config DEFAULT_SPI_BUS
1509 int "default spi bus used by sspi command"
1510 depends on CMD_SPI
1511 default 0
1512
1513config DEFAULT_SPI_MODE
1514 hex "default spi mode used by sspi command (see include/spi.h)"
1515 depends on CMD_SPI
1516 default 0
1517
Robert Marko99e6fde2022-09-06 13:30:33 +02001518config CMD_TEMPERATURE
1519 bool "temperature - display the temperature from thermal sensors"
1520 depends on DM_THERMAL
1521 help
1522 Provides a way to list thermal sensors and to get their readings.
1523
Simon Glass80a56cd2017-08-04 16:35:00 -06001524config CMD_TSI148
1525 bool "tsi148 - Command to access tsi148 device"
1526 help
1527 This provides various sub-commands to initialise and configure the
1528 Turndra tsi148 device. See the command help for full details.
1529
Faiz Abbas61e9fbb2019-10-15 18:24:40 +05301530config CMD_UFS
1531 bool "Enable UFS - Universal Flash Subsystem commands"
1532 depends on UFS
1533 help
1534 "This provides commands to initialise and configure universal flash
1535 subsystem devices"
1536
Simon Glass0c03c1a2017-08-04 16:35:01 -06001537config CMD_UNIVERSE
1538 bool "universe - Command to set up the Turndra Universe controller"
1539 help
1540 This allows setting up the VMEbus provided by this controller.
1541 See the command help for full details.
1542
Simon Glass29499a02016-01-17 20:53:51 -07001543config CMD_USB
1544 bool "usb"
Tom Rini8a091622021-07-09 10:11:55 -04001545 depends on USB_HOST
Simon Glass29499a02016-01-17 20:53:51 -07001546 help
1547 USB support.
1548
Stefan Agnerd9d661c2017-08-16 11:00:53 -07001549config CMD_USB_SDP
1550 bool "sdp"
1551 select USB_FUNCTION_SDP
1552 help
1553 Enables the command "sdp" which is used to have U-Boot emulating the
1554 Serial Download Protocol (SDP) via USB.
Michal Simekf751ff52018-07-23 15:55:12 +02001555
Eddie Cai5e3020b2017-12-15 08:17:11 +08001556config CMD_ROCKUSB
1557 bool "rockusb"
1558 depends on USB_FUNCTION_ROCKUSB
1559 help
Michal Simekf751ff52018-07-23 15:55:12 +02001560 Rockusb protocol is widely used by Rockchip SoC based devices. It can
Eddie Cai5e3020b2017-12-15 08:17:11 +08001561 read/write info, image to/from devices. This enable rockusb command
1562 support to communication with rockusb device. for more detail about
1563 this command, please read doc/README.rockusb.
Stefan Agnerd9d661c2017-08-16 11:00:53 -07001564
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001565config CMD_USB_MASS_STORAGE
1566 bool "UMS usb mass storage"
Tom Rini4b783d92021-05-22 08:47:16 -04001567 depends on USB_GADGET_DOWNLOAD
Lukasz Majewski6e782742018-01-29 19:28:02 +01001568 select USB_FUNCTION_MASS_STORAGE
Patrick Delaunaye1dc2532021-06-04 18:51:46 +02001569 depends on BLK && USB_GADGET
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001570 help
Patrick Delaunaye1dc2532021-06-04 18:51:46 +02001571 Enables the command "ums" and the USB mass storage support to the
1572 export a block device: U-Boot, the USB device, acts as a simple
1573 external hard drive plugged on the host USB port.
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001574
Svyatoslav Ryhelbb8068d2023-03-20 21:01:43 +02001575config CMD_UMS_ABORT_KEYED
1576 bool "UMS abort with any key"
1577 depends on CMD_USB_MASS_STORAGE
1578 help
1579 Allow interruption of usb mass storage run with any key pressed.
1580
Anastasiia Lukianenko4fec7f82020-08-06 12:42:55 +03001581config CMD_PVBLOCK
1582 bool "Xen para-virtualized block device"
1583 depends on XEN
1584 select PVBLOCK
1585 help
1586 Xen para-virtualized block device support
1587
Tuomas Tynkkynen10a60d22018-10-15 02:21:12 -07001588config CMD_VIRTIO
1589 bool "virtio"
1590 depends on VIRTIO
1591 default y if VIRTIO
1592 help
1593 VirtIO block device support
1594
Michael Walle23964a82019-04-06 02:24:02 +02001595config CMD_WDT
1596 bool "wdt"
1597 depends on WDT
1598 help
1599 This provides commands to control the watchdog timer devices.
1600
Rasmus Villemoesc614b832023-03-02 09:12:22 +01001601config CMD_WRITE
1602 bool "write - Write binary data to a partition"
1603 help
1604 Provides low-level write access to a partition.
1605
Mario Sixfd1cc422018-08-09 14:51:21 +02001606config CMD_AXI
1607 bool "axi"
1608 depends on AXI
1609 help
1610 Enable the command "axi" for accessing AXI (Advanced eXtensible
1611 Interface) busses, a on-chip interconnect specification for managing
1612 functional blocks in SoC designs, which is also often used in designs
1613 involving FPGAs (e.g. communication with IP cores in Xilinx FPGAs).
Simon Glass29499a02016-01-17 20:53:51 -07001614endmenu
1615
1616
1617menu "Shell scripting commands"
1618
Roger Knecht11827c42022-09-03 11:34:53 +00001619config CMD_CAT
1620 bool "cat"
1621 help
1622 Print file to standard output
1623
Simon Glass29499a02016-01-17 20:53:51 -07001624config CMD_ECHO
1625 bool "echo"
1626 default y
1627 help
1628 Echo args to console
1629
1630config CMD_ITEST
1631 bool "itest"
1632 default y
1633 help
1634 Return true/false on integer compare.
1635
1636config CMD_SOURCE
1637 bool "source"
1638 default y
1639 help
1640 Run script from memory
1641
1642config CMD_SETEXPR
1643 bool "setexpr"
1644 default y
1645 help
1646 Evaluate boolean and math expressions and store the result in an env
1647 variable.
1648 Also supports loading the value at a memory location into a variable.
1649 If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
1650
Roland Gaudig2c9e7c22021-07-23 12:29:21 +00001651config CMD_SETEXPR_FMT
1652 bool "setexpr_fmt"
Roland Gaudig2c9e7c22021-07-23 12:29:21 +00001653 depends on CMD_SETEXPR
1654 help
1655 Evaluate format string expression and store result in an environment
1656 variable.
1657
Simon Glass29499a02016-01-17 20:53:51 -07001658endmenu
1659
Ruslan Trofymenkoa24f9b42019-07-05 15:37:33 +03001660menu "Android support commands"
1661
1662config CMD_AB_SELECT
1663 bool "ab_select"
Ruslan Trofymenkoa24f9b42019-07-05 15:37:33 +03001664 depends on ANDROID_AB
1665 help
1666 On Android devices with more than one boot slot (multiple copies of
1667 the kernel and system images) this provides a command to select which
1668 slot should be used to boot from and register the boot attempt. This
1669 is used by the new A/B update model where one slot is updated in the
1670 background while running from the other slot.
1671
1672endmenu
1673
Michal Simek2f785a12018-02-26 16:01:02 +01001674if NET
1675
Joe Hershbergerb0429462018-04-13 15:26:30 -05001676menuconfig CMD_NET
1677 bool "Network commands"
1678 default y
Adam Ford53705472018-07-20 23:03:57 -05001679 imply NETDEVICES
Joe Hershbergerb0429462018-04-13 15:26:30 -05001680
1681if CMD_NET
1682
1683config CMD_BOOTP
1684 bool "bootp"
Simon Glass29499a02016-01-17 20:53:51 -07001685 default y
1686 help
Simon Glass29499a02016-01-17 20:53:51 -07001687 bootp - boot image via network using BOOTP/TFTP protocol
Joe Hershbergerb0429462018-04-13 15:26:30 -05001688
Joe Hershberger01261792018-04-13 15:26:33 -05001689config CMD_DHCP
1690 bool "dhcp"
1691 depends on CMD_BOOTP
1692 help
1693 Boot image via network using DHCP/TFTP protocol
1694
Sean Edmondba802862023-04-11 10:48:47 -07001695config CMD_DHCP6
1696 bool "dhcp6"
1697 depends on IPV6
1698 help
1699 Boot image via network using DHCPv6/TFTP protocol using IPv6.
1700
1701 Will perform 4-message exchange with DHCPv6 server, requesting
1702 the minimum required options to TFTP boot. Complies with RFC 8415.
1703
Tom Rini1c47c4a2022-02-25 11:19:50 -05001704config BOOTP_MAY_FAIL
1705 bool "Allow for the BOOTP/DHCP server to not be found"
1706 depends on CMD_BOOTP
1707 help
1708 If the DHCP server is not found after the configured retry count, the
1709 call will fail instead of starting over. This can be used to fail
1710 over to Link-local IP address configuration if the DHCP server is not
1711 available.
1712
Joe Hershberger0824ad92018-04-13 15:26:32 -05001713config BOOTP_BOOTPATH
Joe Hershberger06661e12018-04-13 15:26:34 -05001714 bool "Request & store 'rootpath' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001715 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001716 depends on CMD_BOOTP
Joe Hershberger06661e12018-04-13 15:26:34 -05001717 help
1718 Even though the config is called BOOTP_BOOTPATH, it stores the
1719 path in the variable 'rootpath'.
Joe Hershberger0824ad92018-04-13 15:26:32 -05001720
Tom Rini1c47c4a2022-02-25 11:19:50 -05001721config BOOTP_VENDOREX
1722 bool "Support vendor extensions from BOOTP/DHCP server"
1723 depends on CMD_BOOTP
1724
1725config BOOTP_BOOTFILESIZE
1726 bool "Request & store 'bootfilesize' from BOOTP/DHCP server"
1727 depends on CMD_BOOTP
1728
Joe Hershberger0824ad92018-04-13 15:26:32 -05001729config BOOTP_DNS
Joe Hershberger06661e12018-04-13 15:26:34 -05001730 bool "Request & store 'dnsip' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001731 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001732 depends on CMD_BOOTP
Joe Hershberger06661e12018-04-13 15:26:34 -05001733 help
1734 The primary DNS server is stored as 'dnsip'. If two servers are
1735 returned, you must set BOOTP_DNS2 to store that second server IP
1736 also.
Joe Hershberger0824ad92018-04-13 15:26:32 -05001737
Joe Hershberger63e70712018-04-13 15:26:35 -05001738config BOOTP_DNS2
1739 bool "Store 'dnsip2' from BOOTP/DHCP server"
1740 depends on BOOTP_DNS
1741 help
1742 If a DHCP client requests the DNS server IP from a DHCP server,
1743 it is possible that more than one DNS serverip is offered to the
1744 client. If CONFIG_BOOTP_DNS2 is enabled, the secondary DNS
1745 server IP will be stored in the additional environment
1746 variable "dnsip2". The first DNS serverip is always
1747 stored in the variable "dnsip", when BOOTP_DNS is defined.
1748
Joe Hershberger0824ad92018-04-13 15:26:32 -05001749config BOOTP_GATEWAY
Joe Hershberger06661e12018-04-13 15:26:34 -05001750 bool "Request & store 'gatewayip' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001751 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001752 depends on CMD_BOOTP
1753
1754config BOOTP_HOSTNAME
Joe Hershberger06661e12018-04-13 15:26:34 -05001755 bool "Request & store 'hostname' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001756 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001757 depends on CMD_BOOTP
Joe Hershberger06661e12018-04-13 15:26:34 -05001758 help
1759 The name may or may not be qualified with the local domain name.
Joe Hershberger0824ad92018-04-13 15:26:32 -05001760
Alexander Graf427e6952018-06-15 10:29:28 +02001761config BOOTP_PREFER_SERVERIP
1762 bool "serverip variable takes precedent over DHCP server IP."
1763 depends on CMD_BOOTP
1764 help
1765 By default a BOOTP/DHCP reply will overwrite the 'serverip' variable.
1766
1767 With this option enabled, the 'serverip' variable in the environment
1768 takes precedence over DHCP server IP and will only be set by the DHCP
1769 server if not already set in the environment.
1770
Joe Hershberger0824ad92018-04-13 15:26:32 -05001771config BOOTP_SUBNETMASK
Joe Hershberger06661e12018-04-13 15:26:34 -05001772 bool "Request & store 'netmask' from BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001773 default y
Joe Hershberger0824ad92018-04-13 15:26:32 -05001774 depends on CMD_BOOTP
1775
Tom Rini1c47c4a2022-02-25 11:19:50 -05001776config BOOTP_NISDOMAIN
1777 bool "Request & store 'nisdomain' from BOOTP/DHCP server"
1778 depends on CMD_BOOTP
1779
Chris Packhambfa7c212018-05-03 20:19:02 +12001780config BOOTP_NTPSERVER
1781 bool "Request & store 'ntpserverip' from BOOTP/DHCP server"
1782 depends on CMD_BOOTP
1783
Tom Rini1c47c4a2022-02-25 11:19:50 -05001784config BOOTP_TIMEOFFSET
1785 bool "Request & store 'timeoffset' from BOOTP/DHCP server"
1786 depends on CMD_BOOTP && CMD_SNTP
1787
Ramon Friedac598c12019-07-18 21:43:30 +03001788config CMD_PCAP
1789 bool "pcap capture"
1790 help
1791 Selecting this will allow capturing all Ethernet packets and store
1792 them in physical memory in a PCAP formated file,
1793 later to be analyzed by PCAP reader application (IE. WireShark).
1794
Joe Hershberger0824ad92018-04-13 15:26:32 -05001795config BOOTP_PXE
Joe Hershberger84ccdbe2018-04-13 15:26:36 -05001796 bool "Send PXE client arch to BOOTP/DHCP server"
Joe Hershberger8ffe7e52018-04-13 15:26:37 -05001797 default y
Joe Hershberger84ccdbe2018-04-13 15:26:36 -05001798 depends on CMD_BOOTP && CMD_PXE
1799 help
1800 Supported for ARM, ARM64, and x86 for now.
Joe Hershberger0824ad92018-04-13 15:26:32 -05001801
1802config BOOTP_PXE_CLIENTARCH
1803 hex
Joe Hershberger84ccdbe2018-04-13 15:26:36 -05001804 depends on BOOTP_PXE
Joe Hershberger0824ad92018-04-13 15:26:32 -05001805 default 0x16 if ARM64
1806 default 0x15 if ARM
1807 default 0 if X86
1808
1809config BOOTP_VCI_STRING
1810 string
1811 depends on CMD_BOOTP
Michal Simekf4359382018-04-26 18:21:29 +05301812 default "U-Boot.armv7" if CPU_V7A || CPU_V7M || CPU_V7R
Joe Hershberger0824ad92018-04-13 15:26:32 -05001813 default "U-Boot.armv8" if ARM64
1814 default "U-Boot.arm" if ARM
1815 default "U-Boot"
1816
Sean Edmondba802862023-04-11 10:48:47 -07001817if CMD_DHCP6
1818
1819config DHCP6_PXE_CLIENTARCH
1820 hex
1821 default 0x16 if ARM64
1822 default 0x15 if ARM
1823 default 0xFF
1824
1825config DHCP6_PXE_DHCP_OPTION
1826 bool "Request & store 'pxe_configfile' from DHCP6 server"
1827
1828config DHCP6_ENTERPRISE_ID
1829 int "Enterprise ID to send in DHCPv6 Vendor Class Option"
1830 default 0
1831
1832endif
1833
Joe Hershbergerb0429462018-04-13 15:26:30 -05001834config CMD_TFTPBOOT
1835 bool "tftpboot"
1836 default y
1837 help
Heinrich Schuchardt7d289f12022-09-04 09:08:11 +02001838 tftpboot - load file via network using TFTP protocol
Simon Glass29499a02016-01-17 20:53:51 -07001839
1840config CMD_TFTPPUT
1841 bool "tftp put"
Joe Hershbergerb0429462018-04-13 15:26:30 -05001842 depends on CMD_TFTPBOOT
Simon Glass29499a02016-01-17 20:53:51 -07001843 help
1844 TFTP put command, for uploading files to a server
1845
1846config CMD_TFTPSRV
1847 bool "tftpsrv"
Joe Hershbergerb0429462018-04-13 15:26:30 -05001848 depends on CMD_TFTPBOOT
Simon Glass29499a02016-01-17 20:53:51 -07001849 help
1850 Act as a TFTP server and boot the first received file
1851
Joe Hershberger0824ad92018-04-13 15:26:32 -05001852config NET_TFTP_VARS
1853 bool "Control TFTP timeout and count through environment"
1854 depends on CMD_TFTPBOOT
1855 default y
1856 help
1857 If set, allows controlling the TFTP timeout through the
1858 environment variable tftptimeout, and the TFTP maximum
1859 timeout count through the variable tftptimeoutcountmax.
1860 If unset, timeout and maximum are hard-defined as 1 second
1861 and 10 timouts per TFTP transfer.
1862
Simon Glass29499a02016-01-17 20:53:51 -07001863config CMD_RARP
1864 bool "rarpboot"
1865 help
1866 Boot image via network using RARP/TFTP protocol
1867
Simon Glass29499a02016-01-17 20:53:51 -07001868config CMD_NFS
1869 bool "nfs"
Simon Glass29499a02016-01-17 20:53:51 -07001870 help
1871 Boot image via network using NFS protocol.
1872
Tom Rini0d1c4742022-03-11 09:12:05 -05001873config NFS_TIMEOUT
1874 int "Timeout in milliseconds for NFS mounts"
1875 depends on CMD_NFS
1876 default 2000
1877 help
1878 Timeout in milliseconds used in NFS protocol. If you encounter
1879 "ERROR: Cannot umount" in nfs command, try longer timeout such as
1880 10000.
1881
Tom Rini065d6612022-06-13 22:57:35 -04001882config SYS_DISABLE_AUTOLOAD
1883 bool "Disable automatically loading files over the network"
1884 depends on CMD_BOOTP || CMD_DHCP || CMD_NFS || CMD_RARP
1885 help
1886 Typically, commands such as "dhcp" will attempt to automatically
1887 load a file from the network, once the initial network configuration
1888 is complete. Enable this option to disable this behavior and instead
1889 require files to be loaded over the network by subsequent commands.
1890
Ying-Chun Liu (PaulLiu)cc96a1d2022-11-08 14:17:29 +08001891config CMD_WGET
1892 bool "wget"
Michael Walle34aa0752022-12-28 16:27:15 +01001893 select PROT_TCP
Ying-Chun Liu (PaulLiu)cc96a1d2022-11-08 14:17:29 +08001894 help
1895 wget is a simple command to download kernel, or other files,
1896 from a http server over TCP.
1897
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001898config CMD_MII
1899 bool "mii"
Ramon Frieddeb6c502019-09-13 18:25:03 +03001900 imply CMD_MDIO
1901 help
1902 If set, allows 802.3(clause 22) MII Management functions interface access
1903 The management interface specified in Clause 22 provides
1904 a simple, two signal, serial interface to connect a
1905 Station Management entity and a managed PHY for providing access
1906 to management parameters and services.
1907 The interface is referred to as the MII management interface.
1908
Tom Rini1a0c7dc2022-03-18 08:38:27 -04001909config MII_INIT
1910 bool "Call mii_init() in the mii command"
1911 depends on CMD_MII && (MPC8XX_FEC || FSLDMAFE || MCFFEC)
1912
Ramon Frieddeb6c502019-09-13 18:25:03 +03001913config CMD_MDIO
1914 bool "mdio"
1915 depends on PHYLIB
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001916 help
Ramon Frieddeb6c502019-09-13 18:25:03 +03001917 If set, allows Enable 802.3(clause 45) MDIO interface registers access
1918 The MDIO interface is orthogonal to the MII interface and extends
1919 it by adding access to more registers through indirect addressing.
Dinh Nguyen0685bef2016-04-21 09:05:23 -05001920
Simon Glass29499a02016-01-17 20:53:51 -07001921config CMD_PING
1922 bool "ping"
1923 help
1924 Send ICMP ECHO_REQUEST to network host
1925
Viacheslav Mitrofanove03c8aa2022-12-02 12:18:08 +03001926config CMD_PING6
1927 bool "ping6"
1928 depends on IPV6
1929 default y if (CMD_PING && IPV6)
1930 help
1931 Send ICMPv6 ECHO_REQUEST to network host
1932
Simon Glass29499a02016-01-17 20:53:51 -07001933config CMD_CDP
1934 bool "cdp"
1935 help
1936 Perform CDP network configuration
1937
1938config CMD_SNTP
1939 bool "sntp"
Philippe Reynes2829d992020-09-18 14:13:02 +02001940 select PROT_UDP
Simon Glass29499a02016-01-17 20:53:51 -07001941 help
1942 Synchronize RTC via network
1943
1944config CMD_DNS
1945 bool "dns"
1946 help
1947 Lookup the IP of a hostname
1948
1949config CMD_LINK_LOCAL
1950 bool "linklocal"
Joe Hershberger51d78982018-04-30 12:45:22 -05001951 select LIB_RAND
Simon Glass29499a02016-01-17 20:53:51 -07001952 help
1953 Acquire a network IP address using the link-local protocol
1954
Samuel Mendoza-Jonasfeebd6c2022-08-08 21:46:04 +09301955config CMD_NCSI
1956 bool "ncsi"
1957 depends on PHY_NCSI
1958 help
1959 Manually configure the attached NIC via NC-SI.
1960 Normally this happens automatically before other network
1961 operations.
1962
Ehsan Mohandesia0d6d272023-04-21 17:08:21 -07001963config IPV6_ROUTER_DISCOVERY
1964 bool "Do IPv6 router discovery"
1965 depends on IPV6
1966 help
1967 Will automatically perform router solicitation on first IPv6
1968 network operation
Joe Hershberger0824ad92018-04-13 15:26:32 -05001969endif
1970
Simon Glass12b85702017-05-17 03:25:17 -06001971config CMD_ETHSW
1972 bool "ethsw"
1973 help
1974 Allow control of L2 Ethernet switch commands. These are supported
1975 by the vsc9953 Ethernet driver at present. Sub-commands allow
1976 operations such as enabling / disabling a port and
1977 viewing/maintaining the filtering database (FDB)
1978
Joe Hershberger0824ad92018-04-13 15:26:32 -05001979config CMD_PXE
1980 bool "pxe"
John Keeping9b60a172022-07-28 11:19:15 +01001981 select PXE_UTILS
Joe Hershberger0824ad92018-04-13 15:26:32 -05001982 help
1983 Boot image via network using PXE protocol
Michal Simek2f785a12018-02-26 16:01:02 +01001984
Lothar Felten776fc102018-06-22 22:29:54 +02001985config CMD_WOL
1986 bool "wol"
1987 help
1988 Wait for wake-on-lan Magic Packet
1989
Joe Hershbergerb0429462018-04-13 15:26:30 -05001990endif
Simon Glass29499a02016-01-17 20:53:51 -07001991
1992menu "Misc commands"
1993
Simon Glassb158b8f2023-02-07 14:33:53 -07001994config CMD_2048
1995 bool "Play 2048"
1996 help
1997 This is a simple sliding block puzzle game designed by Italian web
1998 developer Gabriele Cirulli. The game's objective is to slide numbered
1999 tiles on a grid to combine them to create a tile with the number
2000 2048.
2001
2002 This needs ANSI support on your terminal to work. It is not fully
2003 functional on a video device.
2004
Simon Glassb575bfc2017-04-26 22:27:55 -06002005config CMD_BMP
2006 bool "Enable 'bmp' command"
Simon Glass52cb5042022-10-18 07:46:31 -06002007 depends on VIDEO
Simon Glassb575bfc2017-04-26 22:27:55 -06002008 help
Andrius Štikonas1d5ccd62019-09-23 22:43:41 +01002009 This provides a way to obtain information about a BMP-format image
Simon Glassb575bfc2017-04-26 22:27:55 -06002010 and to display it. BMP (which presumably stands for BitMaP) is a
2011 file format defined by Microsoft which supports images of various
2012 depths, formats and compression methods. Headers on the file
2013 determine the formats used. This command can be used by first loading
2014 the image into RAM, then using this command to look at it or display
2015 it.
2016
Alex Kiernane710fa62018-05-12 05:49:47 +00002017config CMD_BOOTCOUNT
2018 bool "bootcount"
2019 depends on BOOTCOUNT_LIMIT
2020 help
2021 Enable the bootcount command, which allows interrogation and
2022 reset of the bootcounter.
2023
Simon Glassffab9a02017-04-26 22:27:56 -06002024config CMD_BSP
2025 bool "Enable board-specific commands"
2026 help
2027 (deprecated: instead, please define a Kconfig option for each command)
2028
2029 Some boards have board-specific commands which are only enabled
2030 during developemnt and need to be turned off for production. This
2031 option provides a way to control this. The commands that are enabled
2032 vary depending on the board.
2033
Eric Nelsonfaf4f052016-03-28 10:05:44 -07002034config CMD_BLOCK_CACHE
2035 bool "blkcache - control and stats for block cache"
2036 depends on BLOCK_CACHE
2037 default y if BLOCK_CACHE
2038 help
2039 Enable the blkcache command, which can be used to control the
2040 operation of the cache functions.
2041 This is most useful when fine-tuning the operation of the cache
2042 during development, but also allows the cache to be disabled when
2043 it might hurt performance (e.g. when using the ums command).
2044
Tobias Waldekranz91ec2592023-02-16 16:33:52 +01002045config CMD_BLKMAP
2046 bool "blkmap - Composable virtual block devices"
2047 depends on BLKMAP
2048 default y if BLKMAP
2049 help
2050 Create virtual block devices that are backed by various sources,
2051 e.g. RAM, or parts of an existing block device. Though much more
2052 rudimentary, it borrows a lot of ideas from Linux's device mapper
2053 subsystem.
2054
2055 Example use-cases:
2056 - Treat a region of RAM as a block device, i.e. a RAM disk. This let's
2057 you extract files from filesystem images stored in RAM (perhaps as a
2058 result of a TFTP transfer).
2059 - Create a virtual partition on an existing device. This let's you
2060 access filesystems that aren't stored at an exact partition
2061 boundary. A common example is a filesystem image embedded in an FIT
2062 image.
2063
Philippe Reynesa558b182020-07-24 18:19:47 +02002064config CMD_BUTTON
2065 bool "button"
2066 depends on BUTTON
2067 default y if BUTTON
2068 help
2069 Enable the 'button' command which allows to get the status of
2070 buttons supported by the board. The buttonss can be listed with
2071 'button list' and state can be known with 'button <label>'.
2072 Any button drivers can be controlled with this command, e.g.
2073 button_gpio.
2074
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002075config CMD_CACHE
2076 bool "icache or dcache"
2077 help
2078 Enable the "icache" and "dcache" commands
2079
Heinrich Schuchardt13ea6852018-09-07 19:43:11 +02002080config CMD_CONITRACE
2081 bool "conitrace - trace console input codes"
2082 help
2083 Enable the 'conitrace' command which displays the codes received
2084 from the console input as hexadecimal numbers.
2085
Anatolij Gustschine0455a42018-12-01 10:47:20 +01002086config CMD_CLS
2087 bool "Enable clear screen command 'cls'"
John Keeping36ce43b2022-11-23 17:16:14 +00002088 default y if LCD || VIDEO
Anatolij Gustschine0455a42018-12-01 10:47:20 +01002089 help
2090 Enable the 'cls' command which clears the screen contents
2091 on video frame buffer.
2092
AKASHI Takahiroe7c08832019-02-25 15:54:38 +09002093config CMD_EFIDEBUG
2094 bool "efidebug - display/configure UEFI environment"
2095 depends on EFI_LOADER
Heinrich Schuchardt3db35912019-05-11 09:53:33 +02002096 select EFI_DEVICE_PATH_TO_TEXT
AKASHI Takahiroe7c08832019-02-25 15:54:38 +09002097 help
2098 Enable the 'efidebug' command which provides a subset of UEFI
2099 shell utility with simplified functionality. It will be useful
2100 particularly for managing boot parameters as well as examining
2101 various EFI status for debugging.
2102
Masahisa Kojimac5ff0a02022-09-12 17:33:50 +09002103config CMD_EFICONFIG
2104 bool "eficonfig - provide menu-driven uefi variables maintenance interface"
Heinrich Schuchardt323bfa52023-02-08 09:57:00 +01002105 default y if !HAS_BOARD_SIZE_LIMIT
Masahisa Kojimac5ff0a02022-09-12 17:33:50 +09002106 depends on CMD_BOOTEFI_BOOTMGR
Heinrich Schuchardtaecf40e2023-02-08 13:56:33 +01002107 select MENU
Masahisa Kojimac5ff0a02022-09-12 17:33:50 +09002108 help
2109 Enable the 'eficonfig' command which provides the menu-driven UEFI
2110 variable maintenance interface.
2111
Heinrich Schuchardtf7d6b072018-12-26 17:20:35 +01002112config CMD_EXCEPTION
2113 bool "exception - raise exception"
Heinrich Schuchardtadaea9c2020-11-12 00:29:57 +01002114 depends on ARM || RISCV || SANDBOX || X86
Heinrich Schuchardtf7d6b072018-12-26 17:20:35 +01002115 help
2116 Enable the 'exception' command which allows to raise an exception.
2117
Simon Glassfc8a5292017-04-10 11:34:59 -06002118config CMD_LED
2119 bool "led"
Jan Kiszka89077ba2019-01-03 09:08:42 +01002120 depends on LED
Simon Glassfc8a5292017-04-10 11:34:59 -06002121 default y if LED
2122 help
2123 Enable the 'led' command which allows for control of LEDs supported
2124 by the board. The LEDs can be listed with 'led list' and controlled
2125 with led on/off/togle/blink. Any LED drivers can be controlled with
2126 this command, e.g. led_gpio.
2127
Simon Glassfbcd3b72023-02-01 13:19:24 -07002128config CMD_INI
2129 bool "ini"
2130 help
2131 Enable the 'ini' command which allows a .ini file to be parsed and
2132 placed into environment variables. Please check the source code for
2133 this as there is no documentation.
2134
Chris Packham3e257df2017-04-29 15:20:28 +12002135config CMD_DATE
2136 bool "date"
2137 default y if DM_RTC
AKASHI Takahiro51ba5222019-11-13 09:44:49 +09002138 select LIB_DATE
Chris Packham3e257df2017-04-29 15:20:28 +12002139 help
2140 Enable the 'date' command for getting/setting the time/date in RTC
2141 devices.
2142
Rasmus Villemoescc092022020-07-06 22:01:15 +02002143config CMD_RTC
2144 bool "rtc"
2145 depends on DM_RTC
2146 help
2147 Enable the 'rtc' command for low-level access to RTC devices.
2148
Simon Glass29499a02016-01-17 20:53:51 -07002149config CMD_TIME
2150 bool "time"
2151 help
2152 Run commands and summarize execution time.
2153
Simon Glassfa744522017-05-17 03:25:23 -06002154config CMD_GETTIME
2155 bool "gettime - read elapsed time"
2156 help
2157 Enable the 'gettime' command which reads the elapsed time since
2158 U-Boot started running. This shows the time in seconds and
2159 milliseconds. See also the 'bootstage' command which provides more
2160 flexibility for boot timing.
2161
Samuel Dionne-Riele69e1f12022-08-18 15:44:04 -04002162config CMD_PAUSE
2163 bool "pause command"
2164 help
2165 Delay execution waiting for any user input.
2166 Useful to allow the user to read a failure log.
2167
Heinrich Schuchardta31a5942019-12-24 22:17:37 +01002168config CMD_RNG
2169 bool "rng command"
2170 depends on DM_RNG
Sughosh Ganu6daac6b2022-07-22 21:32:09 +05302171 default y if SANDBOX
Heinrich Schuchardta31a5942019-12-24 22:17:37 +01002172 select HEXDUMP
2173 help
2174 Print bytes from the hardware random number generator.
2175
Chris Morgan61a96182021-08-25 11:22:57 -05002176config CMD_KASLRSEED
2177 bool "kaslrseed"
2178 depends on DM_RNG
2179 help
2180 Set the kaslr-seed in the chosen node with entropy provided by a
2181 hardware random number generator.
2182
Bin Meng7c4f7be2020-10-13 18:45:05 +08002183config CMD_SLEEP
Simon Glass29499a02016-01-17 20:53:51 -07002184 bool "sleep"
2185 default y
2186 help
2187 Delay execution for some time
2188
Ashok Reddy Soma1e6f9962022-01-17 10:16:50 +01002189config CMD_MP
2190 bool "support for multiprocessor commands"
2191 depends on MP
2192 default y
Siva Durga Prasad Paladugu8e45f1a2018-06-19 12:24:23 +02002193 help
Ashok Reddy Soma1e6f9962022-01-17 10:16:50 +01002194 This enables commands to bringup different processors
2195 in multiprocessor cases.
Siva Durga Prasad Paladugu8e45f1a2018-06-19 12:24:23 +02002196
Simon Glass29499a02016-01-17 20:53:51 -07002197config CMD_TIMER
2198 bool "timer"
2199 help
2200 Access the system timer.
2201
Simon Glass29499a02016-01-17 20:53:51 -07002202config CMD_SOUND
2203 bool "sound"
2204 depends on SOUND
2205 help
2206 This provides basic access to the U-Boot's sound support. The main
2207 feature is to play a beep.
2208
2209 sound init - set up sound system
2210 sound play - play a sound
2211
Patrice Chotard7b81c052019-11-25 09:07:38 +01002212config CMD_SYSBOOT
2213 bool "sysboot"
John Keeping9b60a172022-07-28 11:19:15 +01002214 select PXE_UTILS
Patrice Chotard7b81c052019-11-25 09:07:38 +01002215 help
2216 Boot image via local extlinux.conf file
2217
Miao Yan92106272016-05-22 19:37:17 -07002218config CMD_QFW
Tom Rinibcb3c8d2016-05-06 10:40:22 -04002219 bool "qfw"
Miao Yan4fcd7f22016-05-22 19:37:14 -07002220 select QFW
Tom Rinibcb3c8d2016-05-06 10:40:22 -04002221 help
2222 This provides access to the QEMU firmware interface. The main
2223 feature is to allow easy loading of files passed to qemu-system
2224 via -kernel / -initrd
Konstantin Porotchkin97d26782016-12-08 12:22:28 +02002225
Frédéric Danised2e8e42020-03-20 10:59:22 +01002226config CMD_PSTORE
2227 bool "pstore"
2228 help
2229 This provides access to Linux PStore with Rammoops backend. The main
2230 feature is to allow to display or save PStore records.
2231
2232 See doc/pstore.rst for more information.
2233
2234if CMD_PSTORE
2235
2236config CMD_PSTORE_MEM_ADDR
2237 hex "Memory Address"
2238 depends on CMD_PSTORE
2239 help
2240 Base addr used for PStore ramoops memory, should be identical to
2241 ramoops.mem_address parameter used by kernel
2242
2243config CMD_PSTORE_MEM_SIZE
2244 hex "Memory size"
2245 depends on CMD_PSTORE
2246 default "0x10000"
2247 help
2248 Size of PStore ramoops memory, should be identical to ramoops.mem_size
2249 parameter used by kernel, a power of 2 and larger than the sum of the
2250 record sizes
2251
2252config CMD_PSTORE_RECORD_SIZE
2253 hex "Dump record size"
2254 depends on CMD_PSTORE
2255 default "0x1000"
2256 help
2257 Size of each dump done on oops/panic, should be identical to
2258 ramoops.record_size parameter used by kernel and a power of 2
2259 Must be non-zero
2260
2261config CMD_PSTORE_CONSOLE_SIZE
2262 hex "Kernel console log size"
2263 depends on CMD_PSTORE
2264 default "0x1000"
2265 help
2266 Size of kernel console log, should be identical to
2267 ramoops.console_size parameter used by kernel and a power of 2
2268 Must be non-zero
2269
2270config CMD_PSTORE_FTRACE_SIZE
2271 hex "FTrace log size"
2272 depends on CMD_PSTORE
2273 default "0x1000"
2274 help
2275 Size of ftrace log, should be identical to ramoops.ftrace_size
2276 parameter used by kernel and a power of 2
2277
2278config CMD_PSTORE_PMSG_SIZE
2279 hex "User space message log size"
2280 depends on CMD_PSTORE
2281 default "0x1000"
2282 help
2283 Size of user space message log, should be identical to
2284 ramoops.pmsg_size parameter used by kernel and a power of 2
2285
2286config CMD_PSTORE_ECC_SIZE
2287 int "ECC size"
2288 depends on CMD_PSTORE
2289 default "0"
2290 help
2291 if non-zero, the option enables ECC support and specifies ECC buffer
2292 size in bytes (1 is a special value, means 16 bytes ECC), should be
2293 identical to ramoops.ramoops_ecc parameter used by kernel
2294
2295endif
2296
Konstantin Porotchkin97d26782016-12-08 12:22:28 +02002297source "cmd/mvebu/Kconfig"
2298
Simon Glass89342ef2017-08-04 16:34:55 -06002299config CMD_TERMINAL
2300 bool "terminal - provides a way to attach a serial terminal"
2301 help
2302 Provides a 'cu'-like serial terminal command. This can be used to
2303 access other serial ports from the system console. The terminal
2304 is very simple with no special processing of characters. As with
2305 cu, you can press ~. (tilde followed by period) to exit.
2306
Simon Glass6d56aad2017-08-04 16:35:02 -06002307config CMD_UUID
2308 bool "uuid, guid - generation of unique IDs"
Adam Ford70c8f052018-02-06 12:14:28 -06002309 select LIB_UUID
Simon Glass6d56aad2017-08-04 16:35:02 -06002310 help
2311 This enables two commands:
2312
2313 uuid - generate random Universally Unique Identifier
2314 guid - generate Globally Unique Identifier based on random UUID
2315
2316 The two commands are very similar except for the endianness of the
2317 output.
2318
Simon Glass724e2a42022-10-06 08:36:06 -06002319config CMD_VIDCONSOLE
2320 bool "lcdputs and setcurs"
Simon Glass52cb5042022-10-18 07:46:31 -06002321 depends on VIDEO
Simon Glass724e2a42022-10-06 08:36:06 -06002322 default y
2323 help
2324 Enabling this will provide 'setcurs' and 'lcdputs' commands which
2325 support cursor positioning and drawing strings on the video
2326 console (framebuffer).
2327
2328 The name 'lcdputs' is a bit of a misnomer, but so named because the
2329 video device is often an LCD.
2330
Dzmitry Sankouskibb165e42023-03-07 13:21:16 +03002331config CMD_SELECT_FONT
2332 bool "select font size"
2333 depends on VIDEO
2334 default n
2335 help
2336 Enabling this will provide 'font' command.
2337 Allows font selection at runtime.
2338
Simon Glass29499a02016-01-17 20:53:51 -07002339endmenu
2340
Lokesh Vutla962c4e02017-12-29 11:47:49 +05302341source "cmd/ti/Kconfig"
2342
Simon Glass29499a02016-01-17 20:53:51 -07002343config CMD_BOOTSTAGE
2344 bool "Enable the 'bootstage' command"
2345 depends on BOOTSTAGE
2346 help
2347 Add a 'bootstage' command which supports printing a report
2348 and un/stashing of bootstage data.
2349
2350menu "Power commands"
2351config CMD_PMIC
2352 bool "Enable Driver Model PMIC command"
2353 depends on DM_PMIC
2354 help
2355 This is the pmic command, based on a driver model pmic's API.
2356 Command features are unchanged:
2357 - list - list pmic devices
2358 - pmic dev <id> - show or [set] operating pmic device (NEW)
2359 - pmic dump - dump registers
2360 - pmic read address - read byte of register at address
2361 - pmic write address - write byte to register at address
2362 The only one change for this command is 'dev' subcommand.
2363
2364config CMD_REGULATOR
2365 bool "Enable Driver Model REGULATOR command"
2366 depends on DM_REGULATOR
2367 help
2368 This command is based on driver model regulator's API.
2369 User interface features:
2370 - list - list regulator devices
2371 - regulator dev <id> - show or [set] operating regulator device
2372 - regulator info - print constraints info
2373 - regulator status - print operating status
2374 - regulator value <val] <-f> - print/[set] voltage value [uV]
2375 - regulator current <val> - print/[set] current value [uA]
2376 - regulator mode <id> - print/[set] operating mode id
2377 - regulator enable - enable the regulator output
2378 - regulator disable - disable the regulator output
2379
2380 The '-f' (force) option can be used for set the value which exceeds
2381 the limits, which are found in device-tree and are kept in regulator's
Simon Glass71fa5b42020-12-03 16:55:18 -07002382 uclass plat structure.
Simon Glass29499a02016-01-17 20:53:51 -07002383
2384endmenu
2385
2386menu "Security commands"
Simon Glass528fdd12017-04-26 22:27:49 -06002387config CMD_AES
2388 bool "Enable the 'aes' command"
2389 select AES
2390 help
2391 This provides a means to encrypt and decrypt data using the AES
2392 (Advanced Encryption Standard). This algorithm uses a symetric key
2393 and is widely used as a streaming cipher. Different key lengths are
2394 supported by the algorithm but this command only supports 128 bits
2395 at present.
2396
Simon Glass311ec4f2017-04-26 22:27:53 -06002397config CMD_BLOB
2398 bool "Enable the 'blob' command"
Aymen Sghaierf18c71f2021-03-25 17:30:27 +08002399 depends on !MX6ULL && !MX6SLL && !MX6SL
2400 select IMX_HAB if ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP || ARCH_IMX8M
Simon Glass311ec4f2017-04-26 22:27:53 -06002401 help
2402 This is used with the Freescale secure boot mechanism.
2403
2404 Freescale's SEC block has built-in Blob Protocol which provides
2405 a method for protecting user-defined data across system power
2406 cycles. SEC block protects data in a data structure called a Blob,
2407 which provides both confidentiality and integrity protection.
2408
2409 Encapsulating data as a blob
2410 Each time that the Blob Protocol is used to protect data, a
2411 different randomly generated key is used to encrypt the data.
2412 This random key is itself encrypted using a key which is derived
2413 from SoC's non-volatile secret key and a 16 bit Key identifier.
2414 The resulting encrypted key along with encrypted data is called a
2415 blob. The non-volatile secure key is available for use only during
2416 secure boot.
2417
2418 During decapsulation, the reverse process is performed to get back
2419 the original data.
2420
2421 Sub-commands:
Michal Simekf751ff52018-07-23 15:55:12 +02002422 blob enc - encapsulating data as a cryptgraphic blob
Simon Glass311ec4f2017-04-26 22:27:53 -06002423 blob dec - decapsulating cryptgraphic blob to get the data
2424
2425 Syntax:
2426
2427 blob enc src dst len km
2428
2429 Encapsulate and create blob of data $len bytes long
2430 at address $src and store the result at address $dst.
2431 $km is the 16 byte key modifier is also required for
2432 generation/use as key for cryptographic operation. Key
2433 modifier should be 16 byte long.
2434
2435 blob dec src dst len km
2436
2437 Decapsulate the blob of data at address $src and
2438 store result of $len byte at addr $dst.
2439 $km is the 16 byte key modifier is also required for
2440 generation/use as key for cryptographic operation. Key
2441 modifier should be 16 byte long.
2442
Simon Glass027608e2017-05-17 03:25:25 -06002443config CMD_HASH
2444 bool "Support 'hash' command"
Simon Glassb22ec7a2017-05-17 09:05:34 -06002445 select HASH
Simon Glass027608e2017-05-17 03:25:25 -06002446 help
2447 This provides a way to hash data in memory using various supported
2448 algorithms (such as SHA1, MD5, CRC32). The computed digest can be
2449 saved to memory or to an environment variable. It is also possible
2450 to verify a hash against data in memory.
2451
Michalis Pappasd382d222018-04-13 10:40:57 +03002452config CMD_HVC
2453 bool "Support the 'hvc' command"
2454 depends on ARM_SMCCC
2455 help
2456 Allows issuing Hypervisor Calls (HVCs). Mostly useful for
2457 development and testing.
2458
2459config CMD_SMC
2460 bool "Support the 'smc' command"
2461 depends on ARM_SMCCC
2462 help
2463 Allows issuing Secure Monitor Calls (SMCs). Mostly useful for
2464 development and testing.
2465
Daniel Thompsona9e2c672017-05-19 17:26:58 +01002466config HASH_VERIFY
2467 bool "hash -v"
2468 depends on CMD_HASH
2469 help
2470 Add -v option to verify data against a hash.
2471
Jorge Ramirez-Ortiz7d80df92021-02-14 16:27:24 +01002472config CMD_SCP03
2473 bool "scp03 - SCP03 enable and rotate/provision operations"
2474 depends on SCP03
2475 help
2476 This command provides access to a Trusted Application
2477 running in a TEE to request Secure Channel Protocol 03
2478 (SCP03) enablement and/or rotation of its SCP03 keys.
2479
Miquel Raynal294f82a2018-05-15 11:57:05 +02002480config CMD_TPM_V1
2481 bool
2482
2483config CMD_TPM_V2
2484 bool
2485
Simon Glass29499a02016-01-17 20:53:51 -07002486config CMD_TPM
2487 bool "Enable the 'tpm' command"
Miquel Raynal294f82a2018-05-15 11:57:05 +02002488 depends on TPM_V1 || TPM_V2
2489 select CMD_TPM_V1 if TPM_V1
2490 select CMD_TPM_V2 if TPM_V2
Simon Glass29499a02016-01-17 20:53:51 -07002491 help
2492 This provides a means to talk to a TPM from the command line. A wide
2493 range of commands if provided - see 'tpm help' for details. The
2494 command requires a suitable TPM on your board and the correct driver
2495 must be enabled.
2496
Miquel Raynal294f82a2018-05-15 11:57:05 +02002497if CMD_TPM
2498
Simon Glass29499a02016-01-17 20:53:51 -07002499config CMD_TPM_TEST
2500 bool "Enable the 'tpm test' command"
Miquel Raynal294f82a2018-05-15 11:57:05 +02002501 depends on TPM_V1
Simon Glass29499a02016-01-17 20:53:51 -07002502 help
Miquel Raynal294f82a2018-05-15 11:57:05 +02002503 This provides a a series of tests to confirm that the TPMv1.x is
2504 working correctly. The tests cover initialisation, non-volatile RAM,
2505 extend, global lock and checking that timing is within expectations.
2506 The tests pass correctly on Infineon TPMs but may need to be adjusted
Simon Glass29499a02016-01-17 20:53:51 -07002507 for other devices.
2508
Miquel Raynal294f82a2018-05-15 11:57:05 +02002509endif
2510
Simon Glass29499a02016-01-17 20:53:51 -07002511endmenu
2512
Moritz Fischer62b30272016-10-04 17:08:08 -07002513menu "Firmware commands"
2514config CMD_CROS_EC
2515 bool "Enable crosec command"
2516 depends on CROS_EC
2517 default y
2518 help
2519 Enable command-line access to the Chrome OS EC (Embedded
2520 Controller). This provides the 'crosec' command which has
2521 a number of sub-commands for performing EC tasks such as
2522 updating its flash, accessing a small saved context area
2523 and talking to the I2C bus behind the EC (if there is one).
2524endmenu
2525
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002526menu "Filesystem commands"
Marek Behún27cec792017-09-03 17:00:30 +02002527config CMD_BTRFS
2528 bool "Enable the 'btrsubvol' command"
2529 select FS_BTRFS
2530 help
2531 This enables the 'btrsubvol' command to list subvolumes
2532 of a BTRFS filesystem. There are no special commands for
2533 listing BTRFS directories or loading BTRFS files - this
2534 can be done by the generic 'fs' commands (see CMD_FS_GENERIC)
2535 when BTRFS is enabled (see FS_BTRFS).
2536
Simon Glass0501e3e2017-04-26 22:27:58 -06002537config CMD_CBFS
2538 bool "Enable the 'cbfs' command"
Simon Glass579b51a2017-04-26 22:27:59 -06002539 depends on FS_CBFS
Simon Glass0501e3e2017-04-26 22:27:58 -06002540 help
2541 Define this to enable support for reading from a Coreboot
2542 filesystem. This is a ROM-based filesystem used for accessing files
2543 on systems that use coreboot as the first boot-loader and then load
2544 U-Boot to actually boot the Operating System. Available commands are
2545 cbfsinit, cbfsinfo, cbfsls and cbfsload.
2546
Simon Glass519805e2017-04-26 22:28:03 -06002547config CMD_CRAMFS
2548 bool "Enable the 'cramfs' command"
Simon Glass690f5092017-04-26 22:28:04 -06002549 depends on FS_CRAMFS
Simon Glass519805e2017-04-26 22:28:03 -06002550 help
2551 This provides commands for dealing with CRAMFS (Compressed ROM
2552 filesystem). CRAMFS is useful when space is tight since files are
2553 compressed. Two commands are provided:
2554
2555 cramfsls - lists files in a cramfs image
2556 cramfsload - loads a file from a cramfs image
2557
Huang Jiananc8eefae2022-02-26 15:05:50 +08002558config CMD_EROFS
2559 bool "EROFS command support"
2560 select FS_EROFS
2561 help
2562 Support for the EROFS fs
2563
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002564config CMD_EXT2
2565 bool "ext2 command support"
Tuomas Tynkkynen388f9a02018-01-05 02:45:17 +02002566 select FS_EXT4
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002567 help
2568 Enables EXT2 FS command
2569
2570config CMD_EXT4
2571 bool "ext4 command support"
Tuomas Tynkkynen388f9a02018-01-05 02:45:17 +02002572 select FS_EXT4
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002573 help
2574 Enables EXT4 FS command
2575
2576config CMD_EXT4_WRITE
2577 depends on CMD_EXT4
2578 bool "ext4 write command support"
Tuomas Tynkkynen388f9a02018-01-05 02:45:17 +02002579 select EXT4_WRITE
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002580 help
2581 Enables EXT4 FS write command
2582
2583config CMD_FAT
2584 bool "FAT command support"
Sekhar Nori1909a7b2017-06-02 17:53:59 +05302585 select FS_FAT
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002586 help
2587 Support for the FAT fs
2588
Joao Marcos Costaa12c66f2020-07-30 15:33:48 +02002589config CMD_SQUASHFS
2590 bool "SquashFS command support"
2591 select FS_SQUASHFS
2592 help
2593 Enables SquashFS filesystem commands (e.g. load, ls).
2594
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002595config CMD_FS_GENERIC
2596 bool "filesystem commands"
2597 help
2598 Enables filesystem commands (e.g. load, ls) that work for multiple
2599 fs types.
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002600
Josua Mayerf5ebfe72017-04-24 10:10:45 +02002601config CMD_FS_UUID
2602 bool "fsuuid command"
2603 help
2604 Enables fsuuid command for filesystem UUID.
2605
Simon Glassc4abb4b2017-05-17 03:25:37 -06002606config CMD_JFFS2
2607 bool "jffs2 command"
Simon Glass8c6c7c22017-05-17 03:25:38 -06002608 select FS_JFFS2
Simon Glassc4abb4b2017-05-17 03:25:37 -06002609 help
2610 Enables commands to support the JFFS2 (Journalling Flash File System
2611 version 2) filesystem. This enables fsload, ls and fsinfo which
2612 provide the ability to load files, list directories and obtain
2613 filesystem information.
2614
Tom Rini9c8268d2021-12-17 18:08:47 -05002615config JFFS2_DEV
2616 string "Default device for JFFS2"
2617 depends on CMD_JFFS2
2618 default "nor0"
2619 help
2620 The default device to use with the jffs2 command.
2621
2622config JFFS2_PART_OFFSET
2623 hex "Default offset within flash to locate the JFFS2 image"
2624 depends on CMD_JFFS2
2625 default 0x0
2626 help
2627 The default offset within flash to locate the JFFS2 image.
2628
2629config JFFS2_PART_SIZE
2630 hex "Default size of JFFS2 partition"
2631 depends on CMD_JFFS2
2632 default 0xFFFFFFFF
2633 help
2634 The default size of the JFFS2 partition
2635
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002636config CMD_MTDPARTS
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002637 bool "MTD partition support"
Miquel Raynald2418202019-10-25 19:39:30 +02002638 depends on MTD
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002639 help
Miquel Raynal007dddc2018-09-29 12:58:30 +02002640 MTD partitioning tool support.
2641 It is strongly encouraged to avoid using this command
2642 anymore along with 'sf', 'nand', 'onenand'. One can still
2643 declare the partitions in the mtdparts environment variable
2644 but better use the MTD stack and the 'mtd' command instead.
Maxime Ripardbf2fbd12017-02-27 18:22:04 +01002645
Simon Glass66d7db02017-08-04 16:34:30 -06002646config CMD_MTDPARTS_SPREAD
2647 bool "Padd partition size to take account of bad blocks"
2648 depends on CMD_MTDPARTS
2649 help
2650 This enables the 'spread' sub-command of the mtdparts command.
2651 This command will modify the existing mtdparts variable by increasing
2652 the size of the partitions such that 1) each partition's net size is
2653 at least as large as the size specified in the mtdparts variable and
2654 2) each partition starts on a good block.
2655
Alexander Dahl6cae4f42019-10-30 16:53:55 +01002656config CMD_MTDPARTS_SHOW_NET_SIZES
2657 bool "Show net size (w/o bad blocks) of partitions"
2658 depends on CMD_MTDPARTS
2659 help
2660 Adds two columns to the printed partition table showing the
2661 effective usable size of a partition, if bad blocks are taken
2662 into account.
2663
Miquel Raynalf21322f2019-10-03 19:50:25 +02002664config MTDIDS_DEFAULT
2665 string "Default MTD IDs"
Miquel Raynald2418202019-10-25 19:39:30 +02002666 depends on MTD || SPI_FLASH
Patrick Delaunay1e8e8282022-12-08 09:10:13 +01002667 depends on !SYS_MTDPARTS_RUNTIME
Miquel Raynalf21322f2019-10-03 19:50:25 +02002668 help
2669 Defines a default MTD IDs list for use with MTD partitions in the
2670 Linux MTD command line partitions format.
2671
2672config MTDPARTS_DEFAULT
2673 string "Default MTD partition scheme"
Miquel Raynald2418202019-10-25 19:39:30 +02002674 depends on MTD || SPI_FLASH
Patrick Delaunay1e8e8282022-12-08 09:10:13 +01002675 depends on !SYS_MTDPARTS_RUNTIME
Miquel Raynalf21322f2019-10-03 19:50:25 +02002676 help
2677 Defines a default MTD partitioning scheme in the Linux MTD command
2678 line partitions format
2679
Simon Glassed4ee312017-08-04 16:34:41 -06002680config CMD_REISER
2681 bool "reiser - Access to reiserfs filesystems"
2682 help
2683 This provides two commands which operate on a resierfs filesystem,
2684 commonly used some years ago:
2685
2686 reiserls - list files
2687 reiserload - load a file
2688
Simon Glass19c5caf2017-08-04 16:34:58 -06002689config CMD_YAFFS2
2690 bool "yaffs2 - Access of YAFFS2 filesystem"
2691 depends on YAFFS2
2692 default y
2693 help
2694 This provides commands for accessing a YAFFS2 filesystem. Yet
2695 Another Flash Filesystem 2 is a filesystem designed specifically
2696 for NAND flash. It incorporates bad-block management and ensures
2697 that device writes are sequential regardless of filesystem
2698 activity.
2699
Simon Glassdc82dee2017-08-04 16:35:04 -06002700config CMD_ZFS
2701 bool "zfs - Access of ZFS filesystem"
2702 help
2703 This provides commands to accessing a ZFS filesystem, commonly used
2704 on Solaris systems. Two sub-commands are provided:
2705
2706 zfsls - list files in a directory
2707 zfsload - load a file
2708
2709 See doc/README.zfs for more details.
2710
Dinh Nguyen0685bef2016-04-21 09:05:23 -05002711endmenu
2712
Simon Glass3423f212017-04-26 22:27:52 -06002713menu "Debug commands"
2714
Simon Glasse1efad22021-03-15 18:00:24 +13002715config CMD_CBSYSINFO
2716 bool "cbsysinfo"
2717 depends on X86
2718 default y if SYS_COREBOOT
2719 help
2720 This provides information about the coreboot sysinfo table stored in
2721 memory by coreboot before jumping to U-Boot. It can be useful for
2722 debugging the beaaviour of coreboot or U-Boot.
2723
Stefan Roese2702b272022-09-02 13:57:51 +02002724config CMD_CYCLIC
2725 bool "cyclic - Show information about cyclic functions"
2726 depends on CYCLIC
2727 default y
2728 help
2729 This enables the 'cyclic' command which provides information about
2730 cyclic execution functions. This infrastructure allows registering
2731 functions to be executed cyclically, e.g. every 100ms. These commands
2732 are supported:
2733
2734 cyclic list - list cyclic functions
2735 cyclic cyclic demo <cycletime_ms> <delay_us> - register cyclic
2736 demo function
2737
2738 See doc/develop/cyclic.rst for more details.
2739
Simon Glass20ea5632017-04-26 22:28:08 -06002740config CMD_DIAG
2741 bool "diag - Board diagnostics"
2742 help
2743 This command provides access to board diagnostic tests. These are
2744 called Power-on Self Tests (POST). The command allows listing of
2745 available tests and running either all the tests, or specific tests
2746 identified by name.
2747
Simon Glass3304fa82022-03-04 08:43:06 -07002748config CMD_EVENT
2749 bool "event - Show information about events"
Tom Rini7d3684a2023-01-16 15:46:49 -05002750 depends on EVENT
Simon Glass3304fa82022-03-04 08:43:06 -07002751 default y if EVENT_DEBUG
2752 help
2753 This enables the 'event' command which provides information about
2754 events and event-handler routines. This can help to device event
2755 hadling.
2756
Simon Glass4c3a6202017-05-17 03:25:39 -06002757config CMD_IRQ
2758 bool "irq - Show information about interrupts"
Pragnesh Patel3375e0b2020-08-24 20:38:55 +05302759 depends on !ARM && !MIPS && !RISCV && !SH
Simon Glass4c3a6202017-05-17 03:25:39 -06002760 help
2761 This enables two commands:
2762
2763 interrupts - enable or disable interrupts
2764 irqinfo - print device-specific interrupt information
Simon Glassfd9948c2017-05-17 03:25:40 -06002765
2766config CMD_KGDB
2767 bool "kgdb - Allow debugging of U-Boot with gdb"
Michal Simek9d364412018-10-04 14:26:13 +02002768 depends on PPC
Simon Glassfd9948c2017-05-17 03:25:40 -06002769 help
2770 This enables a 'kgdb' command which allows gdb to connect to U-Boot
2771 over a serial link for debugging purposes. This allows
2772 single-stepping, inspecting variables, etc. This is supported only
2773 on PowerPC at present.
2774
Simon Glass5684f8f2017-12-04 13:48:26 -07002775config CMD_LOG
2776 bool "log - Generation, control and access to logging"
Heinrich Schuchardt74bad682018-04-19 22:02:46 +02002777 select LOG
Sean Anderson304882e2020-10-27 19:55:38 -04002778 select GETOPT
Simon Glass5684f8f2017-12-04 13:48:26 -07002779 help
2780 This provides access to logging features. It allows the output of
2781 log data to be controlled to a limited extent (setting up the default
Simon Glass14c8a062017-12-04 13:48:27 -07002782 maximum log level for emitting of records). It also provides access
2783 to a command used for testing the log system.
Simon Glass5684f8f2017-12-04 13:48:26 -07002784
Simon Glass126cb792017-08-04 16:34:59 -06002785config CMD_TRACE
2786 bool "trace - Support tracing of function calls and timing"
Simon Glass84b77112021-11-24 09:26:39 -07002787 depends on TRACE
2788 default y
Simon Glass126cb792017-08-04 16:34:59 -06002789 help
2790 Enables a command to control using of function tracing within
2791 U-Boot. This allows recording of call traces including timing
2792 information. The command can write data to memory for exporting
Simon Glassbfce7fc2019-04-08 13:20:51 -06002793 for analysis (e.g. using bootchart). See doc/README.trace for full
Simon Glass126cb792017-08-04 16:34:59 -06002794 details.
2795
Igor Opaniuk60291192018-06-03 21:56:39 +03002796config CMD_AVB
2797 bool "avb - Android Verified Boot 2.0 operations"
Igor Opaniuke0df0352018-07-17 14:33:25 +03002798 depends on AVB_VERIFY
Igor Opaniuk60291192018-06-03 21:56:39 +03002799 help
2800 Enables a "avb" command to perform verification of partitions using
2801 Android Verified Boot 2.0 functionality. It includes such subcommands:
2802 avb init - initialize avb2 subsystem
2803 avb read_rb - read rollback index
2804 avb write_rb - write rollback index
2805 avb is_unlocked - check device lock state
2806 avb get_uuid - read and print uuid of a partition
2807 avb read_part - read data from partition
2808 avb read_part_hex - read data from partition and output to stdout
2809 avb write_part - write data to partition
2810 avb verify - run full verification chain
Joel Peshkin369d87a2021-04-11 11:21:58 +02002811
2812config CMD_STACKPROTECTOR_TEST
2813 bool "Test command for stack protector"
2814 depends on STACKPROTECTOR
2815 help
2816 Enable stackprot_test command
2817 The stackprot_test command will force a stack overrun to test
2818 the stack smashing detection mechanisms.
2819
Simon Glass3423f212017-04-26 22:27:52 -06002820endmenu
2821
Heiko Schocher09dbb852016-09-21 07:58:19 +02002822config CMD_UBI
2823 tristate "Enable UBI - Unsorted block images commands"
Heiko Schocher09dbb852016-09-21 07:58:19 +02002824 select MTD_UBI
2825 help
2826 UBI is a software layer above MTD layer which admits use of LVM-like
2827 logical volumes on top of MTD devices, hides some complexities of
2828 flash chips like wear and bad blocks and provides some other useful
2829 capabilities. Please, consult the MTD web site for more details
2830 (www.linux-mtd.infradead.org). Activate this option if you want
2831 to use U-Boot UBI commands.
Miquel Raynal12f1ff12018-09-29 12:58:29 +02002832 It is also strongly encouraged to also enable CONFIG_MTD to get full
2833 partition support.
Heiko Schocher09dbb852016-09-21 07:58:19 +02002834
Philippe Reynes10d53222020-03-23 19:20:47 +01002835config CMD_UBI_RENAME
2836 bool "Enable rename"
2837 depends on CMD_UBI
Philippe Reynes10d53222020-03-23 19:20:47 +01002838 help
2839 Enable a "ubi" command to rename ubi volume:
2840 ubi rename <oldname> <newname>
2841
Boris Brezillonaa57d0f2017-02-27 18:22:06 +01002842config CMD_UBIFS
2843 tristate "Enable UBIFS - Unsorted block images filesystem commands"
Maxime Ripard1e6a0962017-03-03 14:53:22 +01002844 depends on CMD_UBI
Michal Simek84f3dec2018-07-23 15:55:13 +02002845 default y if CMD_UBI
Karl Beldan3418eeb2017-07-12 16:11:47 +00002846 select LZO
Pali Rohár67a8b272022-05-23 22:50:36 +02002847 select GZIP
Boris Brezillonaa57d0f2017-02-27 18:22:06 +01002848 help
2849 UBIFS is a file system for flash devices which works on top of UBI.
2850
Aswath Govindrajubb5b9fe2021-08-13 23:04:41 +05302851config MMC_SPEED_MODE_SET
2852 bool "set speed mode using mmc command"
2853 depends on CMD_MMC
2854 default n
2855 help
2856 Enable setting speed mode using mmc rescan and mmc dev commands.
2857 The speed mode is provided as the last argument in these commands
2858 and is indicated using the index from enum bus_mode in
2859 include/mmc.h. A speed mode can be set only if it has already
2860 been enabled in the device tree.
Alexey Romanov68c4a372023-01-10 13:56:47 +03002861
2862config CMD_MESON
2863 bool "Amlogic Meson commands"
2864 depends on ARCH_MESON
2865 default y
2866 help
2867 Enable useful commands for the Meson Soc family developed by Amlogic Inc.
Simon Glass29499a02016-01-17 20:53:51 -07002868endmenu