Kconfig 65 KB

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