xref: /rk3399_rockchip-uboot/cmd/Kconfig (revision 269592719860245f3b3ba3fe48c6cb6c3cabdbb6)
1menu "Command line interface"
2
3config 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
14config HUSH_PARSER
15	bool "Use hush shell"
16	depends on CMDLINE
17	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
26config SYS_PROMPT
27	string "Shell prompt"
28	default "=> "
29	help
30	  This string is displayed in the command line to the left of the
31	  cursor.
32
33menu "Autoboot options"
34
35config AUTOBOOT
36	bool "Autoboot"
37	default y
38	help
39	  This enables the autoboot.  See doc/README.autoboot for detail.
40
41config AUTOBOOT_KEYED
42	bool "Stop autobooting via specific input key / string"
43	default n
44	help
45	  This option enables stopping (aborting) of the automatic
46	  boot feature only by issuing a specific input key or
47	  string. If not enabled, any input key will abort the
48	  U-Boot automatic booting process and bring the device
49	  to the U-Boot prompt for user input.
50
51config AUTOBOOT_PROMPT
52	string "Autoboot stop prompt"
53	depends on AUTOBOOT_KEYED
54	default "Autoboot in %d seconds\\n"
55	help
56	  This string is displayed before the boot delay selected by
57	  CONFIG_BOOTDELAY starts. If it is not defined	there is no
58	  output indicating that autoboot is in progress.
59
60	  Note that this define is used as the (only) argument to a
61	  printf() call, so it may contain '%' format specifications,
62	  provided that it also includes, sepearated by commas exactly
63	  like in a printf statement, the required arguments. It is
64	  the responsibility of the user to select only such arguments
65	  that are valid in the given context.
66
67config AUTOBOOT_ENCRYPTION
68	bool "Enable encryption in autoboot stopping"
69	depends on AUTOBOOT_KEYED
70	default n
71
72config AUTOBOOT_DELAY_STR
73	string "Delay autobooting via specific input key / string"
74	depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
75	help
76	  This option delays the automatic boot feature by issuing
77	  a specific input key or string. If CONFIG_AUTOBOOT_DELAY_STR
78	  or the environment variable "bootdelaykey" is specified
79	  and this string is received from console input before
80	  autoboot starts booting, U-Boot gives a command prompt. The
81	  U-Boot prompt will time out if CONFIG_BOOT_RETRY_TIME is
82	  used, otherwise it never times out.
83
84config AUTOBOOT_STOP_STR
85	string "Stop autobooting via specific input key / string"
86	depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
87	help
88	  This option enables stopping (aborting) of the automatic
89	  boot feature only by issuing a specific input key or
90	  string. If CONFIG_AUTOBOOT_STOP_STR or the environment
91	  variable "bootstopkey" is specified and this string is
92	  received from console input before autoboot starts booting,
93	  U-Boot gives a command prompt. The U-Boot prompt never
94	  times out, even if CONFIG_BOOT_RETRY_TIME is used.
95
96config AUTOBOOT_KEYED_CTRLC
97	bool "Enable Ctrl-C autoboot interruption"
98	depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
99	default n
100	help
101	  This option allows for the boot sequence to be interrupted
102	  by ctrl-c, in addition to the "bootdelaykey" and "bootstopkey".
103	  Setting this variable	provides an escape sequence from the
104	  limited "password" strings.
105
106config AUTOBOOT_STOP_STR_SHA256
107	string "Stop autobooting via SHA256 encrypted password"
108	depends on AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION
109	help
110	  This option adds the feature to only stop the autobooting,
111	  and therefore boot into the U-Boot prompt, when the input
112	  string / password matches a values that is encypted via
113	  a SHA256 hash and saved in the environment.
114
115endmenu
116
117comment "Commands"
118
119menu "Info commands"
120
121config CMD_BDI
122	bool "bdinfo"
123	default y
124	help
125	  Print board info
126
127config CMD_CONSOLE
128	bool "coninfo"
129	default y
130	help
131	  Print console devices and information.
132
133config CMD_CPU
134	bool "cpu"
135	help
136	  Print information about available CPUs. This normally shows the
137	  number of CPUs, type (e.g. manufacturer, architecture, product or
138	  internal name) and clock frequency. Other information may be
139	  available depending on the CPU driver.
140
141config CMD_LICENSE
142	bool "license"
143	help
144	  Print GPL license text
145
146endmenu
147
148menu "Boot commands"
149
150config CMD_BOOTD
151	bool "bootd"
152	default y
153	help
154	  Run the command stored in the environment "bootcmd", i.e.
155	  "bootd" does the same thing as "run bootcmd".
156
157config CMD_BOOTM
158	bool "bootm"
159	default y
160	help
161	  Boot an application image from the memory.
162
163config CMD_BOOTZ
164	bool "bootz"
165	help
166	  Boot the Linux zImage
167
168config CMD_BOOTI
169	bool "booti"
170	depends on ARM64
171	default y
172	help
173	  Boot an AArch64 Linux Kernel image from memory.
174
175config CMD_BOOTEFI
176	bool "bootefi"
177	depends on EFI_LOADER
178	default y
179	help
180	  Boot an EFI image from memory.
181
182config CMD_ELF
183	bool "bootelf, bootvx"
184	default y
185	help
186	  Boot an ELF/vxWorks image from the memory.
187
188config CMD_FDT
189	bool "Flattened Device Tree utility commands"
190	default y
191	depends on OF_LIBFDT
192	help
193	  Do FDT related setup before booting into the Operating System.
194
195config CMD_GO
196	bool "go"
197	default y
198	help
199	  Start an application at a given address.
200
201config CMD_RUN
202	bool "run"
203	default y
204	help
205	  Run the command in the given environment variable.
206
207config CMD_IMI
208	bool "iminfo"
209	default y
210	help
211	  Print header information for application image.
212
213config CMD_IMLS
214	bool "imls"
215	default y
216	help
217	  List all images found in flash
218
219config CMD_XIMG
220	bool "imxtract"
221	default y
222	help
223	  Extract a part of a multi-image.
224
225config CMD_POWEROFF
226	bool
227
228endmenu
229
230menu "Environment commands"
231
232config CMD_ASKENV
233	bool "ask for env variable"
234	help
235	  Ask for environment variable
236
237config CMD_EXPORTENV
238	bool "env export"
239	default y
240	help
241	  Export environments.
242
243config CMD_IMPORTENV
244	bool "env import"
245	default y
246	help
247	  Import environments.
248
249config CMD_EDITENV
250	bool "editenv"
251	default y
252	help
253	  Edit environment variable.
254
255config CMD_GREPENV
256	bool "search env"
257	help
258	  Allow for searching environment variables
259
260config CMD_SAVEENV
261	bool "saveenv"
262	default y
263	help
264	  Save all environment variables into the compiled-in persistent
265	  storage.
266
267config CMD_ENV_EXISTS
268	bool "env exists"
269	default y
270	help
271	  Check if a variable is defined in the environment for use in
272	  shell scripting.
273
274endmenu
275
276menu "Memory commands"
277
278config CMD_MEMORY
279	bool "md, mm, nm, mw, cp, cmp, base, loop"
280	default y
281	help
282	  Memeory commands.
283	    md - memory display
284	    mm - memory modify (auto-incrementing address)
285	    nm - memory modify (constant address)
286	    mw - memory write (fill)
287	    cp - memory copy
288	    cmp - memory compare
289	    base - print or set address offset
290	    loop - initinite loop on address range
291
292config CMD_CRC32
293	bool "crc32"
294	default y
295	help
296	  Compute CRC32.
297
298config LOOPW
299	bool "loopw"
300	help
301	  Infinite write loop on address range
302
303config CMD_MEMTEST
304	bool "memtest"
305	help
306	  Simple RAM read/write test.
307
308config CMD_MX_CYCLIC
309	bool "mdc, mwc"
310	help
311	  mdc - memory display cyclic
312	  mwc - memory write cyclic
313
314config CMD_MEMINFO
315	bool "meminfo"
316	help
317	  Display memory information.
318
319endmenu
320
321menu "Device access commands"
322
323config CMD_DM
324	bool "dm - Access to driver model information"
325	depends on DM
326	default y
327	help
328	  Provides access to driver model data structures and information,
329	  such as a list of devices, list of uclasses and the state of each
330	  device (e.g. activated). This is not required for operation, but
331	  can be useful to see the state of driver model for debugging or
332	  interest.
333
334config CMD_DEMO
335	bool "demo - Demonstration commands for driver model"
336	depends on DM
337	help
338	  Provides a 'demo' command which can be used to play around with
339	  driver model. To use this properly you will need to enable one or
340	  both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
341	  Otherwise you will always get an empty list of devices. The demo
342	  devices are defined in the sandbox device tree, so the easiest
343	  option is to use sandbox and pass the -d point to sandbox's
344	  u-boot.dtb file.
345
346config CMD_LOADB
347	bool "loadb"
348	default y
349	help
350	  Load a binary file over serial line.
351
352config CMD_LOADS
353	bool "loads"
354	default y
355	help
356	  Load an S-Record file over serial line
357
358config CMD_FLASH
359	bool "flinfo, erase, protect"
360	default y
361	help
362	  NOR flash support.
363	    flinfo - print FLASH memory information
364	    erase - FLASH memory
365	    protect - enable or disable FLASH write protection
366
367config CMD_ARMFLASH
368	#depends on FLASH_CFI_DRIVER
369	bool "armflash"
370	help
371	  ARM Ltd reference designs flash partition access
372
373config CMD_MMC
374	bool "mmc"
375	help
376	  MMC memory mapped support.
377
378config CMD_NAND
379	bool "nand"
380	help
381	  NAND support.
382
383config CMD_SF
384	bool "sf"
385	help
386	  SPI Flash support
387
388config CMD_SPI
389	bool "sspi"
390	help
391	  SPI utility command.
392
393config CMD_I2C
394	bool "i2c"
395	help
396	  I2C support.
397
398config CMD_USB
399	bool "usb"
400	help
401	  USB support.
402
403config CMD_DFU
404	bool "dfu"
405	help
406	  Enables the command "dfu" which is used to have U-Boot create a DFU
407	  class device via USB.
408
409config CMD_USB_MASS_STORAGE
410	bool "UMS usb mass storage"
411	help
412	  USB mass storage support
413
414config CMD_FPGA
415	bool "fpga"
416	default y
417	help
418	  FPGA support.
419
420config CMD_REMOTEPROC
421	bool "remoteproc"
422	depends on REMOTEPROC
423	help
424	  Support for Remote Processor control
425
426config CMD_GPIO
427	bool "gpio"
428	help
429	  GPIO support.
430
431endmenu
432
433
434menu "Shell scripting commands"
435
436config CMD_ECHO
437	bool "echo"
438	default y
439	help
440	  Echo args to console
441
442config CMD_ITEST
443	bool "itest"
444	default y
445	help
446	  Return true/false on integer compare.
447
448config CMD_SOURCE
449	bool "source"
450	default y
451	help
452	  Run script from memory
453
454config CMD_SETEXPR
455	bool "setexpr"
456	default y
457	help
458	  Evaluate boolean and math expressions and store the result in an env
459	    variable.
460	  Also supports loading the value at a memory location into a variable.
461	  If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
462
463endmenu
464
465menu "Network commands"
466
467config CMD_NET
468	bool "bootp, tftpboot"
469        select NET
470	default y
471	help
472	  Network commands.
473	  bootp - boot image via network using BOOTP/TFTP protocol
474	  tftpboot - boot image via network using TFTP protocol
475
476config CMD_TFTPPUT
477	bool "tftp put"
478	help
479	  TFTP put command, for uploading files to a server
480
481config CMD_TFTPSRV
482	bool "tftpsrv"
483	help
484	  Act as a TFTP server and boot the first received file
485
486config CMD_RARP
487	bool "rarpboot"
488	help
489	  Boot image via network using RARP/TFTP protocol
490
491config CMD_DHCP
492	bool "dhcp"
493	help
494	  Boot image via network using DHCP/TFTP protocol
495
496config CMD_NFS
497	bool "nfs"
498	default y
499	help
500	  Boot image via network using NFS protocol.
501
502config CMD_MII
503	bool "mii"
504	help
505	  Enable MII utility commands.
506
507config CMD_PING
508	bool "ping"
509	help
510	  Send ICMP ECHO_REQUEST to network host
511
512config CMD_CDP
513	bool "cdp"
514	help
515	  Perform CDP network configuration
516
517config CMD_SNTP
518	bool "sntp"
519	help
520	  Synchronize RTC via network
521
522config CMD_DNS
523	bool "dns"
524	help
525	  Lookup the IP of a hostname
526
527config CMD_LINK_LOCAL
528	bool "linklocal"
529	help
530	  Acquire a network IP address using the link-local protocol
531
532endmenu
533
534menu "Misc commands"
535
536config CMD_AMBAPP
537	bool "ambapp"
538	depends on LEON3
539	default y
540	help
541	  Lists AMBA Plug-n-Play information.
542
543config SYS_AMBAPP_PRINT_ON_STARTUP
544	bool "Show AMBA PnP info on startup"
545	depends on CMD_AMBAPP
546	default n
547	help
548	  Show AMBA Plug-n-Play information on startup.
549
550config CMD_BLOCK_CACHE
551	bool "blkcache - control and stats for block cache"
552	depends on BLOCK_CACHE
553	default y if BLOCK_CACHE
554	help
555	  Enable the blkcache command, which can be used to control the
556	  operation of the cache functions.
557	  This is most useful when fine-tuning the operation of the cache
558	  during development, but also allows the cache to be disabled when
559	  it might hurt performance (e.g. when using the ums command).
560
561config CMD_CACHE
562	bool "icache or dcache"
563	help
564	  Enable the "icache" and "dcache" commands
565
566config CMD_TIME
567	bool "time"
568	help
569	  Run commands and summarize execution time.
570
571# TODO: rename to CMD_SLEEP
572config CMD_MISC
573	bool "sleep"
574	default y
575	help
576	  Delay execution for some time
577
578config CMD_TIMER
579	bool "timer"
580	help
581	  Access the system timer.
582
583config CMD_SETGETDCR
584	bool "getdcr, setdcr, getidcr, setidcr"
585	depends on 4xx
586	default y
587	help
588	  getdcr - Get an AMCC PPC 4xx DCR's value
589	  setdcr - Set an AMCC PPC 4xx DCR's value
590	  getidcr - Get a register value via indirect DCR addressing
591	  setidcr - Set a register value via indirect DCR addressing
592
593config CMD_SOUND
594	bool "sound"
595	depends on SOUND
596	help
597	  This provides basic access to the U-Boot's sound support. The main
598	  feature is to play a beep.
599
600	     sound init   - set up sound system
601	     sound play   - play a sound
602
603config CMD_QFW
604	bool "qfw"
605	select QFW
606	help
607	  This provides access to the QEMU firmware interface.  The main
608	  feature is to allow easy loading of files passed to qemu-system
609	  via -kernel / -initrd
610endmenu
611
612config CMD_BOOTSTAGE
613	bool "Enable the 'bootstage' command"
614	depends on BOOTSTAGE
615	help
616	  Add a 'bootstage' command which supports printing a report
617	  and un/stashing of bootstage data.
618
619menu "Power commands"
620config CMD_PMIC
621	bool "Enable Driver Model PMIC command"
622	depends on DM_PMIC
623	help
624	  This is the pmic command, based on a driver model pmic's API.
625	  Command features are unchanged:
626	  - list               - list pmic devices
627	  - pmic dev <id>      - show or [set] operating pmic device (NEW)
628	  - pmic dump          - dump registers
629	  - pmic read address  - read byte of register at address
630	  - pmic write address - write byte to register at address
631	  The only one change for this command is 'dev' subcommand.
632
633config CMD_REGULATOR
634	bool "Enable Driver Model REGULATOR command"
635	depends on DM_REGULATOR
636	help
637	  This command is based on driver model regulator's API.
638	  User interface features:
639	  - list               - list regulator devices
640	  - regulator dev <id> - show or [set] operating regulator device
641	  - regulator info     - print constraints info
642	  - regulator status   - print operating status
643	  - regulator value <val] <-f> - print/[set] voltage value [uV]
644	  - regulator current <val>    - print/[set] current value [uA]
645	  - regulator mode <id>        - print/[set] operating mode id
646	  - regulator enable           - enable the regulator output
647	  - regulator disable          - disable the regulator output
648
649	  The '-f' (force) option can be used for set the value which exceeds
650	  the limits, which are found in device-tree and are kept in regulator's
651	  uclass platdata structure.
652
653endmenu
654
655menu "Security commands"
656config CMD_TPM
657	bool "Enable the 'tpm' command"
658	depends on TPM
659	help
660	  This provides a means to talk to a TPM from the command line. A wide
661	  range of commands if provided - see 'tpm help' for details. The
662	  command requires a suitable TPM on your board and the correct driver
663	  must be enabled.
664
665config CMD_TPM_TEST
666	bool "Enable the 'tpm test' command"
667	depends on CMD_TPM
668	help
669	  This provides a a series of tests to confirm that the TPM is working
670	  correctly. The tests cover initialisation, non-volatile RAM, extend,
671	  global lock and checking that timing is within expectations. The
672	  tests pass correctly on Infineon TPMs but may need to be adjusted
673	  for other devices.
674
675endmenu
676
677menu "Filesystem commands"
678config CMD_EXT2
679	bool "ext2 command support"
680	help
681	  Enables EXT2 FS command
682
683config CMD_EXT4
684	bool "ext4 command support"
685	help
686	  Enables EXT4 FS command
687
688config CMD_EXT4_WRITE
689	depends on CMD_EXT4
690	bool "ext4 write command support"
691	help
692	  Enables EXT4 FS write command
693
694config CMD_FAT
695	bool "FAT command support"
696	help
697	  Support for the FAT fs
698
699config CMD_FS_GENERIC
700	bool "filesystem commands"
701	help
702	  Enables filesystem commands (e.g. load, ls) that work for multiple
703	  fs types.
704endmenu
705
706endmenu
707