Kconfig 63 KB

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