Kconfig 16 KB

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