1. 03 May, 2018 2 commits
  2. 02 Apr, 2018 2 commits
  3. 08 Feb, 2017 3 commits
    • Masahiro Yamada's avatar
      cmd: move CONFIG_CMD_UNZIP and CONFIG_CMD_ZIP to Kconfig · e9d33e73
      Masahiro Yamada authored
      CONFIG_CMD_ZIP is not defined by any board.  I am moving
      CONFIG_CMD_UNZIP to defconfig files except UniPhier SoC family.
      I am the maintainer of UniPhier platform, so I know "select CMD_UNZIP"
      is better for this platform.
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Acked-by: default avatarMichal Simek <michal.simek@xilinx.com>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      Acked-by: default avatarRyan Harkin <ryan.harkin@linaro.org>
      Tested-by: default avatarRyan Harkin <ryan.harkin@linaro.org>
    • Masahiro Yamada's avatar
      cmd: rework "license" command · d726f225
      Masahiro Yamada authored
      The previous commit ("add a new command to show .config contents")
      improves the basic infrastructure of "embed a compressed file into
      the U-Boot image, and print it by a command".  The same pattern for
      the "license" command.
      This commit reworks the command to improve the following:
      [1] Improve log style
      Kbuild style log
        GZIP    cmd/license_data.gz
        CHK     cmd/license_data_gz.h
        UPD     cmd/license_data_gz.h
        CHK     cmd/license_data_size.h
        UPD     cmd/license_data_size.h
      instead of the bare Make log:
      cat ./Licenses/gpl-2.0.txt | gzip -9 -c | \
      		tools/bin2header license_gzip > ./include/license.h
      [2] Collect related code into the "cmd" directory
      Prior to this commit, the license.h was created by tools/Makefile,
      placed under the "include" directory, included from cmd/license.c,
      and deleted by the top-level Makefile.  It is not a good idea to
      scatter related code.
      [3] Drop the fixed-malloc size LICENSE_MAX
      Just allocate the minimum required size of buffer because we know
      the size of the original gpl-2.0.txt.
      [4] Fix more issues
      Terminate the buffer with zero to prevent puts() from over-running.
      Add "static" to do_license.
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
    • Masahiro Yamada's avatar
      cmd: add a new command "config" to show .config contents · 61304dbe
      Masahiro Yamada authored
      This feature is inspired by /proc/config.gz of Linux.  In Linux,
      if CONFIG_IKCONFIG is enabled, the ".config" file contents are
      embedded in the kernel image.  If CONFIG_IKCONFIG_PROC is also
      enabled, the ".config" contents are exposed to /proc/config.gz.
      Users can do "zcat /proc/config.gz" to check which config options
      are enabled on the running kernel image.
      The idea is almost the same here; if CONFIG_CMD_CONFIG is enabled,
      the ".config" contents are compressed and saved in the U-Boot image,
      then printed by the new command "config".
      The usage is quite simple.  Enable CONFIG_CMD_CONFIG, then run
       > config
      from the command line interface.  The ".config" contents will be
      printed on the console.
      This feature increases the U-Boot image size by about 4KB (this is
      mostly due to the gzip-compressed .config file).  By default, it is
      enabled only for Sandbox because we do not care about the memory
      footprint on it.  Of course, this feature is architecture agnostic,
      so you can enable it on any board if the image size increase is
      acceptable for you.
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
  4. 28 Jan, 2017 1 commit
  5. 27 Dec, 2016 1 commit
  6. 12 Dec, 2016 1 commit
  7. 03 Dec, 2016 2 commits
    • 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>
    • 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>
  8. 01 Dec, 2016 1 commit
    • 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
      Signed-off-by: default avatarTomas Melin <tomas.melin@vaisala.com>
  9. 27 Nov, 2016 1 commit
    • 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>
  10. 14 Nov, 2016 4 commits
  11. 11 Oct, 2016 1 commit
  12. 27 Sep, 2016 1 commit
    • Tom Rini's avatar
      dfu: Migrate to Kconfig · 6828e602
      Tom Rini authored
      Introduce a hidden USB_FUNCTION_DFU Kconfig option and select it for
      CMD_DFU (as we must have the DFU command enabled to do anything DFU).
      Make all of the entries in drivers/dfu/Kconfig depend on CMD_DFU and add
      options for all of the back end choices that DFU can make use of.
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Acked-by: default avatarLukasz Majewski <l.majewski@samsung.com>
  13. 26 Sep, 2016 1 commit
  14. 20 Aug, 2016 2 commits
  15. 24 Jun, 2016 1 commit
  16. 20 Jun, 2016 1 commit
    • Masahiro Yamada's avatar
      autoboot: add CONFIG_AUTOBOOT to allow to not compile autoboot.c · 41598c82
      Masahiro Yamada authored
      Since commit bb597c0e ("common: bootdelay: move CONFIG_BOOTDELAY
      into a Kconfig option"), CONFIG_BOOTDELAY is defined for all boards.
      Prior to that commit, it was allowed to unset CONFIG_BOOTDELAY to
      not compile common/autoboot.c, as described in common/Makefile:
        # This option is not just y/n - it can have a numeric value
        ifdef CONFIG_BOOTDELAY
        obj-y += autoboot.o
      It was a bit odd to enable/disable code with an integer type option,
      but it was how this option worked before that commit, and several
      boards actually unset it to opt out of the autoboot feature.
      This commit adds a new bool option, CONFIG_AUTOBOOT, and makes
      CONFIG_BOOTDELAY depend on it.
      I chose "default y" for this option because most boards use the
      autoboot.  I added "# CONFIG_AUTOBOOT is not set" for the boards that
      had not set CONFIG_BOOTDELAY prior to the bad commit.
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
  17. 23 May, 2016 4 commits
  18. 25 Apr, 2016 2 commits
  19. 18 Apr, 2016 1 commit
  20. 01 Apr, 2016 1 commit
    • Eric Nelson's avatar
      drivers: block: add block device cache · e40cf34a
      Eric Nelson authored
      Add a block device cache to speed up repeated reads of block devices by
      various filesystems.
      This small amount of cache can dramatically speed up filesystem
      operations by skipping repeated reads of common areas of a block
      device (typically directory structures).
      This has shown to have some benefit on FAT filesystem operations of
      loading a kernel and RAM disk, but more dramatic benefits on ext4
      filesystems when the kernel and/or RAM disk are spread across
      multiple extent header structures as described in commit fc0fc50f.
      The cache is implemented through a minimal list (block_cache) maintained
      in most-recently-used order and count of the current number of entries
      (cache_count). It uses a maximum block count setting to prevent copies
      of large block reads and an upper bound on the number of cached areas.
      The maximum number of entries in the cache defaults to 32 and the maximum
      number of blocks per cache entry has a default of 2, which has shown to
      produce the best results on testing of ext4 and FAT filesystems.
      The 'blkcache' command (enabled through CONFIG_CMD_BLOCK_CACHE) allows
      changing these values and can be used to tune for a particular filesystem
      Signed-off-by: default avatarEric Nelson <eric@nelint.com>
  21. 22 Mar, 2016 1 commit
  22. 16 Mar, 2016 1 commit
    • Alexander Graf's avatar
      efi_loader: Add "bootefi" command · b9939336
      Alexander Graf authored
      In order to execute an EFI application, we need to bridge the gap between
      U-Boot's notion of executing images and EFI's notion of doing the same.
      The best path forward IMHO here is to stick completely to the way U-Boot
      deals with payloads. You manually load them using whatever method to RAM
      and then have a simple boot command to execute them. So in our case, you
      would do
        # load mmc 0:1 $loadaddr grub.efi
        # bootefi $loadaddr
      which then gets you into a grub shell. Fdt information known to U-boot
      via the fdt addr command is also passed to the EFI payload.
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Tested-by: default avatarSimon Glass <sjg@chromium.org>
      [trini: Guard help text with CONFIG_SYS_LONGHELP]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
  23. 25 Jan, 2016 1 commit
    • Simon Glass's avatar
      Move all command code into its own directory · 72a8cf8d
      Simon Glass authored
      There are a lot of unrelated files in common, including all of the commands.
      Moving them into their own directory makes them easier to find and is more
      Some commands include non-command code, such as cmd_scsi.c. This should be
      sorted out at some point so that the function can be enabled with or without
      the associated command.
      Unfortunately, with m68k I get this error:
      m68k:  +   M5329AFEE
      +arch/m68k/cpu/mcf532x/start.o: In function `_start':
      +arch/m68k/cpu/mcf532x/start.S:159:(.text+0x452): relocation truncated to fit: R_68K_PC16 against symbol `board_init_f' defined in .text.board_init_f section in common/built-in.o
      I hope someone can shed some light on what this means. I hope it isn't
      depending on the position of code in the image.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      Acked-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
  24. 14 Jan, 2016 1 commit
  25. 20 Nov, 2015 1 commit
    • Simon Glass's avatar
      console: Add a console buffer · 9854a874
      Simon Glass authored
      It is useful to be able to record console output and provide console input
      via a buffer. This provides sandbox with the ability to run a command and
      check its output. If the console is set to silent then no visible output
      is generated.
      This also provides a means to fix the problem where tests produce unwanted
      output, such as errors or warnings. This can be confusing. We can instead
      set the console to silent and record this output. It can be checked later
      in the test if required.
      It is possible that this may prove useful for non-test situations. For
      example the console output may be suppressed for normal operations, but
      recorded and stored for access by the OS. That feature is not implemented
      at present.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
  26. 18 Nov, 2015 1 commit
  27. 13 Nov, 2015 1 commit