Skip to content
Snippets Groups Projects
  1. Dec 27, 2016
  2. Dec 12, 2016
  3. Dec 09, 2016
  4. Dec 03, 2016
    • Yann E. MORIN's avatar
      cmd: move CMD_PXE to Kconfig · bfb380b3
      Yann E. MORIN authored
      
      Currently, CMD_PXE is forcibly enabled in config_distro_defaults.h, so
      that general purpose distributions can rely on it being defined. This
      header is included, under conditions or not, by various archs or
      famillies of archs / SoCs.
      
      However, it is very possible that boards based on those SoCs will not
      have a physical ethernet connector at all, even if the have a MAC; for
      example, the Nanopi Neo AIR (sunxi H3) does not. It is also possible
      that network booting is absolutely not necessary for a device.
      
      However, it is not possible to disable the PXE command, as it is
      forcibly enabled and is non-configurable.
      
      But it turns out we already have a config option to build a distro-ready
      image, in the name of DISTRO_DEFAULTS.
      
      Move CMD_PXE out of the hard-coded config_distro_defaults.h into a
      Kconfig option, that gets selected by DISTRO_DEFAULTS when it is set.
      
      Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      [trini: Make it select MENU, run moveconfig.py]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      bfb380b3
    • Tom Rini's avatar
      cmd: Convert CMD_BOOTMENU · 4880b026
      Tom Rini authored
      
      Also convert MENU while we're in here.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      4880b026
    • Moritz Fischer's avatar
      cmd: crosec: Move cros_ec_decode_region helper to cmd/cros_ec.c · a2558e87
      Moritz Fischer authored
      
      The cros_ec_decode_region() function is only used in combination
      with the crosec cmds. Move the function to the correct place.
      
      Signed-off-by: default avatarMoritz Fischer <moritz.fischer@ettus.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: u-boot@lists.denx.de
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      a2558e87
    • Fabien Parent's avatar
      cmd/fdt: fix uncallable systemsetup command · f7f191ee
      Fabien Parent authored
      
      The function that is processing the 'fdt' parameters is one big
      if-else if. In order to be able to type command faster only the first
      few letter are checked to know which block of code to execute. For
      systemsetup, the block of code that was executed was always the wrong
      one and ended up in a failure.
      
      } else if (argv[1][0] == 's') {
          process "fdt set" command
      } else if (strncmp(argv[1], "sys", 3) == 0) {
          process "fdt systemsetup" command.
      }
      
      When typing "fdt systemsetup", the code that was executed was the code
      for "fdt set".
      
      This commit fix this issue by moving the "else if" for systemsetup
      before the else if for "fdt set". This allow us to keep compatibility
      with any script that make use of "fdt s" to set node values.
      
      Signed-off-by: default avatarFabien Parent <fparent@baylibre.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      f7f191ee
  5. Dec 02, 2016
  6. Dec 01, 2016
    • Tomas Melin's avatar
      mmc: add bkops-enable command · cd3d4880
      Tomas Melin authored
      
      Add new command that provides possibility to enable the
      background operations handshake functionality
      (BKOPS_EN, EXT_CSD byte [163]) on eMMC devices.
      
      This is an optional feature of eMMCs, the setting is write-once.
      The command must be explicitly taken into use with
      CONFIG_CMD_BKOPS_ENABLE.
      
      Signed-off-by: default avatarTomas Melin <tomas.melin@vaisala.com>
      cd3d4880
  7. Nov 29, 2016
    • Tang Yuantian's avatar
      sata: fix sata command can not being executed bug · aa6ab905
      Tang Yuantian authored
      
      Commit d97dc8a0 separated the non-command code into its own file
      which caused variable sata_curr_device can not be set to a correct
      value.
      
      Before commit d97dc8a0, variable sata_curr_device can be set
      correctly in sata_initialize().
      After commit d97dc8a0, sata_initialize() is moved out to its own file.
      Accordingly, variable sata_curr_device is removed from sata_initialize()
      too. This caused sata_curr_device never gets a chance to be set properly
      which prevent other commands from being executed.
      
      This patch sets variable sata_curr_device properly.
      
      Fixes: d97dc8a0 (dm: sata: Separate the non-command code into its
       own file)
      
      Signed-off-by: default avatarTang Yuantian <yuantian.tang@nxp.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      aa6ab905
  8. Nov 27, 2016
    • Alexander Graf's avatar
      efi_loader: Allow to compile helloworld.efi w/o bundling it · 95b62b2e
      Alexander Graf authored
      
      Today we can compile a self-contained hello world efi test binary that
      allows us to quickly verify whether the EFI loader framwork works.
      
      We can use that binary outside of the self-contained test case though,
      by providing it to a to-be-tested system via tftp.
      
      This patch separates compilation of the helloworld.efi file from
      including it in the u-boot binary for "bootefi hello". It also modifies
      the efi_loader test case to enable travis to pick up the compiled file.
      Because we're now no longer bloating the resulting u-boot binary, we
      can enable compilation always, giving us good travis test coverage.
      
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      95b62b2e
  9. Nov 25, 2016
  10. Nov 22, 2016
  11. Nov 21, 2016
    • Yann E. MORIN's avatar
      fastboot: simplify the Kconfig logic · c2948731
      Yann E. MORIN authored
      
      Currently, the fastboot item in menuconfig is a comment followed by a
      boolean option withan empty prompt, followed by a menu:
      
              *** FASTBOOT ***
          [*]
                Fastboot support  --->
      
      This is not "nice-looking" at all...
      
      Change the logic to make the boolean option a "menuconfig" rather than a
      mere "config", so that all dependent options gets groupped under a menu.
      The layout is now:
      
              *** FASTBOOT ***
          [*] Fastboot support  --->
      
      Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
      Cc: Simon Glass <sjg@chromium.org>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Tested-by: default avatarSimon Glass <sjg@chromium.org>
      c2948731
    • Semen Protsenko's avatar
      fastboot: Add CONFIG_FASTBOOT_USB_DEV option · 9af5ba87
      Semen Protsenko authored
      
      Some boards (like AM57x EVM) has USB OTG controller other than 0. So in
      order to use correct controller number in compiled environment we should
      define CONFIG_FASTBOOT_USB_DEV option.
      
      For example, when doing "fastboot reboot-bootloader" we want to enter
      fastboot mode automatically. But to do so we need to provide controller
      number to "fastboot" command. If this procedure is defined in some config
      which is common to bunch of boards, and boards have different USB
      controller numbers, we can't just hardcode "fastboot 0" in the
      environment. We need to use configurable option, which this patch adds.
      
      Signed-off-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      9af5ba87
  12. Nov 17, 2016
  13. Nov 14, 2016
  14. Oct 31, 2016
  15. Oct 19, 2016
  16. Oct 18, 2016
    • Alexander Graf's avatar
      efi_loader: Allow boards to implement get_time and reset_system · 80a4800e
      Alexander Graf authored
      
      EFI allows an OS to leverage firmware drivers while the OS is running. In the
      generic code we so far had to stub those implementations out, because we would
      need board specific knowledge about MMIO setups for it.
      
      However, boards can easily implement those themselves. This patch provides the
      framework so that a board can implement its own versions of get_time and
      reset_system which would actually do something useful.
      
      While at it we also introduce a simple way for code to reserve MMIO pointers
      as runtime available.
      
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      80a4800e
  17. Oct 13, 2016
  18. Oct 11, 2016
  19. Oct 07, 2016
  20. Oct 02, 2016
  21. Sep 27, 2016
Loading