21 Feb, 2014

1 commit


20 Feb, 2014

2 commits

  • Now we are ready to switch over to real Kbuild.

    This commit disables temporary scripts:
    scripts/{Makefile.build.tmp, Makefile.host.tmp}
    and enables real Kbuild scripts:
    scripts/{Makefile.build,Makefile.host,Makefile.lib}.

    This switch is triggered by the line in scripts/Kbuild.include
    -build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
    +build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj

    We need to adjust some build scripts for U-Boot.
    But smaller amount of modification is preferable.

    Additionally, we need to fix compiler flags which are
    locally added or removed.

    In Kbuild, it is not allowed to change CFLAGS locally.
    Instead, ccflags-y, asflags-y, cppflags-y,
    CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
    are prepared for that purpose.

    Signed-off-by: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     
  • This commit changes the working directory
    where the build process occurs.

    Before this commit, build process occurred under the source
    tree for both in-tree and out-of-tree build.

    That's why we needed to add $(obj) prefix to all generated
    files in makefiles like follows:
    $(obj)u-boot.bin: $(obj)u-boot

    Here, $(obj) is empty for in-tree build, whereas it points
    to the output directory for out-of-tree build.

    And our old build system changes the current working directory
    with "make -C " syntax when descending into the
    sub-directories.

    On the other hand, Kbuild uses a different idea
    to handle out-of-tree build and directory descending.

    The build process of Kbuild always occurs under the output tree.
    When "O=dir/to/store/output/files" is given, the build system
    changes the current working directory to that directory and
    restarts the make.

    Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj="
    syntax for descending into sub-directories.
    (We can write it like "make $(obj)=" with a shorthand.)
    This means the current working directory is always the top
    of the output directory.

    Signed-off-by: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     

19 Feb, 2014

1 commit


04 Feb, 2014

1 commit


25 Jan, 2014

1 commit


13 Dec, 2013

1 commit


25 Nov, 2013

1 commit


01 Nov, 2013

1 commit


21 Oct, 2013

1 commit


26 Jul, 2013

1 commit


24 Jul, 2013

1 commit


02 Jul, 2013

1 commit


26 Jun, 2013

2 commits


21 Jun, 2013

2 commits

  • Move the common makefile line shared by the SPL and non-SPL to the public area,
    so that we can avoid excessive SPL symbols. Some of them will be used by the
    SPL later.

    This patch is on top of the patch "common/Makefile: Add new symbol
    CONFIG_SPL_ENV_SUPPORT for environment in SPL".

    Signed-off-by: Ying Zhang
    Acked-by: Tom Rini
    Acked-by: Tom Rini
    Signed-off-by: Andy Fleming

    Ying Zhang
     
  • There will need the environment in SPL for reasons other than network
    support (in particular, hwconfig contains info for how to set up DDR).

    Add a new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT
    for environment in common/Makefile.

    Signed-off-by: Ying Zhang
    Reviewed-by: Tom Rini
    Signed-off-by: Andy Fleming

    Ying Zhang
     

30 May, 2013

1 commit


15 May, 2013

2 commits


13 May, 2013

1 commit


28 Apr, 2013

1 commit


12 Apr, 2013

1 commit


29 Mar, 2013

1 commit

  • The "bootmenu" command uses U-Boot menu interfaces and provides
    a simple mechanism for creating menus with several boot items.
    When running this command the menu will be assembled as defined
    by a set of environment variables which contain a title and
    command key-value pairs. The "Up" and "Down" keys are used for
    navigation through the items. Current active menu item is
    highlighted and can be selected using the "Enter" key.

    The command interprets and generates various ANSI escape
    sequencies, so for proper menu rendering and item selection
    the used terminal should support them.

    Signed-off-by: Pali Rohár
    [agust: various fixes and documentation updates]
    Signed-off-by: Anatolij Gustschin

    Pali Rohár
     

19 Mar, 2013

1 commit

  • This patch adds the USB Mass Storage Gadget to u-boot
    New command called "ums" is implemented to provide access
    to on-device embedded persistent memory.

    USB Mass Storage is supposed to work on top of the USB
    Gadget framework

    Signed-off-by: Lukasz Majewski
    Signed-off-by: Piotr Wilczek
    Signed-off-by: Kyungmin Park
    CC: Marek Vasut

    Lukasz Majewski
     

16 Mar, 2013

2 commits


05 Mar, 2013

1 commit


20 Dec, 2012

1 commit


14 Dec, 2012

3 commits

  • Currently just validates variable types as decimal, hexidecimal,
    boolean, ip address, and mac address.

    If the entry is not found in the env ".flags", then look in the static
    one. This allows the env to override the static definitions, but prevents
    the need to have every definition in the environment distracting you.

    Signed-off-by: Joe Hershberger

    Joe Hershberger
     
  • Add support for per-variable callbacks to the "hashtable" functions.

    Signed-off-by: Joe Hershberger

    !!!fix comment in callback

    Joe Hershberger
     
  • New command - "gpt" is supported. It restores the GPT partition table.
    It looks into the given environment variable for partitions definition.
    It can be enabled at target configuration file with CONFIG_CMD_GPT.

    Signed-off-by: Lukasz Majewski
    Signed-off-by: Piotr Wilczek
    Signed-off-by: Kyungmin Park

    Piotr Wilczek
     

12 Dec, 2012

6 commits

  • Provide u-boot console functions to access IO space registers. A no
    thrills implementation, accessing one register at a time.

    For example:
    boot > iod 80
    0080: 00000094
    boot > iod.w 80
    0080: 0094
    boot > iod.b 80
    0080: 94
    boot > iow.b 0x80 12
    boot > iod 0x80
    0080: 00000012

    Signed-off-by: Vadim Bendebury
    Signed-off-by: Simon Glass

    Vadim Bendebury
     
  • This implements a library for accessing EDID data from an LCD panel.
    This is used to obtain information about the panel such as its
    resolution and type.

    This is a tidied-up version of the original code pulled from
    https://github.com/ynezz/u-boot-edid.

    The changes we made are:
    - removed bit fields in the struct;
    - removed endianness cases in the struct;
    - fixed some wrong definitions;
    - fixed to fit 80 columns;
    - fixed some code styles.

    Signed-off-by: Tom Wai-Hong Tam
    Signed-off-by: Simon Glass

    Tom Wai-Hong Tam
     
  • This new command supports hashing SHA1 and SHA256. It could be extended
    to others such as MD5 and the CRC algorithms. The syntax is modeled on
    those:

    hash

    [* | ]

    to calculate a hash, and:

    hash -v

    [* | ]

    to verify a hash.

    Use CONFIG_CMD_HASH to enable the command, CONFIG_SHA1 to enable SHA1 and
    CONFIG_SHA256 to enable SHA256.

    The existing sha1sum command remains.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • We have a SHA1 command and want to add a SHA256 command also. Instead of
    duplicating the code, create a generic hash API which can process
    commands for different algorithms.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Sometimes data is on a block device and within a partition, but not in a
    particular filesystem.

    This commands permits reading raw data from a partition.

    Signed-off-by: Kenneth Waters
    Signed-off-by: Simon Glass

    Kenneth Waters
     
  • Gettime returns the current timer value. If CONFIG_SYS_HZ is defined
    then the timer value is also converted to seconds.

    Tegra20 (SeaBoard) # gettime
    Timer val: 7754
    Seconds : 7
    Remainder : 754
    sys_hz = 1000

    There has been some discussion about whether this is useful enough to
    be included in U-Boot. The following boards do not have CONFIG_SYS_HZ
    defined:

    M52277EVB
    M52277EVB_stmicro
    M53017EVB
    M54418TWR
    M54418TWR_nand_mii
    M54418TWR_nand_rmii
    M54418TWR_nand_rmii_lowfreq
    M54418TWR_serial_mii
    M54418TWR_serial_rmii

    Signed-off-by: Anton Staaf
    Signed-off-by: Simon Glass

    Anton Staaf
     

06 Dec, 2012

1 commit

  • With this patch, getenv_f() can be included easily into the SPL
    binary. With this, SPL boards can now use getenv_f() to read
    environment variables (e.g. to detect if the OS or U-Boot shall
    be executed).

    In the approach this is done for env stored in NOR flash, as this
    will be used by an upcoming MPC5200 board port.

    Signed-off-by: Stefan Roese

    Stefan Roese
     

15 Nov, 2012

1 commit

  • This patch adds command to test audio playback.
    sound init - Initialises the audio subsystem (i2s and wm8994 codec)
    sound play - Plays predefined the audio data when specified length
    and frequency.

    Signed-off-by: Rajeshwari Shinde
    Acked-by: Simon Glass
    Signed-off-by: Minkyu Kang

    Rajeshwari Shinde