Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  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_CONSOLE
  110. bool "coninfo"
  111. default y
  112. help
  113. Print console devices and information.
  114. config CMD_CPU
  115. bool "cpu"
  116. help
  117. Print information about available CPUs. This normally shows the
  118. number of CPUs, type (e.g. manufacturer, architecture, product or
  119. internal name) and clock frequency. Other information may be
  120. available depending on the CPU driver.
  121. config CMD_LICENSE
  122. bool "license"
  123. help
  124. Print GPL license text
  125. endmenu
  126. menu "Boot commands"
  127. config CMD_BOOTD
  128. bool "bootd"
  129. default y
  130. help
  131. Run the command stored in the environment "bootcmd", i.e.
  132. "bootd" does the same thing as "run bootcmd".
  133. config CMD_BOOTM
  134. bool "bootm"
  135. default y
  136. help
  137. Boot an application image from the memory.
  138. config CMD_BOOTZ
  139. bool "bootz"
  140. help
  141. Boot the Linux zImage
  142. config CMD_BOOTI
  143. bool "booti"
  144. depends on ARM64
  145. default y
  146. help
  147. Boot an AArch64 Linux Kernel image from memory.
  148. config CMD_BOOTEFI
  149. bool "bootefi"
  150. depends on EFI_LOADER
  151. default y
  152. help
  153. Boot an EFI image from memory.
  154. config CMD_ELF
  155. bool "bootelf, bootvx"
  156. default y
  157. help
  158. Boot an ELF/vxWorks image from the memory.
  159. config CMD_FDT
  160. bool "Flattened Device Tree utility commands"
  161. default y
  162. depends on OF_LIBFDT
  163. help
  164. Do FDT related setup before booting into the Operating System.
  165. config CMD_GO
  166. bool "go"
  167. default y
  168. help
  169. Start an application at a given address.
  170. config CMD_RUN
  171. bool "run"
  172. default y
  173. help
  174. Run the command in the given environment variable.
  175. config CMD_IMI
  176. bool "iminfo"
  177. default y
  178. help
  179. Print header information for application image.
  180. config CMD_IMLS
  181. bool "imls"
  182. default y
  183. help
  184. List all images found in flash
  185. config CMD_XIMG
  186. bool "imxtract"
  187. default y
  188. help
  189. Extract a part of a multi-image.
  190. config CMD_POWEROFF
  191. bool
  192. endmenu
  193. menu "Environment commands"
  194. config CMD_ASKENV
  195. bool "ask for env variable"
  196. help
  197. Ask for environment variable
  198. config CMD_EXPORTENV
  199. bool "env export"
  200. default y
  201. help
  202. Export environments.
  203. config CMD_IMPORTENV
  204. bool "env import"
  205. default y
  206. help
  207. Import environments.
  208. config CMD_EDITENV
  209. bool "editenv"
  210. default y
  211. help
  212. Edit environment variable.
  213. config CMD_GREPENV
  214. bool "search env"
  215. help
  216. Allow for searching environment variables
  217. config CMD_SAVEENV
  218. bool "saveenv"
  219. default y
  220. help
  221. Save all environment variables into the compiled-in persistent
  222. storage.
  223. config CMD_ENV_EXISTS
  224. bool "env exists"
  225. default y
  226. help
  227. Check if a variable is defined in the environment for use in
  228. shell scripting.
  229. endmenu
  230. menu "Memory commands"
  231. config CMD_MEMORY
  232. bool "md, mm, nm, mw, cp, cmp, base, loop"
  233. default y
  234. help
  235. Memeory commands.
  236. md - memory display
  237. mm - memory modify (auto-incrementing address)
  238. nm - memory modify (constant address)
  239. mw - memory write (fill)
  240. cp - memory copy
  241. cmp - memory compare
  242. base - print or set address offset
  243. loop - initinite loop on address range
  244. config CMD_CRC32
  245. bool "crc32"
  246. default y
  247. help
  248. Compute CRC32.
  249. config LOOPW
  250. bool "loopw"
  251. help
  252. Infinite write loop on address range
  253. config CMD_MEMTEST
  254. bool "memtest"
  255. help
  256. Simple RAM read/write test.
  257. config CMD_MX_CYCLIC
  258. bool "mdc, mwc"
  259. help
  260. mdc - memory display cyclic
  261. mwc - memory write cyclic
  262. config CMD_MEMINFO
  263. bool "meminfo"
  264. help
  265. Display memory information.
  266. endmenu
  267. menu "Device access commands"
  268. config CMD_DM
  269. bool "dm - Access to driver model information"
  270. depends on DM
  271. default y
  272. help
  273. Provides access to driver model data structures and information,
  274. such as a list of devices, list of uclasses and the state of each
  275. device (e.g. activated). This is not required for operation, but
  276. can be useful to see the state of driver model for debugging or
  277. interest.
  278. config CMD_DEMO
  279. bool "demo - Demonstration commands for driver model"
  280. depends on DM
  281. help
  282. Provides a 'demo' command which can be used to play around with
  283. driver model. To use this properly you will need to enable one or
  284. both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
  285. Otherwise you will always get an empty list of devices. The demo
  286. devices are defined in the sandbox device tree, so the easiest
  287. option is to use sandbox and pass the -d point to sandbox's
  288. u-boot.dtb file.
  289. config CMD_LOADB
  290. bool "loadb"
  291. default y
  292. help
  293. Load a binary file over serial line.
  294. config CMD_LOADS
  295. bool "loads"
  296. default y
  297. help
  298. Load an S-Record file over serial line
  299. config CMD_FLASH
  300. bool "flinfo, erase, protect"
  301. default y
  302. help
  303. NOR flash support.
  304. flinfo - print FLASH memory information
  305. erase - FLASH memory
  306. protect - enable or disable FLASH write protection
  307. config CMD_ARMFLASH
  308. #depends on FLASH_CFI_DRIVER
  309. bool "armflash"
  310. help
  311. ARM Ltd reference designs flash partition access
  312. config CMD_MMC
  313. bool "mmc"
  314. help
  315. MMC memory mapped support.
  316. config CMD_NAND
  317. bool "nand"
  318. help
  319. NAND support.
  320. config CMD_SF
  321. bool "sf"
  322. help
  323. SPI Flash support
  324. config CMD_SPI
  325. bool "sspi"
  326. help
  327. SPI utility command.
  328. config CMD_I2C
  329. bool "i2c"
  330. help
  331. I2C support.
  332. config CMD_USB
  333. bool "usb"
  334. help
  335. USB support.
  336. config CMD_DFU
  337. bool "dfu"
  338. select USB_FUNCTION_DFU
  339. help
  340. Enables the command "dfu" which is used to have U-Boot create a DFU
  341. class device via USB.
  342. config CMD_USB_MASS_STORAGE
  343. bool "UMS usb mass storage"
  344. help
  345. USB mass storage support
  346. config CMD_FPGA
  347. bool "fpga"
  348. default y
  349. help
  350. FPGA support.
  351. config CMD_REMOTEPROC
  352. bool "remoteproc"
  353. depends on REMOTEPROC
  354. help
  355. Support for Remote Processor control
  356. config CMD_GPIO
  357. bool "gpio"
  358. help
  359. GPIO support.
  360. endmenu
  361. menu "Shell scripting commands"
  362. config CMD_ECHO
  363. bool "echo"
  364. default y
  365. help
  366. Echo args to console
  367. config CMD_ITEST
  368. bool "itest"
  369. default y
  370. help
  371. Return true/false on integer compare.
  372. config CMD_SOURCE
  373. bool "source"
  374. default y
  375. help
  376. Run script from memory
  377. config CMD_SETEXPR
  378. bool "setexpr"
  379. default y
  380. help
  381. Evaluate boolean and math expressions and store the result in an env
  382. variable.
  383. Also supports loading the value at a memory location into a variable.
  384. If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
  385. endmenu
  386. menu "Network commands"
  387. config CMD_NET
  388. bool "bootp, tftpboot"
  389. select NET
  390. default y
  391. help
  392. Network commands.
  393. bootp - boot image via network using BOOTP/TFTP protocol
  394. tftpboot - boot image via network using TFTP protocol
  395. config CMD_TFTPPUT
  396. bool "tftp put"
  397. help
  398. TFTP put command, for uploading files to a server
  399. config CMD_TFTPSRV
  400. bool "tftpsrv"
  401. help
  402. Act as a TFTP server and boot the first received file
  403. config CMD_RARP
  404. bool "rarpboot"
  405. help
  406. Boot image via network using RARP/TFTP protocol
  407. config CMD_DHCP
  408. bool "dhcp"
  409. help
  410. Boot image via network using DHCP/TFTP protocol
  411. config CMD_NFS
  412. bool "nfs"
  413. default y
  414. help
  415. Boot image via network using NFS protocol.
  416. config CMD_MII
  417. bool "mii"
  418. help
  419. Enable MII utility commands.
  420. config CMD_PING
  421. bool "ping"
  422. help
  423. Send ICMP ECHO_REQUEST to network host
  424. config CMD_CDP
  425. bool "cdp"
  426. help
  427. Perform CDP network configuration
  428. config CMD_SNTP
  429. bool "sntp"
  430. help
  431. Synchronize RTC via network
  432. config CMD_DNS
  433. bool "dns"
  434. help
  435. Lookup the IP of a hostname
  436. config CMD_LINK_LOCAL
  437. bool "linklocal"
  438. help
  439. Acquire a network IP address using the link-local protocol
  440. endmenu
  441. menu "Misc commands"
  442. config CMD_AMBAPP
  443. bool "ambapp"
  444. depends on LEON3
  445. default y
  446. help
  447. Lists AMBA Plug-n-Play information.
  448. config SYS_AMBAPP_PRINT_ON_STARTUP
  449. bool "Show AMBA PnP info on startup"
  450. depends on CMD_AMBAPP
  451. default n
  452. help
  453. Show AMBA Plug-n-Play information on startup.
  454. config CMD_BLOCK_CACHE
  455. bool "blkcache - control and stats for block cache"
  456. depends on BLOCK_CACHE
  457. default y if BLOCK_CACHE
  458. help
  459. Enable the blkcache command, which can be used to control the
  460. operation of the cache functions.
  461. This is most useful when fine-tuning the operation of the cache
  462. during development, but also allows the cache to be disabled when
  463. it might hurt performance (e.g. when using the ums command).
  464. config CMD_CACHE
  465. bool "icache or dcache"
  466. help
  467. Enable the "icache" and "dcache" commands
  468. config CMD_TIME
  469. bool "time"
  470. help
  471. Run commands and summarize execution time.
  472. # TODO: rename to CMD_SLEEP
  473. config CMD_MISC
  474. bool "sleep"
  475. default y
  476. help
  477. Delay execution for some time
  478. config CMD_TIMER
  479. bool "timer"
  480. help
  481. Access the system timer.
  482. config CMD_SETGETDCR
  483. bool "getdcr, setdcr, getidcr, setidcr"
  484. depends on 4xx
  485. default y
  486. help
  487. getdcr - Get an AMCC PPC 4xx DCR's value
  488. setdcr - Set an AMCC PPC 4xx DCR's value
  489. getidcr - Get a register value via indirect DCR addressing
  490. setidcr - Set a register value via indirect DCR addressing
  491. config CMD_SOUND
  492. bool "sound"
  493. depends on SOUND
  494. help
  495. This provides basic access to the U-Boot's sound support. The main
  496. feature is to play a beep.
  497. sound init - set up sound system
  498. sound play - play a sound
  499. config CMD_QFW
  500. bool "qfw"
  501. select QFW
  502. help
  503. This provides access to the QEMU firmware interface. The main
  504. feature is to allow easy loading of files passed to qemu-system
  505. via -kernel / -initrd
  506. endmenu
  507. config CMD_BOOTSTAGE
  508. bool "Enable the 'bootstage' command"
  509. depends on BOOTSTAGE
  510. help
  511. Add a 'bootstage' command which supports printing a report
  512. and un/stashing of bootstage data.
  513. menu "Power commands"
  514. config CMD_PMIC
  515. bool "Enable Driver Model PMIC command"
  516. depends on DM_PMIC
  517. help
  518. This is the pmic command, based on a driver model pmic's API.
  519. Command features are unchanged:
  520. - list - list pmic devices
  521. - pmic dev <id> - show or [set] operating pmic device (NEW)
  522. - pmic dump - dump registers
  523. - pmic read address - read byte of register at address
  524. - pmic write address - write byte to register at address
  525. The only one change for this command is 'dev' subcommand.
  526. config CMD_REGULATOR
  527. bool "Enable Driver Model REGULATOR command"
  528. depends on DM_REGULATOR
  529. help
  530. This command is based on driver model regulator's API.
  531. User interface features:
  532. - list - list regulator devices
  533. - regulator dev <id> - show or [set] operating regulator device
  534. - regulator info - print constraints info
  535. - regulator status - print operating status
  536. - regulator value <val] <-f> - print/[set] voltage value [uV]
  537. - regulator current <val> - print/[set] current value [uA]
  538. - regulator mode <id> - print/[set] operating mode id
  539. - regulator enable - enable the regulator output
  540. - regulator disable - disable the regulator output
  541. The '-f' (force) option can be used for set the value which exceeds
  542. the limits, which are found in device-tree and are kept in regulator's
  543. uclass platdata structure.
  544. endmenu
  545. menu "Security commands"
  546. config CMD_TPM
  547. bool "Enable the 'tpm' command"
  548. depends on TPM
  549. help
  550. This provides a means to talk to a TPM from the command line. A wide
  551. range of commands if provided - see 'tpm help' for details. The
  552. command requires a suitable TPM on your board and the correct driver
  553. must be enabled.
  554. config CMD_TPM_TEST
  555. bool "Enable the 'tpm test' command"
  556. depends on CMD_TPM
  557. help
  558. This provides a a series of tests to confirm that the TPM is working
  559. correctly. The tests cover initialisation, non-volatile RAM, extend,
  560. global lock and checking that timing is within expectations. The
  561. tests pass correctly on Infineon TPMs but may need to be adjusted
  562. for other devices.
  563. endmenu
  564. menu "Filesystem commands"
  565. config CMD_EXT2
  566. bool "ext2 command support"
  567. help
  568. Enables EXT2 FS command
  569. config CMD_EXT4
  570. bool "ext4 command support"
  571. help
  572. Enables EXT4 FS command
  573. config CMD_EXT4_WRITE
  574. depends on CMD_EXT4
  575. bool "ext4 write command support"
  576. help
  577. Enables EXT4 FS write command
  578. config CMD_FAT
  579. bool "FAT command support"
  580. help
  581. Support for the FAT fs
  582. config CMD_FS_GENERIC
  583. bool "filesystem commands"
  584. help
  585. Enables filesystem commands (e.g. load, ls) that work for multiple
  586. fs types.
  587. endmenu
  588. config CMD_UBI
  589. tristate "Enable UBI - Unsorted block images commands"
  590. select CRC32
  591. select MTD_UBI
  592. help
  593. UBI is a software layer above MTD layer which admits use of LVM-like
  594. logical volumes on top of MTD devices, hides some complexities of
  595. flash chips like wear and bad blocks and provides some other useful
  596. capabilities. Please, consult the MTD web site for more details
  597. (www.linux-mtd.infradead.org). Activate this option if you want
  598. to use U-Boot UBI commands.
  599. endmenu