16 Jul, 2019

1 commit


24 May, 2019

4 commits


26 Mar, 2019

1 commit


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
     

23 Feb, 2019

1 commit

  • Without CONFIG_LED, we get

    cmd/built-in.o: In function `show_led_state':
    cmd/led.c:40: undefined reference to `led_get_state'
    cmd/built-in.o: In function `do_led':
    cmd/led.c:99: undefined reference to `led_get_by_label'
    cmd/led.c:108: undefined reference to `led_set_state'

    Signed-off-by: Jan Kiszka

    Jan Kiszka
     

13 Feb, 2019

1 commit

  • It should not be necessary to adjust CMD_BOOTEFI_HELLO_COMPILE in config
    files.

    arch/arm/lib/crt0_arm_efi.S cannot be compiled in thumbs mode. We can
    disable CMD_BOOTEFI_HELLO_COMPILE for CONFIG_CPU_V7M. So there is no longer
    a need to disable it in stm32 configs.

    helloworld.efi can be built without problems on x86_64. So there is no need
    to disable it in chromebook_link64_defconfig and qemu-x86_64_defconfig.

    Same is true for ARM V7A. So do not disable CMD_BOOTEFI_HELLO_COMPILE in
    kp_imx6q_tpc_defconfig.

    Some architecture checks are already make for EFI_LOADER. There is no need
    to repeat them for CMD_BOOTEFI_HELLO_COMPILE

    Signed-off-by: Heinrich Schuchardt
    Reviewed-by: Simon Glass
    Reviewed-by: Patrice.Chotard@st.com
    Signed-off-by: Alexander Graf

    Heinrich Schuchardt
     

10 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
     

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


13 Nov, 2018

2 commits

  • Commit c58fb2cdb3e4 ("cmd: ubi: clean the partition handling")
    introduced a call to mtd_probe_devices() in the ubi_attach() path
    and this function takes care of parsing mtdparts/mtdids and
    creating/registering the associated mtd partitions.

    The mtdparts_init() call in the ubi_detach() path is not only
    unnecessary but can sometimes print error messages even when things
    work properly (that's the case with SPI NAND devices that have not
    been probed with 'mtd list'), which is misleading.

    Remove this call to mtdparts_init() and drop the dependency on
    CMD_MTDPARTS.

    Fixes: c58fb2cdb3e4 ("cmd: ubi: clean the partition handling")
    Reported-by: Stefan Roese
    Signed-off-by: Boris Brezillon
    Tested-by: Stefan Roese
    Reviewed-by: Lukasz Majewski
    Reviewed-by: Jagan Teki

    Boris Brezillon
     
  • gwventana configs are relying on CMD_UBI to select CMD_MTDPARTS,
    which is then making {MTDIDS,MTDPARTS}_DEFAULT options available.

    We are about to remove the 'select CMD_MTDPARTS' statement in the
    CMD_UBI entry, but if we do that without first making sure
    {MTDIDS,MTDPARTS}_DEFAULT are visible, we end up with a build
    failure when building gwventana configs.

    Address that by adding a depends on MTD_PARTITIONS to
    {MTDIDS,MTDPARTS}_DEFAULT which does the trick since CMD_UBI selects
    MTD_UBI which in turn selects MTD_PARTITIONS.

    We also get rid of the depends on CMD_MTD, since CMD_MTD also selects
    MTD_PARTITIONS.

    Reported-by: Jagan Teki
    Signed-off-by: Boris Brezillon
    Reviewed-by: Lukasz Majewski
    Reviewed-by: Jagan Teki

    Boris Brezillon
     

16 Oct, 2018

1 commit


03 Oct, 2018

4 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
     
  • The 'mtdparts' command is not needed anymore. While the environment
    variable is still valid (and useful, along with the 'mtdids' one), the
    command has been replaced by 'mtd' which is much more close to the MTD
    stack and do not add its own specific glue.

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

    Miquel Raynal
     
  • UBI should not mess with MTD partitions, now that the partitions are
    handled in a clean way, clean the ubi command and avoid using this
    uneeded extra-glue to reference the devices.

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

    Miquel Raynal
     
  • 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

3 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
     

27 Aug, 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
     

18 Aug, 2018

1 commit


11 Aug, 2018

1 commit


30 Jul, 2018

4 commits


24 Jul, 2018

1 commit

  • 1. Since libavb library alone is highly portable, introduce dedicated
    Kconfig symbol for AVB bootloader-dependent operations, so it's possible
    to build libavb separately. AVB bootloader-dependent operations include:
    * Helpers to process strings in order to build OS bootargs.
    * Helpers to access MMC, similar to drivers/fastboot/fb_mmc.c.
    * Helpers to alloc/init/free avb ops.
    2. Add CONFIG_FASTBOOT dependency, as fastboot buffer is
    re-used in partition verification operations.

    Reported-by: Eugeniu Rosca
    Signed-off-by: Igor Opaniuk
    Reviewed-by: Eugeniu Rosca
    Tested-by: Eugeniu Rosca

    Igor Opaniuk
     

23 Jul, 2018

1 commit


11 Jul, 2018

1 commit


03 Jul, 2018

1 commit

  • Currently we can choose between 2 different types of behavior for the
    serverip variable:

    1) Always overwrite it with the DHCP server IP address (default)
    2) Ignore what the DHCP server says (CONFIG_BOOTP_SERVERIP)

    This patch adds a 3rd option:

    3) Use serverip from DHCP if no serverip is given
    (CONFIG_BOOTP_PREFER_SERVERIP)

    With this new option, we can have the default case that a boot file gets
    loaded from the DHCP provided TFTP server work while allowing users to
    specify their own serverip variable to explicitly use a different tftp
    server.

    Signed-off-by: Alexander Graf
    Acked-by: Joe Hershberger

    Alexander Graf