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. config AUTOBOOT_MENU_SHOW
  152. bool "Show a menu on boot"
  153. help
  154. This enables the boot menu, controlled by environment variables
  155. defined by the board. The menu starts after running the 'preboot'
  156. environmnent variable (if enabled) and before handling the boot delay.
  157. See README.bootmenu for more details.
  158. endmenu
  159. config BUILD_BIN2C
  160. bool
  161. comment "Commands"
  162. menu "Info commands"
  163. config CMD_BDI
  164. bool "bdinfo"
  165. default y
  166. help
  167. Print board info
  168. config CMD_CONFIG
  169. bool "config"
  170. default SANDBOX
  171. select BUILD_BIN2C
  172. help
  173. Print ".config" contents.
  174. If this option is enabled, the ".config" file contents are embedded
  175. in the U-Boot image and can be printed on the console by the "config"
  176. command. This provides information of which options are enabled on
  177. the running U-Boot.
  178. config CMD_CONSOLE
  179. bool "coninfo"
  180. default y
  181. help
  182. Print console devices and information.
  183. config CMD_CPU
  184. bool "cpu"
  185. help
  186. Print information about available CPUs. This normally shows the
  187. number of CPUs, type (e.g. manufacturer, architecture, product or
  188. internal name) and clock frequency. Other information may be
  189. available depending on the CPU driver.
  190. config CMD_LICENSE
  191. bool "license"
  192. select BUILD_BIN2C
  193. help
  194. Print GPL license text
  195. config CMD_REGINFO
  196. bool "reginfo"
  197. depends on PPC
  198. help
  199. Register dump
  200. endmenu
  201. menu "Boot commands"
  202. config CMD_BOOTD
  203. bool "bootd"
  204. default y
  205. help
  206. Run the command stored in the environment "bootcmd", i.e.
  207. "bootd" does the same thing as "run bootcmd".
  208. config CMD_BOOTM
  209. bool "bootm"
  210. default y
  211. help
  212. Boot an application image from the memory.
  213. config CMD_BOOTZ
  214. bool "bootz"
  215. help
  216. Boot the Linux zImage
  217. config CMD_BOOTI
  218. bool "booti"
  219. depends on ARM64 || RISCV
  220. default y
  221. help
  222. Boot an AArch64 Linux Kernel image from memory.
  223. config CMD_BOOTEFI
  224. bool "bootefi"
  225. depends on EFI_LOADER
  226. default y
  227. help
  228. Boot an EFI image from memory.
  229. config CMD_BOOTEFI_HELLO_COMPILE
  230. bool "Compile a standard EFI hello world binary for testing"
  231. depends on CMD_BOOTEFI && !CPU_V7M && !SANDBOX
  232. default y
  233. help
  234. This compiles a standard EFI hello world application with U-Boot so
  235. that it can be used with the test/py testing framework. This is useful
  236. for testing that EFI is working at a basic level, and for bringing
  237. up EFI support on a new architecture.
  238. No additional space will be required in the resulting U-Boot binary
  239. when this option is enabled.
  240. config CMD_BOOTEFI_HELLO
  241. bool "Allow booting a standard EFI hello world for testing"
  242. depends on CMD_BOOTEFI_HELLO_COMPILE
  243. help
  244. This adds a standard EFI hello world application to U-Boot so that
  245. it can be used with the 'bootefi hello' command. This is useful
  246. for testing that EFI is working at a basic level, and for bringing
  247. up EFI support on a new architecture.
  248. source lib/efi_selftest/Kconfig
  249. config CMD_BOOTMENU
  250. bool "bootmenu"
  251. select MENU
  252. help
  253. Add an ANSI terminal boot menu command.
  254. config CMD_DTIMG
  255. bool "dtimg"
  256. help
  257. Android DTB/DTBO image manipulation commands. Read dtb/dtbo files from
  258. image into RAM, dump image structure information, etc. Those dtb/dtbo
  259. files should be merged in one dtb further, which needs to be passed to
  260. the kernel, as part of a boot process.
  261. config CMD_ELF
  262. bool "bootelf, bootvx"
  263. default y
  264. help
  265. Boot an ELF/vxWorks image from the memory.
  266. config CMD_FDT
  267. bool "Flattened Device Tree utility commands"
  268. default y
  269. depends on OF_LIBFDT
  270. help
  271. Do FDT related setup before booting into the Operating System.
  272. config CMD_GO
  273. bool "go"
  274. default y
  275. help
  276. Start an application at a given address.
  277. config CMD_RUN
  278. bool "run"
  279. default y
  280. help
  281. Run the command in the given environment variable.
  282. config CMD_IMI
  283. bool "iminfo"
  284. default y
  285. help
  286. Print header information for application image.
  287. config CMD_IMLS
  288. bool "imls"
  289. help
  290. List all images found in flash
  291. config CMD_XIMG
  292. bool "imxtract"
  293. default y
  294. help
  295. Extract a part of a multi-image.
  296. config CMD_SPL
  297. bool "spl export - Export boot information for Falcon boot"
  298. depends on SPL
  299. help
  300. Falcon mode allows booting directly from SPL into an Operating
  301. System such as Linux, thus skipping U-Boot proper. See
  302. doc/README.falcon for full information about how to use this
  303. command.
  304. config CMD_SPL_NAND_OFS
  305. hex "Offset of OS args or dtb for Falcon-mode NAND boot"
  306. depends on CMD_SPL && (TPL_NAND_SUPPORT || SPL_NAND_SUPPORT)
  307. default 0
  308. help
  309. This provides the offset of the command line arguments for Linux
  310. when booting from NAND in Falcon mode. See doc/README.falcon
  311. for full information about how to use this option (and also see
  312. board/gateworks/gw_ventana/README for an example).
  313. config CMD_SPL_NOR_OFS
  314. hex "Offset of OS args or dtb for Falcon-mode NOR boot"
  315. depends on CMD_SPL && SPL_NOR_SUPPORT
  316. default 0
  317. help
  318. This provides the offset of the command line arguments or dtb for
  319. Linux when booting from NOR in Falcon mode.
  320. config CMD_SPL_WRITE_SIZE
  321. hex "Size of argument area"
  322. depends on CMD_SPL
  323. default 0x2000
  324. help
  325. This provides the size of the command-line argument area in NAND
  326. flash used by Falcon-mode boot. See the documentation until CMD_SPL
  327. for detail.
  328. config CMD_FITUPD
  329. bool "fitImage update command"
  330. help
  331. Implements the 'fitupd' command, which allows to automatically
  332. store software updates present on a TFTP server in NOR Flash
  333. config CMD_THOR_DOWNLOAD
  334. bool "thor - TIZEN 'thor' download"
  335. help
  336. Implements the 'thor' download protocol. This is a way of
  337. downloading a software update over USB from an attached host.
  338. There is no documentation about this within the U-Boot source code
  339. but you should be able to find something on the interwebs.
  340. config CMD_ZBOOT
  341. bool "zboot - x86 boot command"
  342. help
  343. With x86 machines it is common to boot a bzImage file which
  344. contains both a kernel and a setup.bin file. The latter includes
  345. configuration information from the dark ages which x86 boards still
  346. need to pick things out of.
  347. Consider using FIT in preference to this since it supports directly
  348. booting both 32- and 64-bit kernels, as well as secure boot.
  349. Documentation is available in doc/uImage.FIT/x86-fit-boot.txt
  350. endmenu
  351. menu "Environment commands"
  352. config CMD_ASKENV
  353. bool "ask for env variable"
  354. help
  355. Ask for environment variable
  356. config CMD_EXPORTENV
  357. bool "env export"
  358. default y
  359. help
  360. Export environments.
  361. config CMD_IMPORTENV
  362. bool "env import"
  363. default y
  364. help
  365. Import environments.
  366. config CMD_EDITENV
  367. bool "editenv"
  368. default y
  369. help
  370. Edit environment variable.
  371. config CMD_GREPENV
  372. bool "search env"
  373. help
  374. Allow for searching environment variables
  375. config CMD_SAVEENV
  376. bool "saveenv"
  377. default y
  378. help
  379. Save all environment variables into the compiled-in persistent
  380. storage.
  381. config CMD_ERASEENV
  382. bool "eraseenv"
  383. default n
  384. depends on CMD_SAVEENV
  385. help
  386. Erase environment variables from the compiled-in persistent
  387. storage.
  388. config CMD_ENV_EXISTS
  389. bool "env exists"
  390. default y
  391. help
  392. Check if a variable is defined in the environment for use in
  393. shell scripting.
  394. config CMD_ENV_CALLBACK
  395. bool "env callbacks - print callbacks and their associated variables"
  396. help
  397. Some environment variable have callbacks defined by
  398. U_BOOT_ENV_CALLBACK. These are called when the variable changes.
  399. For example changing "baudrate" adjust the serial baud rate. This
  400. command lists the currently defined callbacks.
  401. config CMD_ENV_FLAGS
  402. bool "env flags -print variables that have non-default flags"
  403. help
  404. Some environment variables have special flags that control their
  405. behaviour. For example, serial# can only be written once and cannot
  406. be deleted. This command shows the variables that have special
  407. flags.
  408. config CMD_NVEDIT_EFI
  409. bool "env [set|print] -e - set/print UEFI variables"
  410. depends on EFI_LOADER
  411. default y
  412. imply HEXDUMP
  413. help
  414. UEFI variables are encoded as some form of U-Boot variables.
  415. If enabled, we are allowed to set/print UEFI variables using
  416. "env" command with "-e" option without knowing details.
  417. config CMD_NVEDIT_INFO
  418. bool "env info - print or evaluate environment information"
  419. help
  420. Print environment information:
  421. - env_valid : is environment valid
  422. - env_ready : is environment imported into hash table
  423. - env_use_default : is default environment used
  424. This command can be optionally used for evaluation in scripts:
  425. [-d] : evaluate whether default environment is used
  426. [-p] : evaluate whether environment can be persisted
  427. The result of multiple evaluations will be combined with AND.
  428. endmenu
  429. menu "Memory commands"
  430. config CMD_BINOP
  431. bool "binop"
  432. help
  433. Compute binary operations (xor, or, and) of byte arrays of arbitrary
  434. size from memory and store the result in memory or the environment.
  435. config CMD_CRC32
  436. bool "crc32"
  437. default y
  438. select HASH
  439. help
  440. Compute CRC32.
  441. config CRC32_VERIFY
  442. bool "crc32 -v"
  443. depends on CMD_CRC32
  444. help
  445. Add -v option to verify data against a crc32 checksum.
  446. config CMD_EEPROM
  447. bool "eeprom - EEPROM subsystem"
  448. help
  449. (deprecated, needs conversion to driver model)
  450. Provides commands to read and write EEPROM (Electrically Erasable
  451. Programmable Read Only Memory) chips that are connected over an
  452. I2C bus.
  453. config CMD_EEPROM_LAYOUT
  454. bool "Enable layout-aware eeprom commands"
  455. depends on CMD_EEPROM
  456. help
  457. (deprecated, needs conversion to driver model)
  458. When enabled, additional eeprom sub-commands become available.
  459. eeprom print - prints the contents of the eeprom in a human-readable
  460. way (eeprom layout fields, and data formatted to be fit for human
  461. consumption).
  462. eeprom update - allows user to update eeprom fields by specifying
  463. the field name, and providing the new data in a human readable format
  464. (same format as displayed by the eeprom print command).
  465. Both commands can either auto detect the layout, or be told which
  466. layout to use.
  467. Feature API:
  468. __weak int parse_layout_version(char *str)
  469. - override to provide your own layout name parsing
  470. __weak void __eeprom_layout_assign(struct eeprom_layout *layout,
  471. int layout_version);
  472. - override to setup the layout metadata based on the version
  473. __weak int eeprom_layout_detect(unsigned char *data)
  474. - override to provide your own algorithm for detecting layout
  475. version
  476. eeprom_field.c
  477. - contains various printing and updating functions for common
  478. types of eeprom fields. Can be used for defining
  479. custom layouts.
  480. config EEPROM_LAYOUT_HELP_STRING
  481. string "Tells user what layout names are supported"
  482. depends on CMD_EEPROM_LAYOUT
  483. default "<not defined>"
  484. help
  485. Help printed with the LAYOUT VERSIONS part of the 'eeprom'
  486. command's help.
  487. config LOOPW
  488. bool "loopw"
  489. help
  490. Infinite write loop on address range
  491. config CMD_MD5SUM
  492. bool "md5sum"
  493. default n
  494. select MD5
  495. help
  496. Compute MD5 checksum.
  497. config MD5SUM_VERIFY
  498. bool "md5sum -v"
  499. default n
  500. depends on CMD_MD5SUM
  501. help
  502. Add -v option to verify data against an MD5 checksum.
  503. config CMD_MEMINFO
  504. bool "meminfo"
  505. help
  506. Display memory information.
  507. config CMD_MEMORY
  508. bool "md, mm, nm, mw, cp, cmp, base, loop"
  509. default y
  510. help
  511. Memory commands.
  512. md - memory display
  513. mm - memory modify (auto-incrementing address)
  514. nm - memory modify (constant address)
  515. mw - memory write (fill)
  516. cp - memory copy
  517. cmp - memory compare
  518. base - print or set address offset
  519. loop - initialize loop on address range
  520. config CMD_RANDOM
  521. bool "random"
  522. default y
  523. depends on CMD_MEMORY && (LIB_RAND || LIB_HW_RAND)
  524. help
  525. random - fill memory with random data
  526. config CMD_MEMTEST
  527. bool "memtest"
  528. help
  529. Simple RAM read/write test.
  530. if CMD_MEMTEST
  531. config SYS_ALT_MEMTEST
  532. bool "Alternative test"
  533. help
  534. Use a more complete alternative memory test.
  535. endif
  536. config CMD_MX_CYCLIC
  537. bool "mdc, mwc"
  538. help
  539. mdc - memory display cyclic
  540. mwc - memory write cyclic
  541. config CMD_SHA1SUM
  542. bool "sha1sum"
  543. select SHA1
  544. help
  545. Compute SHA1 checksum.
  546. config SHA1SUM_VERIFY
  547. bool "sha1sum -v"
  548. depends on CMD_SHA1SUM
  549. help
  550. Add -v option to verify data against a SHA1 checksum.
  551. config CMD_STRINGS
  552. bool "strings - display strings in memory"
  553. help
  554. This works similarly to the Unix 'strings' command except that it
  555. works with a memory range. String of printable characters found
  556. within the range are displayed. The minimum number of characters
  557. for a sequence to be considered a string can be provided.
  558. endmenu
  559. menu "Compression commands"
  560. config CMD_LZMADEC
  561. bool "lzmadec"
  562. default y if CMD_BOOTI
  563. select LZMA
  564. help
  565. Support decompressing an LZMA (Lempel-Ziv-Markov chain algorithm)
  566. image from memory.
  567. config CMD_UNZIP
  568. bool "unzip"
  569. default y if CMD_BOOTI
  570. help
  571. Uncompress a zip-compressed memory region.
  572. config CMD_ZIP
  573. bool "zip"
  574. help
  575. Compress a memory region with zlib deflate method.
  576. endmenu
  577. menu "Device access commands"
  578. config CMD_ARMFLASH
  579. #depends on FLASH_CFI_DRIVER
  580. bool "armflash"
  581. help
  582. ARM Ltd reference designs flash partition access
  583. config CMD_ADC
  584. bool "adc - Access Analog to Digital Converters info and data"
  585. select ADC
  586. select DM_REGULATOR
  587. help
  588. Shows ADC device info and permit printing one-shot analog converted
  589. data from a named Analog to Digital Converter.
  590. config CMD_BCB
  591. bool "bcb"
  592. depends on MMC
  593. depends on PARTITIONS
  594. help
  595. Read/modify/write the fields of Bootloader Control Block, usually
  596. stored on the flash "misc" partition with its structure defined in:
  597. https://android.googlesource.com/platform/bootable/recovery/+/master/
  598. bootloader_message/include/bootloader_message/bootloader_message.h
  599. Some real-life use-cases include (but are not limited to):
  600. - Determine the "boot reason" (and act accordingly):
  601. https://source.android.com/devices/bootloader/boot-reason
  602. - Get/pass a list of commands from/to recovery:
  603. https://android.googlesource.com/platform/bootable/recovery
  604. - Inspect/dump the contents of the BCB fields
  605. config CMD_BIND
  606. bool "bind/unbind - Bind or unbind a device to/from a driver"
  607. depends on DM
  608. help
  609. Bind or unbind a device to/from a driver from the command line.
  610. This is useful in situations where a device may be handled by several
  611. drivers. For example, this can be used to bind a UDC to the usb ether
  612. gadget driver from the command line.
  613. config CMD_CLK
  614. bool "clk - Show clock frequencies"
  615. help
  616. (deprecated)
  617. Shows clock frequences by calling a sock_clk_dump() hook function.
  618. This is depreated in favour of using the CLK uclass and accessing
  619. clock values from associated drivers. However currently no command
  620. exists for this.
  621. config CMD_DEMO
  622. bool "demo - Demonstration commands for driver model"
  623. depends on DM
  624. help
  625. Provides a 'demo' command which can be used to play around with
  626. driver model. To use this properly you will need to enable one or
  627. both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
  628. Otherwise you will always get an empty list of devices. The demo
  629. devices are defined in the sandbox device tree, so the easiest
  630. option is to use sandbox and pass the -d point to sandbox's
  631. u-boot.dtb file.
  632. config CMD_DFU
  633. bool "dfu"
  634. select DFU
  635. help
  636. Enables the command "dfu" which is used to have U-Boot create a DFU
  637. class device via USB. This command requires that the "dfu_alt_info"
  638. environment variable be set and define the alt settings to expose to
  639. the host.
  640. config CMD_DM
  641. bool "dm - Access to driver model information"
  642. depends on DM
  643. help
  644. Provides access to driver model data structures and information,
  645. such as a list of devices, list of uclasses and the state of each
  646. device (e.g. activated). This is not required for operation, but
  647. can be useful to see the state of driver model for debugging or
  648. interest.
  649. config CMD_FASTBOOT
  650. bool "fastboot - Android fastboot support"
  651. depends on FASTBOOT
  652. help
  653. This enables the command "fastboot" which enables the Android
  654. fastboot mode for the platform. Fastboot is a protocol for
  655. downloading images, flashing and device control used on
  656. Android devices. Fastboot requires either the network stack
  657. enabled or support for acting as a USB device.
  658. See doc/android/fastboot.txt for more information.
  659. config CMD_FDC
  660. bool "fdcboot - Boot from floppy device"
  661. help
  662. The 'fdtboot' command allows booting an image from a floppy disk.
  663. config CMD_FLASH
  664. bool "flinfo, erase, protect"
  665. default y
  666. help
  667. NOR flash support.
  668. flinfo - print FLASH memory information
  669. erase - FLASH memory
  670. protect - enable or disable FLASH write protection
  671. config CMD_FPGA
  672. bool "fpga"
  673. depends on FPGA
  674. default y
  675. help
  676. FPGA support.
  677. config CMD_FPGA_LOADBP
  678. bool "fpga loadbp - load partial bitstream (Xilinx only)"
  679. depends on CMD_FPGA
  680. help
  681. Supports loading an FPGA device from a bitstream buffer containing
  682. a partial bitstream.
  683. config CMD_FPGA_LOADFS
  684. bool "fpga loadfs - load bitstream from FAT filesystem (Xilinx only)"
  685. depends on CMD_FPGA
  686. help
  687. Supports loading an FPGA device from a FAT filesystem.
  688. config CMD_FPGA_LOADMK
  689. bool "fpga loadmk - load bitstream from image"
  690. depends on CMD_FPGA
  691. help
  692. Supports loading an FPGA device from a image generated by mkimage.
  693. config CMD_FPGA_LOADP
  694. bool "fpga loadp - load partial bitstream"
  695. depends on CMD_FPGA
  696. help
  697. Supports loading an FPGA device from a bitstream buffer containing
  698. a partial bitstream.
  699. config CMD_FPGA_LOAD_SECURE
  700. bool "fpga loads - loads secure bitstreams (Xilinx only)"
  701. depends on CMD_FPGA
  702. help
  703. Enables the fpga loads command which is used to load secure
  704. (authenticated or encrypted or both) bitstreams on to FPGA.
  705. config CMD_FPGAD
  706. bool "fpgad - dump FPGA registers"
  707. help
  708. (legacy, needs conversion to driver model)
  709. Provides a way to dump FPGA registers by calling the board-specific
  710. fpga_get_reg() function. This functions similarly to the 'md'
  711. command.
  712. config CMD_FUSE
  713. bool "fuse - support for the fuse subssystem"
  714. help
  715. (deprecated - needs conversion to driver model)
  716. This allows reading, sensing, programming or overriding fuses
  717. which control the behaviour of the device. The command uses the
  718. fuse_...() API.
  719. config CMD_GPIO
  720. bool "gpio"
  721. help
  722. GPIO support.
  723. config CMD_GPT
  724. bool "GPT (GUID Partition Table) command"
  725. select EFI_PARTITION
  726. select HAVE_BLOCK_DEVICE
  727. select PARTITION_UUIDS
  728. imply RANDOM_UUID
  729. help
  730. Enable the 'gpt' command to ready and write GPT style partition
  731. tables.
  732. config RANDOM_UUID
  733. bool "GPT Random UUID generation"
  734. select LIB_UUID
  735. help
  736. Enable the generation of partitions with random UUIDs if none
  737. are provided.
  738. config CMD_GPT_RENAME
  739. bool "GPT partition renaming commands"
  740. depends on CMD_GPT
  741. help
  742. Enables the 'gpt' command to interchange names on two GPT
  743. partitions via the 'gpt swap' command or to rename single
  744. partitions via the 'rename' command.
  745. config CMD_IDE
  746. bool "ide - Support for IDE drivers"
  747. select IDE
  748. help
  749. Provides an 'ide' command which allows accessing the IDE drive,
  750. reseting the IDE interface, printing the partition table and
  751. geting device info. It also enables the 'diskboot' command which
  752. permits booting from an IDE drive.
  753. config CMD_IO
  754. bool "io - Support for performing I/O accesses"
  755. help
  756. Provides an 'iod' command to display I/O space and an 'iow' command
  757. to write values to the I/O space. This can be useful for manually
  758. checking the state of devices during boot when debugging device
  759. drivers, etc.
  760. config CMD_IOTRACE
  761. bool "iotrace - Support for tracing I/O activity"
  762. help
  763. Provides an 'iotrace' command which supports recording I/O reads and
  764. writes in a trace buffer in memory . It also maintains a checksum
  765. of the trace records (even if space is exhausted) so that the
  766. sequence of I/O accesses can be verified.
  767. When debugging drivers it is useful to see what I/O accesses were
  768. done and in what order.
  769. Even if the individual accesses are of little interest it can be
  770. useful to verify that the access pattern is consistent each time
  771. an operation is performed. In this case a checksum can be used to
  772. characterise the operation of a driver. The checksum can be compared
  773. across different runs of the operation to verify that the driver is
  774. working properly.
  775. In particular, when performing major refactoring of the driver, where
  776. the access pattern should not change, the checksum provides assurance
  777. that the refactoring work has not broken the driver.
  778. This works by sneaking into the io.h heder for an architecture and
  779. redirecting I/O accesses through iotrace's tracing mechanism.
  780. For now no commands are provided to examine the trace buffer. The
  781. format is fairly simple, so 'md' is a reasonable substitute.
  782. Note: The checksum feature is only useful for I/O regions where the
  783. contents do not change outside of software control. Where this is not
  784. suitable you can fall back to manually comparing the addresses. It
  785. might be useful to enhance tracing to only checksum the accesses and
  786. not the data read/written.
  787. config CMD_I2C
  788. bool "i2c"
  789. help
  790. I2C support.
  791. config CMD_W1
  792. depends on W1
  793. default y if W1
  794. bool "w1 - Support for Dallas 1-Wire protocol"
  795. help
  796. Dallas 1-wire protocol support
  797. config CMD_LOADB
  798. bool "loadb"
  799. default y
  800. help
  801. Load a binary file over serial line.
  802. config CMD_LOADS
  803. bool "loads"
  804. default y
  805. help
  806. Load an S-Record file over serial line
  807. config CMD_MMC
  808. bool "mmc"
  809. help
  810. MMC memory mapped support.
  811. config CMD_MMC_RPMB
  812. bool "Enable support for RPMB in the mmc command"
  813. depends on CMD_MMC
  814. help
  815. Enable the commands for reading, writing and programming the
  816. key for the Replay Protection Memory Block partition in eMMC.
  817. config CMD_MMC_SWRITE
  818. bool "mmc swrite"
  819. depends on CMD_MMC && MMC_WRITE
  820. select IMAGE_SPARSE
  821. help
  822. Enable support for the "mmc swrite" command to write Android sparse
  823. images to eMMC.
  824. config CMD_MTD
  825. bool "mtd"
  826. select MTD_PARTITIONS
  827. help
  828. MTD commands support.
  829. config CMD_NAND
  830. bool "nand"
  831. default y if NAND_SUNXI
  832. help
  833. NAND support.
  834. if CMD_NAND
  835. config CMD_NAND_TRIMFFS
  836. bool "nand write.trimffs"
  837. default y if ARCH_SUNXI
  838. help
  839. Allows one to skip empty pages when flashing something on a NAND.
  840. config CMD_NAND_LOCK_UNLOCK
  841. bool "nand lock/unlock"
  842. help
  843. NAND locking support.
  844. config CMD_NAND_TORTURE
  845. bool "nand torture"
  846. help
  847. NAND torture support.
  848. endif # CMD_NAND
  849. config CMD_NVME
  850. bool "nvme"
  851. depends on NVME
  852. default y if NVME
  853. help
  854. NVM Express device support
  855. config CMD_ONENAND
  856. bool "onenand - access to onenand device"
  857. help
  858. OneNAND is a brand of NAND ('Not AND' gate) flash which provides
  859. various useful features. This command allows reading, writing,
  860. and erasing blocks. It allso provides a way to show and change
  861. bad blocks, and test the device.
  862. config CMD_OSD
  863. bool "osd"
  864. help
  865. Enable the 'osd' command which allows to query information from and
  866. write text data to a on-screen display (OSD) device; a virtual device
  867. associated with a display capable of displaying a text overlay on the
  868. display it's associated with..
  869. config CMD_PART
  870. bool "part"
  871. select HAVE_BLOCK_DEVICE
  872. select PARTITION_UUIDS
  873. help
  874. Read and display information about the partition table on
  875. various media.
  876. config CMD_PCI
  877. bool "pci - Access PCI devices"
  878. help
  879. Provide access to PCI (Peripheral Interconnect Bus), a type of bus
  880. used on some devices to allow the CPU to communicate with its
  881. peripherals. Sub-commands allow bus enumeration, displaying and
  882. changing configuration space and a few other features.
  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