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