Kconfig 64 KB

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