Kconfig 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847
  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 CMDLINE_EDITING
  23. bool "Enable command line editing"
  24. depends on CMDLINE
  25. default y
  26. help
  27. Enable editing and History functions for interactive command line
  28. input operations
  29. config AUTO_COMPLETE
  30. bool "Enable auto complete using TAB"
  31. depends on CMDLINE
  32. default y
  33. help
  34. Enable auto completion of commands using TAB.
  35. config SYS_LONGHELP
  36. bool "Enable long help messages"
  37. depends on CMDLINE
  38. default y if CMDLINE
  39. help
  40. Defined when you want long help messages included
  41. Do not set this option when short of memory.
  42. config SYS_PROMPT
  43. string "Shell prompt"
  44. default "=> "
  45. help
  46. This string is displayed in the command line to the left of the
  47. cursor.
  48. menu "Autoboot options"
  49. config AUTOBOOT
  50. bool "Autoboot"
  51. default y
  52. help
  53. This enables the autoboot. See doc/README.autoboot for detail.
  54. config AUTOBOOT_KEYED
  55. bool "Stop autobooting via specific input key / string"
  56. default n
  57. help
  58. This option enables stopping (aborting) of the automatic
  59. boot feature only by issuing a specific input key or
  60. string. If not enabled, any input key will abort the
  61. U-Boot automatic booting process and bring the device
  62. to the U-Boot prompt for user input.
  63. config AUTOBOOT_PROMPT
  64. string "Autoboot stop prompt"
  65. depends on AUTOBOOT_KEYED
  66. default "Autoboot in %d seconds\\n"
  67. help
  68. This string is displayed before the boot delay selected by
  69. CONFIG_BOOTDELAY starts. If it is not defined there is no
  70. output indicating that autoboot is in progress.
  71. Note that this define is used as the (only) argument to a
  72. printf() call, so it may contain '%' format specifications,
  73. provided that it also includes, sepearated by commas exactly
  74. like in a printf statement, the required arguments. It is
  75. the responsibility of the user to select only such arguments
  76. that are valid in the given context.
  77. config AUTOBOOT_ENCRYPTION
  78. bool "Enable encryption in autoboot stopping"
  79. depends on AUTOBOOT_KEYED
  80. default n
  81. config AUTOBOOT_DELAY_STR
  82. string "Delay autobooting via specific input key / string"
  83. depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
  84. help
  85. This option delays the automatic boot feature by issuing
  86. a specific input key or string. If CONFIG_AUTOBOOT_DELAY_STR
  87. or the environment variable "bootdelaykey" is specified
  88. and this string is received from console input before
  89. autoboot starts booting, U-Boot gives a command prompt. The
  90. U-Boot prompt will time out if CONFIG_BOOT_RETRY_TIME is
  91. used, otherwise it never times out.
  92. config AUTOBOOT_STOP_STR
  93. string "Stop autobooting via specific input key / string"
  94. depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
  95. help
  96. This option enables stopping (aborting) of the automatic
  97. boot feature only by issuing a specific input key or
  98. string. If CONFIG_AUTOBOOT_STOP_STR or the environment
  99. variable "bootstopkey" is specified and this string is
  100. received from console input before autoboot starts booting,
  101. U-Boot gives a command prompt. The U-Boot prompt never
  102. times out, even if CONFIG_BOOT_RETRY_TIME is used.
  103. config AUTOBOOT_KEYED_CTRLC
  104. bool "Enable Ctrl-C autoboot interruption"
  105. depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
  106. default n
  107. help
  108. This option allows for the boot sequence to be interrupted
  109. by ctrl-c, in addition to the "bootdelaykey" and "bootstopkey".
  110. Setting this variable provides an escape sequence from the
  111. limited "password" strings.
  112. config 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. endmenu
  121. config BUILD_BIN2C
  122. bool
  123. comment "Commands"
  124. menu "Info commands"
  125. config CMD_BDI
  126. bool "bdinfo"
  127. default y
  128. help
  129. Print board info
  130. config CMD_CONFIG
  131. bool "config"
  132. default SANDBOX
  133. select BUILD_BIN2C
  134. help
  135. Print ".config" contents.
  136. If this option is enabled, the ".config" file contents are embedded
  137. in the U-Boot image and can be printed on the console by the "config"
  138. command. This provides information of which options are enabled on
  139. the running U-Boot.
  140. config CMD_CONSOLE
  141. bool "coninfo"
  142. default y
  143. help
  144. Print console devices and information.
  145. config CMD_CPU
  146. bool "cpu"
  147. help
  148. Print information about available CPUs. This normally shows the
  149. number of CPUs, type (e.g. manufacturer, architecture, product or
  150. internal name) and clock frequency. Other information may be
  151. available depending on the CPU driver.
  152. config CMD_LICENSE
  153. bool "license"
  154. select BUILD_BIN2C
  155. help
  156. Print GPL license text
  157. config CMD_REGINFO
  158. bool "reginfo"
  159. depends on PPC
  160. help
  161. Register dump
  162. endmenu
  163. menu "Boot commands"
  164. config CMD_BOOTD
  165. bool "bootd"
  166. default y
  167. help
  168. Run the command stored in the environment "bootcmd", i.e.
  169. "bootd" does the same thing as "run bootcmd".
  170. config CMD_BOOTM
  171. bool "bootm"
  172. default y
  173. help
  174. Boot an application image from the memory.
  175. config CMD_BOOTZ
  176. bool "bootz"
  177. help
  178. Boot the Linux zImage
  179. config CMD_BOOTI
  180. bool "booti"
  181. depends on ARM64
  182. default y
  183. help
  184. Boot an AArch64 Linux Kernel image from memory.
  185. config CMD_BOOTEFI
  186. bool "bootefi"
  187. depends on EFI_LOADER
  188. default y
  189. help
  190. Boot an EFI image from memory.
  191. config CMD_BOOTEFI_HELLO_COMPILE
  192. bool "Compile a standard EFI hello world binary for testing"
  193. depends on CMD_BOOTEFI && (ARM || X86 || RISCV)
  194. default y
  195. help
  196. This compiles a standard EFI hello world application with U-Boot so
  197. that it can be used with the test/py testing framework. This is useful
  198. for testing that EFI is working at a basic level, and for bringing
  199. up EFI support on a new architecture.
  200. No additional space will be required in the resulting U-Boot binary
  201. when this option is enabled.
  202. config CMD_BOOTEFI_HELLO
  203. bool "Allow booting a standard EFI hello world for testing"
  204. depends on CMD_BOOTEFI_HELLO_COMPILE
  205. help
  206. This adds a standard EFI hello world application to U-Boot so that
  207. it can be used with the 'bootefi hello' command. This is useful
  208. for testing that EFI is working at a basic level, and for bringing
  209. up EFI support on a new architecture.
  210. source lib/efi_selftest/Kconfig
  211. config CMD_BOOTMENU
  212. bool "bootmenu"
  213. select MENU
  214. help
  215. Add an ANSI terminal boot menu command.
  216. config CMD_DTIMG
  217. bool "dtimg"
  218. help
  219. Android DTB/DTBO image manipulation commands. Read dtb/dtbo files from
  220. image into RAM, dump image structure information, etc. Those dtb/dtbo
  221. files should be merged in one dtb further, which needs to be passed to
  222. the kernel, as part of a boot process.
  223. config CMD_ELF
  224. bool "bootelf, bootvx"
  225. default y
  226. help
  227. Boot an ELF/vxWorks image from the memory.
  228. config CMD_FDT
  229. bool "Flattened Device Tree utility commands"
  230. default y
  231. depends on OF_LIBFDT
  232. help
  233. Do FDT related setup before booting into the Operating System.
  234. config CMD_GO
  235. bool "go"
  236. default y
  237. help
  238. Start an application at a given address.
  239. config CMD_RUN
  240. bool "run"
  241. default y
  242. help
  243. Run the command in the given environment variable.
  244. config CMD_IMI
  245. bool "iminfo"
  246. default y
  247. help
  248. Print header information for application image.
  249. config CMD_IMLS
  250. bool "imls"
  251. help
  252. List all images found in flash
  253. config CMD_XIMG
  254. bool "imxtract"
  255. default y
  256. help
  257. Extract a part of a multi-image.
  258. config CMD_POWEROFF
  259. bool "poweroff"
  260. help
  261. Poweroff/Shutdown the system
  262. config CMD_SPL
  263. bool "spl export - Export boot information for Falcon boot"
  264. depends on SPL
  265. help
  266. Falcon mode allows booting directly from SPL into an Operating
  267. System such as Linux, thus skipping U-Boot proper. See
  268. doc/README.falcon for full information about how to use this
  269. command.
  270. config CMD_SPL_NAND_OFS
  271. hex "Offset of OS command line args for Falcon-mode NAND boot"
  272. depends on CMD_SPL
  273. default 0
  274. help
  275. This provides the offset of the command line arguments for Linux
  276. when booting from NAND in Falcon mode. See doc/README.falcon
  277. for full information about how to use this option (and also see
  278. board/gateworks/gw_ventana/README for an example).
  279. config CMD_SPL_WRITE_SIZE
  280. hex "Size of argument area"
  281. depends on CMD_SPL
  282. default 0x2000
  283. help
  284. This provides the size of the command-line argument area in NAND
  285. flash used by Falcon-mode boot. See the documentation until CMD_SPL
  286. for detail.
  287. config CMD_FITUPD
  288. bool "fitImage update command"
  289. help
  290. Implements the 'fitupd' command, which allows to automatically
  291. store software updates present on a TFTP server in NOR Flash
  292. config CMD_THOR_DOWNLOAD
  293. bool "thor - TIZEN 'thor' download"
  294. help
  295. Implements the 'thor' download protocol. This is a way of
  296. downloading a software update over USB from an attached host.
  297. There is no documentation about this within the U-Boot source code
  298. but you should be able to find something on the interwebs.
  299. config CMD_ZBOOT
  300. bool "zboot - x86 boot command"
  301. help
  302. With x86 machines it is common to boot a bzImage file which
  303. contains both a kernel and a setup.bin file. The latter includes
  304. configuration information from the dark ages which x86 boards still
  305. need to pick things out of.
  306. Consider using FIT in preference to this since it supports directly
  307. booting both 32- and 64-bit kernels, as well as secure boot.
  308. Documentation is available in doc/uImage.FIT/x86-fit-boot.txt
  309. endmenu
  310. menu "Environment commands"
  311. config CMD_ASKENV
  312. bool "ask for env variable"
  313. help
  314. Ask for environment variable
  315. config CMD_EXPORTENV
  316. bool "env export"
  317. default y
  318. help
  319. Export environments.
  320. config CMD_IMPORTENV
  321. bool "env import"
  322. default y
  323. help
  324. Import environments.
  325. config CMD_EDITENV
  326. bool "editenv"
  327. default y
  328. help
  329. Edit environment variable.
  330. config CMD_GREPENV
  331. bool "search env"
  332. help
  333. Allow for searching environment variables
  334. config CMD_SAVEENV
  335. bool "saveenv"
  336. default y
  337. help
  338. Save all environment variables into the compiled-in persistent
  339. storage.
  340. config CMD_ENV_EXISTS
  341. bool "env exists"
  342. default y
  343. help
  344. Check if a variable is defined in the environment for use in
  345. shell scripting.
  346. config CMD_ENV_CALLBACK
  347. bool "env callbacks - print callbacks and their associated variables"
  348. help
  349. Some environment variable have callbacks defined by
  350. U_BOOT_ENV_CALLBACK. These are called when the variable changes.
  351. For example changing "baudrate" adjust the serial baud rate. This
  352. command lists the currently defined callbacks.
  353. config CMD_ENV_FLAGS
  354. bool "env flags -print variables that have non-default flags"
  355. help
  356. Some environment variables have special flags that control their
  357. behaviour. For example, serial# can only be written once and cannot
  358. be deleted. This command shows the variables that have special
  359. flags.
  360. endmenu
  361. menu "Memory commands"
  362. config CMD_BINOP
  363. bool "binop"
  364. help
  365. Compute binary operations (xor, or, and) of byte arrays of arbitrary
  366. size from memory and store the result in memory or the environment.
  367. config CMD_CRC32
  368. bool "crc32"
  369. default y
  370. select HASH
  371. help
  372. Compute CRC32.
  373. config CRC32_VERIFY
  374. bool "crc32 -v"
  375. depends on CMD_CRC32
  376. help
  377. Add -v option to verify data against a crc32 checksum.
  378. config CMD_EEPROM
  379. bool "eeprom - EEPROM subsystem"
  380. help
  381. (deprecated, needs conversion to driver model)
  382. Provides commands to read and write EEPROM (Electrically Erasable
  383. Programmable Read Only Memory) chips that are connected over an
  384. I2C bus.
  385. config CMD_EEPROM_LAYOUT
  386. bool "Enable layout-aware eeprom commands"
  387. depends on CMD_EEPROM
  388. help
  389. (deprecated, needs conversion to driver model)
  390. When enabled, additional eeprom sub-commands become available.
  391. eeprom print - prints the contents of the eeprom in a human-readable
  392. way (eeprom layout fields, and data formatted to be fit for human
  393. consumption).
  394. eeprom update - allows user to update eeprom fields by specifying
  395. the field name, and providing the new data in a human readable format
  396. (same format as displayed by the eeprom print command).
  397. Both commands can either auto detect the layout, or be told which
  398. layout to use.
  399. Feature API:
  400. __weak int parse_layout_version(char *str)
  401. - override to provide your own layout name parsing
  402. __weak void __eeprom_layout_assign(struct eeprom_layout *layout,
  403. int layout_version);
  404. - override to setup the layout metadata based on the version
  405. __weak int eeprom_layout_detect(unsigned char *data)
  406. - override to provide your own algorithm for detecting layout
  407. version
  408. eeprom_field.c
  409. - contains various printing and updating functions for common
  410. types of eeprom fields. Can be used for defining
  411. custom layouts.
  412. config EEPROM_LAYOUT_HELP_STRING
  413. string "Tells user what layout names are supported"
  414. depends on CMD_EEPROM_LAYOUT
  415. default "<not defined>"
  416. help
  417. Help printed with the LAYOUT VERSIONS part of the 'eeprom'
  418. command's help.
  419. config LOOPW
  420. bool "loopw"
  421. help
  422. Infinite write loop on address range
  423. config CMD_MD5SUM
  424. bool "md5sum"
  425. default n
  426. select MD5
  427. help
  428. Compute MD5 checksum.
  429. config MD5SUM_VERIFY
  430. bool "md5sum -v"
  431. default n
  432. depends on CMD_MD5SUM
  433. help
  434. Add -v option to verify data against an MD5 checksum.
  435. config CMD_MEMINFO
  436. bool "meminfo"
  437. help
  438. Display memory information.
  439. config CMD_MEMORY
  440. bool "md, mm, nm, mw, cp, cmp, base, loop"
  441. default y
  442. help
  443. Memory commands.
  444. md - memory display
  445. mm - memory modify (auto-incrementing address)
  446. nm - memory modify (constant address)
  447. mw - memory write (fill)
  448. cp - memory copy
  449. cmp - memory compare
  450. base - print or set address offset
  451. loop - initialize loop on address range
  452. config CMD_MEMTEST
  453. bool "memtest"
  454. help
  455. Simple RAM read/write test.
  456. if CMD_MEMTEST
  457. config SYS_ALT_MEMTEST
  458. bool "Alternative test"
  459. help
  460. Use a more complete alternative memory test.
  461. endif
  462. config CMD_MX_CYCLIC
  463. bool "mdc, mwc"
  464. help
  465. mdc - memory display cyclic
  466. mwc - memory write cyclic
  467. config CMD_SHA1SUM
  468. bool "sha1sum"
  469. select SHA1
  470. help
  471. Compute SHA1 checksum.
  472. config SHA1SUM_VERIFY
  473. bool "sha1sum -v"
  474. depends on CMD_SHA1SUM
  475. help
  476. Add -v option to verify data against a SHA1 checksum.
  477. config CMD_STRINGS
  478. bool "strings - display strings in memory"
  479. help
  480. This works similarly to the Unix 'strings' command except that it
  481. works with a memory range. String of printable characters found
  482. within the range are displayed. The minimum number of characters
  483. for a sequence to be considered a string can be provided.
  484. endmenu
  485. menu "Compression commands"
  486. config CMD_LZMADEC
  487. bool "lzmadec"
  488. default y if CMD_BOOTI
  489. select LZMA
  490. help
  491. Support decompressing an LZMA (Lempel-Ziv-Markov chain algorithm)
  492. image from memory.
  493. config CMD_UNZIP
  494. bool "unzip"
  495. default y if CMD_BOOTI
  496. help
  497. Uncompress a zip-compressed memory region.
  498. config CMD_ZIP
  499. bool "zip"
  500. help
  501. Compress a memory region with zlib deflate method.
  502. endmenu
  503. menu "Device access commands"
  504. config CMD_ARMFLASH
  505. #depends on FLASH_CFI_DRIVER
  506. bool "armflash"
  507. help
  508. ARM Ltd reference designs flash partition access
  509. config CMD_ADC
  510. bool "adc - Access Analog to Digital Converters info and data"
  511. select ADC
  512. select DM_REGULATOR
  513. help
  514. Shows ADC device info and permit printing one-shot analog converted
  515. data from a named Analog to Digital Converter.
  516. config CMD_BIND
  517. bool "bind/unbind - Bind or unbind a device to/from a driver"
  518. depends on DM
  519. help
  520. Bind or unbind a device to/from a driver from the command line.
  521. This is useful in situations where a device may be handled by several
  522. drivers. For example, this can be used to bind a UDC to the usb ether
  523. gadget driver from the command line.
  524. config CMD_CLK
  525. bool "clk - Show clock frequencies"
  526. help
  527. (deprecated)
  528. Shows clock frequences by calling a sock_clk_dump() hook function.
  529. This is depreated in favour of using the CLK uclass and accessing
  530. clock values from associated drivers. However currently no command
  531. exists for this.
  532. config CMD_DEMO
  533. bool "demo - Demonstration commands for driver model"
  534. depends on DM
  535. help
  536. Provides a 'demo' command which can be used to play around with
  537. driver model. To use this properly you will need to enable one or
  538. both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
  539. Otherwise you will always get an empty list of devices. The demo
  540. devices are defined in the sandbox device tree, so the easiest
  541. option is to use sandbox and pass the -d point to sandbox's
  542. u-boot.dtb file.
  543. config CMD_DFU
  544. bool "dfu"
  545. select DFU
  546. help
  547. Enables the command "dfu" which is used to have U-Boot create a DFU
  548. class device via USB. This command requires that the "dfu_alt_info"
  549. environment variable be set and define the alt settings to expose to
  550. the host.
  551. config CMD_DM
  552. bool "dm - Access to driver model information"
  553. depends on DM
  554. help
  555. Provides access to driver model data structures and information,
  556. such as a list of devices, list of uclasses and the state of each
  557. device (e.g. activated). This is not required for operation, but
  558. can be useful to see the state of driver model for debugging or
  559. interest.
  560. config CMD_FASTBOOT
  561. bool "fastboot - Android fastboot support"
  562. depends on FASTBOOT
  563. help
  564. This enables the command "fastboot" which enables the Android
  565. fastboot mode for the platform. Fastboot is a protocol for
  566. downloading images, flashing and device control used on
  567. Android devices. Fastboot requires either the network stack
  568. enabled or support for acting as a USB device.
  569. See doc/README.android-fastboot for more information.
  570. config CMD_FDC
  571. bool "fdcboot - Boot from floppy device"
  572. help
  573. The 'fdtboot' command allows booting an image from a floppy disk.
  574. config CMD_FLASH
  575. bool "flinfo, erase, protect"
  576. default y
  577. help
  578. NOR flash support.
  579. flinfo - print FLASH memory information
  580. erase - FLASH memory
  581. protect - enable or disable FLASH write protection
  582. config CMD_FPGA
  583. bool "fpga"
  584. depends on FPGA
  585. default y
  586. help
  587. FPGA support.
  588. config CMD_FPGA_LOADBP
  589. bool "fpga loadbp - load partial bitstream (Xilinx only)"
  590. depends on CMD_FPGA
  591. help
  592. Supports loading an FPGA device from a bitstream buffer containing
  593. a partial bitstream.
  594. config CMD_FPGA_LOADFS
  595. bool "fpga loadfs - load bitstream from FAT filesystem (Xilinx only)"
  596. depends on CMD_FPGA
  597. help
  598. Supports loading an FPGA device from a FAT filesystem.
  599. config CMD_FPGA_LOADMK
  600. bool "fpga loadmk - load bitstream from image"
  601. depends on CMD_FPGA
  602. help
  603. Supports loading an FPGA device from a image generated by mkimage.
  604. config CMD_FPGA_LOADP
  605. bool "fpga loadp - load partial bitstream"
  606. depends on CMD_FPGA
  607. help
  608. Supports loading an FPGA device from a bitstream buffer containing
  609. a partial bitstream.
  610. config CMD_FPGA_LOAD_SECURE
  611. bool "fpga loads - loads secure bitstreams (Xilinx only)"
  612. depends on CMD_FPGA
  613. help
  614. Enables the fpga loads command which is used to load secure
  615. (authenticated or encrypted or both) bitstreams on to FPGA.
  616. config CMD_FPGAD
  617. bool "fpgad - dump FPGA registers"
  618. help
  619. (legacy, needs conversion to driver model)
  620. Provides a way to dump FPGA registers by calling the board-specific
  621. fpga_get_reg() function. This functions similarly to the 'md'
  622. command.
  623. config CMD_FUSE
  624. bool "fuse - support for the fuse subssystem"
  625. help
  626. (deprecated - needs conversion to driver model)
  627. This allows reading, sensing, programming or overriding fuses
  628. which control the behaviour of the device. The command uses the
  629. fuse_...() API.
  630. config CMD_GPIO
  631. bool "gpio"
  632. help
  633. GPIO support.
  634. config CMD_GPT
  635. bool "GPT (GUID Partition Table) command"
  636. select EFI_PARTITION
  637. select HAVE_BLOCK_DEVICE
  638. select PARTITION_UUIDS
  639. imply RANDOM_UUID
  640. help
  641. Enable the 'gpt' command to ready and write GPT style partition
  642. tables.
  643. config RANDOM_UUID
  644. bool "GPT Random UUID generation"
  645. select LIB_UUID
  646. help
  647. Enable the generation of partitions with random UUIDs if none
  648. are provided.
  649. config CMD_GPT_RENAME
  650. bool "GPT partition renaming commands"
  651. depends on CMD_GPT
  652. help
  653. Enables the 'gpt' command to interchange names on two GPT
  654. partitions via the 'gpt swap' command or to rename single
  655. partitions via the 'rename' command.
  656. config CMD_IDE
  657. bool "ide - Support for IDE drivers"
  658. select IDE
  659. help
  660. Provides an 'ide' command which allows accessing the IDE drive,
  661. reseting the IDE interface, printing the partition table and
  662. geting device info. It also enables the 'diskboot' command which
  663. permits booting from an IDE drive.
  664. config CMD_IO
  665. bool "io - Support for performing I/O accesses"
  666. help
  667. Provides an 'iod' command to display I/O space and an 'iow' command
  668. to write values to the I/O space. This can be useful for manually
  669. checking the state of devices during boot when debugging device
  670. drivers, etc.
  671. config CMD_IOTRACE
  672. bool "iotrace - Support for tracing I/O activity"
  673. help
  674. Provides an 'iotrace' command which supports recording I/O reads and
  675. writes in a trace buffer in memory . It also maintains a checksum
  676. of the trace records (even if space is exhausted) so that the
  677. sequence of I/O accesses can be verified.
  678. When debugging drivers it is useful to see what I/O accesses were
  679. done and in what order.
  680. Even if the individual accesses are of little interest it can be
  681. useful to verify that the access pattern is consistent each time
  682. an operation is performed. In this case a checksum can be used to
  683. characterise the operation of a driver. The checksum can be compared
  684. across different runs of the operation to verify that the driver is
  685. working properly.
  686. In particular, when performing major refactoring of the driver, where
  687. the access pattern should not change, the checksum provides assurance
  688. that the refactoring work has not broken the driver.
  689. This works by sneaking into the io.h heder for an architecture and
  690. redirecting I/O accesses through iotrace's tracing mechanism.
  691. For now no commands are provided to examine the trace buffer. The
  692. format is fairly simple, so 'md' is a reasonable substitute.
  693. Note: The checksum feature is only useful for I/O regions where the
  694. contents do not change outside of software control. Where this is not
  695. suitable you can fall back to manually comparing the addresses. It
  696. might be useful to enhance tracing to only checksum the accesses and
  697. not the data read/written.
  698. config CMD_I2C
  699. bool "i2c"
  700. help
  701. I2C support.
  702. config CMD_LOADB
  703. bool "loadb"
  704. default y
  705. help
  706. Load a binary file over serial line.
  707. config CMD_LOADS
  708. bool "loads"
  709. default y
  710. help
  711. Load an S-Record file over serial line
  712. config CMD_MMC
  713. bool "mmc"
  714. help
  715. MMC memory mapped support.
  716. config CMD_MMC_RPMB
  717. bool "Enable support for RPMB in the mmc command"
  718. depends on CMD_MMC
  719. help
  720. Enable the commands for reading, writing and programming the
  721. key for the Replay Protection Memory Block partition in eMMC.
  722. config CMD_MMC_SWRITE
  723. bool "mmc swrite"
  724. depends on CMD_MMC && MMC_WRITE
  725. select IMAGE_SPARSE
  726. help
  727. Enable support for the "mmc swrite" command to write Android sparse
  728. images to eMMC.
  729. config CMD_NAND
  730. bool "nand"
  731. default y if NAND_SUNXI
  732. help
  733. NAND support.
  734. if CMD_NAND
  735. config CMD_NAND_TRIMFFS
  736. bool "nand write.trimffs"
  737. default y if ARCH_SUNXI
  738. help
  739. Allows one to skip empty pages when flashing something on a NAND.
  740. config CMD_NAND_LOCK_UNLOCK
  741. bool "nand lock/unlock"
  742. help
  743. NAND locking support.
  744. config CMD_NAND_TORTURE
  745. bool "nand torture"
  746. help
  747. NAND torture support.
  748. endif # CMD_NAND
  749. config CMD_NVME
  750. bool "nvme"
  751. depends on NVME
  752. default y if NVME
  753. help
  754. NVM Express device support
  755. config CMD_MMC_SPI
  756. bool "mmc_spi - Set up MMC SPI device"
  757. help
  758. Provides a way to set up an MMC (Multimedia Card) SPI (Serial
  759. Peripheral Interface) device. The device provides a means of
  760. accessing an MMC device via SPI using a single data line, limited
  761. to 20MHz. It is useful since it reduces the amount of protocol code
  762. required.
  763. config CMD_ONENAND
  764. bool "onenand - access to onenand device"
  765. help
  766. OneNAND is a brand of NAND ('Not AND' gate) flash which provides
  767. various useful features. This command allows reading, writing,
  768. and erasing blocks. It allso provides a way to show and change
  769. bad blocks, and test the device.
  770. config CMD_PART
  771. bool "part"
  772. select HAVE_BLOCK_DEVICE
  773. select PARTITION_UUIDS
  774. help
  775. Read and display information about the partition table on
  776. various media.
  777. config CMD_PCI
  778. bool "pci - Access PCI devices"
  779. help
  780. Provide access to PCI (Peripheral Interconnect Bus), a type of bus
  781. used on some devices to allow the CPU to communicate with its
  782. peripherals. Sub-commands allow bus enumeration, displaying and
  783. changing configuration space and a few other features.
  784. config CMD_PCMCIA
  785. bool "pinit - Set up PCMCIA device"
  786. help
  787. Provides a means to initialise a PCMCIA (Personal Computer Memory
  788. Card International Association) device. This is an old standard from
  789. about 1990. These devices are typically removable memory or network
  790. cards using a standard 68-pin connector.
  791. config CMD_READ
  792. bool "read - Read binary data from a partition"
  793. help
  794. Provides low-level access to the data in a partition.
  795. config CMD_REMOTEPROC
  796. bool "remoteproc"
  797. depends on REMOTEPROC
  798. help
  799. Support for Remote Processor control
  800. config CMD_SATA
  801. bool "sata - Access SATA subsystem"
  802. select SATA
  803. help
  804. SATA (Serial Advanced Technology Attachment) is a serial bus
  805. standard for connecting to hard drives and other storage devices.
  806. This command provides information about attached devices and allows
  807. reading, writing and other operations.
  808. SATA replaces PATA (originally just ATA), which stands for Parallel AT
  809. Attachment, where AT refers to an IBM AT (Advanced Technology)
  810. computer released in 1984.
  811. config CMD_SAVES
  812. bool "saves - Save a file over serial in S-Record format"
  813. help
  814. Provides a way to save a binary file using the Motorola S-Record
  815. format over the serial line.
  816. config CMD_SCSI
  817. bool "scsi - Access to SCSI devices"
  818. default y if SCSI
  819. help
  820. This provides a 'scsi' command which provides access to SCSI (Small
  821. Computer System Interface) devices. The command provides a way to
  822. scan the bus, reset the bus, read and write data and get information
  823. about devices.
  824. config CMD_SDRAM
  825. bool "sdram - Print SDRAM configuration information"
  826. help
  827. Provides information about attached SDRAM. This assumed that the
  828. SDRAM has an EEPROM with information that can be read using the
  829. I2C bus. This is only available on some boards.
  830. config CMD_SF
  831. bool "sf"
  832. help
  833. SPI Flash support
  834. config CMD_SF_TEST
  835. bool "sf test - Allow testing of SPI flash"
  836. help
  837. Provides a way to test that SPI flash is working correctly. The
  838. test is destructive, in that an area of SPI flash must be provided
  839. for the test to use. Performance information is also provided,
  840. measuring the performance of reading, writing and erasing in
  841. Mbps (Million Bits Per Second). This value should approximately
  842. equal the SPI bus speed for a single-bit-wide SPI bus, assuming
  843. everything is working properly.
  844. config CMD_SPI
  845. bool "sspi"
  846. help
  847. SPI utility command.
  848. config CMD_TSI148
  849. bool "tsi148 - Command to access tsi148 device"
  850. help
  851. This provides various sub-commands to initialise and configure the
  852. Turndra tsi148 device. See the command help for full details.
  853. config CMD_UNIVERSE
  854. bool "universe - Command to set up the Turndra Universe controller"
  855. help
  856. This allows setting up the VMEbus provided by this controller.
  857. See the command help for full details.
  858. config CMD_USB
  859. bool "usb"
  860. select HAVE_BLOCK_DEVICE
  861. help
  862. USB support.
  863. config CMD_USB_SDP
  864. bool "sdp"
  865. select USB_FUNCTION_SDP
  866. help
  867. Enables the command "sdp" which is used to have U-Boot emulating the
  868. Serial Download Protocol (SDP) via USB.
  869. config CMD_ROCKUSB
  870. bool "rockusb"
  871. depends on USB_FUNCTION_ROCKUSB
  872. help
  873. Rockusb protocol is widely used by Rockchip SoC based devices. It can
  874. read/write info, image to/from devices. This enable rockusb command
  875. support to communication with rockusb device. for more detail about
  876. this command, please read doc/README.rockusb.
  877. config CMD_USB_MASS_STORAGE
  878. bool "UMS usb mass storage"
  879. select USB_FUNCTION_MASS_STORAGE
  880. help
  881. USB mass storage support
  882. config CMD_AXI
  883. bool "axi"
  884. depends on AXI
  885. help
  886. Enable the command "axi" for accessing AXI (Advanced eXtensible
  887. Interface) busses, a on-chip interconnect specification for managing
  888. functional blocks in SoC designs, which is also often used in designs
  889. involving FPGAs (e.g. communication with IP cores in Xilinx FPGAs).
  890. endmenu
  891. menu "Shell scripting commands"
  892. config CMD_ECHO
  893. bool "echo"
  894. default y
  895. help
  896. Echo args to console
  897. config CMD_ITEST
  898. bool "itest"
  899. default y
  900. help
  901. Return true/false on integer compare.
  902. config CMD_SOURCE
  903. bool "source"
  904. default y
  905. help
  906. Run script from memory
  907. config CMD_SETEXPR
  908. bool "setexpr"
  909. default y
  910. help
  911. Evaluate boolean and math expressions and store the result in an env
  912. variable.
  913. Also supports loading the value at a memory location into a variable.
  914. If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
  915. endmenu
  916. if NET
  917. menuconfig CMD_NET
  918. bool "Network commands"
  919. default y
  920. imply NETDEVICES
  921. if CMD_NET
  922. config CMD_BOOTP
  923. bool "bootp"
  924. default y
  925. help
  926. bootp - boot image via network using BOOTP/TFTP protocol
  927. config CMD_DHCP
  928. bool "dhcp"
  929. depends on CMD_BOOTP
  930. help
  931. Boot image via network using DHCP/TFTP protocol
  932. config BOOTP_BOOTPATH
  933. bool "Request & store 'rootpath' from BOOTP/DHCP server"
  934. default y
  935. depends on CMD_BOOTP
  936. help
  937. Even though the config is called BOOTP_BOOTPATH, it stores the
  938. path in the variable 'rootpath'.
  939. config BOOTP_DNS
  940. bool "Request & store 'dnsip' from BOOTP/DHCP server"
  941. default y
  942. depends on CMD_BOOTP
  943. help
  944. The primary DNS server is stored as 'dnsip'. If two servers are
  945. returned, you must set BOOTP_DNS2 to store that second server IP
  946. also.
  947. config BOOTP_DNS2
  948. bool "Store 'dnsip2' from BOOTP/DHCP server"
  949. depends on BOOTP_DNS
  950. help
  951. If a DHCP client requests the DNS server IP from a DHCP server,
  952. it is possible that more than one DNS serverip is offered to the
  953. client. If CONFIG_BOOTP_DNS2 is enabled, the secondary DNS
  954. server IP will be stored in the additional environment
  955. variable "dnsip2". The first DNS serverip is always
  956. stored in the variable "dnsip", when BOOTP_DNS is defined.
  957. config BOOTP_GATEWAY
  958. bool "Request & store 'gatewayip' from BOOTP/DHCP server"
  959. default y
  960. depends on CMD_BOOTP
  961. config BOOTP_HOSTNAME
  962. bool "Request & store 'hostname' from BOOTP/DHCP server"
  963. default y
  964. depends on CMD_BOOTP
  965. help
  966. The name may or may not be qualified with the local domain name.
  967. config BOOTP_PREFER_SERVERIP
  968. bool "serverip variable takes precedent over DHCP server IP."
  969. depends on CMD_BOOTP
  970. help
  971. By default a BOOTP/DHCP reply will overwrite the 'serverip' variable.
  972. With this option enabled, the 'serverip' variable in the environment
  973. takes precedence over DHCP server IP and will only be set by the DHCP
  974. server if not already set in the environment.
  975. config BOOTP_SUBNETMASK
  976. bool "Request & store 'netmask' from BOOTP/DHCP server"
  977. default y
  978. depends on CMD_BOOTP
  979. config BOOTP_NTPSERVER
  980. bool "Request & store 'ntpserverip' from BOOTP/DHCP server"
  981. depends on CMD_BOOTP
  982. config BOOTP_PXE
  983. bool "Send PXE client arch to BOOTP/DHCP server"
  984. default y
  985. depends on CMD_BOOTP && CMD_PXE
  986. help
  987. Supported for ARM, ARM64, and x86 for now.
  988. config BOOTP_PXE_CLIENTARCH
  989. hex
  990. depends on BOOTP_PXE
  991. default 0x16 if ARM64
  992. default 0x15 if ARM
  993. default 0 if X86
  994. config BOOTP_VCI_STRING
  995. string
  996. depends on CMD_BOOTP
  997. default "U-Boot.armv7" if CPU_V7A || CPU_V7M || CPU_V7R
  998. default "U-Boot.armv8" if ARM64
  999. default "U-Boot.arm" if ARM
  1000. default "U-Boot"
  1001. config CMD_TFTPBOOT
  1002. bool "tftpboot"
  1003. default y
  1004. help
  1005. tftpboot - boot image via network using TFTP protocol
  1006. config CMD_TFTPPUT
  1007. bool "tftp put"
  1008. depends on CMD_TFTPBOOT
  1009. help
  1010. TFTP put command, for uploading files to a server
  1011. config CMD_TFTPSRV
  1012. bool "tftpsrv"
  1013. depends on CMD_TFTPBOOT
  1014. help
  1015. Act as a TFTP server and boot the first received file
  1016. config NET_TFTP_VARS
  1017. bool "Control TFTP timeout and count through environment"
  1018. depends on CMD_TFTPBOOT
  1019. default y
  1020. help
  1021. If set, allows controlling the TFTP timeout through the
  1022. environment variable tftptimeout, and the TFTP maximum
  1023. timeout count through the variable tftptimeoutcountmax.
  1024. If unset, timeout and maximum are hard-defined as 1 second
  1025. and 10 timouts per TFTP transfer.
  1026. config CMD_RARP
  1027. bool "rarpboot"
  1028. help
  1029. Boot image via network using RARP/TFTP protocol
  1030. config CMD_NFS
  1031. bool "nfs"
  1032. default y
  1033. help
  1034. Boot image via network using NFS protocol.
  1035. config CMD_MII
  1036. bool "mii"
  1037. help
  1038. Enable MII utility commands.
  1039. config CMD_PING
  1040. bool "ping"
  1041. help
  1042. Send ICMP ECHO_REQUEST to network host
  1043. config CMD_CDP
  1044. bool "cdp"
  1045. help
  1046. Perform CDP network configuration
  1047. config CMD_SNTP
  1048. bool "sntp"
  1049. help
  1050. Synchronize RTC via network
  1051. config CMD_DNS
  1052. bool "dns"
  1053. help
  1054. Lookup the IP of a hostname
  1055. config CMD_LINK_LOCAL
  1056. bool "linklocal"
  1057. select LIB_RAND
  1058. help
  1059. Acquire a network IP address using the link-local protocol
  1060. endif
  1061. config CMD_ETHSW
  1062. bool "ethsw"
  1063. help
  1064. Allow control of L2 Ethernet switch commands. These are supported
  1065. by the vsc9953 Ethernet driver at present. Sub-commands allow
  1066. operations such as enabling / disabling a port and
  1067. viewing/maintaining the filtering database (FDB)
  1068. config CMD_PXE
  1069. bool "pxe"
  1070. select MENU
  1071. help
  1072. Boot image via network using PXE protocol
  1073. config CMD_WOL
  1074. bool "wol"
  1075. help
  1076. Wait for wake-on-lan Magic Packet
  1077. endif
  1078. menu "Misc commands"
  1079. config CMD_BMP
  1080. bool "Enable 'bmp' command"
  1081. depends on LCD || DM_VIDEO || VIDEO
  1082. help
  1083. This provides a way to obtain information about a BMP-format iamge
  1084. and to display it. BMP (which presumably stands for BitMaP) is a
  1085. file format defined by Microsoft which supports images of various
  1086. depths, formats and compression methods. Headers on the file
  1087. determine the formats used. This command can be used by first loading
  1088. the image into RAM, then using this command to look at it or display
  1089. it.
  1090. config CMD_BOOTCOUNT
  1091. bool "bootcount"
  1092. depends on BOOTCOUNT_LIMIT
  1093. help
  1094. Enable the bootcount command, which allows interrogation and
  1095. reset of the bootcounter.
  1096. config CMD_BSP
  1097. bool "Enable board-specific commands"
  1098. help
  1099. (deprecated: instead, please define a Kconfig option for each command)
  1100. Some boards have board-specific commands which are only enabled
  1101. during developemnt and need to be turned off for production. This
  1102. option provides a way to control this. The commands that are enabled
  1103. vary depending on the board.
  1104. config CMD_BKOPS_ENABLE
  1105. bool "mmc bkops enable"
  1106. depends on CMD_MMC
  1107. default n
  1108. help
  1109. Enable command for setting manual background operations handshake
  1110. on a eMMC device. The feature is optionally available on eMMC devices
  1111. conforming to standard >= 4.41.
  1112. config CMD_BLOCK_CACHE
  1113. bool "blkcache - control and stats for block cache"
  1114. depends on BLOCK_CACHE
  1115. default y if BLOCK_CACHE
  1116. help
  1117. Enable the blkcache command, which can be used to control the
  1118. operation of the cache functions.
  1119. This is most useful when fine-tuning the operation of the cache
  1120. during development, but also allows the cache to be disabled when
  1121. it might hurt performance (e.g. when using the ums command).
  1122. config CMD_CACHE
  1123. bool "icache or dcache"
  1124. help
  1125. Enable the "icache" and "dcache" commands
  1126. config CMD_DISPLAY
  1127. bool "Enable the 'display' command, for character displays"
  1128. help
  1129. (this needs porting to driver model)
  1130. This enables the 'display' command which allows a string to be
  1131. displayed on a simple board-specific display. Implement
  1132. display_putc() to use it.
  1133. config CMD_LED
  1134. bool "led"
  1135. default y if LED
  1136. help
  1137. Enable the 'led' command which allows for control of LEDs supported
  1138. by the board. The LEDs can be listed with 'led list' and controlled
  1139. with led on/off/togle/blink. Any LED drivers can be controlled with
  1140. this command, e.g. led_gpio.
  1141. config CMD_DATE
  1142. bool "date"
  1143. default y if DM_RTC
  1144. help
  1145. Enable the 'date' command for getting/setting the time/date in RTC
  1146. devices.
  1147. config CMD_TIME
  1148. bool "time"
  1149. help
  1150. Run commands and summarize execution time.
  1151. config CMD_GETTIME
  1152. bool "gettime - read elapsed time"
  1153. help
  1154. Enable the 'gettime' command which reads the elapsed time since
  1155. U-Boot started running. This shows the time in seconds and
  1156. milliseconds. See also the 'bootstage' command which provides more
  1157. flexibility for boot timing.
  1158. # TODO: rename to CMD_SLEEP
  1159. config CMD_MISC
  1160. bool "sleep"
  1161. default y
  1162. help
  1163. Delay execution for some time
  1164. config MP
  1165. bool "support for multiprocessor"
  1166. help
  1167. This provides an option to brinup
  1168. different processors in multiprocessor
  1169. cases.
  1170. config CMD_TIMER
  1171. bool "timer"
  1172. help
  1173. Access the system timer.
  1174. config CMD_SOUND
  1175. bool "sound"
  1176. depends on SOUND
  1177. help
  1178. This provides basic access to the U-Boot's sound support. The main
  1179. feature is to play a beep.
  1180. sound init - set up sound system
  1181. sound play - play a sound
  1182. config CMD_QFW
  1183. bool "qfw"
  1184. select QFW
  1185. help
  1186. This provides access to the QEMU firmware interface. The main
  1187. feature is to allow easy loading of files passed to qemu-system
  1188. via -kernel / -initrd
  1189. source "cmd/mvebu/Kconfig"
  1190. config CMD_TERMINAL
  1191. bool "terminal - provides a way to attach a serial terminal"
  1192. help
  1193. Provides a 'cu'-like serial terminal command. This can be used to
  1194. access other serial ports from the system console. The terminal
  1195. is very simple with no special processing of characters. As with
  1196. cu, you can press ~. (tilde followed by period) to exit.
  1197. config CMD_UUID
  1198. bool "uuid, guid - generation of unique IDs"
  1199. select LIB_UUID
  1200. help
  1201. This enables two commands:
  1202. uuid - generate random Universally Unique Identifier
  1203. guid - generate Globally Unique Identifier based on random UUID
  1204. The two commands are very similar except for the endianness of the
  1205. output.
  1206. endmenu
  1207. source "cmd/ti/Kconfig"
  1208. config CMD_BOOTSTAGE
  1209. bool "Enable the 'bootstage' command"
  1210. depends on BOOTSTAGE
  1211. help
  1212. Add a 'bootstage' command which supports printing a report
  1213. and un/stashing of bootstage data.
  1214. menu "Power commands"
  1215. config CMD_PMIC
  1216. bool "Enable Driver Model PMIC command"
  1217. depends on DM_PMIC
  1218. help
  1219. This is the pmic command, based on a driver model pmic's API.
  1220. Command features are unchanged:
  1221. - list - list pmic devices
  1222. - pmic dev <id> - show or [set] operating pmic device (NEW)
  1223. - pmic dump - dump registers
  1224. - pmic read address - read byte of register at address
  1225. - pmic write address - write byte to register at address
  1226. The only one change for this command is 'dev' subcommand.
  1227. config CMD_REGULATOR
  1228. bool "Enable Driver Model REGULATOR command"
  1229. depends on DM_REGULATOR
  1230. help
  1231. This command is based on driver model regulator's API.
  1232. User interface features:
  1233. - list - list regulator devices
  1234. - regulator dev <id> - show or [set] operating regulator device
  1235. - regulator info - print constraints info
  1236. - regulator status - print operating status
  1237. - regulator value <val] <-f> - print/[set] voltage value [uV]
  1238. - regulator current <val> - print/[set] current value [uA]
  1239. - regulator mode <id> - print/[set] operating mode id
  1240. - regulator enable - enable the regulator output
  1241. - regulator disable - disable the regulator output
  1242. The '-f' (force) option can be used for set the value which exceeds
  1243. the limits, which are found in device-tree and are kept in regulator's
  1244. uclass platdata structure.
  1245. endmenu
  1246. menu "Security commands"
  1247. config CMD_AES
  1248. bool "Enable the 'aes' command"
  1249. select AES
  1250. help
  1251. This provides a means to encrypt and decrypt data using the AES
  1252. (Advanced Encryption Standard). This algorithm uses a symetric key
  1253. and is widely used as a streaming cipher. Different key lengths are
  1254. supported by the algorithm but this command only supports 128 bits
  1255. at present.
  1256. config CMD_BLOB
  1257. bool "Enable the 'blob' command"
  1258. help
  1259. This is used with the Freescale secure boot mechanism.
  1260. Freescale's SEC block has built-in Blob Protocol which provides
  1261. a method for protecting user-defined data across system power
  1262. cycles. SEC block protects data in a data structure called a Blob,
  1263. which provides both confidentiality and integrity protection.
  1264. Encapsulating data as a blob
  1265. Each time that the Blob Protocol is used to protect data, a
  1266. different randomly generated key is used to encrypt the data.
  1267. This random key is itself encrypted using a key which is derived
  1268. from SoC's non-volatile secret key and a 16 bit Key identifier.
  1269. The resulting encrypted key along with encrypted data is called a
  1270. blob. The non-volatile secure key is available for use only during
  1271. secure boot.
  1272. During decapsulation, the reverse process is performed to get back
  1273. the original data.
  1274. Sub-commands:
  1275. blob enc - encapsulating data as a cryptgraphic blob
  1276. blob dec - decapsulating cryptgraphic blob to get the data
  1277. Syntax:
  1278. blob enc src dst len km
  1279. Encapsulate and create blob of data $len bytes long
  1280. at address $src and store the result at address $dst.
  1281. $km is the 16 byte key modifier is also required for
  1282. generation/use as key for cryptographic operation. Key
  1283. modifier should be 16 byte long.
  1284. blob dec src dst len km
  1285. Decapsulate the blob of data at address $src and
  1286. store result of $len byte at addr $dst.
  1287. $km is the 16 byte key modifier is also required for
  1288. generation/use as key for cryptographic operation. Key
  1289. modifier should be 16 byte long.
  1290. config CMD_HASH
  1291. bool "Support 'hash' command"
  1292. select HASH
  1293. help
  1294. This provides a way to hash data in memory using various supported
  1295. algorithms (such as SHA1, MD5, CRC32). The computed digest can be
  1296. saved to memory or to an environment variable. It is also possible
  1297. to verify a hash against data in memory.
  1298. config CMD_HVC
  1299. bool "Support the 'hvc' command"
  1300. depends on ARM_SMCCC
  1301. help
  1302. Allows issuing Hypervisor Calls (HVCs). Mostly useful for
  1303. development and testing.
  1304. config CMD_SMC
  1305. bool "Support the 'smc' command"
  1306. depends on ARM_SMCCC
  1307. help
  1308. Allows issuing Secure Monitor Calls (SMCs). Mostly useful for
  1309. development and testing.
  1310. config HASH_VERIFY
  1311. bool "hash -v"
  1312. depends on CMD_HASH
  1313. help
  1314. Add -v option to verify data against a hash.
  1315. config CMD_TPM_V1
  1316. bool
  1317. config CMD_TPM_V2
  1318. bool
  1319. select CMD_LOG
  1320. config CMD_TPM
  1321. bool "Enable the 'tpm' command"
  1322. depends on TPM_V1 || TPM_V2
  1323. select CMD_TPM_V1 if TPM_V1
  1324. select CMD_TPM_V2 if TPM_V2
  1325. help
  1326. This provides a means to talk to a TPM from the command line. A wide
  1327. range of commands if provided - see 'tpm help' for details. The
  1328. command requires a suitable TPM on your board and the correct driver
  1329. must be enabled.
  1330. if CMD_TPM
  1331. config CMD_TPM_TEST
  1332. bool "Enable the 'tpm test' command"
  1333. depends on TPM_V1
  1334. help
  1335. This provides a a series of tests to confirm that the TPMv1.x is
  1336. working correctly. The tests cover initialisation, non-volatile RAM,
  1337. extend, global lock and checking that timing is within expectations.
  1338. The tests pass correctly on Infineon TPMs but may need to be adjusted
  1339. for other devices.
  1340. endif
  1341. endmenu
  1342. menu "Firmware commands"
  1343. config CMD_CROS_EC
  1344. bool "Enable crosec command"
  1345. depends on CROS_EC
  1346. default y
  1347. help
  1348. Enable command-line access to the Chrome OS EC (Embedded
  1349. Controller). This provides the 'crosec' command which has
  1350. a number of sub-commands for performing EC tasks such as
  1351. updating its flash, accessing a small saved context area
  1352. and talking to the I2C bus behind the EC (if there is one).
  1353. endmenu
  1354. menu "Filesystem commands"
  1355. config CMD_BTRFS
  1356. bool "Enable the 'btrsubvol' command"
  1357. select FS_BTRFS
  1358. help
  1359. This enables the 'btrsubvol' command to list subvolumes
  1360. of a BTRFS filesystem. There are no special commands for
  1361. listing BTRFS directories or loading BTRFS files - this
  1362. can be done by the generic 'fs' commands (see CMD_FS_GENERIC)
  1363. when BTRFS is enabled (see FS_BTRFS).
  1364. config CMD_CBFS
  1365. bool "Enable the 'cbfs' command"
  1366. depends on FS_CBFS
  1367. help
  1368. Define this to enable support for reading from a Coreboot
  1369. filesystem. This is a ROM-based filesystem used for accessing files
  1370. on systems that use coreboot as the first boot-loader and then load
  1371. U-Boot to actually boot the Operating System. Available commands are
  1372. cbfsinit, cbfsinfo, cbfsls and cbfsload.
  1373. config CMD_CRAMFS
  1374. bool "Enable the 'cramfs' command"
  1375. depends on FS_CRAMFS
  1376. help
  1377. This provides commands for dealing with CRAMFS (Compressed ROM
  1378. filesystem). CRAMFS is useful when space is tight since files are
  1379. compressed. Two commands are provided:
  1380. cramfsls - lists files in a cramfs image
  1381. cramfsload - loads a file from a cramfs image
  1382. config CMD_EXT2
  1383. bool "ext2 command support"
  1384. select FS_EXT4
  1385. help
  1386. Enables EXT2 FS command
  1387. config CMD_EXT4
  1388. bool "ext4 command support"
  1389. select FS_EXT4
  1390. help
  1391. Enables EXT4 FS command
  1392. config CMD_EXT4_WRITE
  1393. depends on CMD_EXT4
  1394. bool "ext4 write command support"
  1395. select EXT4_WRITE
  1396. help
  1397. Enables EXT4 FS write command
  1398. config CMD_FAT
  1399. bool "FAT command support"
  1400. select FS_FAT
  1401. help
  1402. Support for the FAT fs
  1403. config CMD_FS_GENERIC
  1404. bool "filesystem commands"
  1405. help
  1406. Enables filesystem commands (e.g. load, ls) that work for multiple
  1407. fs types.
  1408. config CMD_FS_UUID
  1409. bool "fsuuid command"
  1410. help
  1411. Enables fsuuid command for filesystem UUID.
  1412. config CMD_JFFS2
  1413. bool "jffs2 command"
  1414. select FS_JFFS2
  1415. help
  1416. Enables commands to support the JFFS2 (Journalling Flash File System
  1417. version 2) filesystem. This enables fsload, ls and fsinfo which
  1418. provide the ability to load files, list directories and obtain
  1419. filesystem information.
  1420. config CMD_MTDPARTS
  1421. bool "MTD partition support"
  1422. select MTD_DEVICE if (CMD_NAND || NAND)
  1423. help
  1424. MTD partition support
  1425. config MTDIDS_DEFAULT
  1426. string "Default MTD IDs"
  1427. depends on CMD_MTDPARTS || CMD_NAND || CMD_FLASH
  1428. help
  1429. Defines a default MTD IDs list for use with MTD partitions in the
  1430. Linux MTD command line partitions format.
  1431. config MTDPARTS_DEFAULT
  1432. string "Default MTD partition scheme"
  1433. depends on CMD_MTDPARTS || CMD_NAND || CMD_FLASH
  1434. help
  1435. Defines a default MTD partitioning scheme in the Linux MTD command
  1436. line partitions format
  1437. config CMD_MTDPARTS_SPREAD
  1438. bool "Padd partition size to take account of bad blocks"
  1439. depends on CMD_MTDPARTS
  1440. help
  1441. This enables the 'spread' sub-command of the mtdparts command.
  1442. This command will modify the existing mtdparts variable by increasing
  1443. the size of the partitions such that 1) each partition's net size is
  1444. at least as large as the size specified in the mtdparts variable and
  1445. 2) each partition starts on a good block.
  1446. config CMD_REISER
  1447. bool "reiser - Access to reiserfs filesystems"
  1448. help
  1449. This provides two commands which operate on a resierfs filesystem,
  1450. commonly used some years ago:
  1451. reiserls - list files
  1452. reiserload - load a file
  1453. config CMD_YAFFS2
  1454. bool "yaffs2 - Access of YAFFS2 filesystem"
  1455. depends on YAFFS2
  1456. default y
  1457. help
  1458. This provides commands for accessing a YAFFS2 filesystem. Yet
  1459. Another Flash Filesystem 2 is a filesystem designed specifically
  1460. for NAND flash. It incorporates bad-block management and ensures
  1461. that device writes are sequential regardless of filesystem
  1462. activity.
  1463. config CMD_ZFS
  1464. bool "zfs - Access of ZFS filesystem"
  1465. help
  1466. This provides commands to accessing a ZFS filesystem, commonly used
  1467. on Solaris systems. Two sub-commands are provided:
  1468. zfsls - list files in a directory
  1469. zfsload - load a file
  1470. See doc/README.zfs for more details.
  1471. endmenu
  1472. menu "Debug commands"
  1473. config CMD_BEDBUG
  1474. bool "bedbug"
  1475. help
  1476. The bedbug (emBEDded deBUGger) command provides debugging features
  1477. for some PowerPC processors. For details please see the
  1478. docuemntation in doc/README.beddbug
  1479. config CMD_DIAG
  1480. bool "diag - Board diagnostics"
  1481. help
  1482. This command provides access to board diagnostic tests. These are
  1483. called Power-on Self Tests (POST). The command allows listing of
  1484. available tests and running either all the tests, or specific tests
  1485. identified by name.
  1486. config CMD_IRQ
  1487. bool "irq - Show information about interrupts"
  1488. depends on !ARM && !MIPS && !SH
  1489. help
  1490. This enables two commands:
  1491. interrupts - enable or disable interrupts
  1492. irqinfo - print device-specific interrupt information
  1493. config CMD_KGDB
  1494. bool "kgdb - Allow debugging of U-Boot with gdb"
  1495. help
  1496. This enables a 'kgdb' command which allows gdb to connect to U-Boot
  1497. over a serial link for debugging purposes. This allows
  1498. single-stepping, inspecting variables, etc. This is supported only
  1499. on PowerPC at present.
  1500. config CMD_LOG
  1501. bool "log - Generation, control and access to logging"
  1502. select LOG
  1503. help
  1504. This provides access to logging features. It allows the output of
  1505. log data to be controlled to a limited extent (setting up the default
  1506. maximum log level for emitting of records). It also provides access
  1507. to a command used for testing the log system.
  1508. config CMD_TRACE
  1509. bool "trace - Support tracing of function calls and timing"
  1510. help
  1511. Enables a command to control using of function tracing within
  1512. U-Boot. This allows recording of call traces including timing
  1513. information. The command can write data to memory for exporting
  1514. for analsys (e.g. using bootchart). See doc/README.trace for full
  1515. details.
  1516. config CMD_AVB
  1517. bool "avb - Android Verified Boot 2.0 operations"
  1518. depends on AVB_VERIFY
  1519. default n
  1520. help
  1521. Enables a "avb" command to perform verification of partitions using
  1522. Android Verified Boot 2.0 functionality. It includes such subcommands:
  1523. avb init - initialize avb2 subsystem
  1524. avb read_rb - read rollback index
  1525. avb write_rb - write rollback index
  1526. avb is_unlocked - check device lock state
  1527. avb get_uuid - read and print uuid of a partition
  1528. avb read_part - read data from partition
  1529. avb read_part_hex - read data from partition and output to stdout
  1530. avb write_part - write data to partition
  1531. avb verify - run full verification chain
  1532. endmenu
  1533. config CMD_UBI
  1534. tristate "Enable UBI - Unsorted block images commands"
  1535. select CMD_MTDPARTS
  1536. select CRC32
  1537. select MTD_UBI
  1538. help
  1539. UBI is a software layer above MTD layer which admits use of LVM-like
  1540. logical volumes on top of MTD devices, hides some complexities of
  1541. flash chips like wear and bad blocks and provides some other useful
  1542. capabilities. Please, consult the MTD web site for more details
  1543. (www.linux-mtd.infradead.org). Activate this option if you want
  1544. to use U-Boot UBI commands.
  1545. config CMD_UBIFS
  1546. tristate "Enable UBIFS - Unsorted block images filesystem commands"
  1547. depends on CMD_UBI
  1548. default y if CMD_UBI
  1549. select CRC32
  1550. select LZO
  1551. help
  1552. UBIFS is a file system for flash devices which works on top of UBI.
  1553. endmenu