24 May, 2019

1 commit

  • Add the fsl CAAM driver and new commands to implement DEK blob operations,
    like "caam genblob" to generate encrypted blob and "caam decap" to output
    orignal plain data.

    Signed-off-by: Ye Li
    (cherry picked from commit 4ec81a0b075d8d853ac696172660a7771064405d)

    Ye Li
     

25 Feb, 2019

2 commits

  • Currently, there is no easy way to add or modify UEFI variables.
    In particular, bootmgr supports BootOrder/BootXXXX variables, it is
    quite hard to define them as u-boot variables because they are represented
    in a complicated and encoded format.

    The new command, efidebug, helps address these issues and give us
    more friendly interfaces:
    * efidebug boot add: add BootXXXX variable
    * efidebug boot rm: remove BootXXXX variable
    * efidebug boot dump: display all BootXXXX variables
    * efidebug boot next: set BootNext variable
    * efidebug boot order: set/display a boot order (BootOrder)

    Signed-off-by: AKASHI Takahiro
    Reviewed-by: Heinrich Schuchardt

    AKASHI Takahiro
     
  • "env [print|set] -e" allows for handling uefi variables without
    knowing details about mapping to corresponding u-boot variables.

    Signed-off-by: AKASHI Takahiro
    Reviewed-by: Heinrich Schuchardt

    AKASHI Takahiro
     

20 Feb, 2019

1 commit


16 Dec, 2018

1 commit


05 Dec, 2018

1 commit

  • Add common clear screen command for configurations
    CONFIG_DM_VIDEO, CONFIG_LCD and CONFIG_CFB_CONSOLE.

    Remove the existing cls command implementation from
    lcd.c code and activate the command for all boards
    enabling CONFIG_LCD for compatibility reasons.

    Signed-off-by: Anatolij Gustschin
    Tested-by: Patrick.Delaunay

    Anatolij Gustschin
     

26 Nov, 2018

1 commit

  • The old 'sb' command was deprecated in 2015 and replaced with 'host'. It
    is useful to be able to access some internal sandbox state, particularly
    for testing.

    Resurrect the old command and provide a way to print some basic state
    information (currently just the arguments to sandbox).

    Signed-off-by: Simon Glass

    Simon Glass
     

17 Nov, 2018

1 commit

  • pinmux command allows to :
    - list all pin-controllers available on platforms
    - select a pin-controller
    - display the muxing of all pins of the current pin-controller
    or all pin-controllers depending of given options

    Signed-off-by: Patrice Chotard
    cmd: pinmux: Fix pinmux command

    if "pinmux status" command is used without having
    set dev using "pinmux dev", print pinmux usage
    Reviewed-by: Simon Glass

    Patrice Chotard
     

15 Nov, 2018

1 commit


01 Nov, 2018

1 commit


03 Oct, 2018

2 commits

  • This is the PR for SPI-NAND changes along with few spi changes.

    [trini: Re-sync changes for ls1012afrwy_qspi*_defconfig]
    Signed-off-by: Tom Rini

    Tom Rini
     
  • There should not be a 'nand' command, a 'sf' command and certainly not
    a new 'spi-nand' command. Write a 'mtd' command instead to manage all
    MTD devices/partitions at once. This should be the preferred way to
    access any MTD device.

    Signed-off-by: Miquel Raynal
    Acked-by: Jagan Teki
    Reviewed-by: Stefan Roese
    Reviewed-by: Boris Brezillon

    Miquel Raynal
     

30 Sep, 2018

1 commit


29 Sep, 2018

2 commits


26 Sep, 2018

1 commit

  • The 'conitrace' command prints the codes received from the console input as
    hexadecimal numbers.

    This developer utility is useful for testing the handling of special keys
    by keyboard drivers.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     

19 Sep, 2018

1 commit


25 Aug, 2018

1 commit


21 Aug, 2018

1 commit

  • In some cases it can be useful to be able to bind a device to a driver from
    the command line.
    The obvious example is for versatile devices such as USB gadget.
    Another use case is when the devices are not yet ready at startup and
    require some setup before the drivers are bound (ex: FPGA which bitsream is
    fetched from a mass storage or ethernet)

    usage example:

    bind usb_dev_generic 0 usb_ether
    unbind usb_dev_generic 0 usb_ether
    or
    unbind eth 1

    bind /ocp/omap_dwc3@48380000/usb@48390000 usb_ether
    unbind /ocp/omap_dwc3@48380000/usb@48390000

    Signed-off-by: Jean-Jacques Hiblot

    Jean-Jacques Hiblot
     

20 Aug, 2018

1 commit

  • dtimg command allows user to work with Android DTB/DTBO image format.
    Such as, getting the address of desired DTB/DTBO file, printing the dump
    of the image in U-Boot shell, etc.

    This command is needed to provide Android boot with new Android DT image
    format further.

    Signed-off-by: Sam Protsenko
    Reviewed-by: Tom Rini

    Sam Protsenko
     

11 Aug, 2018

1 commit


03 Jul, 2018

1 commit

  • Add a new command 'wol': Wait for an incoming Wake-on-LAN packet or
    time out if no WoL packed is received.
    If the WoL packet contains a password, it is saved in the environment
    variable 'wolpassword' using the etherwake format (dot or colon
    separated decimals).

    Intended use case: a networked device should boot an alternate image.
    It's attached to a network on a client site, modifying the DHCP server
    configuration or setup of a tftp server is not allowed.
    After power on the device waits a few seconds for a WoL packet. If a
    packet is received, the device boots the alternate image. Otherwise
    it boots the default image.

    This method is a simple way to interact with a system via network even
    if only the MAC address is known. Tools to send WoL packets are
    available on all common platforms.

    Some Ethernet drivers seem to pad the incoming packet. The additional
    padding bytes might be recognized as Wake-on-LAN password bytes.

    By default enabled in pengwyn_defconfig.

    Signed-off-by: Lothar Felten
    Acked-by: Joe Hershberger

    Lothar Felten
     

19 Jun, 2018

1 commit

  • Enable a "avb" command to execute Android Verified
    Boot 2.0 operations. It includes such subcommands:
    avb init - initialize avb2 subsystem
    avb read_rb - read rollback index
    avb write_rb - write rollback index
    avb is_unlocked - check device lock state
    avb get_uuid - read and print uuid of a partition
    avb read_part - read data from partition
    avb read_part_hex - read data from partition and output to stdout
    avb write_part - write data to partition
    avb verify - run full verification chain

    Signed-off-by: Igor Opaniuk

    Igor Opaniuk
     

26 May, 2018

3 commits

  • Choice between v1 and v2 compliant functions is done with the
    configuration.

    Create the various files that will receive TPMv2-only code on the same
    scheme as for the TPMv1 code.

    Signed-off-by: Miquel Raynal
    Reviewed-by: Simon Glass
    Reviewed-by: Tom Rini

    Miquel Raynal
     
  • There are no changes in this commit but a new organization of the code
    as follow.

    * cmd/ directory:
    > move existing code from cmd/tpm.c in cmd/tpm-common.c
    > move specific code in cmd/tpm-v1.c
    > create a specific header file with generic definitions for
    commands only called cmd/tpm-user-utils.h

    * lib/ directory:
    > move existing code from lib/tpm.c in lib/tpm-common.c
    > move specific code in lib/tpm-v1.c
    > create a specific header file with generic definitions for
    the library itself called lib/tpm-utils.h

    * include/ directory:
    > move existing code from include/tpm.h in include/tpm-common.h
    > move specific code in include/tpm-v1.h

    Code designated as 'common' is compiled if TPM are used. Code designated
    as 'specific' is compiled only if the right specification has been
    selected.

    All files include tpm-common.h.
    Files in cmd/ include tpm-user-utils.h.
    Files in lib/ include tpm-utils.h.
    Depending on the specification, files may include either (not both)
    tpm-v1.h or tpm-v2.h.

    Signed-off-by: Miquel Raynal
    Reviewed-by: Tom Rini
    [trini: Fix a few more cases of tpm.h -> tpm-v1.h, some Kconfig logic]
    Signed-off-by: Tom Rini

    Miquel Raynal
     
  • Because both major revisions are not compatible at all, let's make them
    mutually exclusive in Kconfig. This way we will be sure, when using a
    command or a library function that it is supported by the right
    revision.

    Current drivers are currently prefixed by "tpm_", we will prefix TPMv2.x
    files by "tpm2_" to make the distinction without moving everything.

    The Kconfig menu about TPM drivers is now divided into two sections, one
    for each specification. Compliant drivers with one specification will
    only show up if this specification _only_ has been selected, otherwise a
    comment is displayed.

    Once a driver is selected by the user, it selects automatically a
    boolean value, that is needed in order to activate the TPM commands.
    Selecting the TPM commands will automatically select the right
    command/library files.

    Signed-off-by: Miquel Raynal
    Reviewed-by: Simon Glass
    Reviewed-by: Tom Rini
    [trini: Rework deps as TPM_V1 and TPM_V2 depend on TPM,
    drop TPM_DRIVER_SELECTED]
    Signed-off-by: Tom Rini

    Miquel Raynal
     

24 May, 2018

1 commit

  • Add a command to manipulate the bootcounter. This is useful if you can
    run device recovery from inside U-Boot and need to reset the bootcounter
    after executing that process as part of altbootcmd.

    Signed-off-by: Alex Kiernan
    Reviewed-by: Lukasz Majewski

    Alex Kiernan
     

09 May, 2018

1 commit


08 May, 2018

1 commit

  • This patch adds smc and hvc commands, that allow issuing Secure Monitor
    Calls and Hypervisor Calls conforming to the ARM SMC Calling Convention.

    Add Kconfig items to allow each command can be individually enabled.

    Signed-off-by: Michalis Pappas
    Reviewed-by: Simon Glass

    Michalis Pappas
     

07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

07 Apr, 2018

1 commit

  • This patch adds a command that enables the calculation of bit operations
    (AND, OR, XOR) on binary data from the command line. Memory locations as
    well as the contents of environment variables are eligible as sources
    and destination of the binary data used in the operations.

    The possible applications are manifold: Setting specific bits in
    registers using the regular read-OR-write pattern, masking out bits in
    bit values, implementation of simple OTP encryption using the XOR
    operation, etc.

    Signed-off-by: Mario Six

    Mario Six
     

06 Feb, 2018

1 commit

  • cmd/Makefile has:

    ifdef CONFIG_FPGA
    obj-$(CONFIG_CMD_FPGA) += fpga.o
    endif

    which means that if CONFIG_FPGA is not set, CONFIG_CMD_FPGA silently
    does nothing. Let's remove that Makefile conditional and instead express
    this equivalent dependency in Kconfig, so a lot of redundant

    # CONFIG_CMD_FPGA is not set

    can be removed from board defconfigs that don't actually have an FPGA.

    Signed-off-by: Tuomas Tynkkynen

    Tuomas Tynkkynen
     

20 Jan, 2018

1 commit


10 Jan, 2018

1 commit


08 Jan, 2018

1 commit


08 Dec, 2017

2 commits


03 Oct, 2017

1 commit


23 Aug, 2017

1 commit


17 Aug, 2017

1 commit

  • Most block devices provide a command (e.g. 'sata', 'scsi', 'ide') and
    these commands generally do the same thing. This makes it harder to
    maintain this code and keep it consistent.

    We now have a block device interface which is either implemented by driver
    model (when CONFIG_BLK is enabled) or with a legacy interface. Therefore
    it is possible to handle most of what these commands do with generic code.

    Add a new generic function to process block-device commands using the
    interface type and the current device number for that type.

    Signed-off-by: Simon Glass

    Simon Glass