Merge branch '2022-04-25-initial-implementation-of-stdboot'
[platform/kernel/u-boot.git] / cmd / Kconfig
index e40d390..2b575a2 100644 (file)
@@ -31,6 +31,13 @@ config CMDLINE_EDITING
          Enable editing and History functions for interactive command line
          input operations
 
+config CMDLINE_PS_SUPPORT
+       bool "Enable support for changing the command prompt string at run-time"
+       depends on HUSH_PARSER
+       help
+         Only static string in the prompt is supported so far.  The string is
+         obtained from environment variables PS1 and PS2.
+
 config AUTO_COMPLETE
        bool "Enable auto complete using TAB"
        depends on CMDLINE
@@ -167,7 +174,7 @@ config CMD_TLV_EEPROM
 config SPL_CMD_TLV_EEPROM
        bool "tlv_eeprom for SPL"
        depends on SPL_I2C_EEPROM
-       select SPL_DRIVERS_MISC_SUPPORT
+       select SPL_DRIVERS_MISC
        help
          Read system EEPROM data block in ONIE Tlvinfo format from SPL.
 
@@ -194,6 +201,55 @@ config CMD_BOOTM
        help
          Boot an application image from the memory.
 
+config CMD_BOOTM_PRE_LOAD
+       bool "enable pre-load on bootm"
+       depends on CMD_BOOTM
+       depends on IMAGE_PRE_LOAD
+       default n
+       help
+         Enable support of stage pre-load for the bootm command.
+        This stage allow to check or modify the image provided
+        to the bootm command.
+
+config CMD_BOOTDEV
+       bool "bootdev"
+       depends on BOOTSTD
+       default y if BOOTSTD_FULL
+       help
+         Support listing available bootdevs (boot devices) which can provide an
+         OS to boot, as well as showing information about a particular one.
+
+         This command is not necessary for bootstd to work.
+
+config CMD_BOOTFLOW
+       bool "bootflow"
+       depends on BOOTSTD
+       default y
+       help
+         Support scanning for bootflows available with the bootdevs. The
+         bootflows can optionally be booted.
+
+config CMD_BOOTFLOW_FULL
+       bool "bootflow - extract subcommands"
+       depends on BOOTSTD_FULL
+       default y if BOOTSTD_FULL
+       help
+         Add the ability to list the available bootflows, select one and obtain
+         information about it.
+
+         This command is not necessary for bootstd to work.
+
+config CMD_BOOTMETH
+       bool "bootmeth"
+       depends on BOOTSTD
+       default y if BOOTSTD_FULL
+       help
+         Support listing available bootmethds (methods used to boot an
+         Operating System), as well as selecting the order that the bootmeths
+         are used.
+
+         This command is not necessary for bootstd to work.
+
 config BOOTM_EFI
        bool "Support booting UEFI FIT images"
        depends on CMD_BOOTEFI && CMD_BOOTM && FIT
@@ -471,7 +527,6 @@ config CMD_SAVEENV
 
 config CMD_ERASEENV
        bool "eraseenv"
-       default n
        depends on CMD_SAVEENV
        help
          Erase environment variables from the compiled-in persistent
@@ -509,6 +564,9 @@ config CMD_NVEDIT_EFI
          If enabled, we are allowed to set/print UEFI variables using
          "env" command with "-e" option without knowing details.
 
+config CMD_NVEDIT_INDIRECT
+       bool "env indirect - Sets environment value from another"
+
 config CMD_NVEDIT_INFO
        bool "env info - print or evaluate environment information"
        help
@@ -614,6 +672,37 @@ config EEPROM_LAYOUT_HELP_STRING
            Help printed with the LAYOUT VERSIONS part of the 'eeprom'
            command's help.
 
+config SYS_I2C_EEPROM_BUS
+       int "I2C bus of the EEPROM device."
+       depends on CMD_EEPROM
+       default 0
+
+config SYS_I2C_EEPROM_ADDR_LEN
+       int "Length in bytes of the EEPROM memory array address"
+       depends on CMD_EEPROM || ID_EEPROM
+       default 1
+       range 1 2
+       help
+         Note: This is NOT the chip address length!
+
+config SYS_EEPROM_SIZE
+       depends on CMD_EEPROM
+       int "Size in bytes of the EEPROM device"
+       default 256
+
+config SYS_EEPROM_PAGE_WRITE_BITS
+       int "Number of bits used to address bytes in a single page"
+       depends on CMD_EEPROM
+       default 8
+       help
+         The EEPROM page size is 2^SYS_EEPROM_PAGE_WRITE_BITS.
+         A 64 byte page, for example would require six bits.
+
+config SYS_EEPROM_PAGE_WRITE_DELAY_MS
+       int "Number of milliseconds to delay between page writes"
+       depends on CMD_EEPROM || CMD_I2C
+       default 0
+
 config LOOPW
        bool "loopw"
        help
@@ -621,14 +710,12 @@ config LOOPW
 
 config CMD_MD5SUM
        bool "md5sum"
-       default n
        select MD5
        help
          Compute MD5 checksum.
 
 config MD5SUM_VERIFY
        bool "md5sum -v"
-       default n
        depends on CMD_MD5SUM
        help
          Add -v option to verify data against an MD5 checksum.
@@ -713,7 +800,7 @@ endif
 
 config SYS_MEMTEST_START
        hex "default start address for mtest"
-       default 0
+       default 0x0
        help
          This is the default start address for mtest for simple read/write
          test. If no arguments are given to mtest, default address is used
@@ -948,6 +1035,13 @@ config CMD_GPIO
        help
          GPIO support.
 
+config CMD_GPIO_READ
+       bool "gpio read - save GPIO value to variable"
+       depends on CMD_GPIO
+       help
+         Enables the 'gpio read' command that saves the value
+         of a GPIO pin to a variable.
+
 config CMD_PWM
        bool "pwm"
        depends on DM_PWM
@@ -984,7 +1078,7 @@ config CMD_IDE
        select IDE
        help
          Provides an 'ide' command which allows accessing the IDE drive,
-         reseting the IDE interface, printing the partition table and
+         resetting the IDE interface, printing the partition table and
          geting device info. It also enables the 'diskboot' command which
          permits booting from an IDE drive.
 
@@ -1088,7 +1182,6 @@ if CMD_MMC
 config CMD_BKOPS_ENABLE
        bool "mmc bkops enable"
        depends on CMD_MMC
-       default n
        help
          Enable command for setting manual background operations handshake
          on a eMMC device. The feature is optionally available on eMMC devices
@@ -1192,6 +1285,7 @@ config CMD_OSD
 
 config CMD_PART
        bool "part"
+       depends on PARTITIONS
        select HAVE_BLOCK_DEVICE
        select PARTITION_UUIDS
        help
@@ -1414,13 +1508,19 @@ config CMD_SETEXPR
          Also supports loading the value at a memory location into a variable.
          If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
 
+config CMD_SETEXPR_FMT
+       bool "setexpr_fmt"
+       depends on CMD_SETEXPR
+       help
+         Evaluate format string expression and store result in an environment
+           variable.
+
 endmenu
 
 menu "Android support commands"
 
 config CMD_AB_SELECT
        bool "ab_select"
-       default n
        depends on ANDROID_AB
        help
          On Android devices with more than one boot slot (multiple copies of
@@ -1452,6 +1552,15 @@ config CMD_DHCP
        help
          Boot image via network using DHCP/TFTP protocol
 
+config BOOTP_MAY_FAIL
+       bool "Allow for the BOOTP/DHCP server to not be found"
+       depends on CMD_BOOTP
+       help
+         If the DHCP server is not found after the configured retry count, the
+         call will fail instead of starting over.  This can be used to fail
+         over to Link-local IP address configuration if the DHCP server is not
+         available.
+
 config BOOTP_BOOTPATH
        bool "Request & store 'rootpath' from BOOTP/DHCP server"
        default y
@@ -1460,6 +1569,14 @@ config BOOTP_BOOTPATH
          Even though the config is called BOOTP_BOOTPATH, it stores the
          path in the variable 'rootpath'.
 
+config BOOTP_VENDOREX
+       bool "Support vendor extensions from BOOTP/DHCP server"
+       depends on CMD_BOOTP
+
+config BOOTP_BOOTFILESIZE
+       bool "Request & store 'bootfilesize' from BOOTP/DHCP server"
+       depends on CMD_BOOTP
+
 config BOOTP_DNS
        bool "Request & store 'dnsip' from BOOTP/DHCP server"
        default y
@@ -1507,10 +1624,18 @@ config BOOTP_SUBNETMASK
        default y
        depends on CMD_BOOTP
 
+config BOOTP_NISDOMAIN
+       bool "Request & store 'nisdomain' from BOOTP/DHCP server"
+       depends on CMD_BOOTP
+
 config BOOTP_NTPSERVER
        bool "Request & store 'ntpserverip' from BOOTP/DHCP server"
        depends on CMD_BOOTP
 
+config BOOTP_TIMEOFFSET
+       bool "Request & store 'timeoffset' from BOOTP/DHCP server"
+       depends on CMD_BOOTP && CMD_SNTP
+
 config CMD_PCAP
        bool "pcap capture"
        help
@@ -1580,6 +1705,15 @@ config CMD_NFS
        help
          Boot image via network using NFS protocol.
 
+config NFS_TIMEOUT
+       int "Timeout in milliseconds for NFS mounts"
+       depends on CMD_NFS
+       default 2000
+       help
+         Timeout in milliseconds used in NFS protocol.  If you encounter
+         "ERROR: Cannot umount" in nfs command, try longer timeout such as
+         10000.
+
 config CMD_MII
        bool "mii"
        imply CMD_MDIO
@@ -1591,6 +1725,10 @@ config CMD_MII
          to management parameters and services.
          The interface is referred to as the MII management interface.
 
+config MII_INIT
+       bool "Call mii_init() in the mii command"
+       depends on CMD_MII && (MPC8XX_FEC || FSLDMAFE || MCFFEC)
+
 config CMD_MDIO
        bool "mdio"
        depends on PHYLIB
@@ -1715,7 +1853,7 @@ config CMD_CONITRACE
 
 config CMD_CLS
        bool "Enable clear screen command 'cls'"
-       depends on CFB_CONSOLE || DM_VIDEO || LCD || VIDEO
+       depends on DM_VIDEO || LCD || VIDEO
        default y if LCD
        help
          Enable the 'cls' command which clears the screen contents
@@ -1725,7 +1863,6 @@ config CMD_EFIDEBUG
        bool "efidebug - display/configure UEFI environment"
        depends on EFI_LOADER
        select EFI_DEVICE_PATH_TO_TEXT
-       default n
        help
          Enable the 'efidebug' command which provides a subset of UEFI
          shell utility with simplified functionality. It will be useful
@@ -1782,18 +1919,26 @@ config CMD_RNG
        help
          Print bytes from the hardware random number generator.
 
+config CMD_KASLRSEED
+       bool "kaslrseed"
+       depends on DM_RNG
+       help
+         Set the kaslr-seed in the chosen node with entropy provided by a
+         hardware random number generator.
+
 config CMD_SLEEP
        bool "sleep"
        default y
        help
          Delay execution for some time
 
-config MP
-       bool "support for multiprocessor"
+config CMD_MP
+       bool "support for multiprocessor commands"
+       depends on MP
+       default y
        help
-         This provides an option to brinup
-         different processors in multiprocessor
-         cases.
+         This enables commands to bringup different processors
+         in multiprocessor cases.
 
 config CMD_TIMER
        bool "timer"
@@ -2136,6 +2281,12 @@ config CMD_CRAMFS
             cramfsls   - lists files in a cramfs image
             cramfsload - loads a file from a cramfs image
 
+config CMD_EROFS
+       bool "EROFS command support"
+       select FS_EROFS
+       help
+         Support for the EROFS fs
+
 config CMD_EXT2
        bool "ext2 command support"
        select FS_EXT4
@@ -2187,6 +2338,27 @@ config CMD_JFFS2
          provide the ability to load files, list directories and obtain
          filesystem information.
 
+config JFFS2_DEV
+       string "Default device for JFFS2"
+       depends on CMD_JFFS2
+       default "nor0"
+       help
+         The default device to use with the jffs2 command.
+
+config JFFS2_PART_OFFSET
+       hex "Default offset within flash to locate the JFFS2 image"
+       depends on CMD_JFFS2
+       default 0x0
+       help
+         The default offset within flash to locate the JFFS2 image.
+
+config JFFS2_PART_SIZE
+       hex "Default size of JFFS2 partition"
+       depends on CMD_JFFS2
+       default 0xFFFFFFFF
+       help
+         The default size of the JFFS2 partition
+
 config CMD_MTDPARTS
        bool "MTD partition support"
        depends on MTD
@@ -2264,13 +2436,6 @@ endmenu
 
 menu "Debug commands"
 
-config CMD_BEDBUG
-       bool "bedbug"
-       help
-         The bedbug (emBEDded deBUGger) command provides debugging features
-         for some PowerPC processors. For details please see the
-         documentation in doc/README.bedbug.
-
 config CMD_CBSYSINFO
        bool "cbsysinfo"
        depends on X86
@@ -2288,6 +2453,14 @@ config CMD_DIAG
          available tests and running either all the tests, or specific tests
          identified by name.
 
+config CMD_EVENT
+       bool "event - Show information about events"
+       default y if EVENT_DEBUG
+       help
+         This enables the 'event' command which provides information about
+         events and event-handler routines. This can help to device event
+         hadling.
+
 config CMD_IRQ
        bool "irq - Show information about interrupts"
        depends on !ARM && !MIPS && !RISCV && !SH
@@ -2318,6 +2491,8 @@ config CMD_LOG
 
 config CMD_TRACE
        bool "trace - Support tracing of function calls and timing"
+       depends on TRACE
+       default y
        help
          Enables a command to control using of function tracing within
          U-Boot. This allows recording of call traces including timing
@@ -2328,7 +2503,6 @@ config CMD_TRACE
 config CMD_AVB
        bool "avb - Android Verified Boot 2.0 operations"
        depends on AVB_VERIFY
-       default n
        help
          Enables a "avb" command to perform verification of partitions using
          Android Verified Boot 2.0 functionality. It includes such subcommands:
@@ -2368,7 +2542,6 @@ config CMD_UBI
 config CMD_UBI_RENAME
        bool "Enable rename"
        depends on CMD_UBI
-       default n
        help
          Enable a "ubi" command to rename ubi volume:
           ubi rename <oldname> <newname>
@@ -2381,4 +2554,14 @@ config CMD_UBIFS
        help
          UBIFS is a file system for flash devices which works on top of UBI.
 
+config MMC_SPEED_MODE_SET
+       bool "set speed mode using mmc command"
+       depends on CMD_MMC
+       default n
+       help
+         Enable setting speed mode using mmc rescan and mmc dev commands.
+         The speed mode is provided as the last argument in these commands
+         and is indicated using the index from enum bus_mode in
+         include/mmc.h. A speed mode can be set only if it has already
+         been enabled in the device tree.
 endmenu