Kconfig 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383
  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. select USB_FUNCTION_MASS_STORAGE
  1142. depends on BLK && USB_GADGET
  1143. help
  1144. Enables the command "ums" and the USB mass storage support to the
  1145. export a block device: U-Boot, the USB device, acts as a simple
  1146. external hard drive plugged on the host USB port.
  1147. config CMD_PVBLOCK
  1148. bool "Xen para-virtualized block device"
  1149. depends on XEN
  1150. select PVBLOCK
  1151. help
  1152. Xen para-virtualized block device support
  1153. config CMD_VIRTIO
  1154. bool "virtio"
  1155. depends on VIRTIO
  1156. depends on HAVE_BLOCK_DEVICE
  1157. default y if VIRTIO
  1158. help
  1159. VirtIO block device support
  1160. config CMD_WDT
  1161. bool "wdt"
  1162. depends on WDT
  1163. help
  1164. This provides commands to control the watchdog timer devices.
  1165. config CMD_AXI
  1166. bool "axi"
  1167. depends on AXI
  1168. help
  1169. Enable the command "axi" for accessing AXI (Advanced eXtensible
  1170. Interface) busses, a on-chip interconnect specification for managing
  1171. functional blocks in SoC designs, which is also often used in designs
  1172. involving FPGAs (e.g. communication with IP cores in Xilinx FPGAs).
  1173. endmenu
  1174. menu "Shell scripting commands"
  1175. config CMD_ECHO
  1176. bool "echo"
  1177. default y
  1178. help
  1179. Echo args to console
  1180. config CMD_ITEST
  1181. bool "itest"
  1182. default y
  1183. help
  1184. Return true/false on integer compare.
  1185. config CMD_SOURCE
  1186. bool "source"
  1187. default y
  1188. help
  1189. Run script from memory
  1190. config CMD_SETEXPR
  1191. bool "setexpr"
  1192. default y
  1193. help
  1194. Evaluate boolean and math expressions and store the result in an env
  1195. variable.
  1196. Also supports loading the value at a memory location into a variable.
  1197. If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
  1198. endmenu
  1199. menu "Android support commands"
  1200. config CMD_AB_SELECT
  1201. bool "ab_select"
  1202. default n
  1203. depends on ANDROID_AB
  1204. help
  1205. On Android devices with more than one boot slot (multiple copies of
  1206. the kernel and system images) this provides a command to select which
  1207. slot should be used to boot from and register the boot attempt. This
  1208. is used by the new A/B update model where one slot is updated in the
  1209. background while running from the other slot.
  1210. endmenu
  1211. if NET
  1212. menuconfig CMD_NET
  1213. bool "Network commands"
  1214. default y
  1215. imply NETDEVICES
  1216. if CMD_NET
  1217. config CMD_BOOTP
  1218. bool "bootp"
  1219. default y
  1220. help
  1221. bootp - boot image via network using BOOTP/TFTP protocol
  1222. config CMD_DHCP
  1223. bool "dhcp"
  1224. depends on CMD_BOOTP
  1225. help
  1226. Boot image via network using DHCP/TFTP protocol
  1227. config BOOTP_BOOTPATH
  1228. bool "Request & store 'rootpath' from BOOTP/DHCP server"
  1229. default y
  1230. depends on CMD_BOOTP
  1231. help
  1232. Even though the config is called BOOTP_BOOTPATH, it stores the
  1233. path in the variable 'rootpath'.
  1234. config BOOTP_DNS
  1235. bool "Request & store 'dnsip' from BOOTP/DHCP server"
  1236. default y
  1237. depends on CMD_BOOTP
  1238. help
  1239. The primary DNS server is stored as 'dnsip'. If two servers are
  1240. returned, you must set BOOTP_DNS2 to store that second server IP
  1241. also.
  1242. config BOOTP_DNS2
  1243. bool "Store 'dnsip2' from BOOTP/DHCP server"
  1244. depends on BOOTP_DNS
  1245. help
  1246. If a DHCP client requests the DNS server IP from a DHCP server,
  1247. it is possible that more than one DNS serverip is offered to the
  1248. client. If CONFIG_BOOTP_DNS2 is enabled, the secondary DNS
  1249. server IP will be stored in the additional environment
  1250. variable "dnsip2". The first DNS serverip is always
  1251. stored in the variable "dnsip", when BOOTP_DNS is defined.
  1252. config BOOTP_GATEWAY
  1253. bool "Request & store 'gatewayip' from BOOTP/DHCP server"
  1254. default y
  1255. depends on CMD_BOOTP
  1256. config BOOTP_HOSTNAME
  1257. bool "Request & store 'hostname' from BOOTP/DHCP server"
  1258. default y
  1259. depends on CMD_BOOTP
  1260. help
  1261. The name may or may not be qualified with the local domain name.
  1262. config BOOTP_PREFER_SERVERIP
  1263. bool "serverip variable takes precedent over DHCP server IP."
  1264. depends on CMD_BOOTP
  1265. help
  1266. By default a BOOTP/DHCP reply will overwrite the 'serverip' variable.
  1267. With this option enabled, the 'serverip' variable in the environment
  1268. takes precedence over DHCP server IP and will only be set by the DHCP
  1269. server if not already set in the environment.
  1270. config BOOTP_SUBNETMASK
  1271. bool "Request & store 'netmask' from BOOTP/DHCP server"
  1272. default y
  1273. depends on CMD_BOOTP
  1274. config BOOTP_NTPSERVER
  1275. bool "Request & store 'ntpserverip' from BOOTP/DHCP server"
  1276. depends on CMD_BOOTP
  1277. config CMD_PCAP
  1278. bool "pcap capture"
  1279. help
  1280. Selecting this will allow capturing all Ethernet packets and store
  1281. them in physical memory in a PCAP formated file,
  1282. later to be analyzed by PCAP reader application (IE. WireShark).
  1283. config BOOTP_PXE
  1284. bool "Send PXE client arch to BOOTP/DHCP server"
  1285. default y
  1286. depends on CMD_BOOTP && CMD_PXE
  1287. help
  1288. Supported for ARM, ARM64, and x86 for now.
  1289. config BOOTP_PXE_CLIENTARCH
  1290. hex
  1291. depends on BOOTP_PXE
  1292. default 0x16 if ARM64
  1293. default 0x15 if ARM
  1294. default 0 if X86
  1295. config BOOTP_VCI_STRING
  1296. string
  1297. depends on CMD_BOOTP
  1298. default "U-Boot.armv7" if CPU_V7A || CPU_V7M || CPU_V7R
  1299. default "U-Boot.armv8" if ARM64
  1300. default "U-Boot.arm" if ARM
  1301. default "U-Boot"
  1302. config CMD_TFTPBOOT
  1303. bool "tftpboot"
  1304. default y
  1305. help
  1306. tftpboot - boot image via network using TFTP protocol
  1307. config CMD_TFTPPUT
  1308. bool "tftp put"
  1309. depends on CMD_TFTPBOOT
  1310. help
  1311. TFTP put command, for uploading files to a server
  1312. config CMD_TFTPSRV
  1313. bool "tftpsrv"
  1314. depends on CMD_TFTPBOOT
  1315. help
  1316. Act as a TFTP server and boot the first received file
  1317. config NET_TFTP_VARS
  1318. bool "Control TFTP timeout and count through environment"
  1319. depends on CMD_TFTPBOOT
  1320. default y
  1321. help
  1322. If set, allows controlling the TFTP timeout through the
  1323. environment variable tftptimeout, and the TFTP maximum
  1324. timeout count through the variable tftptimeoutcountmax.
  1325. If unset, timeout and maximum are hard-defined as 1 second
  1326. and 10 timouts per TFTP transfer.
  1327. config CMD_RARP
  1328. bool "rarpboot"
  1329. help
  1330. Boot image via network using RARP/TFTP protocol
  1331. config CMD_NFS
  1332. bool "nfs"
  1333. default y
  1334. help
  1335. Boot image via network using NFS protocol.
  1336. config CMD_MII
  1337. bool "mii"
  1338. imply CMD_MDIO
  1339. help
  1340. If set, allows 802.3(clause 22) MII Management functions interface access
  1341. The management interface specified in Clause 22 provides
  1342. a simple, two signal, serial interface to connect a
  1343. Station Management entity and a managed PHY for providing access
  1344. to management parameters and services.
  1345. The interface is referred to as the MII management interface.
  1346. config CMD_MDIO
  1347. bool "mdio"
  1348. depends on PHYLIB
  1349. help
  1350. If set, allows Enable 802.3(clause 45) MDIO interface registers access
  1351. The MDIO interface is orthogonal to the MII interface and extends
  1352. it by adding access to more registers through indirect addressing.
  1353. config CMD_PING
  1354. bool "ping"
  1355. help
  1356. Send ICMP ECHO_REQUEST to network host
  1357. config CMD_CDP
  1358. bool "cdp"
  1359. help
  1360. Perform CDP network configuration
  1361. config CMD_SNTP
  1362. bool "sntp"
  1363. select PROT_UDP
  1364. help
  1365. Synchronize RTC via network
  1366. config CMD_DNS
  1367. bool "dns"
  1368. help
  1369. Lookup the IP of a hostname
  1370. config CMD_LINK_LOCAL
  1371. bool "linklocal"
  1372. select LIB_RAND
  1373. help
  1374. Acquire a network IP address using the link-local protocol
  1375. endif
  1376. config CMD_ETHSW
  1377. bool "ethsw"
  1378. help
  1379. Allow control of L2 Ethernet switch commands. These are supported
  1380. by the vsc9953 Ethernet driver at present. Sub-commands allow
  1381. operations such as enabling / disabling a port and
  1382. viewing/maintaining the filtering database (FDB)
  1383. config CMD_PXE
  1384. bool "pxe"
  1385. select MENU
  1386. help
  1387. Boot image via network using PXE protocol
  1388. config CMD_WOL
  1389. bool "wol"
  1390. help
  1391. Wait for wake-on-lan Magic Packet
  1392. endif
  1393. menu "Misc commands"
  1394. config CMD_BMP
  1395. bool "Enable 'bmp' command"
  1396. depends on LCD || DM_VIDEO || VIDEO
  1397. help
  1398. This provides a way to obtain information about a BMP-format image
  1399. and to display it. BMP (which presumably stands for BitMaP) is a
  1400. file format defined by Microsoft which supports images of various
  1401. depths, formats and compression methods. Headers on the file
  1402. determine the formats used. This command can be used by first loading
  1403. the image into RAM, then using this command to look at it or display
  1404. it.
  1405. config CMD_BOOTCOUNT
  1406. bool "bootcount"
  1407. depends on BOOTCOUNT_LIMIT
  1408. help
  1409. Enable the bootcount command, which allows interrogation and
  1410. reset of the bootcounter.
  1411. config CMD_BSP
  1412. bool "Enable board-specific commands"
  1413. help
  1414. (deprecated: instead, please define a Kconfig option for each command)
  1415. Some boards have board-specific commands which are only enabled
  1416. during developemnt and need to be turned off for production. This
  1417. option provides a way to control this. The commands that are enabled
  1418. vary depending on the board.
  1419. config CMD_BLOCK_CACHE
  1420. bool "blkcache - control and stats for block cache"
  1421. depends on BLOCK_CACHE
  1422. default y if BLOCK_CACHE
  1423. help
  1424. Enable the blkcache command, which can be used to control the
  1425. operation of the cache functions.
  1426. This is most useful when fine-tuning the operation of the cache
  1427. during development, but also allows the cache to be disabled when
  1428. it might hurt performance (e.g. when using the ums command).
  1429. config CMD_BUTTON
  1430. bool "button"
  1431. depends on BUTTON
  1432. default y if BUTTON
  1433. help
  1434. Enable the 'button' command which allows to get the status of
  1435. buttons supported by the board. The buttonss can be listed with
  1436. 'button list' and state can be known with 'button <label>'.
  1437. Any button drivers can be controlled with this command, e.g.
  1438. button_gpio.
  1439. config CMD_CACHE
  1440. bool "icache or dcache"
  1441. help
  1442. Enable the "icache" and "dcache" commands
  1443. config CMD_CONITRACE
  1444. bool "conitrace - trace console input codes"
  1445. help
  1446. Enable the 'conitrace' command which displays the codes received
  1447. from the console input as hexadecimal numbers.
  1448. config CMD_CLS
  1449. bool "Enable clear screen command 'cls'"
  1450. depends on CFB_CONSOLE || DM_VIDEO || LCD || VIDEO
  1451. default y if LCD
  1452. help
  1453. Enable the 'cls' command which clears the screen contents
  1454. on video frame buffer.
  1455. config CMD_EFIDEBUG
  1456. bool "efidebug - display/configure UEFI environment"
  1457. depends on EFI_LOADER
  1458. select EFI_DEVICE_PATH_TO_TEXT
  1459. default n
  1460. help
  1461. Enable the 'efidebug' command which provides a subset of UEFI
  1462. shell utility with simplified functionality. It will be useful
  1463. particularly for managing boot parameters as well as examining
  1464. various EFI status for debugging.
  1465. config CMD_EXCEPTION
  1466. bool "exception - raise exception"
  1467. depends on ARM || RISCV || SANDBOX || X86
  1468. help
  1469. Enable the 'exception' command which allows to raise an exception.
  1470. config CMD_LED
  1471. bool "led"
  1472. depends on LED
  1473. default y if LED
  1474. help
  1475. Enable the 'led' command which allows for control of LEDs supported
  1476. by the board. The LEDs can be listed with 'led list' and controlled
  1477. with led on/off/togle/blink. Any LED drivers can be controlled with
  1478. this command, e.g. led_gpio.
  1479. config CMD_DATE
  1480. bool "date"
  1481. default y if DM_RTC
  1482. select LIB_DATE
  1483. help
  1484. Enable the 'date' command for getting/setting the time/date in RTC
  1485. devices.
  1486. config CMD_RTC
  1487. bool "rtc"
  1488. depends on DM_RTC
  1489. help
  1490. Enable the 'rtc' command for low-level access to RTC devices.
  1491. config CMD_TIME
  1492. bool "time"
  1493. help
  1494. Run commands and summarize execution time.
  1495. config CMD_GETTIME
  1496. bool "gettime - read elapsed time"
  1497. help
  1498. Enable the 'gettime' command which reads the elapsed time since
  1499. U-Boot started running. This shows the time in seconds and
  1500. milliseconds. See also the 'bootstage' command which provides more
  1501. flexibility for boot timing.
  1502. config CMD_RNG
  1503. bool "rng command"
  1504. depends on DM_RNG
  1505. select HEXDUMP
  1506. help
  1507. Print bytes from the hardware random number generator.
  1508. config CMD_SLEEP
  1509. bool "sleep"
  1510. default y
  1511. help
  1512. Delay execution for some time
  1513. config MP
  1514. bool "support for multiprocessor"
  1515. help
  1516. This provides an option to brinup
  1517. different processors in multiprocessor
  1518. cases.
  1519. config CMD_TIMER
  1520. bool "timer"
  1521. help
  1522. Access the system timer.
  1523. config CMD_SOUND
  1524. bool "sound"
  1525. depends on SOUND
  1526. help
  1527. This provides basic access to the U-Boot's sound support. The main
  1528. feature is to play a beep.
  1529. sound init - set up sound system
  1530. sound play - play a sound
  1531. config CMD_SYSBOOT
  1532. bool "sysboot"
  1533. select MENU
  1534. help
  1535. Boot image via local extlinux.conf file
  1536. config CMD_QFW
  1537. bool "qfw"
  1538. select QFW
  1539. help
  1540. This provides access to the QEMU firmware interface. The main
  1541. feature is to allow easy loading of files passed to qemu-system
  1542. via -kernel / -initrd
  1543. config CMD_PSTORE
  1544. bool "pstore"
  1545. help
  1546. This provides access to Linux PStore with Rammoops backend. The main
  1547. feature is to allow to display or save PStore records.
  1548. See doc/pstore.rst for more information.
  1549. if CMD_PSTORE
  1550. config CMD_PSTORE_MEM_ADDR
  1551. hex "Memory Address"
  1552. depends on CMD_PSTORE
  1553. help
  1554. Base addr used for PStore ramoops memory, should be identical to
  1555. ramoops.mem_address parameter used by kernel
  1556. config CMD_PSTORE_MEM_SIZE
  1557. hex "Memory size"
  1558. depends on CMD_PSTORE
  1559. default "0x10000"
  1560. help
  1561. Size of PStore ramoops memory, should be identical to ramoops.mem_size
  1562. parameter used by kernel, a power of 2 and larger than the sum of the
  1563. record sizes
  1564. config CMD_PSTORE_RECORD_SIZE
  1565. hex "Dump record size"
  1566. depends on CMD_PSTORE
  1567. default "0x1000"
  1568. help
  1569. Size of each dump done on oops/panic, should be identical to
  1570. ramoops.record_size parameter used by kernel and a power of 2
  1571. Must be non-zero
  1572. config CMD_PSTORE_CONSOLE_SIZE
  1573. hex "Kernel console log size"
  1574. depends on CMD_PSTORE
  1575. default "0x1000"
  1576. help
  1577. Size of kernel console log, should be identical to
  1578. ramoops.console_size parameter used by kernel and a power of 2
  1579. Must be non-zero
  1580. config CMD_PSTORE_FTRACE_SIZE
  1581. hex "FTrace log size"
  1582. depends on CMD_PSTORE
  1583. default "0x1000"
  1584. help
  1585. Size of ftrace log, should be identical to ramoops.ftrace_size
  1586. parameter used by kernel and a power of 2
  1587. config CMD_PSTORE_PMSG_SIZE
  1588. hex "User space message log size"
  1589. depends on CMD_PSTORE
  1590. default "0x1000"
  1591. help
  1592. Size of user space message log, should be identical to
  1593. ramoops.pmsg_size parameter used by kernel and a power of 2
  1594. config CMD_PSTORE_ECC_SIZE
  1595. int "ECC size"
  1596. depends on CMD_PSTORE
  1597. default "0"
  1598. help
  1599. if non-zero, the option enables ECC support and specifies ECC buffer
  1600. size in bytes (1 is a special value, means 16 bytes ECC), should be
  1601. identical to ramoops.ramoops_ecc parameter used by kernel
  1602. endif
  1603. source "cmd/mvebu/Kconfig"
  1604. config CMD_TERMINAL
  1605. bool "terminal - provides a way to attach a serial terminal"
  1606. help
  1607. Provides a 'cu'-like serial terminal command. This can be used to
  1608. access other serial ports from the system console. The terminal
  1609. is very simple with no special processing of characters. As with
  1610. cu, you can press ~. (tilde followed by period) to exit.
  1611. config CMD_UUID
  1612. bool "uuid, guid - generation of unique IDs"
  1613. select LIB_UUID
  1614. help
  1615. This enables two commands:
  1616. uuid - generate random Universally Unique Identifier
  1617. guid - generate Globally Unique Identifier based on random UUID
  1618. The two commands are very similar except for the endianness of the
  1619. output.
  1620. endmenu
  1621. source "cmd/ti/Kconfig"
  1622. config CMD_BOOTSTAGE
  1623. bool "Enable the 'bootstage' command"
  1624. depends on BOOTSTAGE
  1625. help
  1626. Add a 'bootstage' command which supports printing a report
  1627. and un/stashing of bootstage data.
  1628. menu "Power commands"
  1629. config CMD_PMIC
  1630. bool "Enable Driver Model PMIC command"
  1631. depends on DM_PMIC
  1632. help
  1633. This is the pmic command, based on a driver model pmic's API.
  1634. Command features are unchanged:
  1635. - list - list pmic devices
  1636. - pmic dev <id> - show or [set] operating pmic device (NEW)
  1637. - pmic dump - dump registers
  1638. - pmic read address - read byte of register at address
  1639. - pmic write address - write byte to register at address
  1640. The only one change for this command is 'dev' subcommand.
  1641. config CMD_REGULATOR
  1642. bool "Enable Driver Model REGULATOR command"
  1643. depends on DM_REGULATOR
  1644. help
  1645. This command is based on driver model regulator's API.
  1646. User interface features:
  1647. - list - list regulator devices
  1648. - regulator dev <id> - show or [set] operating regulator device
  1649. - regulator info - print constraints info
  1650. - regulator status - print operating status
  1651. - regulator value <val] <-f> - print/[set] voltage value [uV]
  1652. - regulator current <val> - print/[set] current value [uA]
  1653. - regulator mode <id> - print/[set] operating mode id
  1654. - regulator enable - enable the regulator output
  1655. - regulator disable - disable the regulator output
  1656. The '-f' (force) option can be used for set the value which exceeds
  1657. the limits, which are found in device-tree and are kept in regulator's
  1658. uclass plat structure.
  1659. endmenu
  1660. menu "Security commands"
  1661. config CMD_AES
  1662. bool "Enable the 'aes' command"
  1663. select AES
  1664. help
  1665. This provides a means to encrypt and decrypt data using the AES
  1666. (Advanced Encryption Standard). This algorithm uses a symetric key
  1667. and is widely used as a streaming cipher. Different key lengths are
  1668. supported by the algorithm but this command only supports 128 bits
  1669. at present.
  1670. config CMD_BLOB
  1671. bool "Enable the 'blob' command"
  1672. depends on !MX6ULL && !MX6SLL && !MX6SL
  1673. select IMX_HAB if ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP || ARCH_IMX8M
  1674. help
  1675. This is used with the Freescale secure boot mechanism.
  1676. Freescale's SEC block has built-in Blob Protocol which provides
  1677. a method for protecting user-defined data across system power
  1678. cycles. SEC block protects data in a data structure called a Blob,
  1679. which provides both confidentiality and integrity protection.
  1680. Encapsulating data as a blob
  1681. Each time that the Blob Protocol is used to protect data, a
  1682. different randomly generated key is used to encrypt the data.
  1683. This random key is itself encrypted using a key which is derived
  1684. from SoC's non-volatile secret key and a 16 bit Key identifier.
  1685. The resulting encrypted key along with encrypted data is called a
  1686. blob. The non-volatile secure key is available for use only during
  1687. secure boot.
  1688. During decapsulation, the reverse process is performed to get back
  1689. the original data.
  1690. Sub-commands:
  1691. blob enc - encapsulating data as a cryptgraphic blob
  1692. blob dec - decapsulating cryptgraphic blob to get the data
  1693. Syntax:
  1694. blob enc src dst len km
  1695. Encapsulate and create blob of data $len bytes long
  1696. at address $src and store the result at address $dst.
  1697. $km is the 16 byte key modifier is also required for
  1698. generation/use as key for cryptographic operation. Key
  1699. modifier should be 16 byte long.
  1700. blob dec src dst len km
  1701. Decapsulate the blob of data at address $src and
  1702. store result of $len byte at addr $dst.
  1703. $km is the 16 byte key modifier is also required for
  1704. generation/use as key for cryptographic operation. Key
  1705. modifier should be 16 byte long.
  1706. config CMD_HASH
  1707. bool "Support 'hash' command"
  1708. select HASH
  1709. help
  1710. This provides a way to hash data in memory using various supported
  1711. algorithms (such as SHA1, MD5, CRC32). The computed digest can be
  1712. saved to memory or to an environment variable. It is also possible
  1713. to verify a hash against data in memory.
  1714. config CMD_HVC
  1715. bool "Support the 'hvc' command"
  1716. depends on ARM_SMCCC
  1717. help
  1718. Allows issuing Hypervisor Calls (HVCs). Mostly useful for
  1719. development and testing.
  1720. config CMD_SMC
  1721. bool "Support the 'smc' command"
  1722. depends on ARM_SMCCC
  1723. help
  1724. Allows issuing Secure Monitor Calls (SMCs). Mostly useful for
  1725. development and testing.
  1726. config HASH_VERIFY
  1727. bool "hash -v"
  1728. depends on CMD_HASH
  1729. help
  1730. Add -v option to verify data against a hash.
  1731. config CMD_SCP03
  1732. bool "scp03 - SCP03 enable and rotate/provision operations"
  1733. depends on SCP03
  1734. help
  1735. This command provides access to a Trusted Application
  1736. running in a TEE to request Secure Channel Protocol 03
  1737. (SCP03) enablement and/or rotation of its SCP03 keys.
  1738. config CMD_TPM_V1
  1739. bool
  1740. config CMD_TPM_V2
  1741. bool
  1742. config CMD_TPM
  1743. bool "Enable the 'tpm' command"
  1744. depends on TPM_V1 || TPM_V2
  1745. select CMD_TPM_V1 if TPM_V1
  1746. select CMD_TPM_V2 if TPM_V2
  1747. help
  1748. This provides a means to talk to a TPM from the command line. A wide
  1749. range of commands if provided - see 'tpm help' for details. The
  1750. command requires a suitable TPM on your board and the correct driver
  1751. must be enabled.
  1752. if CMD_TPM
  1753. config CMD_TPM_TEST
  1754. bool "Enable the 'tpm test' command"
  1755. depends on TPM_V1
  1756. help
  1757. This provides a a series of tests to confirm that the TPMv1.x is
  1758. working correctly. The tests cover initialisation, non-volatile RAM,
  1759. extend, global lock and checking that timing is within expectations.
  1760. The tests pass correctly on Infineon TPMs but may need to be adjusted
  1761. for other devices.
  1762. endif
  1763. endmenu
  1764. menu "Firmware commands"
  1765. config CMD_CROS_EC
  1766. bool "Enable crosec command"
  1767. depends on CROS_EC
  1768. default y
  1769. help
  1770. Enable command-line access to the Chrome OS EC (Embedded
  1771. Controller). This provides the 'crosec' command which has
  1772. a number of sub-commands for performing EC tasks such as
  1773. updating its flash, accessing a small saved context area
  1774. and talking to the I2C bus behind the EC (if there is one).
  1775. endmenu
  1776. menu "Filesystem commands"
  1777. config CMD_BTRFS
  1778. bool "Enable the 'btrsubvol' command"
  1779. select FS_BTRFS
  1780. help
  1781. This enables the 'btrsubvol' command to list subvolumes
  1782. of a BTRFS filesystem. There are no special commands for
  1783. listing BTRFS directories or loading BTRFS files - this
  1784. can be done by the generic 'fs' commands (see CMD_FS_GENERIC)
  1785. when BTRFS is enabled (see FS_BTRFS).
  1786. config CMD_CBFS
  1787. bool "Enable the 'cbfs' command"
  1788. depends on FS_CBFS
  1789. help
  1790. Define this to enable support for reading from a Coreboot
  1791. filesystem. This is a ROM-based filesystem used for accessing files
  1792. on systems that use coreboot as the first boot-loader and then load
  1793. U-Boot to actually boot the Operating System. Available commands are
  1794. cbfsinit, cbfsinfo, cbfsls and cbfsload.
  1795. config CMD_CRAMFS
  1796. bool "Enable the 'cramfs' command"
  1797. depends on FS_CRAMFS
  1798. help
  1799. This provides commands for dealing with CRAMFS (Compressed ROM
  1800. filesystem). CRAMFS is useful when space is tight since files are
  1801. compressed. Two commands are provided:
  1802. cramfsls - lists files in a cramfs image
  1803. cramfsload - loads a file from a cramfs image
  1804. config CMD_EXT2
  1805. bool "ext2 command support"
  1806. select FS_EXT4
  1807. help
  1808. Enables EXT2 FS command
  1809. config CMD_EXT4
  1810. bool "ext4 command support"
  1811. select FS_EXT4
  1812. help
  1813. Enables EXT4 FS command
  1814. config CMD_EXT4_WRITE
  1815. depends on CMD_EXT4
  1816. bool "ext4 write command support"
  1817. select EXT4_WRITE
  1818. help
  1819. Enables EXT4 FS write command
  1820. config CMD_FAT
  1821. bool "FAT command support"
  1822. select FS_FAT
  1823. help
  1824. Support for the FAT fs
  1825. config CMD_SQUASHFS
  1826. bool "SquashFS command support"
  1827. select FS_SQUASHFS
  1828. help
  1829. Enables SquashFS filesystem commands (e.g. load, ls).
  1830. config CMD_FS_GENERIC
  1831. bool "filesystem commands"
  1832. help
  1833. Enables filesystem commands (e.g. load, ls) that work for multiple
  1834. fs types.
  1835. config CMD_FS_UUID
  1836. bool "fsuuid command"
  1837. help
  1838. Enables fsuuid command for filesystem UUID.
  1839. config CMD_JFFS2
  1840. bool "jffs2 command"
  1841. select FS_JFFS2
  1842. help
  1843. Enables commands to support the JFFS2 (Journalling Flash File System
  1844. version 2) filesystem. This enables fsload, ls and fsinfo which
  1845. provide the ability to load files, list directories and obtain
  1846. filesystem information.
  1847. config CMD_MTDPARTS
  1848. bool "MTD partition support"
  1849. depends on MTD
  1850. help
  1851. MTD partitioning tool support.
  1852. It is strongly encouraged to avoid using this command
  1853. anymore along with 'sf', 'nand', 'onenand'. One can still
  1854. declare the partitions in the mtdparts environment variable
  1855. but better use the MTD stack and the 'mtd' command instead.
  1856. config CMD_MTDPARTS_SPREAD
  1857. bool "Padd partition size to take account of bad blocks"
  1858. depends on CMD_MTDPARTS
  1859. help
  1860. This enables the 'spread' sub-command of the mtdparts command.
  1861. This command will modify the existing mtdparts variable by increasing
  1862. the size of the partitions such that 1) each partition's net size is
  1863. at least as large as the size specified in the mtdparts variable and
  1864. 2) each partition starts on a good block.
  1865. config CMD_MTDPARTS_SHOW_NET_SIZES
  1866. bool "Show net size (w/o bad blocks) of partitions"
  1867. depends on CMD_MTDPARTS
  1868. help
  1869. Adds two columns to the printed partition table showing the
  1870. effective usable size of a partition, if bad blocks are taken
  1871. into account.
  1872. config MTDIDS_DEFAULT
  1873. string "Default MTD IDs"
  1874. depends on MTD || SPI_FLASH
  1875. help
  1876. Defines a default MTD IDs list for use with MTD partitions in the
  1877. Linux MTD command line partitions format.
  1878. config MTDPARTS_DEFAULT
  1879. string "Default MTD partition scheme"
  1880. depends on MTD || SPI_FLASH
  1881. help
  1882. Defines a default MTD partitioning scheme in the Linux MTD command
  1883. line partitions format
  1884. config CMD_REISER
  1885. bool "reiser - Access to reiserfs filesystems"
  1886. help
  1887. This provides two commands which operate on a resierfs filesystem,
  1888. commonly used some years ago:
  1889. reiserls - list files
  1890. reiserload - load a file
  1891. config CMD_YAFFS2
  1892. bool "yaffs2 - Access of YAFFS2 filesystem"
  1893. depends on YAFFS2
  1894. default y
  1895. help
  1896. This provides commands for accessing a YAFFS2 filesystem. Yet
  1897. Another Flash Filesystem 2 is a filesystem designed specifically
  1898. for NAND flash. It incorporates bad-block management and ensures
  1899. that device writes are sequential regardless of filesystem
  1900. activity.
  1901. config CMD_ZFS
  1902. bool "zfs - Access of ZFS filesystem"
  1903. help
  1904. This provides commands to accessing a ZFS filesystem, commonly used
  1905. on Solaris systems. Two sub-commands are provided:
  1906. zfsls - list files in a directory
  1907. zfsload - load a file
  1908. See doc/README.zfs for more details.
  1909. endmenu
  1910. menu "Debug commands"
  1911. config CMD_BEDBUG
  1912. bool "bedbug"
  1913. help
  1914. The bedbug (emBEDded deBUGger) command provides debugging features
  1915. for some PowerPC processors. For details please see the
  1916. documentation in doc/README.bedbug.
  1917. config CMD_CBSYSINFO
  1918. bool "cbsysinfo"
  1919. depends on X86
  1920. default y if SYS_COREBOOT
  1921. help
  1922. This provides information about the coreboot sysinfo table stored in
  1923. memory by coreboot before jumping to U-Boot. It can be useful for
  1924. debugging the beaaviour of coreboot or U-Boot.
  1925. config CMD_DIAG
  1926. bool "diag - Board diagnostics"
  1927. help
  1928. This command provides access to board diagnostic tests. These are
  1929. called Power-on Self Tests (POST). The command allows listing of
  1930. available tests and running either all the tests, or specific tests
  1931. identified by name.
  1932. config CMD_IRQ
  1933. bool "irq - Show information about interrupts"
  1934. depends on !ARM && !MIPS && !RISCV && !SH
  1935. help
  1936. This enables two commands:
  1937. interrupts - enable or disable interrupts
  1938. irqinfo - print device-specific interrupt information
  1939. config CMD_KGDB
  1940. bool "kgdb - Allow debugging of U-Boot with gdb"
  1941. depends on PPC
  1942. help
  1943. This enables a 'kgdb' command which allows gdb to connect to U-Boot
  1944. over a serial link for debugging purposes. This allows
  1945. single-stepping, inspecting variables, etc. This is supported only
  1946. on PowerPC at present.
  1947. config CMD_LOG
  1948. bool "log - Generation, control and access to logging"
  1949. select LOG
  1950. select GETOPT
  1951. help
  1952. This provides access to logging features. It allows the output of
  1953. log data to be controlled to a limited extent (setting up the default
  1954. maximum log level for emitting of records). It also provides access
  1955. to a command used for testing the log system.
  1956. config CMD_TRACE
  1957. bool "trace - Support tracing of function calls and timing"
  1958. help
  1959. Enables a command to control using of function tracing within
  1960. U-Boot. This allows recording of call traces including timing
  1961. information. The command can write data to memory for exporting
  1962. for analysis (e.g. using bootchart). See doc/README.trace for full
  1963. details.
  1964. config CMD_AVB
  1965. bool "avb - Android Verified Boot 2.0 operations"
  1966. depends on AVB_VERIFY
  1967. default n
  1968. help
  1969. Enables a "avb" command to perform verification of partitions using
  1970. Android Verified Boot 2.0 functionality. It includes such subcommands:
  1971. avb init - initialize avb2 subsystem
  1972. avb read_rb - read rollback index
  1973. avb write_rb - write rollback index
  1974. avb is_unlocked - check device lock state
  1975. avb get_uuid - read and print uuid of a partition
  1976. avb read_part - read data from partition
  1977. avb read_part_hex - read data from partition and output to stdout
  1978. avb write_part - write data to partition
  1979. avb verify - run full verification chain
  1980. config CMD_STACKPROTECTOR_TEST
  1981. bool "Test command for stack protector"
  1982. depends on STACKPROTECTOR
  1983. help
  1984. Enable stackprot_test command
  1985. The stackprot_test command will force a stack overrun to test
  1986. the stack smashing detection mechanisms.
  1987. endmenu
  1988. config CMD_UBI
  1989. tristate "Enable UBI - Unsorted block images commands"
  1990. select MTD_UBI
  1991. help
  1992. UBI is a software layer above MTD layer which admits use of LVM-like
  1993. logical volumes on top of MTD devices, hides some complexities of
  1994. flash chips like wear and bad blocks and provides some other useful
  1995. capabilities. Please, consult the MTD web site for more details
  1996. (www.linux-mtd.infradead.org). Activate this option if you want
  1997. to use U-Boot UBI commands.
  1998. It is also strongly encouraged to also enable CONFIG_MTD to get full
  1999. partition support.
  2000. config CMD_UBI_RENAME
  2001. bool "Enable rename"
  2002. depends on CMD_UBI
  2003. default n
  2004. help
  2005. Enable a "ubi" command to rename ubi volume:
  2006. ubi rename <oldname> <newname>
  2007. config CMD_UBIFS
  2008. tristate "Enable UBIFS - Unsorted block images filesystem commands"
  2009. depends on CMD_UBI
  2010. default y if CMD_UBI
  2011. select LZO
  2012. help
  2013. UBIFS is a file system for flash devices which works on top of UBI.
  2014. endmenu