Kconfig 65 KB

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