21 Aug, 2016

12 commits


20 Aug, 2016

17 commits

  • When typing 'bootefi' from U-Boot shell, nothing outputs. Like other
    commands, return CMD_RET_USAGE so that it can print help message.

    Signed-off-by: Bin Meng
    Reviewed-by: Alexander Graf

    Bin Meng
     
  • The 'bootz' command is really only for ARM32 Linux Kernel 'zImage' files
    but has also been adapted for testing with sandbox. Given that sandbox
    is a test platform, don't add that logic under DISTRO_DEFAULTS.

    Cc: Hans de Goede
    Signed-off-by: Tom Rini

    Tom Rini
     
  • This command is used to boot ARM64 Linux.

    I made DISTRO_DEFAULTS select this option for ARM64 to respect
    include/config_distro_defaults.h.

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

    Masahiro Yamada
     
  • The bootz and booti commands rely on common functionality that is found
    in common/bootm.c and common/bootm_os.c. They do not however rely on
    the rest of cmd/bootm.c to be implemented so split them into their own
    files. Have various Makefiles include the required infrastructure for
    CONFIG_CMD_BOOT[IZ] as well as CONFIG_CMD_BOOTM. Move the declaration
    of 'images' over to common/bootm.c.

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

    Tom Rini
     
  • This adds a bunch of unit tests for the "fdt apply" command.

    They've all been run successfully in the sandbox. However, as you still
    require an out-of-tree dtc with overlay support, this is disabled by
    default.

    Acked-by: Simon Glass
    Acked-by: Pantelis Antoniou
    Signed-off-by: Maxime Ripard

    Maxime Ripard
     
  • The device tree overlays are a good way to deal with user-modifyable
    boards or boards with some kind of an expansion mechanism where we can
    easily plug new board in (like the BBB or the raspberry pi).

    However, so far, the usual mechanism to deal with it was to have in Linux
    some driver detecting the expansion boards plugged in and then request
    these overlays using the firmware interface.

    That works in most cases, but in some cases, you might want to have the
    overlays applied before the userspace comes in. Either because the new
    board requires some kind of an early initialization, or because your root
    filesystem is accessed through that expansion board.

    The easiest solution in such a case is to simply have the component before
    Linux applying that overlay, removing all these drawbacks.

    Reviewed-by: Stefan Agner
    Acked-by: Pantelis Antoniou
    Acked-by: Simon Glass
    Signed-off-by: Maxime Ripard

    Maxime Ripard
     
  • The device tree overlays are a good way to deal with user-modifyable
    boards or boards with some kind of an expansion mechanism where we can
    easily plug new board in (like the BBB, the Raspberry Pi or the CHIP).

    Add a new function to merge overlays with a base device tree.

    Signed-off-by: Maxime Ripard

    Maxime Ripard
     
  • Add a function to modify inplace only a portion of a property..

    This is especially useful when the property is an array of values, and you
    want to update one of them without changing the DT size.

    Signed-off-by: Maxime Ripard
    Acked-by: Simon Glass

    Maxime Ripard
     
  • Add a function to retrieve a writeable property only by the first
    characters of its name.

    Signed-off-by: Maxime Ripard

    Maxime Ripard
     
  • Add a namelen variant of fdt_path_offset to retrieve the node offset using
    only a fixed number of characters.

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

    Maxime Ripard
     
  • The function fdt_path_next_seperator had an obvious mispell. Fix it.

    Signed-off-by: Maxime Ripard

    Maxime Ripard
     
  • Add a function to retrieve the highest phandle in a given device tree.

    Signed-off-by: Maxime Ripard
    Reviewed-by: Stefan Agner
    Acked-by: Simon Glass

    Maxime Ripard
     
  • Implement a macro based on fdt_first_property_offset and
    fdt_next_property_offset that provides a convenience to iterate over all
    the properties of a given node.

    Signed-off-by: Maxime Ripard
    Acked-by: Simon Glass

    Maxime Ripard
     
  • The libfdt overlay support introduces a bunch of new includes and
    functions.

    Make sure we are able to build it by adding the needed glue.

    Signed-off-by: Maxime Ripard
    Acked-by: Simon Glass

    Maxime Ripard
     
  • vsprintf.h doesn't include the stdarg.h file, which means that it relies on
    the files that include vsprintf.h to include stdarg.h as well.

    Add an explicit include to avoid build errors when simply including that
    file.

    Acked-by: Simon Glass
    Acked-by: Pantelis Antoniou
    Signed-off-by: Maxime Ripard

    Maxime Ripard
     
  • Having dashes as a separator in the DTB name is a quite common practice.

    However, the current code to generate objects from DTBs assumes the
    separator is an underscore, leading to a compilation error when building a
    device tree with dashes.

    Replace all the dashes in the DTB name to generate the symbols name, which
    should solve this issue.

    Acked-by: Simon Glass
    Acked-by: Pantelis Antoniou
    Signed-off-by: Maxime Ripard

    Maxime Ripard
     
  • The current code only checks if the fdt subcommand is fdt addr by checking
    whether it starts with 'a'.

    Since this is a pretty widely used letter, narrow down that check a bit.

    Acked-by: Simon Glass
    Acked-by: Pantelis Antoniou
    Signed-off-by: Maxime Ripard

    Maxime Ripard
     

17 Aug, 2016

11 commits