Kconfig 57 KB

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