08 Nov, 2014

14 commits

  • This commit imports updates of scripts/Makefile.host
    from Linux 3.18-rc1.

    Imported commits are:

    [1] commit d8d9efe22709 by Masahiro Yamada
    kbuild: fix a typo in scripts/Makefile.host

    [2] commit edb950c17de0 by Masahiro Yamada
    kbuild: fix a bug of C++ host program handling

    [3] commit 62e2210798ed by Masahiro Yamada
    kbuild: drop shared library support from Makefile.host

    [4] commit 663935593915 by Masahiro Yamada
    kbuild: clean up scripts/Makefile.host

    [5] commit 1791ff7179f6 by Masahiro Yamada
    kbuild: clean-up and bug fix of scripts/Makefile.host

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Now we stick to Linux Kernel's build system, so squash
    "clobber" to "clean" target.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • run_command() returns success even if the command had a syntax error;
    correct this behaviour.

    Signed-off-by: Rabin Vincent
    Acked-by: Simon Glass <sjg@chromium.org)

    Rabin Vincent
     
  • Hush segfaults if it sees a syntax error while attempting to parse a
    command:

    $ ./u-boot -c "'"
    ...
    syntax error
    Segmentation fault (core dumped)

    This is due to a NULL pointer dereference of in_str->p in static_peek().
    The problem is that the exit condition for the loop in
    parse_stream_outer() checks for rcode not being -1, but rcode is only
    ever 0 or 1.

    Signed-off-by: Rabin Vincent
    Acked-by: Simon Glass <sjg@chromium.org)

    Rabin Vincent
     
  • Attempting to run:
    - an empty string
    - a string with just spaces

    returns different error codes, 1 for the empty string and 0
    for the string with just spaces. Make both of them return
    0 for consistency.

    Signed-off-by: Rabin Vincent
    Acked-by: Simon Glass <sjg@chromium.org)

    Rabin Vincent
     
  • sandbox crashes if a variable is set in the -c command, because
    hush's top_vars is not allocated. Call cli_init() from sandbox
    to ensure this is done before we execute the -c command.

    $ ./u-boot -c 'a=1'
    ...
    Segmentation fault (core dumped)

    Signed-off-by: Rabin Vincent
    Acked-by: Simon Glass <sjg@chromium.org)

    Rabin Vincent
     
  • Attempting to run the sandbox leads to a segfault, because some dynamic
    libraries (outside of u-boot) attempt to use malloc() to allocate memory
    before u-boot's gd variable is initialized.

    Check for gd not being NULL in the SYS_MALLOC_F_LEN handling, so that
    malloc() doesn't crash when called at this point.

    $ gdb -q --args ./u-boot
    (gdb) r
    Program received signal SIGSEGV, Segmentation fault.
    0x0000000000412b9b in malloc (bytes=bytes@entry=37) at common/dlmalloc.c:2184
    2184 if (!(gd->flags & GD_FLG_RELOC)) {
    (gdb) p gd
    $1 = (gd_t *) 0x0
    (gdb) bt
    #0 0x0000000000412b9b in malloc (bytes=bytes@entry=37) at common/dlmalloc.c:2184
    #1 0x00007ffff75bf8e1 in set_binding_values (domainname=0x7ffff11f4f12 "libgpg-error", dirnamep=0x7fffffffe168, codesetp=0x0)
    at bindtextdom.c:228
    #2 0x00007ffff75bfb4c in set_binding_values (codesetp=0x0, dirnamep=0x7fffffffe168, domainname=) at bindtextdom.c:350
    #3 __bindtextdomain (domainname=, dirname=0x7ffff11f4f00 "/usr/share/locale") at bindtextdom.c:348
    #4 0x00007ffff11eca17 in ?? () from /lib/x86_64-linux-gnu/libgpg-error.so.0
    #5 0x00007ffff7dea9fa in call_init (l=, argc=argc@entry=1, argv=argv@entry=0x7fffffffe208,
    env=env@entry=0x7fffffffe218) at dl-init.c:78
    #6 0x00007ffff7deaae3 in call_init (env=0x7fffffffe218, argv=0x7fffffffe208, argc=1, l=) at dl-init.c:36
    #7 _dl_init (main_map=0x7ffff7ffe1a8, argc=1, argv=0x7fffffffe208, env=0x7fffffffe218) at dl-init.c:126
    #8 0x00007ffff7ddd1ca in _dl_start_user () from /lib64/ld-linux-x86-64.so.2

    Signed-off-by: Rabin Vincent
    Acked-by: Simon Glass

    Rabin Vincent
     
  • The pmic_spi_free function isn't ever used, and as the frameworks stand
    today, cannot be, so remove it. Integrate the probe function into
    pmic_reg as it's not really a "probe" today. Finally, add an err label
    for the common failure cases.

    Cc: Lukasz Majewski
    Cc: Przemyslaw Marczak
    Cc: Stefano Babic
    Signed-off-by: Tom Rini
    Acked-by: Stefano Babic

    Tom Rini
     
  • I believe that when no DTB is around we should return 1.
    This why I fixed such scenarious to not return zero anymore.
    Else kernel might get NULL pointer to DTB which doesn't exists.

    Signed-off-by: Noam Camus

    Noam Camus
     
  • Signed-off-by: Anatolij Gustschin

    Anatolij Gustschin
     
  • Make sure to keep the MAC address programmed in the SMC911x ADDRH
    and ADDRL registers. Linux can read those registers to determine
    the MAC address on EEPROM-less configurations.

    Signed-off-by: Marek Vasut
    Cc: Joe Hershberger
    Cc: Tom Rini

    Marek Vasut
     
  • Sort drivers/mmc makefile, as requested by wd.

    Signed-off-by: Pavel Machek
    Acked-by: Chin Liang See

    Pavel Machek
     
  • Commit 0f605c1501f6 (Start the deprecation process for generic board)
    added a run-time warning message. Let's be noisier for non-generic
    boards to inform the dead line of the conversion.

    This commit intentionally outputs a warning message to stdout.
    We still have many unconverted boards. If we print the message
    to stderr, MAKEALL and buildman will report tons of broken boards
    and really important information will be buried.

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

    Masahiro Yamada
     
  • Tom Rini
     

07 Nov, 2014

22 commits


06 Nov, 2014

4 commits