25 Jan, 2014

1 commit


22 Jan, 2014

1 commit

  • Using the TPL method for nand boot by sram was already
    supported. Here add some code for mpc85xx ifc nand boot.

    - For ifc, elbc, esdhc, espi, all need the SPL without
    section .resetvec.
    - Use a clear function name for nand spl boot.
    - Add CONFIG_SPL_DRIVERS_MISC_SUPPORT to compile the fsl_ifc.c
    in spl/Makefile;

    Signed-off-by: Po Liu
    Acked-by: Scott Wood
    Reviewed-by: York Sun

    Po Liu
     

14 Jan, 2014

1 commit


10 Jan, 2014

1 commit


30 Dec, 2013

1 commit

  • When variable size SPL is used, the BL1 expects the SPL to be
    encapsulated differently: instead of putting the checksum at a fixed
    offset in the SPL blob, prepend the blob with a header including the
    size and the checksum.

    The enhancements include
    - adding a command line option, '--vs' to indicate the need for the
    variable size encapsulation
    - padding the fixed size encapsulated blob with 0xff instead of random
    memory contents
    - do not silently truncate the input file, report error instead
    - no need to explicitly closing files/freeing memory, this all happens
    on exit; removing cleanups it makes code clearer
    - profuse commenting
    - modify Makefile to allow enabling the new feature per board

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

    Rajeshwari Birje
     

16 Dec, 2013

1 commit


13 Dec, 2013

4 commits


26 Nov, 2013

1 commit


18 Nov, 2013

4 commits


01 Nov, 2013

6 commits

  • We have converted all makefiles needed to build $(LIBS).

    Until this commit we used to grep switch so that U-Boot style
    and Kbuild style makefiles coexist.
    But we do not need any more.

    Goint forward, use always Kbuild style Makefile when adding
    a new Makefile

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • This patch moves S5PC, EXYNOS specific directory entries
    from the toplevel Makefile to arch/arm/cpu/armv7/Makefile
    using Kbuild descending feature.

    Signed-off-by: Masahiro Yamada
    Cc: Minkyu Kang

    Masahiro Yamada
     
  • This patch moves OMAP specific directory entries
    from the toplevel Makefile and spl/Makefile
    to arch/arm/cpu/armv7/Makefile using Kbuild descending feature.

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

    Masahiro Yamada
     
  • This patch moves Tegra specific directory entries
    from the toplevel Makefile and spl/Makefile
    to arch/arm/cpu/*/Makefile using Kbuild descending feature.

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

    Masahiro Yamada
     
  • Multiple targets are included in arch/arm/imx-common/Makefile
    In order to refactor it,
    we need to tweak Makefile and spl/Makefile.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Every makefile in sub directories has common lines
    at the top and the bottom.
    This commit pushes the common parts into script/Makefile.build.

    Going forward sub-makefiles only need to describe this part:

    COBJS := ...
    COBJS += ...
    SOBJS := ...

    But using obj-y is preferable to prepare for switching to Kbuild.

    The conventional (non-Kbuild) Makefile style is still supported.
    This is achieved by greping the Makefile before entering into it.
    U-Boot conventional sub makefiles always include some other makefiles.
    So the build system searches a line beginning with "include" keyword
    in the makefile in order to distinguish which style it is.
    If the Makefile include a "include" line, we assume it is a conventional
    U-Boot style. Otherwise, it is treated as a Kbuild-style makefile.

    With this tweak, we can switch sub-makefiles
    from U-Boot style to Kbuild style little by little.

    obj-y := foo/
    syntax (descending into the sub directory) is not supportd yet.
    It will be implemented in the upcomming commit.

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

    Masahiro Yamada
     

20 Sep, 2013

1 commit


04 Sep, 2013

1 commit


28 Aug, 2013

1 commit


21 Aug, 2013

2 commits

  • Due to the nand SPL on some board(e.g. P1022DS)has a size limit, it can
    not be more than 4K. So, the SPL cannot initialize the DDR with the SPD
    code. This patch introduces TPL to enable a loader stub that is loaded
    by the code from the SPL. It initializes the DDR with the SPD or other
    operations.

    The TPL's size is sizeable, the maximum size is decided by the memory's
    size that TPL runs. It initializes the DDR through SPD code, and copys
    final uboot image to DDR. So there are three stage uboot images:
    * spl_boot, * tpl_boot, * final uboot image

    Signed-off-by: Ying Zhang
    Acked-by: York Sun

    Ying Zhang
     
  • The code from the internal on-chip ROM. It loads the final uboot image
    into DDR, then jump to it to begin execution.

    The SPL's size is sizeable, the maximum size must not exceed the size of L2
    SRAM. It initializes the DDR through SPD code, and copys final uboot image
    to DDR. So there are two stage uboot images:
    * spl_boot, 96KB size. The env variables are copied to L2 SRAM, so that
    ddr spd code can get the interleaving mode setting in env. It loads
    final uboot image from offset 96KB.
    * final uboot image, size is variable depends on the functions enabled.

    Signed-off-by: Ying Zhang
    Acked-by: York Sun

    Ying Zhang
     

20 Aug, 2013

1 commit

  • SPL defines CONFIG_SPL_BUILD but this does not percolate to the
    autoconf.mk Makefile. As a result the build breaks when
    CONFIG_SPL_BUILD is used in the board-specific include header file. With
    this, there is a possibility of having a CONFIG option defined in the
    header file but not defined in the Makefile causing all kinds of build
    failure and problems.

    It also messes things for up, for example, when one might want to
    undefine options to keep the SPL small and doesn't want to be stuck with
    the CONFIG options used for U-boot. Lastly, this also avoids defining
    special CONFIG_SPL_ variables for cases where some options are required
    in U-boot but not in SPL.

    We add a spl-autoconf.mk rule that is generated for SPL with the
    CONFIG_SPL_BUILD flag and conditionally include it for SPL builds.

    Signed-off-by: Joel Fernandes
    Signed-off-by: Ying Zhang

    Joel Fernandes
     

15 Aug, 2013

1 commit


24 Jul, 2013

1 commit


19 Jun, 2013

1 commit


04 Jun, 2013

1 commit


16 May, 2013

1 commit


05 May, 2013

2 commits


22 Apr, 2013

1 commit

  • This patch moves the following functions into the imx-common
    directory:

    - mxs_wait_mask_set()
    - mxs_wait_mask_clr()
    - mxs_reset_block()

    These are currently used by i.MX28. But the upcoming GPMI NAND port
    for i.MX6 will also use these functions. So lets move them to a
    common location to re-use them.

    Signed-off-by: Stefan Roese
    Cc: Stefano Babic
    Cc: Marek Vasut
    Cc: Fabio Estevam

    Stefan Roese
     

25 Mar, 2013

1 commit


13 Mar, 2013

2 commits

  • Refactor linker-generated array code so that symbols
    which were previously linker-generated are now compiler-
    generated. This causes relocation records of type
    R_ARM_ABS32 to become R_ARM_RELATIVE, which makes
    code which uses LGA able to run before relocation as
    well as after.

    Note: this affects more than ARM targets, as linker-
    lists span possibly all target architectures, notably
    PowerPC.

    Conflicts:
    arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds
    arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds
    arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
    board/ait/cam_enc_4xx/u-boot-spl.lds
    board/davinci/da8xxevm/u-boot-spl-da850evm.lds
    board/davinci/da8xxevm/u-boot-spl-hawk.lds
    board/vpac270/u-boot-spl.lds

    Signed-off-by: Albert ARIBAUD

    Albert ARIBAUD
     
  • Many SPL linker scripts needlessly include linker lists (aka LGAs).
    Remove them whenever possible; keep it only in the seven am335x_evm
    variants (am335x_evm, am335x_evm_uart[1-5], am335x_evm_spiboot),
    where there is actual content in output section .u_boot_list.

    This commit keeps all u-boot.bin and u-boot-spl.bin in ARM targets
    byte-identical.

    Signed-off-by: Albert ARIBAUD

    Albert ARIBAUD
     

19 Feb, 2013

1 commit

  • In case of usbeth booting just call net_load_image("usb_ether").
    This patch also adds CONFIG_SPL_USBETH_SUPPORT and
    CONFIG_SPL_MUSB_NEW_SUPPORT config options to enable linking of SPL
    against USB gagdet support and new MUSB driver resp.

    Signed-off-by: Ilya Yanok

    Ilya Yanok
     

03 Feb, 2013

1 commit