Kconfig 19 KB

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