18 Dec, 2017

1 commit


29 Nov, 2017

1 commit


28 Nov, 2017

1 commit

  • The patch is adding external pmufw "Platform Management Unit firmware"
    to boot.bin image. Boot.bin is a Xilinx format which bootrom is capable
    to read and boot the system. pmufw is copied to the header data section
    follows by u-boot-spl.bin. pmufw is consumed by PMU unit (Microblaze)
    and SPL runs on a53-0.

    This is generated command line when PMUFW_INIT_FILE is setup.

    ./tools/mkimage -T zynqmpimage -R ./"" -n
    ./"board/xilinx/zynqmp/pmufw.bin" -d spl/u-boot-spl.bin spl/boot.bin

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

    Michal Simek
     

28 Dec, 2016

1 commit

  • This patch is fixing missing fclose() calls
    in error patch introduced by:
    "tools: mkimage: Use fstat instead of stat to avoid malicious hacks"
    (sha1: ebe0f53f48e8f9ecc823e533a85b05c13638c350)

    Reported-by: Coverity (CID: 155064, 155065)
    Signed-off-by: Michal Simek
    Reviewed-by: Simon Glass

    Michal Simek
     

09 Dec, 2016

2 commits

  • The patch is fixing:
    "tools: mkimage: Check if file is regular file"
    (sha1: 56c7e8015509312240b1ee15f2ff74510939a45d)
    which contains two issues reported by Coverity
    Unchecked return value from stat and incorrect calling sequence where
    attack can happen between calling stat and fopen.
    Using pair in opposite order (fopen and fstat) is fixing this issue
    because fstat is using the same file descriptor (FILE *).

    Also fixing issue with:
    "tools: mkimage: Add support for initialization table for Zynq and
    ZynqMP" (sha1: 3b6460809c2a28360029c1c48247648fac4455c9)
    where file wasn't checked that it is regular file.

    Reported-by: Coverity (CID: 154711, 154712)
    Signed-off-by: Michal Simek
    Reviewed-by: Tom Rini

    Michal Simek
     
  • This reverts commit 3edc0c252257e4afed163a3a74aba24a5509b198, reversing
    changes made to bb135a0180c31fbd7456021fb9700b49bba7f533.

    Tom Rini
     

08 Dec, 2016

1 commit

  • The patch is fixing:
    "tools: mkimage: Check if file is regular file"
    (sha1: 56c7e8015509312240b1ee15f2ff74510939a45d)
    which contains two issues reported by Coverity
    Unchecked return value from stat and incorrect calling sequence where
    attack can happen between calling stat and fopen.
    Using pair in opposite order (fopen and fstat) is fixing this issue
    because fstat is using the same file descriptor (FILE *).

    Also fixing issue with:
    "tools: mkimage: Add support for initialization table for Zynq and
    ZynqMP" (sha1: 3b6460809c2a28360029c1c48247648fac4455c9)
    where file wasn't checked that it is regular file.

    Reported-by: Coverity (CID: 154711, 154712)
    Signed-off-by: Michal Simek
    Reviewed-by: Tom Rini
    Series-to: trini
    Series-cc: u-boot

    Michal Simek
     

15 Nov, 2016

2 commits

  • Current Makefile.spl passes -R parameter which is not empty
    and pointing to ./ folder.
    "./tools/mkimage -T zynqmpimage -R ./"" -d spl/u-boot-spl.bin
    spl/boot.bin"
    That's why mkimage is trying to parse ./ file and generate
    register init which is wrong.
    Check that passed filename is regular file. If not do not work with it.

    Signed-off-by: Michal Simek

    Michal Simek
     
  • The Zynq/ZynqMP boot.bin file contains a region for register initialization
    data. Filling in proper values in this table can reduce boot time
    (e.g. about 50ms faster on QSPI boot) and also reduce the size of
    the SPL binary.

    The table is a simple text file with register+data on each line. Other
    lines are simply skipped. The file can be passed to mkimage using the
    "-R" parameter.

    It is recommended to add reg init file to board folder.
    For example:
    CONFIG_BOOT_INIT_FILE="board/xilinx/zynqmp/xilinx_zynqmp_zcu102/reg.int

    Signed-off-by: Mike Looijmans
    Signed-off-by: Michal Simek

    Mike Looijmans
     

24 May, 2016

1 commit