17 Jun, 2014

2 commits


13 Jun, 2014

2 commits

  • This patch adds support for the Android boot-image format. The header
    file is from the Android project and got slightly alterted so the struct +
    its defines are not generic but have something like a namespace. The
    header file is from bootloader/legacy/include/boot/bootimg.h. The header
    parsing has been written from scratch and I looked at
    bootloader/legacy/usbloader/usbloader.c for some details.
    The image contains the physical address (load address) of the kernel and
    ramdisk. This address is considered only for the kernel image.
    The "second image" defined in the image header is currently not
    supported. I haven't found anything that is creating this.

    v3 (Rob Herring):
    This is based on http://patchwork.ozlabs.org/patch/126797/ with the
    following changes:
    - Rebased to current mainline
    - Moved android image handling to separate functions in
    common/image-android.c
    - s/u8/char/ in header to fix string function warnings
    - Use SPDX identifiers for licenses
    - Cleaned-up file source information:
    android_image.h is from file include/boot/bootimg.h in repository:
    https://android.googlesource.com/platform/bootable/bootloader/legacy
    The git commit hash is 4205b865141ff2e255fe1d3bd16de18e217ef06a
    usbloader.c would be from the same commit, but it does not appear
    to have been used for any actual code.
    v4:
    - s/andriod/android/
    - Use a separate flag ep_found to track if the entry point has been set
    rather than using a magic value.

    Cc: Wolfgang Denk
    Signed-off-by: Sebastian Andrzej Siewior
    Signed-off-by: Rob Herring
    Reviewed-by: Tom Rini
    Reviewed-by: Lukasz Majewski

    Sebastian Siewior
     
  • Support android features:
    fastboot, booti command and recovery for sabresd SD, sabresd eMMC,
    sabreauto SD, sabreauto NAND.

    For all booting media (SD, eMMC, NAND), inherits the partitions layout
    from v2009.08. Fastboot will detect the booting media to replace
    hardcoding fastboot device. SATA is not supported.

    FDT is supported to use the "unused" fields in bootimg header which
    requires the FDT to be combined into the boot.img.
    For non-FDT boot.img, the "unused" fields should left to NULL and is
    compatible to boot.

    Signed-off-by: Ye.Li
    Signed-off-by: Nitin Garg

    Nitin Garg
     

23 Mar, 2014

1 commit

  • I needed to be able to uncompress lzma files. I did this command
    based on unzip command and propose it if it could help.

    Signed-off-by: Patrice Bouchand
    Changed to work with sandbox
    Signed-off-by: Simon Glass

    Patrice Bouchand
     

18 Mar, 2014

1 commit


05 Mar, 2014

1 commit

  • As an example of how to write a uclass and a driver, provide a demo version
    of each, accessible through the 'demo' command.

    To use these with driver model, define CONFIG_CMD_DEMO and CONFIG_DM_DEMO.

    The two demo drivers are enabled with CONFIG_DM_DEMO_SIMPLE and
    CONFIG_DM_DEMO_SHAPE.

    Signed-off-by: Simon Glass
    Signed-off-by: Marek Vasut
    Signed-off-by: Pavel Herrmann
    Signed-off-by: Viktor Křivák
    Signed-off-by: Tomas Hlavacek

    Simon Glass
     

27 Feb, 2014

2 commits

  • Conflicts:
    arch/arm/cpu/armv7/config.mk
    board/ti/am43xx/mux.c
    include/configs/am43xx_evm.h

    Signed-off-by: Tom Rini

    Tom Rini
     
  • When we tell the compiler to optimize for ARMv7 (and ARMv6 for that
    matter) it assumes a default of SCTRL.A being cleared and unaligned
    accesses being allowed and fast at the hardware level. We set this bit
    and must pass along -mno-unaligned-access so that the compiler will
    still breakdown accesses and not trigger a data abort.

    To better help understand the requirements of the project with respect
    to unaligned memory access, the
    Documentation/unaligned-memory-access.txt file has been added as
    doc/README.unaligned-memory-access.txt and is taken from the v3.14-rc1
    tag of the kernel.

    Cc: Albert ARIBAUD
    Cc: Mans Rullgard
    Signed-off-by: Tom Rini

    Tom Rini
     

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

2 commits