Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720
  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. help
  339. Enables the command "dfu" which is used to have U-Boot create a DFU
  340. class device via USB.
  341. config CMD_USB_MASS_STORAGE
  342. bool "UMS usb mass storage"
  343. help
  344. USB mass storage support
  345. config CMD_FPGA
  346. bool "fpga"
  347. default y
  348. help
  349. FPGA support.
  350. config CMD_REMOTEPROC
  351. bool "remoteproc"
  352. depends on REMOTEPROC
  353. help
  354. Support for Remote Processor control
  355. config CMD_GPIO
  356. bool "gpio"
  357. help
  358. GPIO support.
  359. endmenu
  360. menu "Shell scripting commands"
  361. config CMD_ECHO
  362. bool "echo"
  363. default y
  364. help
  365. Echo args to console
  366. config CMD_ITEST
  367. bool "itest"
  368. default y
  369. help
  370. Return true/false on integer compare.
  371. config CMD_SOURCE
  372. bool "source"
  373. default y
  374. help
  375. Run script from memory
  376. config CMD_SETEXPR
  377. bool "setexpr"
  378. default y
  379. help
  380. Evaluate boolean and math expressions and store the result in an env
  381. variable.
  382. Also supports loading the value at a memory location into a variable.
  383. If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
  384. endmenu
  385. menu "Network commands"
  386. config CMD_NET
  387. bool "bootp, tftpboot"
  388. select NET
  389. default y
  390. help
  391. Network commands.
  392. bootp - boot image via network using BOOTP/TFTP protocol
  393. tftpboot - boot image via network using TFTP protocol
  394. config CMD_TFTPPUT
  395. bool "tftp put"
  396. help
  397. TFTP put command, for uploading files to a server
  398. config CMD_TFTPSRV
  399. bool "tftpsrv"
  400. help
  401. Act as a TFTP server and boot the first received file
  402. config CMD_RARP
  403. bool "rarpboot"
  404. help
  405. Boot image via network using RARP/TFTP protocol
  406. config CMD_DHCP
  407. bool "dhcp"
  408. help
  409. Boot image via network using DHCP/TFTP protocol
  410. config CMD_NFS
  411. bool "nfs"
  412. default y
  413. help
  414. Boot image via network using NFS protocol.
  415. config CMD_MII
  416. bool "mii"
  417. help
  418. Enable MII utility commands.
  419. config CMD_PING
  420. bool "ping"
  421. help
  422. Send ICMP ECHO_REQUEST to network host
  423. config CMD_CDP
  424. bool "cdp"
  425. help
  426. Perform CDP network configuration
  427. config CMD_SNTP
  428. bool "sntp"
  429. help
  430. Synchronize RTC via network
  431. config CMD_DNS
  432. bool "dns"
  433. help
  434. Lookup the IP of a hostname
  435. config CMD_LINK_LOCAL
  436. bool "linklocal"
  437. help
  438. Acquire a network IP address using the link-local protocol
  439. endmenu
  440. menu "Misc commands"
  441. config CMD_AMBAPP
  442. bool "ambapp"
  443. depends on LEON3
  444. default y
  445. help
  446. Lists AMBA Plug-n-Play information.
  447. config SYS_AMBAPP_PRINT_ON_STARTUP
  448. bool "Show AMBA PnP info on startup"
  449. depends on CMD_AMBAPP
  450. default n
  451. help
  452. Show AMBA Plug-n-Play information on startup.
  453. config CMD_BLOCK_CACHE
  454. bool "blkcache - control and stats for block cache"
  455. depends on BLOCK_CACHE
  456. default y if BLOCK_CACHE
  457. help
  458. Enable the blkcache command, which can be used to control the
  459. operation of the cache functions.
  460. This is most useful when fine-tuning the operation of the cache
  461. during development, but also allows the cache to be disabled when
  462. it might hurt performance (e.g. when using the ums command).
  463. config CMD_CACHE
  464. bool "icache or dcache"
  465. help
  466. Enable the "icache" and "dcache" commands
  467. config CMD_TIME
  468. bool "time"
  469. help
  470. Run commands and summarize execution time.
  471. # TODO: rename to CMD_SLEEP
  472. config CMD_MISC
  473. bool "sleep"
  474. default y
  475. help
  476. Delay execution for some time
  477. config CMD_TIMER
  478. bool "timer"
  479. help
  480. Access the system timer.
  481. config CMD_SETGETDCR
  482. bool "getdcr, setdcr, getidcr, setidcr"
  483. depends on 4xx
  484. default y
  485. help
  486. getdcr - Get an AMCC PPC 4xx DCR's value
  487. setdcr - Set an AMCC PPC 4xx DCR's value
  488. getidcr - Get a register value via indirect DCR addressing
  489. setidcr - Set a register value via indirect DCR addressing
  490. config CMD_SOUND
  491. bool "sound"
  492. depends on SOUND
  493. help
  494. This provides basic access to the U-Boot's sound support. The main
  495. feature is to play a beep.
  496. sound init - set up sound system
  497. sound play - play a sound
  498. config CMD_QFW
  499. bool "qfw"
  500. select QFW
  501. help
  502. This provides access to the QEMU firmware interface. The main
  503. feature is to allow easy loading of files passed to qemu-system
  504. via -kernel / -initrd
  505. endmenu
  506. config CMD_BOOTSTAGE
  507. bool "Enable the 'bootstage' command"
  508. depends on BOOTSTAGE
  509. help
  510. Add a 'bootstage' command which supports printing a report
  511. and un/stashing of bootstage data.
  512. menu "Power commands"
  513. config CMD_PMIC
  514. bool "Enable Driver Model PMIC command"
  515. depends on DM_PMIC
  516. help
  517. This is the pmic command, based on a driver model pmic's API.
  518. Command features are unchanged:
  519. - list - list pmic devices
  520. - pmic dev <id> - show or [set] operating pmic device (NEW)
  521. - pmic dump - dump registers
  522. - pmic read address - read byte of register at address
  523. - pmic write address - write byte to register at address
  524. The only one change for this command is 'dev' subcommand.
  525. config CMD_REGULATOR
  526. bool "Enable Driver Model REGULATOR command"
  527. depends on DM_REGULATOR
  528. help
  529. This command is based on driver model regulator's API.
  530. User interface features:
  531. - list - list regulator devices
  532. - regulator dev <id> - show or [set] operating regulator device
  533. - regulator info - print constraints info
  534. - regulator status - print operating status
  535. - regulator value <val] <-f> - print/[set] voltage value [uV]
  536. - regulator current <val> - print/[set] current value [uA]
  537. - regulator mode <id> - print/[set] operating mode id
  538. - regulator enable - enable the regulator output
  539. - regulator disable - disable the regulator output
  540. The '-f' (force) option can be used for set the value which exceeds
  541. the limits, which are found in device-tree and are kept in regulator's
  542. uclass platdata structure.
  543. endmenu
  544. menu "Security commands"
  545. config CMD_TPM
  546. bool "Enable the 'tpm' command"
  547. depends on TPM
  548. help
  549. This provides a means to talk to a TPM from the command line. A wide
  550. range of commands if provided - see 'tpm help' for details. The
  551. command requires a suitable TPM on your board and the correct driver
  552. must be enabled.
  553. config CMD_TPM_TEST
  554. bool "Enable the 'tpm test' command"
  555. depends on CMD_TPM
  556. help
  557. This provides a a series of tests to confirm that the TPM is working
  558. correctly. The tests cover initialisation, non-volatile RAM, extend,
  559. global lock and checking that timing is within expectations. The
  560. tests pass correctly on Infineon TPMs but may need to be adjusted
  561. for other devices.
  562. endmenu
  563. menu "Filesystem commands"
  564. config CMD_EXT2
  565. bool "ext2 command support"
  566. help
  567. Enables EXT2 FS command
  568. config CMD_EXT4
  569. bool "ext4 command support"
  570. help
  571. Enables EXT4 FS command
  572. config CMD_EXT4_WRITE
  573. depends on CMD_EXT4
  574. bool "ext4 write command support"
  575. help
  576. Enables EXT4 FS write command
  577. config CMD_FAT
  578. bool "FAT command support"
  579. help
  580. Support for the FAT fs
  581. config CMD_FS_GENERIC
  582. bool "filesystem commands"
  583. help
  584. Enables filesystem commands (e.g. load, ls) that work for multiple
  585. fs types.
  586. endmenu
  587. config CMD_UBI
  588. tristate "Enable UBI - Unsorted block images commands"
  589. select CRC32
  590. select MTD_UBI
  591. help
  592. UBI is a software layer above MTD layer which admits use of LVM-like
  593. logical volumes on top of MTD devices, hides some complexities of
  594. flash chips like wear and bad blocks and provides some other useful
  595. capabilities. Please, consult the MTD web site for more details
  596. (www.linux-mtd.infradead.org). Activate this option if you want
  597. to use U-Boot UBI commands.
  598. endmenu