13 Jun, 2018

1 commit


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
     

14 Aug, 2017

1 commit

  • Add nvme commands in U-Boot command line.

    1. "nvme scan" - scan NVMe blk devices
    2. "nvme list" - show all available NVMe blk devices
    3. "nvme info" - show current or a specific NVMe blk device
    4. "nvme device" - show or set current device
    5. "nvme part" - print partition table
    6. "nvme read" - read data from NVMe blk device
    7. "nvme write" - write data to NVMe blk device

    Signed-off-by: Zhikang Zhang
    Signed-off-by: Wenbin Song
    Signed-off-by: Bin Meng
    Reviewed-by: Tom Rini

    Zhikang Zhang
     

12 Aug, 2017

3 commits


04 Jul, 2017

1 commit

  • There was for long time no activity in the 4xx area.
    We need to go further and convert to Kconfig, but it
    turned out, nobody is interested anymore in 4xx,
    so remove it.

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     

06 Jun, 2017

1 commit

  • With clang-3.8 we see warnings like:
    cmd/ethsw.c:304:6: warning: implicit conversion from
    enumeration type 'enum ethsw_keyword_opt_id' to different enumeration type
    'enum ethsw_keyword_id' [-Wenum-conversion]
    ethsw_id_pvid_no,
    ^~~~~~~~~~~~~~~~

    Because we have one enum for ethsw_keyword_id and a second enum for
    ethsw_keyword_opt_id. This ends up being safe as ethsw_keyword_opt_id
    explicitly starts after ethsw_keyword_id enum ends. Disable the
    warning here rather than collapse these into one enum and rely on
    comments to denote where optional keywords begin.

    Cc: Codrin Ciubotariu
    Cc: Joe Hershberger
    Signed-off-by: Tom Rini
    Acked-by: Joe Hershberger

    Tom Rini
     

23 May, 2017

2 commits


22 May, 2017

1 commit


30 Apr, 2017

1 commit


18 Apr, 2017

1 commit


15 Apr, 2017

2 commits


06 Apr, 2017

1 commit


09 Feb, 2017

2 commits

  • 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: Masahiro Yamada
    Reviewed-by: Simon Glass

    Masahiro Yamada
     
  • 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: Masahiro Yamada
    Reviewed-by: Simon Glass

    Masahiro Yamada
     

22 Jan, 2017

1 commit

  • Move all of the status LED feature to drivers/led/Kconfig.
    The LED status definitions were moved from the board configuration
    files to the defconfig files.

    TBD: Move all of the definitions in the include/status_led.h to the
    relevant board's defconfig files.

    Tested boards: CL-SOM-AM57x, CM-T335

    Signed-off-by: Uri Mashiach

    Uri Mashiach
     

12 Dec, 2016

1 commit


12 Oct, 2016

1 commit


10 Sep, 2016

1 commit

  • We only need the function found in cmd/disk.c when we have IDE, SCSI or
    USB_STORAGE enabled. While the first two are easy to get right, in the
    3rd case we assume that the set of cases where we do have USB and do not
    enable USB_STORAGE are small enough that we can take the small bloat of
    un-discarded strings on gcc prior to 6.x

    Signed-off-by: Tom Rini

    Tom Rini
     

20 Aug, 2016

1 commit

  • The bootz and booti commands rely on common functionality that is found
    in common/bootm.c and common/bootm_os.c. They do not however rely on
    the rest of cmd/bootm.c to be implemented so split them into their own
    files. Have various Makefiles include the required infrastructure for
    CONFIG_CMD_BOOT[IZ] as well as CONFIG_CMD_BOOTM. Move the declaration
    of 'images' over to common/bootm.c.

    Cc: Masahiro Yamada
    Signed-off-by: Tom Rini

    Tom Rini
     

25 Jun, 2016

1 commit


23 May, 2016

3 commits


17 May, 2016

2 commits

  • At present the SCSI command code includes both the command-processing code
    and the core SCSI functions and data structures.

    Separate the latter into its own file, adding functions as needed to avoid
    the command code accessing data structures directly. This functions use the
    new legacy block functions.

    With this commit:
    - There is no CONFIG option referenced from the command code
    - The concept of a 'current SCSI device' is confined to the command code

    This will make it easier to convert this code to driver model.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This option currently enables both the command and the SCSI functionality.
    Rename the existing option to CONFIG_SCSI since most of the code relates
    to the feature.

    Signed-off-by: Simon Glass

    Simon Glass
     

19 Apr, 2016

1 commit


02 Apr, 2016

1 commit

  • 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 fc0fc50.

    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
    layout.

    Signed-off-by: Eric Nelson

    Eric Nelson
     

16 Mar, 2016

1 commit

  • 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: Alexander Graf
    Reviewed-by: Simon Glass
    Tested-by: Simon Glass
    [trini: Guard help text with CONFIG_SYS_LONGHELP]
    Signed-off-by: Tom Rini

    Alexander Graf