21 Nov, 2018

3 commits


23 Oct, 2018

1 commit


22 Oct, 2018

1 commit


09 Oct, 2018

1 commit


08 Oct, 2018

4 commits

  • At present the tests run one after the other using a single CPU. This is
    not very efficient. Bring in the concurrencytest module and run the tests
    concurrently, using one process for each CPU by default. A -P option
    allows this to be overridden, which is necessary for code-coverage to
    function correctly.

    This requires fixing a few tests which are currently not fully
    independent.

    At some point we might consider doing this across all pytests in U-Boot.
    There is a pytest version that supports specifying the number of processes
    to use, but it did not work for me.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present this test runs binman twice, which means that the temporary
    files from the first run do not get cleaned up. Split this into two tests
    to fix this problem.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present 'make check' leaves some temporary directories around. Part of
    this is because we call tools.PrepareOutputDir() twice in some cases,
    without calling tools.FinaliseOutputDir() in between.

    Fix this.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This module is often available in the sandbox_spl build created by
    'make check'. Use this as a default path so that just typing 'binman -t'
    (without setting PYTHONPATH) will generally run the tests.

    Signed-off-by: Simon Glass

    Simon Glass
     

01 Oct, 2018

1 commit


30 Sep, 2018

11 commits

  • When we get a problem like overlapping regions it is sometimes hard to
    figure what what is going on. At present we don't write the map file in
    this case. However the file does provide useful information.

    Catch any packing errors and write a map file (if enabled with -m) to aid
    debugging.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • For sandbox we want to put ELF files in the image since that is what we
    need to execute. Add support for this.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Normally x86 platforms use the end-at-4gb option. This currently produces
    an FMAP with positions which have a large offset. The use of end-at-4gb is
    a useful convenience within binman, but we don't really want to export
    a map with these offsets.

    Fix this by subtracting the 'skip at start' parameter.

    Also put the code which convers names to fmap format, for clarity.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present sections have no record of their parent so it is not possible
    to traverse up the tree to the root and figure out the position of a
    section within the image.

    Change the constructor to record this information.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • When TPL is used on x86 we may want to program the microcode (at least for
    the first CPU) early in boot. Add support for this by refactoring the
    existing code to be more generic.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Sometimesi it us useful to be able to verify the content of entries with
    a hash. Add an easy way to do this in binman. The hash information can be
    retrieved from the device tree at run time.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Images and sections have the same attributes, since an image is mostly
    just a top-level section. Update the docs to explain this.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • It is useful to have entries which can grow automatically to fill
    available space. Add support for this.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • In some cases it is useful to add a group of files to the image and be
    able to access them at run-time. Of course it is possible to generate
    the binman config file with a set of blobs each with a filename. But for
    convenience, add an entry type which can do this.

    Add required support (for adding nodes and string properties) into the
    state module.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present if there is only a zero-size entry in a section this is
    reported as an error, e.g.:

    Offset 0x0 (0) is outside the section starting at 0x0 (0)

    Adjust the logic in CheckEntries() to avoid this.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add support for compressing blob entries. This can help reduce image sizes
    for many types of data. It requires that the firmware be able to
    decompress the data at run-time.

    Signed-off-by: Simon Glass

    Simon Glass
     

29 Sep, 2018

14 commits


28 Sep, 2018

2 commits

  • This entry contains the PowerPC mpc85xx boot page and resetvec
    sections.

    Signed-off-by: Jagdish Gediya
    Reviewed-by: Simon Glass
    Reviewed-by: Bin Meng
    Reviewed-by: York Sun

    Jagdish Gediya
     
  • Currently binman calculates '_skip_at_start' based on 'end-at-4gb'
    property and it is used for x86 images.

    For PowerPC mpc85xx based CPU, CONFIG_SYS_TEXT_BASE is the entry
    offset of the first entry. It can be 0xeff40000 or 0xfff40000 for
    nor flash boot, 0x201000 for sd boot etc, so "_skip_at_start"
    should be set to CONFIG_SYS_TEXT_BASE.

    'end-at-4gb' property is not applicable where CONFIG_SYS_TEXT_BASE +
    Image size != 4gb.

    Add new property 'skip-at-start' in Section class so that
    '_skip_at_start' can be calculated either based on 'end-at-4gb'
    or based on "skip-at-start".

    Add a test case to check that 'skip-at-start' and 'end-at-4gb'
    property can't be used together.

    Signed-off-by: Jagdish Gediya
    Reviewed-by: Bin Meng
    Reviewed-by: Simon Glass
    Reviewed-by: York Sun

    Jagdish Gediya
     

18 Sep, 2018

1 commit


02 Aug, 2018

1 commit

  • At present this function takes a filename, but it is better to use an Fdt
    object so that the caller can control this, perhaps obtainint the device
    tree from a bytearray. Update the method accordingly and also fix a
    confusing parameter name.

    Signed-off-by: Simon Glass

    Simon Glass