07 Apr, 2014

1 commit

  • Clock Manager driver will be called to reconfigure all the
    clocks setting based on user input. The input are passed to
    Preloader through handoff files

    Signed-off-by: Chin Liang See
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    CC: Pavel Machek
    Cc: Dinh Nguyen
    Acked-by: Pavel Machek

    Chin Liang See
     

04 Apr, 2014

3 commits

  • This patch adds the groundwork for generating signed BootStream, which
    can be used by the HAB library in i.MX28. We are adding a new target,
    u-boot-signed.sb , since the process for generating regular non-signed
    BootStream is much easier. Moreover, the signed bootstream depends on
    external _proprietary_ _binary-only_ tool from Freescale called 'cst',
    which is available only under NDA.

    To make things even uglier, the CST or HAB mandates a kind-of circular
    dependency. The problem is, unlike the regular IVT, which is generated
    by mxsimage, the IVT for signed boot must be generated by hand here due
    to special demands of the CST. The U-Boot binary (or SPL binary) and IVT
    are then signed by the CST as a one block. But here is the problem. The
    size of the entire image (U-Boot, IVT, CST blocks) must be appended at
    the end of IVT. But the size of the entire image is not known until the
    CST has finished signing the U-Boot and IVT. We solve this by expecting
    the CST block to be always 3904B (which it is in case two files, U-Boot
    and the hand-made IVT, are signed in the CST block).

    Signed-off-by: Marek Vasut
    Cc: Stefano Babic

    Marek Vasut
     
  • Conflicts:
    arch/arm/cpu/arm926ejs/mxs/mxsimage.mx23.cfg
    arch/arm/cpu/arm926ejs/mxs/mxsimage.mx28.cfg

    Signed-off-by: Stefano Babic

    Stefano Babic
     
  • This reverts commit 53e6b14e037c9f72e6d03244c32d8d597e2e0234.

    Patch does not merge anymore with u-boot-arm and must be rebased.

    Signed-off-by: Stefano Babic

    Stefano Babic
     

02 Apr, 2014

3 commits


01 Apr, 2014

4 commits

  • Add support for serial console into the i.MX23/i.MX28 SPL. A full,
    uncrippled serial console support comes very helpful when debugging
    various spectacular hardware bringup issues early in the process.
    Because we do not use SPL framework, but have our own minimalistic
    SPL, which is compatible with the i.MX23/i.MX28 BootROM, we do not
    use preloader_console_init(), but instead use a similar function to
    start the console. Nonetheless, to avoid blowing up the size of the
    SPL binary, this support is enabled only if CONFIG_SPL_SERIAL_SUPPORT
    is defined, which is disabled by default.

    Signed-off-by: Marek Vasut
    Cc: Stefano Babic

    Marek Vasut
     
  • Set the GD pointer in the SPL to a defined symbol so various
    functions from U-Boot can be used without adverse side effects.

    Signed-off-by: Marek Vasut
    Cc: Stefano Babic

    Marek Vasut
     
  • This patch adds the groundwork for generating signed BootStream, which
    can be used by the HAB library in i.MX28. We are adding a new target,
    u-boot-signed.sb , since the process for generating regular non-signed
    BootStream is much easier. Moreover, the signed bootstream depends on
    external _proprietary_ _binary-only_ tool from Freescale called 'cst',
    which is available only under NDA.

    To make things even uglier, the CST or HAB mandates a kind-of circular
    dependency. The problem is, unlike the regular IVT, which is generated
    by mxsimage, the IVT for signed boot must be generated by hand here due
    to special demands of the CST. The U-Boot binary (or SPL binary) and IVT
    are then signed by the CST as a one block. But here is the problem. The
    size of the entire image (U-Boot, IVT, CST blocks) must be appended at
    the end of IVT. But the size of the entire image is not known until the
    CST has finished signing the U-Boot and IVT. We solve this by expecting
    the CST block to be always 3904B (which it is in case two files, U-Boot
    and the hand-made IVT, are signed in the CST block).

    Signed-off-by: Marek Vasut
    Cc: Stefano Babic

    Marek Vasut
     
  • When using HAB, there are additional special requirements on the placement of
    U-Boot and the U-Boot SPL in memory. To fullfill these, this patch moves the
    U-Boot binary a little further from the begining of the DRAM, so the HAB CST
    and IVT can be placed in front of the U-Boot binary. This is necessary, since
    both the U-Boot and the IVT must be contained in single CST signature. To
    make things worse, the IVT must be concatenated with one more entry at it's
    end, that is the length of the entire CST signature, IVT and U-Boot binary
    in memory. By placing the blocks in this order -- CST, IVT, U-Boot, we can
    easily align them all and then produce the length field as needed.

    As for the SPL, on i.MX23/i.MX28, the SPL size is limited to 32 KiB, thus
    we place the IVT at 0x8000 offset, CST right past IVT and claim the size
    is correct. The HAB library accepts this setup.

    Finally, to make sure the vectoring in SPL still works even after moving
    the SPL from 0x0 to 0x1000, we add a small function which copies the
    vectoring code and tables to 0x0. This is fine, since the vectoring code
    is position independent.

    Signed-off-by: Marek Vasut
    Cc: Stefano Babic

    Marek Vasut
     

25 Mar, 2014

1 commit


18 Mar, 2014

9 commits

  • When jumping from one sandbox U-Boot to another in sandbox, the RAM buffer
    is preserved in the jump by using a temporary file. Add an option to tell
    the receiving U-Boot to remove this file when it is no longer needed.

    Similarly the old U-Boot image is left behind in this case. We cannot delete
    it immediately since gdb cannot then find its debug symbols. Delete it just
    before exiting.

    Together these changes ensure that temporary files are removed both for
    memory and U-Boot.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • It is useful for Cltl-C to be handled by U-Boot as it is on other boards.
    But it is also useful to be able to terminate U-Boot with Ctrl-C.

    Add an option to enable signals while in raw mode, and make this the
    default. Add an option to leave the terminal cooked, which is useful for
    redirecting output.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add a simple LCD driver which uses SDL to display the image. We update the
    image regularly, while still providing for reasonable performance.

    Adjust the common lcd code to support sandbox.

    For command-line runs we do not want the LCD to be displayed, so add a
    --show_lcd option to enable it.

    Tested-by: Che-Liang Chiou
    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add a sound driver for sandbox, which uses SDL.

    Tested-by: Che-Liang Chiou
    Signed-off-by: Simon Glass

    Simon Glass
     
  • SDL (Simple DirectMedia Layer - see www.libsdl.org) is a library which
    provides simple graphics and sound features. It works under X11 and also
    with a simple frame buffer interface. It is ideally suited to sandbox
    U-Boot since it fits nicely with the low-level feature set required by
    U-Boot. For example, U-Boot has its own font drawing routines, its own
    keyboard processing and just needs raw sound output.

    We can use SDL to provide emulation of these basic functions for sandbox.
    This significantly expands the testing that is possible with sandbox.

    Add a basic SDL library which we will use in future commits.

    Tested-by: Che-Liang Chiou
    Signed-off-by: Simon Glass

    Simon Glass
     
  • In order to support the 'go' command we allow the jumping U-Boot to pass its
    filename to the new U-Boot image. This can then be used to delete that image
    if required.

    Reviewed-by: Simon Glass
    Tested-by: Che-Liang Chiou
    Signed-off-by: Simon Glass

    Simon Glass
     
  • For some tests it is useful to be able to run U-Boot again but pass on the
    same memory contents. Add a function to achieve this.

    Reviewed-by: Simon Glass
    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add an LCD display and keyboard to the sandbox device tree so that these
    features can be used.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This function does not actually change the pointer contents, so use const
    so that functions which have a const pointer do not need to cast.

    Signed-off-by: Simon Glass

    Simon Glass
     

14 Mar, 2014

2 commits


13 Mar, 2014

9 commits

  • Squash these warnings in pinmux.c found with GCC 4.8:

    /arch/arm/cpu/armv7/exynos/pinmux.c: In function 'exynos_pinmux_config':
    /arch/arm/cpu/armv7/exynos/pinmux.c:687:28: warning: 'count' may be used uninitialized in this function [-Wmaybe-uninitialized]
    for (i = start; i < start + count; i++) {
    ^
    /arch/arm/cpu/armv7/exynos/pinmux.c:663:16: note: 'count' was declared here
    int i, start, count;
    ^
    /arch/arm/cpu/armv7/exynos/pinmux.c:687:28: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized]
    for (i = start; i < start + count; i++) {
    ^
    /arch/arm/cpu/armv7/exynos/pinmux.c:663:9: note: 'start' was declared here
    int i, start, count;
    ^
    /arch/arm/cpu/armv7/exynos/pinmux.c:689:19: warning: 'bank' may be used uninitialized in this function [-Wmaybe-uninitialized]
    s5p_gpio_cfg_pin(bank, i, GPIO_FUNC(0x2));
    ^
    /arch/arm/cpu/armv7/exynos/pinmux.c:662:24: note: 'bank' was declared here
    struct s5p_gpio_bank *bank;
    ^
    /arch/arm/cpu/armv7/exynos/pinmux.c: In function 'exynos_pinmux_config':
    /arch/arm/cpu/armv7/exynos/pinmux.c:687:28: warning: 'count' may be used uninitialized in this function [-Wmaybe-uninitialized]
    for (i = start; i < start + count; i++) {
    ^
    /arch/arm/cpu/armv7/exynos/pinmux.c:663:16: note: 'count' was declared here
    int i, start, count;
    ^
    /arch/arm/cpu/armv7/exynos/pinmux.c:687:28: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized]
    for (i = start; i < start + count; i++) {
    ^
    /arch/arm/cpu/armv7/exynos/pinmux.c:663:9: note: 'start' was declared here
    int i, start, count;
    ^
    /arch/arm/cpu/armv7/exynos/pinmux.c:689:19: warning: 'bank' may be used uninitialized in this function [-Wmaybe-uninitialized]
    s5p_gpio_cfg_pin(bank, i, GPIO_FUNC(0x2));
    ^
    /arch/arm/cpu/armv7/exynos/pinmux.c:662:24: note: 'bank' was declared here
    struct s5p_gpio_bank *bank;
    ^

    Note that the warning is bogus, the function can never be called with invalid
    'peripheral' argument. GCC just cannot analyze this.

    Signed-off-by: Marek Vasut
    Cc: Naveen Krishna Chatradhi
    Cc: Akshay Saraswat
    Cc: Simon Glass
    Cc: Tom Rini
    Acked-by: Simon Glass
    Acked-by: Rajeshwari S Shinde
    Signed-off-by: Lukasz Majewski
    Signed-off-by: Minkyu Kang

    Marek Vasut
     
  • Prior to Kbuild, $(OBJTREE) was used for pointing to the
    top of build directory with absolute path.

    In Kbuild style, $(objtree) is used instead.
    This commit renames OBJTREE to objtree and delete the
    defition of OBJTREE.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Prior to Kbuild, $(TOPDIR) or $(SRCTREE) was used for
    pointing to the top of source directory.
    (No difference between the two.)

    In Kbuild style, $(srctree) is used instead.
    This commit renames TOPDIR to srctree and delete the
    defition of TOPDIR.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Pull out "$(SRCTREE)/" from CONFIG_SYS_KWD_CONFIG
    and push it into the top Makefile.

    Signed-off-by: Masahiro Yamada
    Cc: Michael Walle
    Cc: Simon Guinot
    Cc: Dave Purdy
    Cc: Stefan Herbrechtsmeier
    Cc: Luka Perkov
    Cc: Valentin Longchamp
    Cc: Jason Cooper
    Cc: Siddarth Gore
    Cc: Prafulla Wadaskar
    Cc: Eric Cooper
    Cc: Suriyan Ramasami

    Masahiro Yamada
     
  • $(SRCTREE)/$(CPUDIR)/u-boot.lds is our default location
    of arch-specific linker script.

    Remove redundant definitions in
    arch/{arc,microblaze,openrisc}/config.mk.

    Signed-off-by: Masahiro Yamada
    Cc: Alexey Brodkin
    Cc: Stefan Kristiansson
    Acked-by: Michal Simek

    Masahiro Yamada
     
  • Signed-off-by: Masahiro Yamada
    Cc: Simon Glass

    Masahiro Yamada
     
  • Signed-off-by: Masahiro Yamada
    Cc: Simon Glass

    Masahiro Yamada
     
  • Signed-off-by: Masahiro Yamada
    Cc: Fabio Estevam
    Cc: Otavio Salvador
    Cc: Lauri Hintsala
    Acked-by: Marek Vasut

    Masahiro Yamada
     
  • The s_init function is only called on SPL or XIP cases, so lets only
    build it for them. This makes the #if logic within the function a bit
    clearer as to when we are or are not calling things, and makes it easier
    to see that for example preloader_console_init isn't ever called in the
    non-XIP full U-Boot case.

    Signed-off-by: Tom Rini

    Tom Rini
     

12 Mar, 2014

8 commits