Kconfig 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055
  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 MX_CYCLIC
  521. bool "Enable cyclic md/mw commands"
  522. depends on CMD_MEMORY
  523. help
  524. Add the "mdc" and "mwc" memory commands. These are cyclic
  525. "md/mw" commands.
  526. Examples:
  527. => mdc.b 10 4 500
  528. This command will print 4 bytes (10,11,12,13) each 500 ms.
  529. => mwc.l 100 12345678 10
  530. This command will write 12345678 to address 100 all 10 ms.
  531. config CMD_RANDOM
  532. bool "random"
  533. default y
  534. depends on CMD_MEMORY && (LIB_RAND || LIB_HW_RAND)
  535. help
  536. random - fill memory with random data
  537. config CMD_MEMTEST
  538. bool "memtest"
  539. help
  540. Simple RAM read/write test.
  541. if CMD_MEMTEST
  542. config SYS_ALT_MEMTEST
  543. bool "Alternative test"
  544. help
  545. Use a more complete alternative memory test.
  546. endif
  547. config CMD_MX_CYCLIC
  548. bool "mdc, mwc"
  549. help
  550. mdc - memory display cyclic
  551. mwc - memory write cyclic
  552. config CMD_SHA1SUM
  553. bool "sha1sum"
  554. select SHA1
  555. help
  556. Compute SHA1 checksum.
  557. config SHA1SUM_VERIFY
  558. bool "sha1sum -v"
  559. depends on CMD_SHA1SUM
  560. help
  561. Add -v option to verify data against a SHA1 checksum.
  562. config CMD_STRINGS
  563. bool "strings - display strings in memory"
  564. help
  565. This works similarly to the Unix 'strings' command except that it
  566. works with a memory range. String of printable characters found
  567. within the range are displayed. The minimum number of characters
  568. for a sequence to be considered a string can be provided.
  569. endmenu
  570. menu "Compression commands"
  571. config CMD_LZMADEC
  572. bool "lzmadec"
  573. default y if CMD_BOOTI
  574. select LZMA
  575. help
  576. Support decompressing an LZMA (Lempel-Ziv-Markov chain algorithm)
  577. image from memory.
  578. config CMD_UNZIP
  579. bool "unzip"
  580. default y if CMD_BOOTI
  581. help
  582. Uncompress a zip-compressed memory region.
  583. config CMD_ZIP
  584. bool "zip"
  585. help
  586. Compress a memory region with zlib deflate method.
  587. endmenu
  588. menu "Device access commands"
  589. config CMD_ARMFLASH
  590. #depends on FLASH_CFI_DRIVER
  591. bool "armflash"
  592. help
  593. ARM Ltd reference designs flash partition access
  594. config CMD_ADC
  595. bool "adc - Access Analog to Digital Converters info and data"
  596. select ADC
  597. select DM_REGULATOR
  598. help
  599. Shows ADC device info and permit printing one-shot analog converted
  600. data from a named Analog to Digital Converter.
  601. config CMD_BCB
  602. bool "bcb"
  603. depends on MMC
  604. depends on PARTITIONS
  605. help
  606. Read/modify/write the fields of Bootloader Control Block, usually
  607. stored on the flash "misc" partition with its structure defined in:
  608. https://android.googlesource.com/platform/bootable/recovery/+/master/
  609. bootloader_message/include/bootloader_message/bootloader_message.h
  610. Some real-life use-cases include (but are not limited to):
  611. - Determine the "boot reason" (and act accordingly):
  612. https://source.android.com/devices/bootloader/boot-reason
  613. - Get/pass a list of commands from/to recovery:
  614. https://android.googlesource.com/platform/bootable/recovery
  615. - Inspect/dump the contents of the BCB fields
  616. config CMD_BIND
  617. bool "bind/unbind - Bind or unbind a device to/from a driver"
  618. depends on DM
  619. help
  620. Bind or unbind a device to/from a driver from the command line.
  621. This is useful in situations where a device may be handled by several
  622. drivers. For example, this can be used to bind a UDC to the usb ether
  623. gadget driver from the command line.
  624. config CMD_CLK
  625. bool "clk - Show clock frequencies"
  626. help
  627. (deprecated)
  628. Shows clock frequences by calling a sock_clk_dump() hook function.
  629. This is depreated in favour of using the CLK uclass and accessing
  630. clock values from associated drivers. However currently no command
  631. exists for this.
  632. config CMD_DEMO
  633. bool "demo - Demonstration commands for driver model"
  634. depends on DM
  635. help
  636. Provides a 'demo' command which can be used to play around with
  637. driver model. To use this properly you will need to enable one or
  638. both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
  639. Otherwise you will always get an empty list of devices. The demo
  640. devices are defined in the sandbox device tree, so the easiest
  641. option is to use sandbox and pass the -d point to sandbox's
  642. u-boot.dtb file.
  643. config CMD_DFU
  644. bool "dfu"
  645. select DFU
  646. help
  647. Enables the command "dfu" which is used to have U-Boot create a DFU
  648. class device via USB. This command requires that the "dfu_alt_info"
  649. environment variable be set and define the alt settings to expose to
  650. the host.
  651. config CMD_DM
  652. bool "dm - Access to driver model information"
  653. depends on DM
  654. help
  655. Provides access to driver model data structures and information,
  656. such as a list of devices, list of uclasses and the state of each
  657. device (e.g. activated). This is not required for operation, but
  658. can be useful to see the state of driver model for debugging or
  659. interest.
  660. config CMD_FASTBOOT
  661. bool "fastboot - Android fastboot support"
  662. depends on FASTBOOT
  663. help
  664. This enables the command "fastboot" which enables the Android
  665. fastboot mode for the platform. Fastboot is a protocol for
  666. downloading images, flashing and device control used on
  667. Android devices. Fastboot requires either the network stack
  668. enabled or support for acting as a USB device.
  669. See doc/android/fastboot.txt for more information.
  670. config CMD_FDC
  671. bool "fdcboot - Boot from floppy device"
  672. help
  673. The 'fdtboot' command allows booting an image from a floppy disk.
  674. config CMD_FLASH
  675. bool "flinfo, erase, protect"
  676. default y
  677. help
  678. NOR flash support.
  679. flinfo - print FLASH memory information
  680. erase - FLASH memory
  681. protect - enable or disable FLASH write protection
  682. config CMD_FPGA
  683. bool "fpga"
  684. depends on FPGA
  685. default y
  686. help
  687. FPGA support.
  688. config CMD_FPGA_LOADBP
  689. bool "fpga loadbp - load partial bitstream (Xilinx only)"
  690. depends on CMD_FPGA
  691. help
  692. Supports loading an FPGA device from a bitstream buffer containing
  693. a partial bitstream.
  694. config CMD_FPGA_LOADFS
  695. bool "fpga loadfs - load bitstream from FAT filesystem (Xilinx only)"
  696. depends on CMD_FPGA
  697. help
  698. Supports loading an FPGA device from a FAT filesystem.
  699. config CMD_FPGA_LOADMK
  700. bool "fpga loadmk - load bitstream from image"
  701. depends on CMD_FPGA
  702. help
  703. Supports loading an FPGA device from a image generated by mkimage.
  704. config CMD_FPGA_LOADP
  705. bool "fpga loadp - load partial bitstream"
  706. depends on CMD_FPGA
  707. help
  708. Supports loading an FPGA device from a bitstream buffer containing
  709. a partial bitstream.
  710. config CMD_FPGA_LOAD_SECURE
  711. bool "fpga loads - loads secure bitstreams (Xilinx only)"
  712. depends on CMD_FPGA
  713. help
  714. Enables the fpga loads command which is used to load secure
  715. (authenticated or encrypted or both) bitstreams on to FPGA.
  716. config CMD_FPGAD
  717. bool "fpgad - dump FPGA registers"
  718. help
  719. (legacy, needs conversion to driver model)
  720. Provides a way to dump FPGA registers by calling the board-specific
  721. fpga_get_reg() function. This functions similarly to the 'md'
  722. command.
  723. config CMD_FUSE
  724. bool "fuse - support for the fuse subssystem"
  725. help
  726. (deprecated - needs conversion to driver model)
  727. This allows reading, sensing, programming or overriding fuses
  728. which control the behaviour of the device. The command uses the
  729. fuse_...() API.
  730. config CMD_GPIO
  731. bool "gpio"
  732. help
  733. GPIO support.
  734. config CMD_GPT
  735. bool "GPT (GUID Partition Table) command"
  736. select EFI_PARTITION
  737. select HAVE_BLOCK_DEVICE
  738. select PARTITION_UUIDS
  739. imply RANDOM_UUID
  740. help
  741. Enable the 'gpt' command to ready and write GPT style partition
  742. tables.
  743. config RANDOM_UUID
  744. bool "GPT Random UUID generation"
  745. select LIB_UUID
  746. help
  747. Enable the generation of partitions with random UUIDs if none
  748. are provided.
  749. config CMD_GPT_RENAME
  750. bool "GPT partition renaming commands"
  751. depends on CMD_GPT
  752. help
  753. Enables the 'gpt' command to interchange names on two GPT
  754. partitions via the 'gpt swap' command or to rename single
  755. partitions via the 'rename' command.
  756. config CMD_IDE
  757. bool "ide - Support for IDE drivers"
  758. select IDE
  759. help
  760. Provides an 'ide' command which allows accessing the IDE drive,
  761. reseting the IDE interface, printing the partition table and
  762. geting device info. It also enables the 'diskboot' command which
  763. permits booting from an IDE drive.
  764. config CMD_IO
  765. bool "io - Support for performing I/O accesses"
  766. help
  767. Provides an 'iod' command to display I/O space and an 'iow' command
  768. to write values to the I/O space. This can be useful for manually
  769. checking the state of devices during boot when debugging device
  770. drivers, etc.
  771. config CMD_IOTRACE
  772. bool "iotrace - Support for tracing I/O activity"
  773. help
  774. Provides an 'iotrace' command which supports recording I/O reads and
  775. writes in a trace buffer in memory . It also maintains a checksum
  776. of the trace records (even if space is exhausted) so that the
  777. sequence of I/O accesses can be verified.
  778. When debugging drivers it is useful to see what I/O accesses were
  779. done and in what order.
  780. Even if the individual accesses are of little interest it can be
  781. useful to verify that the access pattern is consistent each time
  782. an operation is performed. In this case a checksum can be used to
  783. characterise the operation of a driver. The checksum can be compared
  784. across different runs of the operation to verify that the driver is
  785. working properly.
  786. In particular, when performing major refactoring of the driver, where
  787. the access pattern should not change, the checksum provides assurance
  788. that the refactoring work has not broken the driver.
  789. This works by sneaking into the io.h heder for an architecture and
  790. redirecting I/O accesses through iotrace's tracing mechanism.
  791. For now no commands are provided to examine the trace buffer. The
  792. format is fairly simple, so 'md' is a reasonable substitute.
  793. Note: The checksum feature is only useful for I/O regions where the
  794. contents do not change outside of software control. Where this is not
  795. suitable you can fall back to manually comparing the addresses. It
  796. might be useful to enhance tracing to only checksum the accesses and
  797. not the data read/written.
  798. config CMD_I2C
  799. bool "i2c"
  800. help
  801. I2C support.
  802. config CMD_W1
  803. depends on W1
  804. default y if W1
  805. bool "w1 - Support for Dallas 1-Wire protocol"
  806. help
  807. Dallas 1-wire protocol support
  808. config CMD_LOADB
  809. bool "loadb"
  810. default y
  811. help
  812. Load a binary file over serial line.
  813. config CMD_LOADS
  814. bool "loads"
  815. default y
  816. help
  817. Load an S-Record file over serial line
  818. config CMD_MMC
  819. bool "mmc"
  820. help
  821. MMC memory mapped support.
  822. config CMD_MMC_RPMB
  823. bool "Enable support for RPMB in the mmc command"
  824. depends on CMD_MMC
  825. help
  826. Enable the commands for reading, writing and programming the
  827. key for the Replay Protection Memory Block partition in eMMC.
  828. config CMD_MMC_SWRITE
  829. bool "mmc swrite"
  830. depends on CMD_MMC && MMC_WRITE
  831. select IMAGE_SPARSE
  832. help
  833. Enable support for the "mmc swrite" command to write Android sparse
  834. images to eMMC.
  835. config CMD_MTD
  836. bool "mtd"
  837. select MTD_PARTITIONS
  838. help
  839. MTD commands support.
  840. config CMD_NAND
  841. bool "nand"
  842. default y if NAND_SUNXI
  843. help
  844. NAND support.
  845. if CMD_NAND
  846. config CMD_NAND_TRIMFFS
  847. bool "nand write.trimffs"
  848. default y if ARCH_SUNXI
  849. help
  850. Allows one to skip empty pages when flashing something on a NAND.
  851. config CMD_NAND_LOCK_UNLOCK
  852. bool "nand lock/unlock"
  853. help
  854. NAND locking support.
  855. config CMD_NAND_TORTURE
  856. bool "nand torture"
  857. help
  858. NAND torture support.
  859. endif # CMD_NAND
  860. config CMD_NVME
  861. bool "nvme"
  862. depends on NVME
  863. default y if NVME
  864. help
  865. NVM Express device support
  866. config CMD_ONENAND
  867. bool "onenand - access to onenand device"
  868. help
  869. OneNAND is a brand of NAND ('Not AND' gate) flash which provides
  870. various useful features. This command allows reading, writing,
  871. and erasing blocks. It allso provides a way to show and change
  872. bad blocks, and test the device.
  873. config CMD_OSD
  874. bool "osd"
  875. help
  876. Enable the 'osd' command which allows to query information from and
  877. write text data to a on-screen display (OSD) device; a virtual device
  878. associated with a display capable of displaying a text overlay on the
  879. display it's associated with..
  880. config CMD_PART
  881. bool "part"
  882. select HAVE_BLOCK_DEVICE
  883. select PARTITION_UUIDS
  884. help
  885. Read and display information about the partition table on
  886. various media.
  887. config CMD_PCI
  888. bool "pci - Access PCI devices"
  889. help
  890. Provide access to PCI (Peripheral Interconnect Bus), a type of bus
  891. used on some devices to allow the CPU to communicate with its
  892. peripherals. Sub-commands allow bus enumeration, displaying and
  893. changing configuration space and a few other features.
  894. config CMD_PINMUX
  895. bool "pinmux - show pins muxing"
  896. default y if PINCTRL
  897. help
  898. Parse all available pin-controllers and show pins muxing. This
  899. is useful for debug purpoer to check the pin muxing and to know if
  900. a pin is configured as a GPIO or as an alternate function.
  901. config CMD_POWEROFF
  902. bool "poweroff"
  903. help
  904. Poweroff/Shutdown the system
  905. config CMD_READ
  906. bool "read - Read binary data from a partition"
  907. help
  908. Provides low-level access to the data in a partition.
  909. config CMD_REMOTEPROC
  910. bool "remoteproc"
  911. depends on REMOTEPROC
  912. help
  913. Support for Remote Processor control
  914. config CMD_SATA
  915. bool "sata - Access SATA subsystem"
  916. select SATA
  917. help
  918. SATA (Serial Advanced Technology Attachment) is a serial bus
  919. standard for connecting to hard drives and other storage devices.
  920. This command provides information about attached devices and allows
  921. reading, writing and other operations.
  922. SATA replaces PATA (originally just ATA), which stands for Parallel AT
  923. Attachment, where AT refers to an IBM AT (Advanced Technology)
  924. computer released in 1984.
  925. config CMD_SAVES
  926. bool "saves - Save a file over serial in S-Record format"
  927. help
  928. Provides a way to save a binary file using the Motorola S-Record
  929. format over the serial line.
  930. config CMD_SCSI
  931. bool "scsi - Access to SCSI devices"
  932. default y if SCSI
  933. help
  934. This provides a 'scsi' command which provides access to SCSI (Small
  935. Computer System Interface) devices. The command provides a way to
  936. scan the bus, reset the bus, read and write data and get information
  937. about devices.
  938. config CMD_SDRAM
  939. bool "sdram - Print SDRAM configuration information"
  940. help
  941. Provides information about attached SDRAM. This assumed that the
  942. SDRAM has an EEPROM with information that can be read using the
  943. I2C bus. This is only available on some boards.
  944. config CMD_SF
  945. bool "sf"
  946. depends on DM_SPI_FLASH || SPI_FLASH
  947. help
  948. SPI Flash support
  949. config CMD_SF_TEST
  950. bool "sf test - Allow testing of SPI flash"
  951. depends on CMD_SF
  952. help
  953. Provides a way to test that SPI flash is working correctly. The
  954. test is destructive, in that an area of SPI flash must be provided
  955. for the test to use. Performance information is also provided,
  956. measuring the performance of reading, writing and erasing in
  957. Mbps (Million Bits Per Second). This value should approximately
  958. equal the SPI bus speed for a single-bit-wide SPI bus, assuming
  959. everything is working properly.
  960. config CMD_SPI
  961. bool "sspi - Command to access spi device"
  962. depends on SPI
  963. help
  964. SPI utility command.
  965. config DEFAULT_SPI_BUS
  966. int "default spi bus used by sspi command"
  967. depends on CMD_SPI
  968. default 0
  969. config DEFAULT_SPI_MODE
  970. hex "default spi mode used by sspi command (see include/spi.h)"
  971. depends on CMD_SPI
  972. default 0
  973. config CMD_TSI148
  974. bool "tsi148 - Command to access tsi148 device"
  975. help
  976. This provides various sub-commands to initialise and configure the
  977. Turndra tsi148 device. See the command help for full details.
  978. config CMD_UNIVERSE
  979. bool "universe - Command to set up the Turndra Universe controller"
  980. help
  981. This allows setting up the VMEbus provided by this controller.
  982. See the command help for full details.
  983. config CMD_USB
  984. bool "usb"
  985. select HAVE_BLOCK_DEVICE
  986. help
  987. USB support.
  988. config CMD_USB_SDP
  989. bool "sdp"
  990. select USB_FUNCTION_SDP
  991. help
  992. Enables the command "sdp" which is used to have U-Boot emulating the
  993. Serial Download Protocol (SDP) via USB.
  994. config CMD_ROCKUSB
  995. bool "rockusb"
  996. depends on USB_FUNCTION_ROCKUSB
  997. help
  998. Rockusb protocol is widely used by Rockchip SoC based devices. It can
  999. read/write info, image to/from devices. This enable rockusb command
  1000. support to communication with rockusb device. for more detail about
  1001. this command, please read doc/README.rockusb.
  1002. config CMD_USB_MASS_STORAGE
  1003. bool "UMS usb mass storage"
  1004. select USB_FUNCTION_MASS_STORAGE
  1005. help
  1006. USB mass storage support
  1007. config CMD_VIRTIO
  1008. bool "virtio"
  1009. depends on VIRTIO
  1010. default y if VIRTIO
  1011. help
  1012. VirtIO block device support
  1013. config CMD_WDT
  1014. bool "wdt"
  1015. depends on WDT
  1016. help
  1017. This provides commands to control the watchdog timer devices.
  1018. config CMD_AXI
  1019. bool "axi"
  1020. depends on AXI
  1021. help
  1022. Enable the command "axi" for accessing AXI (Advanced eXtensible
  1023. Interface) busses, a on-chip interconnect specification for managing
  1024. functional blocks in SoC designs, which is also often used in designs
  1025. involving FPGAs (e.g. communication with IP cores in Xilinx FPGAs).
  1026. endmenu
  1027. menu "Shell scripting commands"
  1028. config CMD_ECHO
  1029. bool "echo"
  1030. default y
  1031. help
  1032. Echo args to console
  1033. config CMD_ITEST
  1034. bool "itest"
  1035. default y
  1036. help
  1037. Return true/false on integer compare.
  1038. config CMD_SOURCE
  1039. bool "source"
  1040. default y
  1041. help
  1042. Run script from memory
  1043. config CMD_SETEXPR
  1044. bool "setexpr"
  1045. default y
  1046. help
  1047. Evaluate boolean and math expressions and store the result in an env
  1048. variable.
  1049. Also supports loading the value at a memory location into a variable.
  1050. If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
  1051. endmenu
  1052. menu "Android support commands"
  1053. config CMD_AB_SELECT
  1054. bool "ab_select"
  1055. default n
  1056. depends on ANDROID_AB
  1057. help
  1058. On Android devices with more than one boot slot (multiple copies of
  1059. the kernel and system images) this provides a command to select which
  1060. slot should be used to boot from and register the boot attempt. This
  1061. is used by the new A/B update model where one slot is updated in the
  1062. background while running from the other slot.
  1063. endmenu
  1064. if NET
  1065. menuconfig CMD_NET
  1066. bool "Network commands"
  1067. default y
  1068. imply NETDEVICES
  1069. if CMD_NET
  1070. config CMD_BOOTP
  1071. bool "bootp"
  1072. default y
  1073. help
  1074. bootp - boot image via network using BOOTP/TFTP protocol
  1075. config CMD_DHCP
  1076. bool "dhcp"
  1077. depends on CMD_BOOTP
  1078. help
  1079. Boot image via network using DHCP/TFTP protocol
  1080. config BOOTP_BOOTPATH
  1081. bool "Request & store 'rootpath' from BOOTP/DHCP server"
  1082. default y
  1083. depends on CMD_BOOTP
  1084. help
  1085. Even though the config is called BOOTP_BOOTPATH, it stores the
  1086. path in the variable 'rootpath'.
  1087. config BOOTP_DNS
  1088. bool "Request & store 'dnsip' from BOOTP/DHCP server"
  1089. default y
  1090. depends on CMD_BOOTP
  1091. help
  1092. The primary DNS server is stored as 'dnsip'. If two servers are
  1093. returned, you must set BOOTP_DNS2 to store that second server IP
  1094. also.
  1095. config BOOTP_DNS2
  1096. bool "Store 'dnsip2' from BOOTP/DHCP server"
  1097. depends on BOOTP_DNS
  1098. help
  1099. If a DHCP client requests the DNS server IP from a DHCP server,
  1100. it is possible that more than one DNS serverip is offered to the
  1101. client. If CONFIG_BOOTP_DNS2 is enabled, the secondary DNS
  1102. server IP will be stored in the additional environment
  1103. variable "dnsip2". The first DNS serverip is always
  1104. stored in the variable "dnsip", when BOOTP_DNS is defined.
  1105. config BOOTP_GATEWAY
  1106. bool "Request & store 'gatewayip' from BOOTP/DHCP server"
  1107. default y
  1108. depends on CMD_BOOTP
  1109. config BOOTP_HOSTNAME
  1110. bool "Request & store 'hostname' from BOOTP/DHCP server"
  1111. default y
  1112. depends on CMD_BOOTP
  1113. help
  1114. The name may or may not be qualified with the local domain name.
  1115. config BOOTP_PREFER_SERVERIP
  1116. bool "serverip variable takes precedent over DHCP server IP."
  1117. depends on CMD_BOOTP
  1118. help
  1119. By default a BOOTP/DHCP reply will overwrite the 'serverip' variable.
  1120. With this option enabled, the 'serverip' variable in the environment
  1121. takes precedence over DHCP server IP and will only be set by the DHCP
  1122. server if not already set in the environment.
  1123. config BOOTP_SUBNETMASK
  1124. bool "Request & store 'netmask' from BOOTP/DHCP server"
  1125. default y
  1126. depends on CMD_BOOTP
  1127. config BOOTP_NTPSERVER
  1128. bool "Request & store 'ntpserverip' from BOOTP/DHCP server"
  1129. depends on CMD_BOOTP
  1130. config CMD_PCAP
  1131. bool "pcap capture"
  1132. help
  1133. Selecting this will allow capturing all Ethernet packets and store
  1134. them in physical memory in a PCAP formated file,
  1135. later to be analyzed by PCAP reader application (IE. WireShark).
  1136. config BOOTP_PXE
  1137. bool "Send PXE client arch to BOOTP/DHCP server"
  1138. default y
  1139. depends on CMD_BOOTP && CMD_PXE
  1140. help
  1141. Supported for ARM, ARM64, and x86 for now.
  1142. config BOOTP_PXE_CLIENTARCH
  1143. hex
  1144. depends on BOOTP_PXE
  1145. default 0x16 if ARM64
  1146. default 0x15 if ARM
  1147. default 0 if X86
  1148. config BOOTP_VCI_STRING
  1149. string
  1150. depends on CMD_BOOTP
  1151. default "U-Boot.armv7" if CPU_V7A || CPU_V7M || CPU_V7R
  1152. default "U-Boot.armv8" if ARM64
  1153. default "U-Boot.arm" if ARM
  1154. default "U-Boot"
  1155. config CMD_TFTPBOOT
  1156. bool "tftpboot"
  1157. default y
  1158. help
  1159. tftpboot - boot image via network using TFTP protocol
  1160. config CMD_TFTPPUT
  1161. bool "tftp put"
  1162. depends on CMD_TFTPBOOT
  1163. help
  1164. TFTP put command, for uploading files to a server
  1165. config CMD_TFTPSRV
  1166. bool "tftpsrv"
  1167. depends on CMD_TFTPBOOT
  1168. help
  1169. Act as a TFTP server and boot the first received file
  1170. config NET_TFTP_VARS
  1171. bool "Control TFTP timeout and count through environment"
  1172. depends on CMD_TFTPBOOT
  1173. default y
  1174. help
  1175. If set, allows controlling the TFTP timeout through the
  1176. environment variable tftptimeout, and the TFTP maximum
  1177. timeout count through the variable tftptimeoutcountmax.
  1178. If unset, timeout and maximum are hard-defined as 1 second
  1179. and 10 timouts per TFTP transfer.
  1180. config CMD_RARP
  1181. bool "rarpboot"
  1182. help
  1183. Boot image via network using RARP/TFTP protocol
  1184. config CMD_NFS
  1185. bool "nfs"
  1186. default y
  1187. help
  1188. Boot image via network using NFS protocol.
  1189. config CMD_MII
  1190. bool "mii"
  1191. help
  1192. Enable MII utility commands.
  1193. config CMD_PING
  1194. bool "ping"
  1195. help
  1196. Send ICMP ECHO_REQUEST to network host
  1197. config CMD_CDP
  1198. bool "cdp"
  1199. help
  1200. Perform CDP network configuration
  1201. config CMD_SNTP
  1202. bool "sntp"
  1203. help
  1204. Synchronize RTC via network
  1205. config CMD_DNS
  1206. bool "dns"
  1207. help
  1208. Lookup the IP of a hostname
  1209. config CMD_LINK_LOCAL
  1210. bool "linklocal"
  1211. select LIB_RAND
  1212. help
  1213. Acquire a network IP address using the link-local protocol
  1214. endif
  1215. config CMD_ETHSW
  1216. bool "ethsw"
  1217. help
  1218. Allow control of L2 Ethernet switch commands. These are supported
  1219. by the vsc9953 Ethernet driver at present. Sub-commands allow
  1220. operations such as enabling / disabling a port and
  1221. viewing/maintaining the filtering database (FDB)
  1222. config CMD_PXE
  1223. bool "pxe"
  1224. select MENU
  1225. help
  1226. Boot image via network using PXE protocol
  1227. config CMD_WOL
  1228. bool "wol"
  1229. help
  1230. Wait for wake-on-lan Magic Packet
  1231. endif
  1232. menu "Misc commands"
  1233. config CMD_BMP
  1234. bool "Enable 'bmp' command"
  1235. depends on LCD || DM_VIDEO || VIDEO
  1236. help
  1237. This provides a way to obtain information about a BMP-format iamge
  1238. and to display it. BMP (which presumably stands for BitMaP) is a
  1239. file format defined by Microsoft which supports images of various
  1240. depths, formats and compression methods. Headers on the file
  1241. determine the formats used. This command can be used by first loading
  1242. the image into RAM, then using this command to look at it or display
  1243. it.
  1244. config CMD_BOOTCOUNT
  1245. bool "bootcount"
  1246. depends on BOOTCOUNT_LIMIT
  1247. help
  1248. Enable the bootcount command, which allows interrogation and
  1249. reset of the bootcounter.
  1250. config CMD_BSP
  1251. bool "Enable board-specific commands"
  1252. help
  1253. (deprecated: instead, please define a Kconfig option for each command)
  1254. Some boards have board-specific commands which are only enabled
  1255. during developemnt and need to be turned off for production. This
  1256. option provides a way to control this. The commands that are enabled
  1257. vary depending on the board.
  1258. config CMD_BKOPS_ENABLE
  1259. bool "mmc bkops enable"
  1260. depends on CMD_MMC
  1261. default n
  1262. help
  1263. Enable command for setting manual background operations handshake
  1264. on a eMMC device. The feature is optionally available on eMMC devices
  1265. conforming to standard >= 4.41.
  1266. config CMD_BLOCK_CACHE
  1267. bool "blkcache - control and stats for block cache"
  1268. depends on BLOCK_CACHE
  1269. default y if BLOCK_CACHE
  1270. help
  1271. Enable the blkcache command, which can be used to control the
  1272. operation of the cache functions.
  1273. This is most useful when fine-tuning the operation of the cache
  1274. during development, but also allows the cache to be disabled when
  1275. it might hurt performance (e.g. when using the ums command).
  1276. config CMD_CACHE
  1277. bool "icache or dcache"
  1278. help
  1279. Enable the "icache" and "dcache" commands
  1280. config CMD_CONITRACE
  1281. bool "conitrace - trace console input codes"
  1282. help
  1283. Enable the 'conitrace' command which displays the codes received
  1284. from the console input as hexadecimal numbers.
  1285. config CMD_CLS
  1286. bool "Enable clear screen command 'cls'"
  1287. depends on CFB_CONSOLE || DM_VIDEO || LCD || VIDEO
  1288. default y if LCD
  1289. help
  1290. Enable the 'cls' command which clears the screen contents
  1291. on video frame buffer.
  1292. config CMD_EFIDEBUG
  1293. bool "efidebug - display/configure UEFI environment"
  1294. depends on EFI_LOADER
  1295. select EFI_DEVICE_PATH_TO_TEXT
  1296. default n
  1297. help
  1298. Enable the 'efidebug' command which provides a subset of UEFI
  1299. shell utility with simplified functionality. It will be useful
  1300. particularly for managing boot parameters as well as examining
  1301. various EFI status for debugging.
  1302. config CMD_EXCEPTION
  1303. bool "exception - raise exception"
  1304. depends on ARM || RISCV || X86
  1305. help
  1306. Enable the 'exception' command which allows to raise an exception.
  1307. config CMD_LED
  1308. bool "led"
  1309. depends on LED
  1310. default y if LED
  1311. help
  1312. Enable the 'led' command which allows for control of LEDs supported
  1313. by the board. The LEDs can be listed with 'led list' and controlled
  1314. with led on/off/togle/blink. Any LED drivers can be controlled with
  1315. this command, e.g. led_gpio.
  1316. config CMD_DATE
  1317. bool "date"
  1318. default y if DM_RTC
  1319. help
  1320. Enable the 'date' command for getting/setting the time/date in RTC
  1321. devices.
  1322. config CMD_TIME
  1323. bool "time"
  1324. help
  1325. Run commands and summarize execution time.
  1326. config CMD_GETTIME
  1327. bool "gettime - read elapsed time"
  1328. help
  1329. Enable the 'gettime' command which reads the elapsed time since
  1330. U-Boot started running. This shows the time in seconds and
  1331. milliseconds. See also the 'bootstage' command which provides more
  1332. flexibility for boot timing.
  1333. # TODO: rename to CMD_SLEEP
  1334. config CMD_MISC
  1335. bool "sleep"
  1336. default y
  1337. help
  1338. Delay execution for some time
  1339. config MP
  1340. bool "support for multiprocessor"
  1341. help
  1342. This provides an option to brinup
  1343. different processors in multiprocessor
  1344. cases.
  1345. config CMD_TIMER
  1346. bool "timer"
  1347. help
  1348. Access the system timer.
  1349. config CMD_SOUND
  1350. bool "sound"
  1351. depends on SOUND
  1352. help
  1353. This provides basic access to the U-Boot's sound support. The main
  1354. feature is to play a beep.
  1355. sound init - set up sound system
  1356. sound play - play a sound
  1357. config CMD_QFW
  1358. bool "qfw"
  1359. select QFW
  1360. help
  1361. This provides access to the QEMU firmware interface. The main
  1362. feature is to allow easy loading of files passed to qemu-system
  1363. via -kernel / -initrd
  1364. source "cmd/mvebu/Kconfig"
  1365. config CMD_TERMINAL
  1366. bool "terminal - provides a way to attach a serial terminal"
  1367. help
  1368. Provides a 'cu'-like serial terminal command. This can be used to
  1369. access other serial ports from the system console. The terminal
  1370. is very simple with no special processing of characters. As with
  1371. cu, you can press ~. (tilde followed by period) to exit.
  1372. config CMD_UUID
  1373. bool "uuid, guid - generation of unique IDs"
  1374. select LIB_UUID
  1375. help
  1376. This enables two commands:
  1377. uuid - generate random Universally Unique Identifier
  1378. guid - generate Globally Unique Identifier based on random UUID
  1379. The two commands are very similar except for the endianness of the
  1380. output.
  1381. endmenu
  1382. source "cmd/ti/Kconfig"
  1383. config CMD_BOOTSTAGE
  1384. bool "Enable the 'bootstage' command"
  1385. depends on BOOTSTAGE
  1386. help
  1387. Add a 'bootstage' command which supports printing a report
  1388. and un/stashing of bootstage data.
  1389. menu "Power commands"
  1390. config CMD_PMIC
  1391. bool "Enable Driver Model PMIC command"
  1392. depends on DM_PMIC
  1393. help
  1394. This is the pmic command, based on a driver model pmic's API.
  1395. Command features are unchanged:
  1396. - list - list pmic devices
  1397. - pmic dev <id> - show or [set] operating pmic device (NEW)
  1398. - pmic dump - dump registers
  1399. - pmic read address - read byte of register at address
  1400. - pmic write address - write byte to register at address
  1401. The only one change for this command is 'dev' subcommand.
  1402. config CMD_REGULATOR
  1403. bool "Enable Driver Model REGULATOR command"
  1404. depends on DM_REGULATOR
  1405. help
  1406. This command is based on driver model regulator's API.
  1407. User interface features:
  1408. - list - list regulator devices
  1409. - regulator dev <id> - show or [set] operating regulator device
  1410. - regulator info - print constraints info
  1411. - regulator status - print operating status
  1412. - regulator value <val] <-f> - print/[set] voltage value [uV]
  1413. - regulator current <val> - print/[set] current value [uA]
  1414. - regulator mode <id> - print/[set] operating mode id
  1415. - regulator enable - enable the regulator output
  1416. - regulator disable - disable the regulator output
  1417. The '-f' (force) option can be used for set the value which exceeds
  1418. the limits, which are found in device-tree and are kept in regulator's
  1419. uclass platdata structure.
  1420. endmenu
  1421. menu "Security commands"
  1422. config CMD_AES
  1423. bool "Enable the 'aes' command"
  1424. select AES
  1425. help
  1426. This provides a means to encrypt and decrypt data using the AES
  1427. (Advanced Encryption Standard). This algorithm uses a symetric key
  1428. and is widely used as a streaming cipher. Different key lengths are
  1429. supported by the algorithm but this command only supports 128 bits
  1430. at present.
  1431. config CMD_BLOB
  1432. bool "Enable the 'blob' command"
  1433. help
  1434. This is used with the Freescale secure boot mechanism.
  1435. Freescale's SEC block has built-in Blob Protocol which provides
  1436. a method for protecting user-defined data across system power
  1437. cycles. SEC block protects data in a data structure called a Blob,
  1438. which provides both confidentiality and integrity protection.
  1439. Encapsulating data as a blob
  1440. Each time that the Blob Protocol is used to protect data, a
  1441. different randomly generated key is used to encrypt the data.
  1442. This random key is itself encrypted using a key which is derived
  1443. from SoC's non-volatile secret key and a 16 bit Key identifier.
  1444. The resulting encrypted key along with encrypted data is called a
  1445. blob. The non-volatile secure key is available for use only during
  1446. secure boot.
  1447. During decapsulation, the reverse process is performed to get back
  1448. the original data.
  1449. Sub-commands:
  1450. blob enc - encapsulating data as a cryptgraphic blob
  1451. blob dec - decapsulating cryptgraphic blob to get the data
  1452. Syntax:
  1453. blob enc src dst len km
  1454. Encapsulate and create blob of data $len bytes long
  1455. at address $src and store the result at address $dst.
  1456. $km is the 16 byte key modifier is also required for
  1457. generation/use as key for cryptographic operation. Key
  1458. modifier should be 16 byte long.
  1459. blob dec src dst len km
  1460. Decapsulate the blob of data at address $src and
  1461. store result of $len byte at addr $dst.
  1462. $km is the 16 byte key modifier is also required for
  1463. generation/use as key for cryptographic operation. Key
  1464. modifier should be 16 byte long.
  1465. config CMD_HASH
  1466. bool "Support 'hash' command"
  1467. select HASH
  1468. help
  1469. This provides a way to hash data in memory using various supported
  1470. algorithms (such as SHA1, MD5, CRC32). The computed digest can be
  1471. saved to memory or to an environment variable. It is also possible
  1472. to verify a hash against data in memory.
  1473. config CMD_HVC
  1474. bool "Support the 'hvc' command"
  1475. depends on ARM_SMCCC
  1476. help
  1477. Allows issuing Hypervisor Calls (HVCs). Mostly useful for
  1478. development and testing.
  1479. config CMD_SMC
  1480. bool "Support the 'smc' command"
  1481. depends on ARM_SMCCC
  1482. help
  1483. Allows issuing Secure Monitor Calls (SMCs). Mostly useful for
  1484. development and testing.
  1485. config HASH_VERIFY
  1486. bool "hash -v"
  1487. depends on CMD_HASH
  1488. help
  1489. Add -v option to verify data against a hash.
  1490. config CMD_TPM_V1
  1491. bool
  1492. config CMD_TPM_V2
  1493. bool
  1494. select CMD_LOG
  1495. config CMD_TPM
  1496. bool "Enable the 'tpm' command"
  1497. depends on TPM_V1 || TPM_V2
  1498. select CMD_TPM_V1 if TPM_V1
  1499. select CMD_TPM_V2 if TPM_V2
  1500. help
  1501. This provides a means to talk to a TPM from the command line. A wide
  1502. range of commands if provided - see 'tpm help' for details. The
  1503. command requires a suitable TPM on your board and the correct driver
  1504. must be enabled.
  1505. if CMD_TPM
  1506. config CMD_TPM_TEST
  1507. bool "Enable the 'tpm test' command"
  1508. depends on TPM_V1
  1509. help
  1510. This provides a a series of tests to confirm that the TPMv1.x is
  1511. working correctly. The tests cover initialisation, non-volatile RAM,
  1512. extend, global lock and checking that timing is within expectations.
  1513. The tests pass correctly on Infineon TPMs but may need to be adjusted
  1514. for other devices.
  1515. endif
  1516. endmenu
  1517. menu "Firmware commands"
  1518. config CMD_CROS_EC
  1519. bool "Enable crosec command"
  1520. depends on CROS_EC
  1521. default y
  1522. help
  1523. Enable command-line access to the Chrome OS EC (Embedded
  1524. Controller). This provides the 'crosec' command which has
  1525. a number of sub-commands for performing EC tasks such as
  1526. updating its flash, accessing a small saved context area
  1527. and talking to the I2C bus behind the EC (if there is one).
  1528. endmenu
  1529. menu "Filesystem commands"
  1530. config CMD_BTRFS
  1531. bool "Enable the 'btrsubvol' command"
  1532. select FS_BTRFS
  1533. help
  1534. This enables the 'btrsubvol' command to list subvolumes
  1535. of a BTRFS filesystem. There are no special commands for
  1536. listing BTRFS directories or loading BTRFS files - this
  1537. can be done by the generic 'fs' commands (see CMD_FS_GENERIC)
  1538. when BTRFS is enabled (see FS_BTRFS).
  1539. config CMD_CBFS
  1540. bool "Enable the 'cbfs' command"
  1541. depends on FS_CBFS
  1542. help
  1543. Define this to enable support for reading from a Coreboot
  1544. filesystem. This is a ROM-based filesystem used for accessing files
  1545. on systems that use coreboot as the first boot-loader and then load
  1546. U-Boot to actually boot the Operating System. Available commands are
  1547. cbfsinit, cbfsinfo, cbfsls and cbfsload.
  1548. config CMD_CRAMFS
  1549. bool "Enable the 'cramfs' command"
  1550. depends on FS_CRAMFS
  1551. help
  1552. This provides commands for dealing with CRAMFS (Compressed ROM
  1553. filesystem). CRAMFS is useful when space is tight since files are
  1554. compressed. Two commands are provided:
  1555. cramfsls - lists files in a cramfs image
  1556. cramfsload - loads a file from a cramfs image
  1557. config CMD_EXT2
  1558. bool "ext2 command support"
  1559. select FS_EXT4
  1560. help
  1561. Enables EXT2 FS command
  1562. config CMD_EXT4
  1563. bool "ext4 command support"
  1564. select FS_EXT4
  1565. help
  1566. Enables EXT4 FS command
  1567. config CMD_EXT4_WRITE
  1568. depends on CMD_EXT4
  1569. bool "ext4 write command support"
  1570. select EXT4_WRITE
  1571. help
  1572. Enables EXT4 FS write command
  1573. config CMD_FAT
  1574. bool "FAT command support"
  1575. select FS_FAT
  1576. help
  1577. Support for the FAT fs
  1578. config CMD_FS_GENERIC
  1579. bool "filesystem commands"
  1580. help
  1581. Enables filesystem commands (e.g. load, ls) that work for multiple
  1582. fs types.
  1583. config CMD_FS_UUID
  1584. bool "fsuuid command"
  1585. help
  1586. Enables fsuuid command for filesystem UUID.
  1587. config CMD_JFFS2
  1588. bool "jffs2 command"
  1589. select FS_JFFS2
  1590. help
  1591. Enables commands to support the JFFS2 (Journalling Flash File System
  1592. version 2) filesystem. This enables fsload, ls and fsinfo which
  1593. provide the ability to load files, list directories and obtain
  1594. filesystem information.
  1595. config CMD_MTDPARTS
  1596. bool "MTD partition support"
  1597. select MTD_DEVICE if (CMD_NAND || NAND)
  1598. help
  1599. MTD partitioning tool support.
  1600. It is strongly encouraged to avoid using this command
  1601. anymore along with 'sf', 'nand', 'onenand'. One can still
  1602. declare the partitions in the mtdparts environment variable
  1603. but better use the MTD stack and the 'mtd' command instead.
  1604. config MTDIDS_DEFAULT
  1605. string "Default MTD IDs"
  1606. depends on MTD_PARTITIONS || CMD_MTDPARTS || CMD_NAND || CMD_FLASH
  1607. help
  1608. Defines a default MTD IDs list for use with MTD partitions in the
  1609. Linux MTD command line partitions format.
  1610. config MTDPARTS_DEFAULT
  1611. string "Default MTD partition scheme"
  1612. depends on MTD_PARTITIONS || CMD_MTDPARTS || CMD_NAND || CMD_FLASH
  1613. help
  1614. Defines a default MTD partitioning scheme in the Linux MTD command
  1615. line partitions format
  1616. config CMD_MTDPARTS_SPREAD
  1617. bool "Padd partition size to take account of bad blocks"
  1618. depends on CMD_MTDPARTS
  1619. help
  1620. This enables the 'spread' sub-command of the mtdparts command.
  1621. This command will modify the existing mtdparts variable by increasing
  1622. the size of the partitions such that 1) each partition's net size is
  1623. at least as large as the size specified in the mtdparts variable and
  1624. 2) each partition starts on a good block.
  1625. config CMD_REISER
  1626. bool "reiser - Access to reiserfs filesystems"
  1627. help
  1628. This provides two commands which operate on a resierfs filesystem,
  1629. commonly used some years ago:
  1630. reiserls - list files
  1631. reiserload - load a file
  1632. config CMD_YAFFS2
  1633. bool "yaffs2 - Access of YAFFS2 filesystem"
  1634. depends on YAFFS2
  1635. default y
  1636. help
  1637. This provides commands for accessing a YAFFS2 filesystem. Yet
  1638. Another Flash Filesystem 2 is a filesystem designed specifically
  1639. for NAND flash. It incorporates bad-block management and ensures
  1640. that device writes are sequential regardless of filesystem
  1641. activity.
  1642. config CMD_ZFS
  1643. bool "zfs - Access of ZFS filesystem"
  1644. help
  1645. This provides commands to accessing a ZFS filesystem, commonly used
  1646. on Solaris systems. Two sub-commands are provided:
  1647. zfsls - list files in a directory
  1648. zfsload - load a file
  1649. See doc/README.zfs for more details.
  1650. endmenu
  1651. menu "Debug commands"
  1652. config CMD_BEDBUG
  1653. bool "bedbug"
  1654. help
  1655. The bedbug (emBEDded deBUGger) command provides debugging features
  1656. for some PowerPC processors. For details please see the
  1657. docuemntation in doc/README.beddbug
  1658. config CMD_DIAG
  1659. bool "diag - Board diagnostics"
  1660. help
  1661. This command provides access to board diagnostic tests. These are
  1662. called Power-on Self Tests (POST). The command allows listing of
  1663. available tests and running either all the tests, or specific tests
  1664. identified by name.
  1665. config CMD_IRQ
  1666. bool "irq - Show information about interrupts"
  1667. depends on !ARM && !MIPS && !SH
  1668. help
  1669. This enables two commands:
  1670. interrupts - enable or disable interrupts
  1671. irqinfo - print device-specific interrupt information
  1672. config CMD_KGDB
  1673. bool "kgdb - Allow debugging of U-Boot with gdb"
  1674. depends on PPC
  1675. help
  1676. This enables a 'kgdb' command which allows gdb to connect to U-Boot
  1677. over a serial link for debugging purposes. This allows
  1678. single-stepping, inspecting variables, etc. This is supported only
  1679. on PowerPC at present.
  1680. config CMD_LOG
  1681. bool "log - Generation, control and access to logging"
  1682. select LOG
  1683. help
  1684. This provides access to logging features. It allows the output of
  1685. log data to be controlled to a limited extent (setting up the default
  1686. maximum log level for emitting of records). It also provides access
  1687. to a command used for testing the log system.
  1688. config CMD_TRACE
  1689. bool "trace - Support tracing of function calls and timing"
  1690. help
  1691. Enables a command to control using of function tracing within
  1692. U-Boot. This allows recording of call traces including timing
  1693. information. The command can write data to memory for exporting
  1694. for analysis (e.g. using bootchart). See doc/README.trace for full
  1695. details.
  1696. config CMD_AVB
  1697. bool "avb - Android Verified Boot 2.0 operations"
  1698. depends on AVB_VERIFY
  1699. default n
  1700. help
  1701. Enables a "avb" command to perform verification of partitions using
  1702. Android Verified Boot 2.0 functionality. It includes such subcommands:
  1703. avb init - initialize avb2 subsystem
  1704. avb read_rb - read rollback index
  1705. avb write_rb - write rollback index
  1706. avb is_unlocked - check device lock state
  1707. avb get_uuid - read and print uuid of a partition
  1708. avb read_part - read data from partition
  1709. avb read_part_hex - read data from partition and output to stdout
  1710. avb write_part - write data to partition
  1711. avb verify - run full verification chain
  1712. endmenu
  1713. config CMD_UBI
  1714. tristate "Enable UBI - Unsorted block images commands"
  1715. select MTD_UBI
  1716. help
  1717. UBI is a software layer above MTD layer which admits use of LVM-like
  1718. logical volumes on top of MTD devices, hides some complexities of
  1719. flash chips like wear and bad blocks and provides some other useful
  1720. capabilities. Please, consult the MTD web site for more details
  1721. (www.linux-mtd.infradead.org). Activate this option if you want
  1722. to use U-Boot UBI commands.
  1723. It is also strongly encouraged to also enable CONFIG_MTD to get full
  1724. partition support.
  1725. config CMD_UBIFS
  1726. tristate "Enable UBIFS - Unsorted block images filesystem commands"
  1727. depends on CMD_UBI
  1728. default y if CMD_UBI
  1729. select LZO
  1730. help
  1731. UBIFS is a file system for flash devices which works on top of UBI.
  1732. endmenu