172a8cf8dSSimon Glassmenu "Command line interface" 272a8cf8dSSimon Glass 3302a6487SSimon Glassconfig CMDLINE 4302a6487SSimon Glass bool "Support U-Boot commands" 5302a6487SSimon Glass default y 6302a6487SSimon Glass help 7302a6487SSimon Glass Enable U-Boot's command-line functions. This provides a means 8302a6487SSimon Glass to enter commands into U-Boot for a wide variety of purposes. It 9302a6487SSimon Glass also allows scripts (containing commands) to be executed. 10302a6487SSimon Glass Various commands and command categorys can be indivdually enabled. 11302a6487SSimon Glass Depending on the number of commands enabled, this can add 12302a6487SSimon Glass substantially to the size of U-Boot. 13302a6487SSimon Glass 1472a8cf8dSSimon Glassconfig HUSH_PARSER 1572a8cf8dSSimon Glass bool "Use hush shell" 16302a6487SSimon Glass depends on CMDLINE 1772a8cf8dSSimon Glass help 1872a8cf8dSSimon Glass This option enables the "hush" shell (from Busybox) as command line 1972a8cf8dSSimon Glass interpreter, thus enabling powerful command line syntax like 2072a8cf8dSSimon Glass if...then...else...fi conditionals or `&&' and '||' 2172a8cf8dSSimon Glass constructs ("shell scripts"). 2272a8cf8dSSimon Glass 2372a8cf8dSSimon Glass If disabled, you get the old, much simpler behaviour with a somewhat 2472a8cf8dSSimon Glass smaller memory footprint. 2572a8cf8dSSimon Glass 2672a8cf8dSSimon Glassconfig SYS_PROMPT 2772a8cf8dSSimon Glass string "Shell prompt" 2872a8cf8dSSimon Glass default "=> " 2972a8cf8dSSimon Glass help 3072a8cf8dSSimon Glass This string is displayed in the command line to the left of the 3172a8cf8dSSimon Glass cursor. 3272a8cf8dSSimon Glass 3372a8cf8dSSimon Glassmenu "Autoboot options" 3472a8cf8dSSimon Glass 3541598c82SMasahiro Yamadaconfig AUTOBOOT 3641598c82SMasahiro Yamada bool "Autoboot" 3741598c82SMasahiro Yamada default y 3841598c82SMasahiro Yamada help 3941598c82SMasahiro Yamada This enables the autoboot. See doc/README.autoboot for detail. 4041598c82SMasahiro Yamada 4172a8cf8dSSimon Glassconfig AUTOBOOT_KEYED 4272a8cf8dSSimon Glass bool "Stop autobooting via specific input key / string" 4372a8cf8dSSimon Glass default n 4472a8cf8dSSimon Glass help 4572a8cf8dSSimon Glass This option enables stopping (aborting) of the automatic 4672a8cf8dSSimon Glass boot feature only by issuing a specific input key or 4772a8cf8dSSimon Glass string. If not enabled, any input key will abort the 4872a8cf8dSSimon Glass U-Boot automatic booting process and bring the device 4972a8cf8dSSimon Glass to the U-Boot prompt for user input. 5072a8cf8dSSimon Glass 5172a8cf8dSSimon Glassconfig AUTOBOOT_PROMPT 5272a8cf8dSSimon Glass string "Autoboot stop prompt" 5372a8cf8dSSimon Glass depends on AUTOBOOT_KEYED 5472a8cf8dSSimon Glass default "Autoboot in %d seconds\\n" 5572a8cf8dSSimon Glass help 5672a8cf8dSSimon Glass This string is displayed before the boot delay selected by 5772a8cf8dSSimon Glass CONFIG_BOOTDELAY starts. If it is not defined there is no 5872a8cf8dSSimon Glass output indicating that autoboot is in progress. 5972a8cf8dSSimon Glass 6072a8cf8dSSimon Glass Note that this define is used as the (only) argument to a 6172a8cf8dSSimon Glass printf() call, so it may contain '%' format specifications, 6272a8cf8dSSimon Glass provided that it also includes, sepearated by commas exactly 6372a8cf8dSSimon Glass like in a printf statement, the required arguments. It is 6472a8cf8dSSimon Glass the responsibility of the user to select only such arguments 6572a8cf8dSSimon Glass that are valid in the given context. 6672a8cf8dSSimon Glass 6772a8cf8dSSimon Glassconfig AUTOBOOT_ENCRYPTION 6872a8cf8dSSimon Glass bool "Enable encryption in autoboot stopping" 6972a8cf8dSSimon Glass depends on AUTOBOOT_KEYED 7072a8cf8dSSimon Glass default n 7172a8cf8dSSimon Glass 7272a8cf8dSSimon Glassconfig AUTOBOOT_DELAY_STR 7372a8cf8dSSimon Glass string "Delay autobooting via specific input key / string" 7472a8cf8dSSimon Glass depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION 7572a8cf8dSSimon Glass help 7672a8cf8dSSimon Glass This option delays the automatic boot feature by issuing 7772a8cf8dSSimon Glass a specific input key or string. If CONFIG_AUTOBOOT_DELAY_STR 7872a8cf8dSSimon Glass or the environment variable "bootdelaykey" is specified 7972a8cf8dSSimon Glass and this string is received from console input before 8072a8cf8dSSimon Glass autoboot starts booting, U-Boot gives a command prompt. The 8172a8cf8dSSimon Glass U-Boot prompt will time out if CONFIG_BOOT_RETRY_TIME is 8272a8cf8dSSimon Glass used, otherwise it never times out. 8372a8cf8dSSimon Glass 8472a8cf8dSSimon Glassconfig AUTOBOOT_STOP_STR 8572a8cf8dSSimon Glass string "Stop autobooting via specific input key / string" 8672a8cf8dSSimon Glass depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION 8772a8cf8dSSimon Glass help 8872a8cf8dSSimon Glass This option enables stopping (aborting) of the automatic 8972a8cf8dSSimon Glass boot feature only by issuing a specific input key or 9072a8cf8dSSimon Glass string. If CONFIG_AUTOBOOT_STOP_STR or the environment 9172a8cf8dSSimon Glass variable "bootstopkey" is specified and this string is 9272a8cf8dSSimon Glass received from console input before autoboot starts booting, 9372a8cf8dSSimon Glass U-Boot gives a command prompt. The U-Boot prompt never 9472a8cf8dSSimon Glass times out, even if CONFIG_BOOT_RETRY_TIME is used. 9572a8cf8dSSimon Glass 9672a8cf8dSSimon Glassconfig AUTOBOOT_KEYED_CTRLC 9772a8cf8dSSimon Glass bool "Enable Ctrl-C autoboot interruption" 9872a8cf8dSSimon Glass depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION 9972a8cf8dSSimon Glass default n 10072a8cf8dSSimon Glass help 10172a8cf8dSSimon Glass This option allows for the boot sequence to be interrupted 10272a8cf8dSSimon Glass by ctrl-c, in addition to the "bootdelaykey" and "bootstopkey". 10372a8cf8dSSimon Glass Setting this variable provides an escape sequence from the 10472a8cf8dSSimon Glass limited "password" strings. 10572a8cf8dSSimon Glass 10672a8cf8dSSimon Glassconfig AUTOBOOT_STOP_STR_SHA256 10772a8cf8dSSimon Glass string "Stop autobooting via SHA256 encrypted password" 10872a8cf8dSSimon Glass depends on AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION 10972a8cf8dSSimon Glass help 11072a8cf8dSSimon Glass This option adds the feature to only stop the autobooting, 11172a8cf8dSSimon Glass and therefore boot into the U-Boot prompt, when the input 11272a8cf8dSSimon Glass string / password matches a values that is encypted via 11372a8cf8dSSimon Glass a SHA256 hash and saved in the environment. 11472a8cf8dSSimon Glass 11572a8cf8dSSimon Glassendmenu 11672a8cf8dSSimon Glass 117e016f0b2SSteve Raesource "cmd/fastboot/Kconfig" 118e016f0b2SSteve Rae 119610eec7fSSam Protsenkoconfig BUILD_BIN2C 120610eec7fSSam Protsenko bool 121610eec7fSSam Protsenko 12272a8cf8dSSimon Glasscomment "Commands" 12372a8cf8dSSimon Glass 12472a8cf8dSSimon Glassmenu "Info commands" 12572a8cf8dSSimon Glass 12672a8cf8dSSimon Glassconfig CMD_BDI 12772a8cf8dSSimon Glass bool "bdinfo" 12872a8cf8dSSimon Glass default y 12972a8cf8dSSimon Glass help 13072a8cf8dSSimon Glass Print board info 13172a8cf8dSSimon Glass 13261304dbeSMasahiro Yamadaconfig CMD_CONFIG 13361304dbeSMasahiro Yamada bool "config" 13461304dbeSMasahiro Yamada select BUILD_BIN2C 13561304dbeSMasahiro Yamada default SANDBOX 13661304dbeSMasahiro Yamada help 13761304dbeSMasahiro Yamada Print ".config" contents. 13861304dbeSMasahiro Yamada 13961304dbeSMasahiro Yamada If this option is enabled, the ".config" file contents are embedded 14061304dbeSMasahiro Yamada in the U-Boot image and can be printed on the console by the "config" 14161304dbeSMasahiro Yamada command. This provides information of which options are enabled on 14261304dbeSMasahiro Yamada the running U-Boot. 14361304dbeSMasahiro Yamada 14472a8cf8dSSimon Glassconfig CMD_CONSOLE 14572a8cf8dSSimon Glass bool "coninfo" 14672a8cf8dSSimon Glass default y 14772a8cf8dSSimon Glass help 14872a8cf8dSSimon Glass Print console devices and information. 14972a8cf8dSSimon Glass 15072a8cf8dSSimon Glassconfig CMD_CPU 15172a8cf8dSSimon Glass bool "cpu" 15272a8cf8dSSimon Glass help 15372a8cf8dSSimon Glass Print information about available CPUs. This normally shows the 15472a8cf8dSSimon Glass number of CPUs, type (e.g. manufacturer, architecture, product or 15572a8cf8dSSimon Glass internal name) and clock frequency. Other information may be 15672a8cf8dSSimon Glass available depending on the CPU driver. 15772a8cf8dSSimon Glass 15872a8cf8dSSimon Glassconfig CMD_LICENSE 15972a8cf8dSSimon Glass bool "license" 160d726f225SMasahiro Yamada select BUILD_BIN2C 16172a8cf8dSSimon Glass help 16272a8cf8dSSimon Glass Print GPL license text 16372a8cf8dSSimon Glass 164fa379223SChristophe Leroyconfig CMD_REGINFO 165fa379223SChristophe Leroy bool "reginfo" 166fa379223SChristophe Leroy depends on PPC 167fa379223SChristophe Leroy help 168fa379223SChristophe Leroy Register dump 169fa379223SChristophe Leroy 17072a8cf8dSSimon Glassendmenu 17172a8cf8dSSimon Glass 17272a8cf8dSSimon Glassmenu "Boot commands" 17372a8cf8dSSimon Glass 17472a8cf8dSSimon Glassconfig CMD_BOOTD 17572a8cf8dSSimon Glass bool "bootd" 17672a8cf8dSSimon Glass default y 17772a8cf8dSSimon Glass help 17872a8cf8dSSimon Glass Run the command stored in the environment "bootcmd", i.e. 17972a8cf8dSSimon Glass "bootd" does the same thing as "run bootcmd". 18072a8cf8dSSimon Glass 18172a8cf8dSSimon Glassconfig CMD_BOOTM 18272a8cf8dSSimon Glass bool "bootm" 18372a8cf8dSSimon Glass default y 18472a8cf8dSSimon Glass help 18572a8cf8dSSimon Glass Boot an application image from the memory. 18672a8cf8dSSimon Glass 187ab8243e4SDinh Nguyenconfig CMD_BOOTZ 188ab8243e4SDinh Nguyen bool "bootz" 189ab8243e4SDinh Nguyen help 190ab8243e4SDinh Nguyen Boot the Linux zImage 191ab8243e4SDinh Nguyen 19226959271SMasahiro Yamadaconfig CMD_BOOTI 19326959271SMasahiro Yamada bool "booti" 19426959271SMasahiro Yamada depends on ARM64 19526959271SMasahiro Yamada default y 19626959271SMasahiro Yamada help 19726959271SMasahiro Yamada Boot an AArch64 Linux Kernel image from memory. 19826959271SMasahiro Yamada 199b9939336SAlexander Grafconfig CMD_BOOTEFI 200b9939336SAlexander Graf bool "bootefi" 201b9939336SAlexander Graf depends on EFI_LOADER 202b9939336SAlexander Graf default y 203b9939336SAlexander Graf help 204b9939336SAlexander Graf Boot an EFI image from memory. 205b9939336SAlexander Graf 20695b62b2eSAlexander Grafconfig CMD_BOOTEFI_HELLO_COMPILE 20795b62b2eSAlexander Graf bool "Compile a standard EFI hello world binary for testing" 20895b62b2eSAlexander Graf depends on CMD_BOOTEFI && (ARM || X86) 20995b62b2eSAlexander Graf default y 21095b62b2eSAlexander Graf help 21195b62b2eSAlexander Graf This compiles a standard EFI hello world application with U-Boot so 21295b62b2eSAlexander Graf that it can be used with the test/py testing framework. This is useful 21395b62b2eSAlexander Graf for testing that EFI is working at a basic level, and for bringing 21495b62b2eSAlexander Graf up EFI support on a new architecture. 21595b62b2eSAlexander Graf 21695b62b2eSAlexander Graf No additional space will be required in the resulting U-Boot binary 21795b62b2eSAlexander Graf when this option is enabled. 21895b62b2eSAlexander Graf 219c7ae3dfdSSimon Glassconfig CMD_BOOTEFI_HELLO 220c7ae3dfdSSimon Glass bool "Allow booting a standard EFI hello world for testing" 22195b62b2eSAlexander Graf depends on CMD_BOOTEFI_HELLO_COMPILE 222c7ae3dfdSSimon Glass help 223c7ae3dfdSSimon Glass This adds a standard EFI hello world application to U-Boot so that 224c7ae3dfdSSimon Glass it can be used with the 'bootefi hello' command. This is useful 225c7ae3dfdSSimon Glass for testing that EFI is working at a basic level, and for bringing 226c7ae3dfdSSimon Glass up EFI support on a new architecture. 227c7ae3dfdSSimon Glass 228623b3a57SHeinrich Schuchardtsource lib/efi_selftest/Kconfig 229623b3a57SHeinrich Schuchardt 2304880b026STom Riniconfig CMD_BOOTMENU 2314880b026STom Rini bool "bootmenu" 2324880b026STom Rini select MENU 2334880b026STom Rini help 2344880b026STom Rini Add an ANSI terminal boot menu command. 2354880b026STom Rini 23672a8cf8dSSimon Glassconfig CMD_ELF 23772a8cf8dSSimon Glass bool "bootelf, bootvx" 23872a8cf8dSSimon Glass default y 23972a8cf8dSSimon Glass help 24072a8cf8dSSimon Glass Boot an ELF/vxWorks image from the memory. 24172a8cf8dSSimon Glass 24223922e26SMichal Simekconfig CMD_FDT 24323922e26SMichal Simek bool "Flattened Device Tree utility commands" 24423922e26SMichal Simek default y 24523922e26SMichal Simek depends on OF_LIBFDT 24623922e26SMichal Simek help 24723922e26SMichal Simek Do FDT related setup before booting into the Operating System. 24823922e26SMichal Simek 24972a8cf8dSSimon Glassconfig CMD_GO 25072a8cf8dSSimon Glass bool "go" 25172a8cf8dSSimon Glass default y 25272a8cf8dSSimon Glass help 25372a8cf8dSSimon Glass Start an application at a given address. 25472a8cf8dSSimon Glass 25572a8cf8dSSimon Glassconfig CMD_RUN 25672a8cf8dSSimon Glass bool "run" 25772a8cf8dSSimon Glass default y 25872a8cf8dSSimon Glass help 25972a8cf8dSSimon Glass Run the command in the given environment variable. 26072a8cf8dSSimon Glass 26172a8cf8dSSimon Glassconfig CMD_IMI 26272a8cf8dSSimon Glass bool "iminfo" 26372a8cf8dSSimon Glass default y 26472a8cf8dSSimon Glass help 26572a8cf8dSSimon Glass Print header information for application image. 26672a8cf8dSSimon Glass 26772a8cf8dSSimon Glassconfig CMD_IMLS 26872a8cf8dSSimon Glass bool "imls" 26972a8cf8dSSimon Glass help 27072a8cf8dSSimon Glass List all images found in flash 27172a8cf8dSSimon Glass 27272a8cf8dSSimon Glassconfig CMD_XIMG 27372a8cf8dSSimon Glass bool "imxtract" 27472a8cf8dSSimon Glass default y 27572a8cf8dSSimon Glass help 27672a8cf8dSSimon Glass Extract a part of a multi-image. 27772a8cf8dSSimon Glass 27872a8cf8dSSimon Glassconfig CMD_POWEROFF 279e05d5058SMichal Simek bool "poweroff" 280e05d5058SMichal Simek help 281e05d5058SMichal Simek Poweroff/Shutdown the system 28272a8cf8dSSimon Glass 28372c3033fSSimon Glassconfig CMD_SPL 28472c3033fSSimon Glass bool "spl export - Export boot information for Falcon boot" 28572c3033fSSimon Glass depends on SPL 28672c3033fSSimon Glass help 28772c3033fSSimon Glass Falcon mode allows booting directly from SPL into an Operating 28872c3033fSSimon Glass System such as Linux, thus skipping U-Boot proper. See 28972c3033fSSimon Glass doc/README.falcon for full information about how to use this 29072c3033fSSimon Glass command. 29172c3033fSSimon Glass 292203dc1b3SSimon Glassconfig CMD_SPL_NAND_OFS 293203dc1b3SSimon Glass hex "Offset of OS command line args for Falcon-mode NAND boot" 294203dc1b3SSimon Glass depends on CMD_SPL 295203dc1b3SSimon Glass default 0 296203dc1b3SSimon Glass help 297203dc1b3SSimon Glass This provides the offset of the command line arguments for Linux 298203dc1b3SSimon Glass when booting from NAND in Falcon mode. See doc/README.falcon 299203dc1b3SSimon Glass for full information about how to use this option (and also see 300203dc1b3SSimon Glass board/gateworks/gw_ventana/README for an example). 301203dc1b3SSimon Glass 3023a91a253SSimon Glassconfig CMD_SPL_WRITE_SIZE 3033a91a253SSimon Glass hex "Size of argument area" 3043a91a253SSimon Glass depends on CMD_SPL 3053a91a253SSimon Glass default 0x2000 3063a91a253SSimon Glass help 3073a91a253SSimon Glass This provides the size of the command-line argument area in NAND 3083a91a253SSimon Glass flash used by Falcon-mode boot. See the documentation until CMD_SPL 3093a91a253SSimon Glass for detail. 3103a91a253SSimon Glass 3119b92a8d7SSimon Glassconfig CMD_THOR_DOWNLOAD 3129b92a8d7SSimon Glass bool "thor - TIZEN 'thor' download" 3139b92a8d7SSimon Glass help 3149b92a8d7SSimon Glass Implements the 'thor' download protocol. This is a way of 3159b92a8d7SSimon Glass downloading a software update over USB from an attached host. 3169b92a8d7SSimon Glass There is no documentation about this within the U-Boot source code 3179b92a8d7SSimon Glass but you should be able to find something on the interwebs. 3189b92a8d7SSimon Glass 319e7a815f3SSimon Glassconfig CMD_ZBOOT 320e7a815f3SSimon Glass bool "zboot - x86 boot command" 321e7a815f3SSimon Glass help 322e7a815f3SSimon Glass With x86 machines it is common to boot a bzImage file which 323e7a815f3SSimon Glass contains both a kernel and a setup.bin file. The latter includes 324e7a815f3SSimon Glass configuration information from the dark ages which x86 boards still 325e7a815f3SSimon Glass need to pick things out of. 326e7a815f3SSimon Glass 327e7a815f3SSimon Glass Consider using FIT in preference to this since it supports directly 328e7a815f3SSimon Glass booting both 32- and 64-bit kernels, as well as secure boot. 329e7a815f3SSimon Glass Documentation is available in doc/uImage.FIT/x86-fit-boot.txt 330e7a815f3SSimon Glass 33172a8cf8dSSimon Glassendmenu 33272a8cf8dSSimon Glass 33372a8cf8dSSimon Glassmenu "Environment commands" 33472a8cf8dSSimon Glass 335ab8243e4SDinh Nguyenconfig CMD_ASKENV 336ab8243e4SDinh Nguyen bool "ask for env variable" 337ab8243e4SDinh Nguyen help 338ab8243e4SDinh Nguyen Ask for environment variable 339ab8243e4SDinh Nguyen 34072a8cf8dSSimon Glassconfig CMD_EXPORTENV 34172a8cf8dSSimon Glass bool "env export" 34272a8cf8dSSimon Glass default y 34372a8cf8dSSimon Glass help 34472a8cf8dSSimon Glass Export environments. 34572a8cf8dSSimon Glass 34672a8cf8dSSimon Glassconfig CMD_IMPORTENV 34772a8cf8dSSimon Glass bool "env import" 34872a8cf8dSSimon Glass default y 34972a8cf8dSSimon Glass help 35072a8cf8dSSimon Glass Import environments. 35172a8cf8dSSimon Glass 35272a8cf8dSSimon Glassconfig CMD_EDITENV 35372a8cf8dSSimon Glass bool "editenv" 35472a8cf8dSSimon Glass default y 35572a8cf8dSSimon Glass help 35672a8cf8dSSimon Glass Edit environment variable. 35772a8cf8dSSimon Glass 358ab8243e4SDinh Nguyenconfig CMD_GREPENV 359ab8243e4SDinh Nguyen bool "search env" 360ab8243e4SDinh Nguyen help 361ab8243e4SDinh Nguyen Allow for searching environment variables 362ab8243e4SDinh Nguyen 36372a8cf8dSSimon Glassconfig CMD_SAVEENV 36472a8cf8dSSimon Glass bool "saveenv" 36572a8cf8dSSimon Glass default y 36672a8cf8dSSimon Glass help 36772a8cf8dSSimon Glass Save all environment variables into the compiled-in persistent 36872a8cf8dSSimon Glass storage. 36972a8cf8dSSimon Glass 37072a8cf8dSSimon Glassconfig CMD_ENV_EXISTS 37172a8cf8dSSimon Glass bool "env exists" 37272a8cf8dSSimon Glass default y 37372a8cf8dSSimon Glass help 37472a8cf8dSSimon Glass Check if a variable is defined in the environment for use in 37572a8cf8dSSimon Glass shell scripting. 37672a8cf8dSSimon Glass 377a55d29d2SSimon Glassconfig CMD_ENV_CALLBACK 378a55d29d2SSimon Glass bool "env callbacks - print callbacks and their associated variables" 379a55d29d2SSimon Glass help 380a55d29d2SSimon Glass Some environment variable have callbacks defined by 381a55d29d2SSimon Glass U_BOOT_ENV_CALLBACK. These are called when the variable changes. 382a55d29d2SSimon Glass For example changing "baudrate" adjust the serial baud rate. This 383a55d29d2SSimon Glass command lists the currently defined callbacks. 384a55d29d2SSimon Glass 385ffc76589SSimon Glassconfig CMD_ENV_FLAGS 386ffc76589SSimon Glass bool "env flags -print variables that have non-default flags" 387ffc76589SSimon Glass help 388ffc76589SSimon Glass Some environment variables have special flags that control their 389ffc76589SSimon Glass behaviour. For example, serial# can only be written once and cannot 390ffc76589SSimon Glass be deleted. This command shows the variables that have special 391ffc76589SSimon Glass flags. 392ffc76589SSimon Glass 39372a8cf8dSSimon Glassendmenu 39472a8cf8dSSimon Glass 39572a8cf8dSSimon Glassmenu "Memory commands" 39672a8cf8dSSimon Glass 39772a8cf8dSSimon Glassconfig CMD_CRC32 39872a8cf8dSSimon Glass bool "crc32" 399d70f919eSSimon Glass select HASH 400b0243608SMaxime Ripard default n if ARCH_SUNXI 40172a8cf8dSSimon Glass default y 40272a8cf8dSSimon Glass help 40372a8cf8dSSimon Glass Compute CRC32. 40472a8cf8dSSimon Glass 405221a949eSDaniel Thompsonconfig CRC32_VERIFY 406221a949eSDaniel Thompson bool "crc32 -v" 407221a949eSDaniel Thompson depends on CMD_CRC32 408221a949eSDaniel Thompson help 409221a949eSDaniel Thompson Add -v option to verify data against a crc32 checksum. 410221a949eSDaniel Thompson 411a1dc980dSSimon Glassconfig CMD_EEPROM 412a1dc980dSSimon Glass bool "eeprom - EEPROM subsystem" 413a1dc980dSSimon Glass help 414a1dc980dSSimon Glass (deprecated, needs conversion to driver model) 415a1dc980dSSimon Glass Provides commands to read and write EEPROM (Electrically Erasable 416a1dc980dSSimon Glass Programmable Read Only Memory) chips that are connected over an 417a1dc980dSSimon Glass I2C bus. 418a1dc980dSSimon Glass 419a1dc980dSSimon Glassconfig CMD_EEPROM_LAYOUT 420a1dc980dSSimon Glass bool "Enable layout-aware eeprom commands" 421a1dc980dSSimon Glass depends on CMD_EEPROM 422a1dc980dSSimon Glass help 423a1dc980dSSimon Glass (deprecated, needs conversion to driver model) 424a1dc980dSSimon Glass When enabled, additional eeprom sub-commands become available. 425a1dc980dSSimon Glass 426a1dc980dSSimon Glass eeprom print - prints the contents of the eeprom in a human-readable 427a1dc980dSSimon Glass way (eeprom layout fields, and data formatted to be fit for human 428a1dc980dSSimon Glass consumption). 429a1dc980dSSimon Glass 430a1dc980dSSimon Glass eeprom update - allows user to update eeprom fields by specifying 431a1dc980dSSimon Glass the field name, and providing the new data in a human readable format 432a1dc980dSSimon Glass (same format as displayed by the eeprom print command). 433a1dc980dSSimon Glass 434a1dc980dSSimon Glass Both commands can either auto detect the layout, or be told which 435a1dc980dSSimon Glass layout to use. 436a1dc980dSSimon Glass 437a1dc980dSSimon Glass Feature API: 438a1dc980dSSimon Glass __weak int parse_layout_version(char *str) 439a1dc980dSSimon Glass - override to provide your own layout name parsing 440a1dc980dSSimon Glass __weak void __eeprom_layout_assign(struct eeprom_layout *layout, 441a1dc980dSSimon Glass int layout_version); 442a1dc980dSSimon Glass - override to setup the layout metadata based on the version 443a1dc980dSSimon Glass __weak int eeprom_layout_detect(unsigned char *data) 444a1dc980dSSimon Glass - override to provide your own algorithm for detecting layout 445a1dc980dSSimon Glass version 446a1dc980dSSimon Glass eeprom_field.c 447a1dc980dSSimon Glass - contains various printing and updating functions for common 448a1dc980dSSimon Glass types of eeprom fields. Can be used for defining 449a1dc980dSSimon Glass custom layouts. 450a1dc980dSSimon Glass 451a1dc980dSSimon Glassconfig EEPROM_LAYOUT_HELP_STRING 452a1dc980dSSimon Glass string "Tells user what layout names are supported" 453a1dc980dSSimon Glass depends on CMD_EEPROM_LAYOUT 454a1dc980dSSimon Glass default "<not defined>" 455a1dc980dSSimon Glass help 456a1dc980dSSimon Glass Help printed with the LAYOUT VERSIONS part of the 'eeprom' 457a1dc980dSSimon Glass command's help. 458a1dc980dSSimon Glass 459ba71be54SSimon Glassconfig LOOPW 460ba71be54SSimon Glass bool "loopw" 461ba71be54SSimon Glass help 462ba71be54SSimon Glass Infinite write loop on address range 463ba71be54SSimon Glass 464bea79d7dSAndre Przywaraconfig CMD_MD5SUM 465bea79d7dSAndre Przywara bool "md5sum" 466bea79d7dSAndre Przywara default n 467bea79d7dSAndre Przywara select MD5 468bea79d7dSAndre Przywara help 469bea79d7dSAndre Przywara Compute MD5 checksum. 470bea79d7dSAndre Przywara 471221a949eSDaniel Thompsonconfig MD5SUM_VERIFY 472bea79d7dSAndre Przywara bool "md5sum -v" 473bea79d7dSAndre Przywara default n 474bea79d7dSAndre Przywara depends on CMD_MD5SUM 475bea79d7dSAndre Przywara help 476bea79d7dSAndre Przywara Add -v option to verify data against an MD5 checksum. 477bea79d7dSAndre Przywara 478ba71be54SSimon Glassconfig CMD_MEMINFO 479ba71be54SSimon Glass bool "meminfo" 480221a949eSDaniel Thompson help 481ba71be54SSimon Glass Display memory information. 482221a949eSDaniel Thompson 483ba71be54SSimon Glassconfig CMD_MEMORY 484ba71be54SSimon Glass bool "md, mm, nm, mw, cp, cmp, base, loop" 485ba71be54SSimon Glass default y 486221a949eSDaniel Thompson help 487ba71be54SSimon Glass Memory commands. 488ba71be54SSimon Glass md - memory display 489ba71be54SSimon Glass mm - memory modify (auto-incrementing address) 490ba71be54SSimon Glass nm - memory modify (constant address) 491ba71be54SSimon Glass mw - memory write (fill) 492ba71be54SSimon Glass cp - memory copy 493ba71be54SSimon Glass cmp - memory compare 494ba71be54SSimon Glass base - print or set address offset 495ba71be54SSimon Glass loop - initialize loop on address range 49672a8cf8dSSimon Glass 49772a8cf8dSSimon Glassconfig CMD_MEMTEST 49872a8cf8dSSimon Glass bool "memtest" 49972a8cf8dSSimon Glass help 50072a8cf8dSSimon Glass Simple RAM read/write test. 50172a8cf8dSSimon Glass 50272a8cf8dSSimon Glassconfig CMD_MX_CYCLIC 50372a8cf8dSSimon Glass bool "mdc, mwc" 50472a8cf8dSSimon Glass help 50572a8cf8dSSimon Glass mdc - memory display cyclic 50672a8cf8dSSimon Glass mwc - memory write cyclic 50772a8cf8dSSimon Glass 508ba71be54SSimon Glassconfig CMD_SHA1SUM 509ba71be54SSimon Glass bool "sha1sum" 510ba71be54SSimon Glass select SHA1 51172a8cf8dSSimon Glass help 512ba71be54SSimon Glass Compute SHA1 checksum. 513ba71be54SSimon Glass 514ba71be54SSimon Glassconfig SHA1SUM_VERIFY 515ba71be54SSimon Glass bool "sha1sum -v" 516ba71be54SSimon Glass depends on CMD_SHA1SUM 517ba71be54SSimon Glass help 518ba71be54SSimon Glass Add -v option to verify data against a SHA1 checksum. 51972a8cf8dSSimon Glass 52000805d7aSSimon Glassconfig CMD_STRINGS 52100805d7aSSimon Glass bool "strings - display strings in memory" 52200805d7aSSimon Glass help 52300805d7aSSimon Glass This works similarly to the Unix 'strings' command except that it 52400805d7aSSimon Glass works with a memory range. String of printable characters found 52500805d7aSSimon Glass within the range are displayed. The minimum number of characters 52600805d7aSSimon Glass for a sequence to be considered a string can be provided. 52700805d7aSSimon Glass 528ee7c0e71SSimon Glassendmenu 529ee7c0e71SSimon Glass 530ee7c0e71SSimon Glassmenu "Compression commands" 531ee7c0e71SSimon Glass 532ee7c0e71SSimon Glassconfig CMD_LZMADEC 533ee7c0e71SSimon Glass bool "lzmadec" 53499e46dfcSTom Rini default y if CMD_BOOTI 535ee7c0e71SSimon Glass select LZMA 536ee7c0e71SSimon Glass help 537ee7c0e71SSimon Glass Support decompressing an LZMA (Lempel-Ziv-Markov chain algorithm) 538ee7c0e71SSimon Glass image from memory. 539ee7c0e71SSimon Glass 540e9d33e73SMasahiro Yamadaconfig CMD_UNZIP 541e9d33e73SMasahiro Yamada bool "unzip" 5423b50382aSMaxime Ripard default n if ARCH_SUNXI 54399e46dfcSTom Rini default y if CMD_BOOTI 544e9d33e73SMasahiro Yamada help 545e9d33e73SMasahiro Yamada Uncompress a zip-compressed memory region. 546e9d33e73SMasahiro Yamada 547e9d33e73SMasahiro Yamadaconfig CMD_ZIP 548e9d33e73SMasahiro Yamada bool "zip" 549e9d33e73SMasahiro Yamada help 550e9d33e73SMasahiro Yamada Compress a memory region with zlib deflate method. 551e9d33e73SMasahiro Yamada 55272a8cf8dSSimon Glassendmenu 55372a8cf8dSSimon Glass 55472a8cf8dSSimon Glassmenu "Device access commands" 55572a8cf8dSSimon Glass 5560c19b4d1SSimon Glassconfig CMD_ARMFLASH 5570c19b4d1SSimon Glass #depends on FLASH_CFI_DRIVER 5580c19b4d1SSimon Glass bool "armflash" 5590c19b4d1SSimon Glass help 5600c19b4d1SSimon Glass ARM Ltd reference designs flash partition access 5610c19b4d1SSimon Glass 562d315628eSSimon Glassconfig CMD_CLK 563d315628eSSimon Glass bool "clk - Show clock frequencies" 564d315628eSSimon Glass help 565d315628eSSimon Glass (deprecated) 566d315628eSSimon Glass Shows clock frequences by calling a sock_clk_dump() hook function. 567d315628eSSimon Glass This is depreated in favour of using the CLK uclass and accessing 568d315628eSSimon Glass clock values from associated drivers. However currently no command 569d315628eSSimon Glass exists for this. 570d315628eSSimon Glass 57172a8cf8dSSimon Glassconfig CMD_DEMO 57272a8cf8dSSimon Glass bool "demo - Demonstration commands for driver model" 57372a8cf8dSSimon Glass depends on DM 57472a8cf8dSSimon Glass help 57572a8cf8dSSimon Glass Provides a 'demo' command which can be used to play around with 57672a8cf8dSSimon Glass driver model. To use this properly you will need to enable one or 57772a8cf8dSSimon Glass both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE). 57872a8cf8dSSimon Glass Otherwise you will always get an empty list of devices. The demo 57972a8cf8dSSimon Glass devices are defined in the sandbox device tree, so the easiest 58072a8cf8dSSimon Glass option is to use sandbox and pass the -d point to sandbox's 58172a8cf8dSSimon Glass u-boot.dtb file. 58272a8cf8dSSimon Glass 5830c19b4d1SSimon Glassconfig CMD_DFU 5840c19b4d1SSimon Glass bool "dfu" 5850c19b4d1SSimon Glass select USB_FUNCTION_DFU 5860c19b4d1SSimon Glass help 5870c19b4d1SSimon Glass Enables the command "dfu" which is used to have U-Boot create a DFU 58800fd59ddSSimon Glass class device via USB. This command requires that the "dfu_alt_info" 58900fd59ddSSimon Glass environment variable be set and define the alt settings to expose to 59000fd59ddSSimon Glass the host. 5910c19b4d1SSimon Glass 5920c19b4d1SSimon Glassconfig CMD_DM 5930c19b4d1SSimon Glass bool "dm - Access to driver model information" 5940c19b4d1SSimon Glass depends on DM 5950c19b4d1SSimon Glass default y 5960c19b4d1SSimon Glass help 5970c19b4d1SSimon Glass Provides access to driver model data structures and information, 5980c19b4d1SSimon Glass such as a list of devices, list of uclasses and the state of each 5990c19b4d1SSimon Glass device (e.g. activated). This is not required for operation, but 6000c19b4d1SSimon Glass can be useful to see the state of driver model for debugging or 6010c19b4d1SSimon Glass interest. 6020c19b4d1SSimon Glass 6030c19b4d1SSimon Glassconfig CMD_FDC 6040c19b4d1SSimon Glass bool "fdcboot - Boot from floppy device" 6050c19b4d1SSimon Glass help 6060c19b4d1SSimon Glass The 'fdtboot' command allows booting an image from a floppy disk. 6070c19b4d1SSimon Glass 6080c19b4d1SSimon Glassconfig CMD_FLASH 6090c19b4d1SSimon Glass bool "flinfo, erase, protect" 6100c19b4d1SSimon Glass default y 6110c19b4d1SSimon Glass help 6120c19b4d1SSimon Glass NOR flash support. 6130c19b4d1SSimon Glass flinfo - print FLASH memory information 6140c19b4d1SSimon Glass erase - FLASH memory 6150c19b4d1SSimon Glass protect - enable or disable FLASH write protection 6160c19b4d1SSimon Glass 6170c19b4d1SSimon Glassconfig CMD_FPGA 6180c19b4d1SSimon Glass bool "fpga" 619a4fa8114STuomas Tynkkynen depends on FPGA 6200c19b4d1SSimon Glass default y 6210c19b4d1SSimon Glass help 6220c19b4d1SSimon Glass FPGA support. 6230c19b4d1SSimon Glass 6240c19b4d1SSimon Glassconfig CMD_FPGA_LOADBP 6250c19b4d1SSimon Glass bool "fpga loadbp - load partial bitstream (Xilinx only)" 6260c19b4d1SSimon Glass depends on CMD_FPGA 6270c19b4d1SSimon Glass help 6280c19b4d1SSimon Glass Supports loading an FPGA device from a bitstream buffer containing 6290c19b4d1SSimon Glass a partial bitstream. 6300c19b4d1SSimon Glass 6310c19b4d1SSimon Glassconfig CMD_FPGA_LOADFS 6320c19b4d1SSimon Glass bool "fpga loadfs - load bitstream from FAT filesystem (Xilinx only)" 6330c19b4d1SSimon Glass depends on CMD_FPGA 6340c19b4d1SSimon Glass help 6350c19b4d1SSimon Glass Supports loading an FPGA device from a FAT filesystem. 6360c19b4d1SSimon Glass 6370c19b4d1SSimon Glassconfig CMD_FPGA_LOADMK 6380c19b4d1SSimon Glass bool "fpga loadmk - load bitstream from image" 6390c19b4d1SSimon Glass depends on CMD_FPGA 6400c19b4d1SSimon Glass help 6410c19b4d1SSimon Glass Supports loading an FPGA device from a image generated by mkimage. 6420c19b4d1SSimon Glass 6430c19b4d1SSimon Glassconfig CMD_FPGA_LOADP 6440c19b4d1SSimon Glass bool "fpga loadp - load partial bitstream" 6450c19b4d1SSimon Glass depends on CMD_FPGA 6460c19b4d1SSimon Glass help 6470c19b4d1SSimon Glass Supports loading an FPGA device from a bitstream buffer containing 6480c19b4d1SSimon Glass a partial bitstream. 6490c19b4d1SSimon Glass 6500c19b4d1SSimon Glassconfig CMD_FPGAD 6510c19b4d1SSimon Glass bool "fpgad - dump FPGA registers" 6520c19b4d1SSimon Glass help 6530c19b4d1SSimon Glass (legacy, needs conversion to driver model) 6540c19b4d1SSimon Glass Provides a way to dump FPGA registers by calling the board-specific 6550c19b4d1SSimon Glass fpga_get_reg() function. This functions similarly to the 'md' 6560c19b4d1SSimon Glass command. 6570c19b4d1SSimon Glass 6580c19b4d1SSimon Glassconfig CMD_FUSE 6590c19b4d1SSimon Glass bool "fuse - support for the fuse subssystem" 6600c19b4d1SSimon Glass help 6610c19b4d1SSimon Glass (deprecated - needs conversion to driver model) 6620c19b4d1SSimon Glass This allows reading, sensing, programming or overriding fuses 6630c19b4d1SSimon Glass which control the behaviour of the device. The command uses the 6640c19b4d1SSimon Glass fuse_...() API. 6650c19b4d1SSimon Glass 6660c19b4d1SSimon Glassconfig CMD_GPIO 6670c19b4d1SSimon Glass bool "gpio" 6680c19b4d1SSimon Glass help 6690c19b4d1SSimon Glass GPIO support. 6700c19b4d1SSimon Glass 6710c19b4d1SSimon Glassconfig CMD_GPT 6720c19b4d1SSimon Glass bool "GPT (GUID Partition Table) command" 6730c19b4d1SSimon Glass select PARTITION_UUIDS 6740c19b4d1SSimon Glass select EFI_PARTITION 675*1811a928SAdam Ford select HAVE_BLOCK_DEVICE 67647738accSMaxime Ripard imply RANDOM_UUID 6770c19b4d1SSimon Glass help 6780c19b4d1SSimon Glass Enable the 'gpt' command to ready and write GPT style partition 6790c19b4d1SSimon Glass tables. 6800c19b4d1SSimon Glass 68147738accSMaxime Ripardconfig RANDOM_UUID 68247738accSMaxime Ripard bool "GPT Random UUID generation" 683a451bc27SAdam Ford select LIB_UUID 68447738accSMaxime Ripard help 68547738accSMaxime Ripard Enable the generation of partitions with random UUIDs if none 68647738accSMaxime Ripard are provided. 68747738accSMaxime Ripard 6880c19b4d1SSimon Glassconfig CMD_GPT_RENAME 6890c19b4d1SSimon Glass bool "GPT partition renaming commands" 6900c19b4d1SSimon Glass depends on CMD_GPT 6910c19b4d1SSimon Glass help 6920c19b4d1SSimon Glass Enables the 'gpt' command to interchange names on two GPT 6930c19b4d1SSimon Glass partitions via the 'gpt swap' command or to rename single 6940c19b4d1SSimon Glass partitions via the 'rename' command. 6950c19b4d1SSimon Glass 69675eb9976SSimon Glassconfig CMD_IDE 69775eb9976SSimon Glass bool "ide - Support for IDE drivers" 698fc843a02SSimon Glass select IDE 69975eb9976SSimon Glass help 70075eb9976SSimon Glass Provides an 'ide' command which allows accessing the IDE drive, 70175eb9976SSimon Glass reseting the IDE interface, printing the partition table and 70275eb9976SSimon Glass geting device info. It also enables the 'diskboot' command which 70375eb9976SSimon Glass permits booting from an IDE drive. 70475eb9976SSimon Glass 705594e8d1cSSimon Glassconfig CMD_IO 706594e8d1cSSimon Glass bool "io - Support for performing I/O accesses" 707594e8d1cSSimon Glass help 708594e8d1cSSimon Glass Provides an 'iod' command to display I/O space and an 'iow' command 709594e8d1cSSimon Glass to write values to the I/O space. This can be useful for manually 710594e8d1cSSimon Glass checking the state of devices during boot when debugging device 711594e8d1cSSimon Glass drivers, etc. 712594e8d1cSSimon Glass 7137d0f5c13SSimon Glassconfig CMD_IOTRACE 7147d0f5c13SSimon Glass bool "iotrace - Support for tracing I/O activity" 7157d0f5c13SSimon Glass help 7167d0f5c13SSimon Glass Provides an 'iotrace' command which supports recording I/O reads and 7177d0f5c13SSimon Glass writes in a trace buffer in memory . It also maintains a checksum 7187d0f5c13SSimon Glass of the trace records (even if space is exhausted) so that the 7197d0f5c13SSimon Glass sequence of I/O accesses can be verified. 7207d0f5c13SSimon Glass 7217d0f5c13SSimon Glass When debugging drivers it is useful to see what I/O accesses were 7227d0f5c13SSimon Glass done and in what order. 7237d0f5c13SSimon Glass 7247d0f5c13SSimon Glass Even if the individual accesses are of little interest it can be 7257d0f5c13SSimon Glass useful to verify that the access pattern is consistent each time 7267d0f5c13SSimon Glass an operation is performed. In this case a checksum can be used to 7277d0f5c13SSimon Glass characterise the operation of a driver. The checksum can be compared 7287d0f5c13SSimon Glass across different runs of the operation to verify that the driver is 7297d0f5c13SSimon Glass working properly. 7307d0f5c13SSimon Glass 7317d0f5c13SSimon Glass In particular, when performing major refactoring of the driver, where 7327d0f5c13SSimon Glass the access pattern should not change, the checksum provides assurance 7337d0f5c13SSimon Glass that the refactoring work has not broken the driver. 7347d0f5c13SSimon Glass 7357d0f5c13SSimon Glass This works by sneaking into the io.h heder for an architecture and 7367d0f5c13SSimon Glass redirecting I/O accesses through iotrace's tracing mechanism. 7377d0f5c13SSimon Glass 7387d0f5c13SSimon Glass For now no commands are provided to examine the trace buffer. The 7397d0f5c13SSimon Glass format is fairly simple, so 'md' is a reasonable substitute. 7407d0f5c13SSimon Glass 7417d0f5c13SSimon Glass Note: The checksum feature is only useful for I/O regions where the 7427d0f5c13SSimon Glass contents do not change outside of software control. Where this is not 7437d0f5c13SSimon Glass suitable you can fall back to manually comparing the addresses. It 7447d0f5c13SSimon Glass might be useful to enhance tracing to only checksum the accesses and 7457d0f5c13SSimon Glass not the data read/written. 7467d0f5c13SSimon Glass 7470c19b4d1SSimon Glassconfig CMD_I2C 7480c19b4d1SSimon Glass bool "i2c" 7490c19b4d1SSimon Glass help 7500c19b4d1SSimon Glass I2C support. 7510c19b4d1SSimon Glass 75272a8cf8dSSimon Glassconfig CMD_LOADB 75372a8cf8dSSimon Glass bool "loadb" 754197e0be7SMaxime Ripard default n if ARCH_SUNXI 75572a8cf8dSSimon Glass default y 75672a8cf8dSSimon Glass help 75772a8cf8dSSimon Glass Load a binary file over serial line. 75872a8cf8dSSimon Glass 75972a8cf8dSSimon Glassconfig CMD_LOADS 76072a8cf8dSSimon Glass bool "loads" 761e302ede7SMaxime Ripard default n if ARCH_SUNXI 76272a8cf8dSSimon Glass default y 76372a8cf8dSSimon Glass help 76472a8cf8dSSimon Glass Load an S-Record file over serial line 76572a8cf8dSSimon Glass 766ab8243e4SDinh Nguyenconfig CMD_MMC 767ab8243e4SDinh Nguyen bool "mmc" 768ab8243e4SDinh Nguyen help 769ab8243e4SDinh Nguyen MMC memory mapped support. 770ab8243e4SDinh Nguyen 77172a8cf8dSSimon Glassconfig CMD_NAND 77272a8cf8dSSimon Glass bool "nand" 773522c282fSMaxime Ripard default y if NAND_SUNXI 77472a8cf8dSSimon Glass help 77572a8cf8dSSimon Glass NAND support. 77672a8cf8dSSimon Glass 777e915d201SBoris Brezillonif CMD_NAND 778e915d201SBoris Brezillonconfig CMD_NAND_TRIMFFS 779e915d201SBoris Brezillon bool "nand write.trimffs" 780d482a8dfSHans de Goede default y if ARCH_SUNXI 781e915d201SBoris Brezillon help 782e915d201SBoris Brezillon Allows one to skip empty pages when flashing something on a NAND. 783e915d201SBoris Brezillon 784e915d201SBoris Brezillonconfig CMD_NAND_LOCK_UNLOCK 785e915d201SBoris Brezillon bool "nand lock/unlock" 786e915d201SBoris Brezillon help 787e915d201SBoris Brezillon NAND locking support. 788e915d201SBoris Brezillon 789e915d201SBoris Brezillonconfig CMD_NAND_TORTURE 790e915d201SBoris Brezillon bool "nand torture" 791e915d201SBoris Brezillon help 792e915d201SBoris Brezillon NAND torture support. 793e915d201SBoris Brezillon 794e915d201SBoris Brezillonendif # CMD_NAND 795e915d201SBoris Brezillon 7960adc38beSZhikang Zhangconfig CMD_NVME 7970adc38beSZhikang Zhang bool "nvme" 7980adc38beSZhikang Zhang depends on NVME 7990adc38beSZhikang Zhang default y if NVME 8000adc38beSZhikang Zhang help 8010adc38beSZhikang Zhang NVM Express device support 8020adc38beSZhikang Zhang 803f38c5f52SSimon Glassconfig CMD_MMC_SPI 804f38c5f52SSimon Glass bool "mmc_spi - Set up MMC SPI device" 805f38c5f52SSimon Glass help 806f38c5f52SSimon Glass Provides a way to set up an MMC (Multimedia Card) SPI (Serial 807f38c5f52SSimon Glass Peripheral Interface) device. The device provides a means of 808f38c5f52SSimon Glass accessing an MMC device via SPI using a single data line, limited 809f38c5f52SSimon Glass to 20MHz. It is useful since it reduces the amount of protocol code 810f38c5f52SSimon Glass required. 811f38c5f52SSimon Glass 812978f0854SSimon Glassconfig CMD_ONENAND 813978f0854SSimon Glass bool "onenand - access to onenand device" 814978f0854SSimon Glass help 815978f0854SSimon Glass OneNAND is a brand of NAND ('Not AND' gate) flash which provides 816978f0854SSimon Glass various useful features. This command allows reading, writing, 817978f0854SSimon Glass and erasing blocks. It allso provides a way to show and change 818978f0854SSimon Glass bad blocks, and test the device. 819978f0854SSimon Glass 820b331cd62SPatrick Delaunayconfig CMD_PART 821b331cd62SPatrick Delaunay bool "part" 822b331cd62SPatrick Delaunay select PARTITION_UUIDS 823*1811a928SAdam Ford select HAVE_BLOCK_DEVICE 824b331cd62SPatrick Delaunay help 825b331cd62SPatrick Delaunay Read and display information about the partition table on 826b331cd62SPatrick Delaunay various media. 827b331cd62SPatrick Delaunay 8286500ec7aSSimon Glassconfig CMD_PCI 8296500ec7aSSimon Glass bool "pci - Access PCI devices" 8306500ec7aSSimon Glass help 8316500ec7aSSimon Glass Provide access to PCI (Peripheral Interconnect Bus), a type of bus 8326500ec7aSSimon Glass used on some devices to allow the CPU to communicate with its 8336500ec7aSSimon Glass peripherals. Sub-commands allow bus enumeration, displaying and 8346500ec7aSSimon Glass changing configuration space and a few other features. 8356500ec7aSSimon Glass 8367f666555SSimon Glassconfig CMD_PCMCIA 8377f666555SSimon Glass bool "pinit - Set up PCMCIA device" 8387f666555SSimon Glass help 8397f666555SSimon Glass Provides a means to initialise a PCMCIA (Personal Computer Memory 8407f666555SSimon Glass Card International Association) device. This is an old standard from 8417f666555SSimon Glass about 1990. These devices are typically removable memory or network 8427f666555SSimon Glass cards using a standard 68-pin connector. 8437f666555SSimon Glass 844b75dfd2dSSimon Glassconfig CMD_READ 845b75dfd2dSSimon Glass bool "read - Read binary data from a partition" 846b75dfd2dSSimon Glass help 847b75dfd2dSSimon Glass Provides low-level access to the data in a partition. 848b75dfd2dSSimon Glass 84972a8cf8dSSimon Glassconfig CMD_REMOTEPROC 85072a8cf8dSSimon Glass bool "remoteproc" 85172a8cf8dSSimon Glass depends on REMOTEPROC 85272a8cf8dSSimon Glass help 85372a8cf8dSSimon Glass Support for Remote Processor control 85472a8cf8dSSimon Glass 8553bf926c0SSimon Glassconfig CMD_SATA 8563bf926c0SSimon Glass bool "sata - Access SATA subsystem" 85710e40d54SSimon Glass select SATA 8583bf926c0SSimon Glass help 8593bf926c0SSimon Glass SATA (Serial Advanced Technology Attachment) is a serial bus 8603bf926c0SSimon Glass standard for connecting to hard drives and other storage devices. 8613bf926c0SSimon Glass This command provides information about attached devices and allows 8623bf926c0SSimon Glass reading, writing and other operations. 8633bf926c0SSimon Glass 8643bf926c0SSimon Glass SATA replaces PATA (originally just ATA), which stands for Parallel AT 8653bf926c0SSimon Glass Attachment, where AT refers to an IBM AT (Advanced Technology) 8663bf926c0SSimon Glass computer released in 1984. 8673bf926c0SSimon Glass 86815dc63d6SSimon Glassconfig CMD_SAVES 86915dc63d6SSimon Glass bool "saves - Save a file over serial in S-Record format" 87015dc63d6SSimon Glass help 87115dc63d6SSimon Glass Provides a way to save a binary file using the Motorola S-Record 87215dc63d6SSimon Glass format over the serial line. 87315dc63d6SSimon Glass 874efce2442SSimon Glassconfig CMD_SDRAM 875efce2442SSimon Glass bool "sdram - Print SDRAM configuration information" 876efce2442SSimon Glass help 877efce2442SSimon Glass Provides information about attached SDRAM. This assumed that the 878efce2442SSimon Glass SDRAM has an EEPROM with information that can be read using the 879efce2442SSimon Glass I2C bus. This is only available on some boards. 880efce2442SSimon Glass 8810c19b4d1SSimon Glassconfig CMD_SF 8820c19b4d1SSimon Glass bool "sf" 8830c19b4d1SSimon Glass help 8840c19b4d1SSimon Glass SPI Flash support 8850c19b4d1SSimon Glass 886719d36eeSSimon Glassconfig CMD_SF_TEST 887719d36eeSSimon Glass bool "sf test - Allow testing of SPI flash" 888719d36eeSSimon Glass help 889719d36eeSSimon Glass Provides a way to test that SPI flash is working correctly. The 890719d36eeSSimon Glass test is destructive, in that an area of SPI flash must be provided 891719d36eeSSimon Glass for the test to use. Performance information is also provided, 892719d36eeSSimon Glass measuring the performance of reading, writing and erasing in 893719d36eeSSimon Glass Mbps (Million Bits Per Second). This value should approximately 894719d36eeSSimon Glass equal the SPI bus speed for a single-bit-wide SPI bus, assuming 895719d36eeSSimon Glass everything is working properly. 896719d36eeSSimon Glass 8970c19b4d1SSimon Glassconfig CMD_SPI 8980c19b4d1SSimon Glass bool "sspi" 8990c19b4d1SSimon Glass help 9000c19b4d1SSimon Glass SPI utility command. 9010c19b4d1SSimon Glass 9025605aa8aSSimon Glassconfig CMD_TSI148 9035605aa8aSSimon Glass bool "tsi148 - Command to access tsi148 device" 9045605aa8aSSimon Glass help 9055605aa8aSSimon Glass This provides various sub-commands to initialise and configure the 9065605aa8aSSimon Glass Turndra tsi148 device. See the command help for full details. 9075605aa8aSSimon Glass 9082a242e3eSSimon Glassconfig CMD_UNIVERSE 9092a242e3eSSimon Glass bool "universe - Command to set up the Turndra Universe controller" 9102a242e3eSSimon Glass help 9112a242e3eSSimon Glass This allows setting up the VMEbus provided by this controller. 9122a242e3eSSimon Glass See the command help for full details. 9132a242e3eSSimon Glass 9140c19b4d1SSimon Glassconfig CMD_USB 9150c19b4d1SSimon Glass bool "usb" 916*1811a928SAdam Ford select HAVE_BLOCK_DEVICE 9170c19b4d1SSimon Glass help 9180c19b4d1SSimon Glass USB support. 9190c19b4d1SSimon Glass 9202f005695SStefan Agnerconfig CMD_USB_SDP 9212f005695SStefan Agner bool "sdp" 9222f005695SStefan Agner select USB_FUNCTION_SDP 9232f005695SStefan Agner help 9242f005695SStefan Agner Enables the command "sdp" which is used to have U-Boot emulating the 9252f005695SStefan Agner Serial Download Protocol (SDP) via USB. 926453c95e0SEddie Caiconfig CMD_ROCKUSB 927453c95e0SEddie Cai bool "rockusb" 928453c95e0SEddie Cai depends on USB_FUNCTION_ROCKUSB 929453c95e0SEddie Cai help 930453c95e0SEddie Cai Rockusb protocol is widely used by Rockchip SoC based devices. It can 931453c95e0SEddie Cai read/write info, image to/from devices. This enable rockusb command 932453c95e0SEddie Cai support to communication with rockusb device. for more detail about 933453c95e0SEddie Cai this command, please read doc/README.rockusb. 9342f005695SStefan Agner 9350c19b4d1SSimon Glassconfig CMD_USB_MASS_STORAGE 9360c19b4d1SSimon Glass bool "UMS usb mass storage" 937e4d4604aSLukasz Majewski select USB_FUNCTION_MASS_STORAGE 9380c19b4d1SSimon Glass help 9390c19b4d1SSimon Glass USB mass storage support 9400c19b4d1SSimon Glass 94172a8cf8dSSimon Glassendmenu 94272a8cf8dSSimon Glass 94372a8cf8dSSimon Glass 94472a8cf8dSSimon Glassmenu "Shell scripting commands" 94572a8cf8dSSimon Glass 94672a8cf8dSSimon Glassconfig CMD_ECHO 94772a8cf8dSSimon Glass bool "echo" 94872a8cf8dSSimon Glass default y 94972a8cf8dSSimon Glass help 95072a8cf8dSSimon Glass Echo args to console 95172a8cf8dSSimon Glass 95272a8cf8dSSimon Glassconfig CMD_ITEST 95372a8cf8dSSimon Glass bool "itest" 95472a8cf8dSSimon Glass default y 95572a8cf8dSSimon Glass help 95672a8cf8dSSimon Glass Return true/false on integer compare. 95772a8cf8dSSimon Glass 95872a8cf8dSSimon Glassconfig CMD_SOURCE 95972a8cf8dSSimon Glass bool "source" 96072a8cf8dSSimon Glass default y 96172a8cf8dSSimon Glass help 96272a8cf8dSSimon Glass Run script from memory 96372a8cf8dSSimon Glass 96472a8cf8dSSimon Glassconfig CMD_SETEXPR 96572a8cf8dSSimon Glass bool "setexpr" 96672a8cf8dSSimon Glass default y 96772a8cf8dSSimon Glass help 96872a8cf8dSSimon Glass Evaluate boolean and math expressions and store the result in an env 96972a8cf8dSSimon Glass variable. 97072a8cf8dSSimon Glass Also supports loading the value at a memory location into a variable. 97172a8cf8dSSimon Glass If CONFIG_REGEX is enabled, setexpr also supports a gsub function. 97272a8cf8dSSimon Glass 97372a8cf8dSSimon Glassendmenu 97472a8cf8dSSimon Glass 97572a8cf8dSSimon Glassmenu "Network commands" 97672a8cf8dSSimon Glass 97772a8cf8dSSimon Glassconfig CMD_NET 97872a8cf8dSSimon Glass bool "bootp, tftpboot" 97972a8cf8dSSimon Glass select NET 98072a8cf8dSSimon Glass default y 98172a8cf8dSSimon Glass help 98272a8cf8dSSimon Glass Network commands. 98372a8cf8dSSimon Glass bootp - boot image via network using BOOTP/TFTP protocol 98472a8cf8dSSimon Glass tftpboot - boot image via network using TFTP protocol 98572a8cf8dSSimon Glass 98672a8cf8dSSimon Glassconfig CMD_TFTPPUT 98772a8cf8dSSimon Glass bool "tftp put" 98872a8cf8dSSimon Glass help 98972a8cf8dSSimon Glass TFTP put command, for uploading files to a server 99072a8cf8dSSimon Glass 99172a8cf8dSSimon Glassconfig CMD_TFTPSRV 99272a8cf8dSSimon Glass bool "tftpsrv" 99372a8cf8dSSimon Glass help 99472a8cf8dSSimon Glass Act as a TFTP server and boot the first received file 99572a8cf8dSSimon Glass 99672a8cf8dSSimon Glassconfig CMD_RARP 99772a8cf8dSSimon Glass bool "rarpboot" 99872a8cf8dSSimon Glass help 99972a8cf8dSSimon Glass Boot image via network using RARP/TFTP protocol 100072a8cf8dSSimon Glass 100172a8cf8dSSimon Glassconfig CMD_DHCP 100272a8cf8dSSimon Glass bool "dhcp" 100372a8cf8dSSimon Glass help 100472a8cf8dSSimon Glass Boot image via network using DHCP/TFTP protocol 100572a8cf8dSSimon Glass 1006bfb380b3SYann E. MORINconfig CMD_PXE 1007bfb380b3SYann E. MORIN bool "pxe" 1008bfb380b3SYann E. MORIN select MENU 1009bfb380b3SYann E. MORIN help 1010bfb380b3SYann E. MORIN Boot image via network using PXE protocol 1011bfb380b3SYann E. MORIN 101272a8cf8dSSimon Glassconfig CMD_NFS 101372a8cf8dSSimon Glass bool "nfs" 101472a8cf8dSSimon Glass default y 101572a8cf8dSSimon Glass help 101672a8cf8dSSimon Glass Boot image via network using NFS protocol. 101772a8cf8dSSimon Glass 1018ab8243e4SDinh Nguyenconfig CMD_MII 1019ab8243e4SDinh Nguyen bool "mii" 1020ab8243e4SDinh Nguyen help 1021ab8243e4SDinh Nguyen Enable MII utility commands. 1022ab8243e4SDinh Nguyen 102372a8cf8dSSimon Glassconfig CMD_PING 102472a8cf8dSSimon Glass bool "ping" 102572a8cf8dSSimon Glass help 102672a8cf8dSSimon Glass Send ICMP ECHO_REQUEST to network host 102772a8cf8dSSimon Glass 102872a8cf8dSSimon Glassconfig CMD_CDP 102972a8cf8dSSimon Glass bool "cdp" 103072a8cf8dSSimon Glass help 103172a8cf8dSSimon Glass Perform CDP network configuration 103272a8cf8dSSimon Glass 103372a8cf8dSSimon Glassconfig CMD_SNTP 103472a8cf8dSSimon Glass bool "sntp" 103572a8cf8dSSimon Glass help 103672a8cf8dSSimon Glass Synchronize RTC via network 103772a8cf8dSSimon Glass 103872a8cf8dSSimon Glassconfig CMD_DNS 103972a8cf8dSSimon Glass bool "dns" 104072a8cf8dSSimon Glass help 104172a8cf8dSSimon Glass Lookup the IP of a hostname 104272a8cf8dSSimon Glass 104372a8cf8dSSimon Glassconfig CMD_LINK_LOCAL 104472a8cf8dSSimon Glass bool "linklocal" 104572a8cf8dSSimon Glass help 104672a8cf8dSSimon Glass Acquire a network IP address using the link-local protocol 104772a8cf8dSSimon Glass 1048ef072200SSimon Glassconfig CMD_ETHSW 1049ef072200SSimon Glass bool "ethsw" 1050ef072200SSimon Glass help 1051ef072200SSimon Glass Allow control of L2 Ethernet switch commands. These are supported 1052ef072200SSimon Glass by the vsc9953 Ethernet driver at present. Sub-commands allow 1053ef072200SSimon Glass operations such as enabling / disabling a port and 1054ef072200SSimon Glass viewing/maintaining the filtering database (FDB) 1055ef072200SSimon Glass 105672a8cf8dSSimon Glassendmenu 105772a8cf8dSSimon Glass 105872a8cf8dSSimon Glassmenu "Misc commands" 105972a8cf8dSSimon Glass 10600f710258SSimon Glassconfig CMD_BMP 10610f710258SSimon Glass bool "Enable 'bmp' command" 10620f710258SSimon Glass depends on LCD || DM_VIDEO || VIDEO 10630f710258SSimon Glass help 10640f710258SSimon Glass This provides a way to obtain information about a BMP-format iamge 10650f710258SSimon Glass and to display it. BMP (which presumably stands for BitMaP) is a 10660f710258SSimon Glass file format defined by Microsoft which supports images of various 10670f710258SSimon Glass depths, formats and compression methods. Headers on the file 10680f710258SSimon Glass determine the formats used. This command can be used by first loading 10690f710258SSimon Glass the image into RAM, then using this command to look at it or display 10700f710258SSimon Glass it. 10710f710258SSimon Glass 10724893e34bSSimon Glassconfig CMD_BSP 10734893e34bSSimon Glass bool "Enable board-specific commands" 10744893e34bSSimon Glass help 10754893e34bSSimon Glass (deprecated: instead, please define a Kconfig option for each command) 10764893e34bSSimon Glass 10774893e34bSSimon Glass Some boards have board-specific commands which are only enabled 10784893e34bSSimon Glass during developemnt and need to be turned off for production. This 10794893e34bSSimon Glass option provides a way to control this. The commands that are enabled 10804893e34bSSimon Glass vary depending on the board. 10814893e34bSSimon Glass 1082cd3d4880STomas Melinconfig CMD_BKOPS_ENABLE 1083cd3d4880STomas Melin bool "mmc bkops enable" 1084cd3d4880STomas Melin depends on CMD_MMC 1085cd3d4880STomas Melin default n 1086cd3d4880STomas Melin help 1087cd3d4880STomas Melin Enable command for setting manual background operations handshake 1088cd3d4880STomas Melin on a eMMC device. The feature is optionally available on eMMC devices 1089cd3d4880STomas Melin conforming to standard >= 4.41. 1090cd3d4880STomas Melin 1091e40cf34aSEric Nelsonconfig CMD_BLOCK_CACHE 1092e40cf34aSEric Nelson bool "blkcache - control and stats for block cache" 1093e40cf34aSEric Nelson depends on BLOCK_CACHE 1094e40cf34aSEric Nelson default y if BLOCK_CACHE 1095e40cf34aSEric Nelson help 1096e40cf34aSEric Nelson Enable the blkcache command, which can be used to control the 1097e40cf34aSEric Nelson operation of the cache functions. 1098e40cf34aSEric Nelson This is most useful when fine-tuning the operation of the cache 1099e40cf34aSEric Nelson during development, but also allows the cache to be disabled when 1100e40cf34aSEric Nelson it might hurt performance (e.g. when using the ums command). 1101e40cf34aSEric Nelson 1102ab8243e4SDinh Nguyenconfig CMD_CACHE 1103ab8243e4SDinh Nguyen bool "icache or dcache" 1104ab8243e4SDinh Nguyen help 1105ab8243e4SDinh Nguyen Enable the "icache" and "dcache" commands 1106ab8243e4SDinh Nguyen 110793d66ee5SSimon Glassconfig CMD_DISPLAY 110893d66ee5SSimon Glass bool "Enable the 'display' command, for character displays" 110993d66ee5SSimon Glass help 111093d66ee5SSimon Glass (this needs porting to driver model) 111193d66ee5SSimon Glass This enables the 'display' command which allows a string to be 111293d66ee5SSimon Glass displayed on a simple board-specific display. Implement 111393d66ee5SSimon Glass display_putc() to use it. 111493d66ee5SSimon Glass 1115ffe2052dSSimon Glassconfig CMD_LED 1116ffe2052dSSimon Glass bool "led" 1117ffe2052dSSimon Glass default y if LED 1118ffe2052dSSimon Glass help 1119ffe2052dSSimon Glass Enable the 'led' command which allows for control of LEDs supported 1120ffe2052dSSimon Glass by the board. The LEDs can be listed with 'led list' and controlled 1121ffe2052dSSimon Glass with led on/off/togle/blink. Any LED drivers can be controlled with 1122ffe2052dSSimon Glass this command, e.g. led_gpio. 1123ffe2052dSSimon Glass 1124c9032ce1SChris Packhamconfig CMD_DATE 1125c9032ce1SChris Packham bool "date" 1126c9032ce1SChris Packham default y if DM_RTC 1127c9032ce1SChris Packham help 1128c9032ce1SChris Packham Enable the 'date' command for getting/setting the time/date in RTC 1129c9032ce1SChris Packham devices. 1130c9032ce1SChris Packham 113172a8cf8dSSimon Glassconfig CMD_TIME 113272a8cf8dSSimon Glass bool "time" 113372a8cf8dSSimon Glass help 113472a8cf8dSSimon Glass Run commands and summarize execution time. 113572a8cf8dSSimon Glass 1136d91a9d7fSSimon Glassconfig CMD_GETTIME 1137d91a9d7fSSimon Glass bool "gettime - read elapsed time" 1138d91a9d7fSSimon Glass help 1139d91a9d7fSSimon Glass Enable the 'gettime' command which reads the elapsed time since 1140d91a9d7fSSimon Glass U-Boot started running. This shows the time in seconds and 1141d91a9d7fSSimon Glass milliseconds. See also the 'bootstage' command which provides more 1142d91a9d7fSSimon Glass flexibility for boot timing. 1143d91a9d7fSSimon Glass 114472a8cf8dSSimon Glass# TODO: rename to CMD_SLEEP 114572a8cf8dSSimon Glassconfig CMD_MISC 114672a8cf8dSSimon Glass bool "sleep" 114707dc22ddSMaxime Ripard default n if ARCH_SUNXI 114872a8cf8dSSimon Glass default y 114972a8cf8dSSimon Glass help 115072a8cf8dSSimon Glass Delay execution for some time 115172a8cf8dSSimon Glass 115272a8cf8dSSimon Glassconfig CMD_TIMER 115372a8cf8dSSimon Glass bool "timer" 115472a8cf8dSSimon Glass help 115572a8cf8dSSimon Glass Access the system timer. 115672a8cf8dSSimon Glass 115772a8cf8dSSimon Glassconfig CMD_SOUND 115872a8cf8dSSimon Glass bool "sound" 115972a8cf8dSSimon Glass depends on SOUND 116072a8cf8dSSimon Glass help 116172a8cf8dSSimon Glass This provides basic access to the U-Boot's sound support. The main 116272a8cf8dSSimon Glass feature is to play a beep. 116372a8cf8dSSimon Glass 116472a8cf8dSSimon Glass sound init - set up sound system 116572a8cf8dSSimon Glass sound play - play a sound 116672a8cf8dSSimon Glass 116718686590SMiao Yanconfig CMD_QFW 1168dd6f3abbSTom Rini bool "qfw" 1169fcf5c041SMiao Yan select QFW 1170dd6f3abbSTom Rini help 1171dd6f3abbSTom Rini This provides access to the QEMU firmware interface. The main 1172dd6f3abbSTom Rini feature is to allow easy loading of files passed to qemu-system 1173dd6f3abbSTom Rini via -kernel / -initrd 1174fa61ef6bSKonstantin Porotchkin 1175fa61ef6bSKonstantin Porotchkinsource "cmd/mvebu/Kconfig" 1176fa61ef6bSKonstantin Porotchkin 11773cef3b31SSimon Glassconfig CMD_TERMINAL 11783cef3b31SSimon Glass bool "terminal - provides a way to attach a serial terminal" 11793cef3b31SSimon Glass help 11803cef3b31SSimon Glass Provides a 'cu'-like serial terminal command. This can be used to 11813cef3b31SSimon Glass access other serial ports from the system console. The terminal 11823cef3b31SSimon Glass is very simple with no special processing of characters. As with 11833cef3b31SSimon Glass cu, you can press ~. (tilde followed by period) to exit. 11843cef3b31SSimon Glass 11851aa4e8d0SSimon Glassconfig CMD_UUID 11861aa4e8d0SSimon Glass bool "uuid, guid - generation of unique IDs" 1187a451bc27SAdam Ford select LIB_UUID 11881aa4e8d0SSimon Glass help 11891aa4e8d0SSimon Glass This enables two commands: 11901aa4e8d0SSimon Glass 11911aa4e8d0SSimon Glass uuid - generate random Universally Unique Identifier 11921aa4e8d0SSimon Glass guid - generate Globally Unique Identifier based on random UUID 11931aa4e8d0SSimon Glass 11941aa4e8d0SSimon Glass The two commands are very similar except for the endianness of the 11951aa4e8d0SSimon Glass output. 11961aa4e8d0SSimon Glass 119772a8cf8dSSimon Glassendmenu 119872a8cf8dSSimon Glass 11995cd9661dSLokesh Vutlasource "cmd/ti/Kconfig" 12005cd9661dSLokesh Vutla 120172a8cf8dSSimon Glassconfig CMD_BOOTSTAGE 120272a8cf8dSSimon Glass bool "Enable the 'bootstage' command" 120372a8cf8dSSimon Glass depends on BOOTSTAGE 120472a8cf8dSSimon Glass help 120572a8cf8dSSimon Glass Add a 'bootstage' command which supports printing a report 120672a8cf8dSSimon Glass and un/stashing of bootstage data. 120772a8cf8dSSimon Glass 120872a8cf8dSSimon Glassmenu "Power commands" 120972a8cf8dSSimon Glassconfig CMD_PMIC 121072a8cf8dSSimon Glass bool "Enable Driver Model PMIC command" 121172a8cf8dSSimon Glass depends on DM_PMIC 121272a8cf8dSSimon Glass help 121372a8cf8dSSimon Glass This is the pmic command, based on a driver model pmic's API. 121472a8cf8dSSimon Glass Command features are unchanged: 121572a8cf8dSSimon Glass - list - list pmic devices 121672a8cf8dSSimon Glass - pmic dev <id> - show or [set] operating pmic device (NEW) 121772a8cf8dSSimon Glass - pmic dump - dump registers 121872a8cf8dSSimon Glass - pmic read address - read byte of register at address 121972a8cf8dSSimon Glass - pmic write address - write byte to register at address 122072a8cf8dSSimon Glass The only one change for this command is 'dev' subcommand. 122172a8cf8dSSimon Glass 122272a8cf8dSSimon Glassconfig CMD_REGULATOR 122372a8cf8dSSimon Glass bool "Enable Driver Model REGULATOR command" 122472a8cf8dSSimon Glass depends on DM_REGULATOR 122572a8cf8dSSimon Glass help 122672a8cf8dSSimon Glass This command is based on driver model regulator's API. 122772a8cf8dSSimon Glass User interface features: 122872a8cf8dSSimon Glass - list - list regulator devices 122972a8cf8dSSimon Glass - regulator dev <id> - show or [set] operating regulator device 123072a8cf8dSSimon Glass - regulator info - print constraints info 123172a8cf8dSSimon Glass - regulator status - print operating status 123272a8cf8dSSimon Glass - regulator value <val] <-f> - print/[set] voltage value [uV] 123372a8cf8dSSimon Glass - regulator current <val> - print/[set] current value [uA] 123472a8cf8dSSimon Glass - regulator mode <id> - print/[set] operating mode id 123572a8cf8dSSimon Glass - regulator enable - enable the regulator output 123672a8cf8dSSimon Glass - regulator disable - disable the regulator output 123772a8cf8dSSimon Glass 123872a8cf8dSSimon Glass The '-f' (force) option can be used for set the value which exceeds 123972a8cf8dSSimon Glass the limits, which are found in device-tree and are kept in regulator's 124072a8cf8dSSimon Glass uclass platdata structure. 124172a8cf8dSSimon Glass 124272a8cf8dSSimon Glassendmenu 124372a8cf8dSSimon Glass 124472a8cf8dSSimon Glassmenu "Security commands" 1245b1a873dfSSimon Glassconfig CMD_AES 1246b1a873dfSSimon Glass bool "Enable the 'aes' command" 1247b1a873dfSSimon Glass select AES 1248b1a873dfSSimon Glass help 1249b1a873dfSSimon Glass This provides a means to encrypt and decrypt data using the AES 1250b1a873dfSSimon Glass (Advanced Encryption Standard). This algorithm uses a symetric key 1251b1a873dfSSimon Glass and is widely used as a streaming cipher. Different key lengths are 1252b1a873dfSSimon Glass supported by the algorithm but this command only supports 128 bits 1253b1a873dfSSimon Glass at present. 1254b1a873dfSSimon Glass 1255c04b9b34SSimon Glassconfig CMD_BLOB 1256c04b9b34SSimon Glass bool "Enable the 'blob' command" 1257c04b9b34SSimon Glass help 1258c04b9b34SSimon Glass This is used with the Freescale secure boot mechanism. 1259c04b9b34SSimon Glass 1260c04b9b34SSimon Glass Freescale's SEC block has built-in Blob Protocol which provides 1261c04b9b34SSimon Glass a method for protecting user-defined data across system power 1262c04b9b34SSimon Glass cycles. SEC block protects data in a data structure called a Blob, 1263c04b9b34SSimon Glass which provides both confidentiality and integrity protection. 1264c04b9b34SSimon Glass 1265c04b9b34SSimon Glass Encapsulating data as a blob 1266c04b9b34SSimon Glass Each time that the Blob Protocol is used to protect data, a 1267c04b9b34SSimon Glass different randomly generated key is used to encrypt the data. 1268c04b9b34SSimon Glass This random key is itself encrypted using a key which is derived 1269c04b9b34SSimon Glass from SoC's non-volatile secret key and a 16 bit Key identifier. 1270c04b9b34SSimon Glass The resulting encrypted key along with encrypted data is called a 1271c04b9b34SSimon Glass blob. The non-volatile secure key is available for use only during 1272c04b9b34SSimon Glass secure boot. 1273c04b9b34SSimon Glass 1274c04b9b34SSimon Glass During decapsulation, the reverse process is performed to get back 1275c04b9b34SSimon Glass the original data. 1276c04b9b34SSimon Glass 1277c04b9b34SSimon Glass Sub-commands: 1278c04b9b34SSimon Glass blob enc - encapsulating data as a cryptgraphic blob 1279c04b9b34SSimon Glass blob dec - decapsulating cryptgraphic blob to get the data 1280c04b9b34SSimon Glass 1281c04b9b34SSimon Glass Syntax: 1282c04b9b34SSimon Glass 1283c04b9b34SSimon Glass blob enc src dst len km 1284c04b9b34SSimon Glass 1285c04b9b34SSimon Glass Encapsulate and create blob of data $len bytes long 1286c04b9b34SSimon Glass at address $src and store the result at address $dst. 1287c04b9b34SSimon Glass $km is the 16 byte key modifier is also required for 1288c04b9b34SSimon Glass generation/use as key for cryptographic operation. Key 1289c04b9b34SSimon Glass modifier should be 16 byte long. 1290c04b9b34SSimon Glass 1291c04b9b34SSimon Glass blob dec src dst len km 1292c04b9b34SSimon Glass 1293c04b9b34SSimon Glass Decapsulate the blob of data at address $src and 1294c04b9b34SSimon Glass store result of $len byte at addr $dst. 1295c04b9b34SSimon Glass $km is the 16 byte key modifier is also required for 1296c04b9b34SSimon Glass generation/use as key for cryptographic operation. Key 1297c04b9b34SSimon Glass modifier should be 16 byte long. 1298c04b9b34SSimon Glass 1299551c3934SSimon Glassconfig CMD_HASH 1300551c3934SSimon Glass bool "Support 'hash' command" 1301d70f919eSSimon Glass select HASH 1302551c3934SSimon Glass help 1303551c3934SSimon Glass This provides a way to hash data in memory using various supported 1304551c3934SSimon Glass algorithms (such as SHA1, MD5, CRC32). The computed digest can be 1305551c3934SSimon Glass saved to memory or to an environment variable. It is also possible 1306551c3934SSimon Glass to verify a hash against data in memory. 1307551c3934SSimon Glass 1308221a949eSDaniel Thompsonconfig HASH_VERIFY 1309221a949eSDaniel Thompson bool "hash -v" 1310221a949eSDaniel Thompson depends on CMD_HASH 1311221a949eSDaniel Thompson help 1312221a949eSDaniel Thompson Add -v option to verify data against a hash. 1313221a949eSDaniel Thompson 131472a8cf8dSSimon Glassconfig CMD_TPM 131572a8cf8dSSimon Glass bool "Enable the 'tpm' command" 131672a8cf8dSSimon Glass depends on TPM 131772a8cf8dSSimon Glass help 131872a8cf8dSSimon Glass This provides a means to talk to a TPM from the command line. A wide 131972a8cf8dSSimon Glass range of commands if provided - see 'tpm help' for details. The 132072a8cf8dSSimon Glass command requires a suitable TPM on your board and the correct driver 132172a8cf8dSSimon Glass must be enabled. 132272a8cf8dSSimon Glass 132372a8cf8dSSimon Glassconfig CMD_TPM_TEST 132472a8cf8dSSimon Glass bool "Enable the 'tpm test' command" 132572a8cf8dSSimon Glass depends on CMD_TPM 132672a8cf8dSSimon Glass help 132772a8cf8dSSimon Glass This provides a a series of tests to confirm that the TPM is working 132872a8cf8dSSimon Glass correctly. The tests cover initialisation, non-volatile RAM, extend, 132972a8cf8dSSimon Glass global lock and checking that timing is within expectations. The 133072a8cf8dSSimon Glass tests pass correctly on Infineon TPMs but may need to be adjusted 133172a8cf8dSSimon Glass for other devices. 133272a8cf8dSSimon Glass 133372a8cf8dSSimon Glassendmenu 133472a8cf8dSSimon Glass 1335bfeba017SMoritz Fischermenu "Firmware commands" 1336bfeba017SMoritz Fischerconfig CMD_CROS_EC 1337bfeba017SMoritz Fischer bool "Enable crosec command" 1338bfeba017SMoritz Fischer depends on CROS_EC 1339bfeba017SMoritz Fischer default y 1340bfeba017SMoritz Fischer help 1341bfeba017SMoritz Fischer Enable command-line access to the Chrome OS EC (Embedded 1342bfeba017SMoritz Fischer Controller). This provides the 'crosec' command which has 1343bfeba017SMoritz Fischer a number of sub-commands for performing EC tasks such as 1344bfeba017SMoritz Fischer updating its flash, accessing a small saved context area 1345bfeba017SMoritz Fischer and talking to the I2C bus behind the EC (if there is one). 1346bfeba017SMoritz Fischerendmenu 1347bfeba017SMoritz Fischer 1348ab8243e4SDinh Nguyenmenu "Filesystem commands" 13499d845509SMarek Behúnconfig CMD_BTRFS 13509d845509SMarek Behún bool "Enable the 'btrsubvol' command" 13519d845509SMarek Behún select FS_BTRFS 13529d845509SMarek Behún help 13539d845509SMarek Behún This enables the 'btrsubvol' command to list subvolumes 13549d845509SMarek Behún of a BTRFS filesystem. There are no special commands for 13559d845509SMarek Behún listing BTRFS directories or loading BTRFS files - this 13569d845509SMarek Behún can be done by the generic 'fs' commands (see CMD_FS_GENERIC) 13579d845509SMarek Behún when BTRFS is enabled (see FS_BTRFS). 13589d845509SMarek Behún 1359d66a10fcSSimon Glassconfig CMD_CBFS 1360d66a10fcSSimon Glass bool "Enable the 'cbfs' command" 1361deb95999SSimon Glass depends on FS_CBFS 1362d66a10fcSSimon Glass help 1363d66a10fcSSimon Glass Define this to enable support for reading from a Coreboot 1364d66a10fcSSimon Glass filesystem. This is a ROM-based filesystem used for accessing files 1365d66a10fcSSimon Glass on systems that use coreboot as the first boot-loader and then load 1366d66a10fcSSimon Glass U-Boot to actually boot the Operating System. Available commands are 1367d66a10fcSSimon Glass cbfsinit, cbfsinfo, cbfsls and cbfsload. 1368d66a10fcSSimon Glass 136997072747SSimon Glassconfig CMD_CRAMFS 137097072747SSimon Glass bool "Enable the 'cramfs' command" 137180e44cfeSSimon Glass depends on FS_CRAMFS 137297072747SSimon Glass help 137397072747SSimon Glass This provides commands for dealing with CRAMFS (Compressed ROM 137497072747SSimon Glass filesystem). CRAMFS is useful when space is tight since files are 137597072747SSimon Glass compressed. Two commands are provided: 137697072747SSimon Glass 137797072747SSimon Glass cramfsls - lists files in a cramfs image 137897072747SSimon Glass cramfsload - loads a file from a cramfs image 137997072747SSimon Glass 1380ab8243e4SDinh Nguyenconfig CMD_EXT2 1381ab8243e4SDinh Nguyen bool "ext2 command support" 13823d22bae5STuomas Tynkkynen select FS_EXT4 1383ab8243e4SDinh Nguyen help 1384ab8243e4SDinh Nguyen Enables EXT2 FS command 1385ab8243e4SDinh Nguyen 1386ab8243e4SDinh Nguyenconfig CMD_EXT4 1387ab8243e4SDinh Nguyen bool "ext4 command support" 13883d22bae5STuomas Tynkkynen select FS_EXT4 1389ab8243e4SDinh Nguyen help 1390ab8243e4SDinh Nguyen Enables EXT4 FS command 1391ab8243e4SDinh Nguyen 1392ab8243e4SDinh Nguyenconfig CMD_EXT4_WRITE 1393ab8243e4SDinh Nguyen depends on CMD_EXT4 1394ab8243e4SDinh Nguyen bool "ext4 write command support" 13953d22bae5STuomas Tynkkynen select EXT4_WRITE 1396ab8243e4SDinh Nguyen help 1397ab8243e4SDinh Nguyen Enables EXT4 FS write command 1398ab8243e4SDinh Nguyen 1399ab8243e4SDinh Nguyenconfig CMD_FAT 1400ab8243e4SDinh Nguyen bool "FAT command support" 1401eedfb89eSSekhar Nori select FS_FAT 1402ab8243e4SDinh Nguyen help 1403ab8243e4SDinh Nguyen Support for the FAT fs 1404ab8243e4SDinh Nguyen 1405ab8243e4SDinh Nguyenconfig CMD_FS_GENERIC 1406ab8243e4SDinh Nguyen bool "filesystem commands" 1407ab8243e4SDinh Nguyen help 1408ab8243e4SDinh Nguyen Enables filesystem commands (e.g. load, ls) that work for multiple 1409ab8243e4SDinh Nguyen fs types. 14100269dfaeSMaxime Ripard 1411efbe99ceSJosua Mayerconfig CMD_FS_UUID 1412efbe99ceSJosua Mayer bool "fsuuid command" 1413efbe99ceSJosua Mayer help 1414efbe99ceSJosua Mayer Enables fsuuid command for filesystem UUID. 1415efbe99ceSJosua Mayer 1416b8682a7fSSimon Glassconfig CMD_JFFS2 1417b8682a7fSSimon Glass bool "jffs2 command" 141859e12a4aSSimon Glass select FS_JFFS2 1419b8682a7fSSimon Glass help 1420b8682a7fSSimon Glass Enables commands to support the JFFS2 (Journalling Flash File System 1421b8682a7fSSimon Glass version 2) filesystem. This enables fsload, ls and fsinfo which 1422b8682a7fSSimon Glass provide the ability to load files, list directories and obtain 1423b8682a7fSSimon Glass filesystem information. 1424b8682a7fSSimon Glass 14250269dfaeSMaxime Ripardconfig CMD_MTDPARTS 14260269dfaeSMaxime Ripard bool "MTD partition support" 14270269dfaeSMaxime Ripard help 14280269dfaeSMaxime Ripard MTD partition support 14290269dfaeSMaxime Ripard 14300269dfaeSMaxime Ripardconfig MTDIDS_DEFAULT 14310269dfaeSMaxime Ripard string "Default MTD IDs" 143243ede0bcSTom Rini depends on CMD_MTDPARTS || CMD_NAND || CMD_FLASH 14330269dfaeSMaxime Ripard help 143443ede0bcSTom Rini Defines a default MTD IDs list for use with MTD partitions in the 143543ede0bcSTom Rini Linux MTD command line partitions format. 14360269dfaeSMaxime Ripard 14370269dfaeSMaxime Ripardconfig MTDPARTS_DEFAULT 14380269dfaeSMaxime Ripard string "Default MTD partition scheme" 143943ede0bcSTom Rini depends on CMD_MTDPARTS || CMD_NAND || CMD_FLASH 14400269dfaeSMaxime Ripard help 14410269dfaeSMaxime Ripard Defines a default MTD partitioning scheme in the Linux MTD command 14420269dfaeSMaxime Ripard line partitions format 14430269dfaeSMaxime Ripard 1444cb70e6cbSSimon Glassconfig CMD_MTDPARTS_SPREAD 1445cb70e6cbSSimon Glass bool "Padd partition size to take account of bad blocks" 1446cb70e6cbSSimon Glass depends on CMD_MTDPARTS 1447cb70e6cbSSimon Glass help 1448cb70e6cbSSimon Glass This enables the 'spread' sub-command of the mtdparts command. 1449cb70e6cbSSimon Glass This command will modify the existing mtdparts variable by increasing 1450cb70e6cbSSimon Glass the size of the partitions such that 1) each partition's net size is 1451cb70e6cbSSimon Glass at least as large as the size specified in the mtdparts variable and 1452cb70e6cbSSimon Glass 2) each partition starts on a good block. 1453cb70e6cbSSimon Glass 1454f8803a99SSimon Glassconfig CMD_REISER 1455f8803a99SSimon Glass bool "reiser - Access to reiserfs filesystems" 1456f8803a99SSimon Glass help 1457f8803a99SSimon Glass This provides two commands which operate on a resierfs filesystem, 1458f8803a99SSimon Glass commonly used some years ago: 1459f8803a99SSimon Glass 1460f8803a99SSimon Glass reiserls - list files 1461f8803a99SSimon Glass reiserload - load a file 1462f8803a99SSimon Glass 14630941f597SSimon Glassconfig CMD_SCSI 14640941f597SSimon Glass bool "scsi - Access to SCSI devices" 14650941f597SSimon Glass default y if SCSI 14660941f597SSimon Glass help 14670941f597SSimon Glass This provides a 'scsi' command which provides access to SCSI (Small 14680941f597SSimon Glass Computer System Interface) devices. The command provides a way to 14690941f597SSimon Glass scan the bus, reset the bus, read and write data and get information 14700941f597SSimon Glass about devices. 14710941f597SSimon Glass 14727a764318SSimon Glassconfig CMD_YAFFS2 14737a764318SSimon Glass bool "yaffs2 - Access of YAFFS2 filesystem" 14747a764318SSimon Glass depends on YAFFS2 14757a764318SSimon Glass default y 14767a764318SSimon Glass help 14777a764318SSimon Glass This provides commands for accessing a YAFFS2 filesystem. Yet 14787a764318SSimon Glass Another Flash Filesystem 2 is a filesystem designed specifically 14797a764318SSimon Glass for NAND flash. It incorporates bad-block management and ensures 14807a764318SSimon Glass that device writes are sequential regardless of filesystem 14817a764318SSimon Glass activity. 14827a764318SSimon Glass 148354feea17SSimon Glassconfig CMD_ZFS 148454feea17SSimon Glass bool "zfs - Access of ZFS filesystem" 148554feea17SSimon Glass help 148654feea17SSimon Glass This provides commands to accessing a ZFS filesystem, commonly used 148754feea17SSimon Glass on Solaris systems. Two sub-commands are provided: 148854feea17SSimon Glass 148954feea17SSimon Glass zfsls - list files in a directory 149054feea17SSimon Glass zfsload - load a file 149154feea17SSimon Glass 149254feea17SSimon Glass See doc/README.zfs for more details. 149354feea17SSimon Glass 1494ab8243e4SDinh Nguyenendmenu 1495ab8243e4SDinh Nguyen 1496ac20a1b2SSimon Glassmenu "Debug commands" 1497ac20a1b2SSimon Glass 1498ac20a1b2SSimon Glassconfig CMD_BEDBUG 1499ac20a1b2SSimon Glass bool "bedbug" 1500ac20a1b2SSimon Glass help 1501ac20a1b2SSimon Glass The bedbug (emBEDded deBUGger) command provides debugging features 1502ac20a1b2SSimon Glass for some PowerPC processors. For details please see the 1503ac20a1b2SSimon Glass docuemntation in doc/README.beddbug 1504ac20a1b2SSimon Glass 15053bd25cb5SSimon Glassconfig CMD_DIAG 15063bd25cb5SSimon Glass bool "diag - Board diagnostics" 15073bd25cb5SSimon Glass help 15083bd25cb5SSimon Glass This command provides access to board diagnostic tests. These are 15093bd25cb5SSimon Glass called Power-on Self Tests (POST). The command allows listing of 15103bd25cb5SSimon Glass available tests and running either all the tests, or specific tests 15113bd25cb5SSimon Glass identified by name. 15123bd25cb5SSimon Glass 15131b330894SSimon Glassconfig CMD_IRQ 15141b330894SSimon Glass bool "irq - Show information about interrupts" 1515064b55cfSHeiko Schocher depends on !ARM && !MIPS && !SH 15161b330894SSimon Glass help 15171b330894SSimon Glass This enables two commands: 15181b330894SSimon Glass 15191b330894SSimon Glass interrupts - enable or disable interrupts 15201b330894SSimon Glass irqinfo - print device-specific interrupt information 15216bac227aSSimon Glass 15226bac227aSSimon Glassconfig CMD_KGDB 15236bac227aSSimon Glass bool "kgdb - Allow debugging of U-Boot with gdb" 15246bac227aSSimon Glass help 15256bac227aSSimon Glass This enables a 'kgdb' command which allows gdb to connect to U-Boot 15266bac227aSSimon Glass over a serial link for debugging purposes. This allows 15276bac227aSSimon Glass single-stepping, inspecting variables, etc. This is supported only 15286bac227aSSimon Glass on PowerPC at present. 15296bac227aSSimon Glass 1530d5f61f27SSimon Glassconfig CMD_LOG 1531d5f61f27SSimon Glass bool "log - Generation, control and access to logging" 1532d5f61f27SSimon Glass help 1533d5f61f27SSimon Glass This provides access to logging features. It allows the output of 1534d5f61f27SSimon Glass log data to be controlled to a limited extent (setting up the default 1535ef11ed82SSimon Glass maximum log level for emitting of records). It also provides access 1536ef11ed82SSimon Glass to a command used for testing the log system. 1537d5f61f27SSimon Glass 1538ce058ae5SSimon Glassconfig CMD_TRACE 1539ce058ae5SSimon Glass bool "trace - Support tracing of function calls and timing" 1540ce058ae5SSimon Glass help 1541ce058ae5SSimon Glass Enables a command to control using of function tracing within 1542ce058ae5SSimon Glass U-Boot. This allows recording of call traces including timing 1543ce058ae5SSimon Glass information. The command can write data to memory for exporting 1544ce058ae5SSimon Glass for analsys (e.g. using bootchart). See doc/README.trace for full 1545ce058ae5SSimon Glass details. 1546ce058ae5SSimon Glass 1547ac20a1b2SSimon Glassendmenu 1548ac20a1b2SSimon Glass 15498f2fe0c8SHeiko Schocherconfig CMD_UBI 15508f2fe0c8SHeiko Schocher tristate "Enable UBI - Unsorted block images commands" 15518f2fe0c8SHeiko Schocher select CRC32 15528f2fe0c8SHeiko Schocher select MTD_UBI 155322cf953aSKarl Beldan select CMD_MTDPARTS 1554522c282fSMaxime Ripard default y if NAND_SUNXI 15558f2fe0c8SHeiko Schocher help 15568f2fe0c8SHeiko Schocher UBI is a software layer above MTD layer which admits use of LVM-like 15578f2fe0c8SHeiko Schocher logical volumes on top of MTD devices, hides some complexities of 15588f2fe0c8SHeiko Schocher flash chips like wear and bad blocks and provides some other useful 15598f2fe0c8SHeiko Schocher capabilities. Please, consult the MTD web site for more details 15608f2fe0c8SHeiko Schocher (www.linux-mtd.infradead.org). Activate this option if you want 15618f2fe0c8SHeiko Schocher to use U-Boot UBI commands. 15628f2fe0c8SHeiko Schocher 1563173aafbfSBoris Brezillonconfig CMD_UBIFS 1564173aafbfSBoris Brezillon tristate "Enable UBIFS - Unsorted block images filesystem commands" 15652bc734b1SMaxime Ripard depends on CMD_UBI 1566173aafbfSBoris Brezillon select CRC32 156724fc9531SKarl Beldan select LZO 1568d56b4b19STom Rini default y if CMD_UBI 1569173aafbfSBoris Brezillon help 1570173aafbfSBoris Brezillon UBIFS is a file system for flash devices which works on top of UBI. 1571173aafbfSBoris Brezillon 157272a8cf8dSSimon Glassendmenu 1573