Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Jun 10, 2019
  2. Jun 08, 2019
  3. Jun 07, 2019
    • Tom Rini's avatar
      Merge branch '2019-06-07-master-imports' · a56149dd
      Tom Rini authored
      - Include Heinrich's series to move the i.MX board size check function
        to be more widely available.
      - Include Simon Goldschmidt's patch to make it possible to have a more
        accurate SPL size check applied.
      a56149dd
    • Simon Goldschmidt's avatar
      spl: add overall SPL size check · 2577015d
      Simon Goldschmidt authored
      
      This adds a size check for SPL that can dynamically check generated
      SPL binaries (including devicetree) for a size limit that ensures
      this image plus global data, heap and stack fit in initial SRAM.
      
      Since some of these sizes are not available to make, a new host tool
      'spl_size_limit' is added that dumps the resulting maximum size for
      an SPL binary to stdout. This tool is used in toplevel Makefile to
      implement the size check on SPL binaries.
      
      Signed-off-by: default avatarSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      2577015d
    • Heinrich Schuchardt's avatar
      configs: rk3288: Tinker Board SPL file must fit into 32 KiB · dfe252b1
      Heinrich Schuchardt authored
      
      The SPL image for the Tinker Board has to fit into 32 KiB. This includes
      up to 2 KiB for the file header.
      
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      dfe252b1
    • Heinrich Schuchardt's avatar
      configs: define CONFIG_SPL_SIZE_LIMIT · 0a0f2314
      Heinrich Schuchardt authored
      
      A new configuration variable CONFIG_SPL_SIZE_LIMIT is introduced to define
      the board specific maximum size for the SPL file.
      
      Use Makefile function size_check() to implement the test.
      
      Depending on the size of CONFIG_SPL_SIZE_LIMIT an error like the following
      is thrown:
      
      spl/u-boot-spl.bin exceeds file size limit:
        limit:  30720 bytes
        actual: 33426 bytes
        excess: 2706 bytes
      make: *** [Makefile:1663: spl/u-boot-spl.bin] Error 1
      
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      0a0f2314
    • Heinrich Schuchardt's avatar
      imx: move BOARD_SIZE_CHECK to main Makefile · 219dee7e
      Heinrich Schuchardt authored
      
      We currently have duplicate definitions for BOARD_SIZE_CHECK in Makefile
      and arch/arm/mach-imx/Makefile.
      
      Move the board size check from arch/arm/mach-imx/Makefile to Makefile.
      
      Depending on the value of CONFIG_BOARD_SIZE_LIMIT an error like an error
      like the following is thrown:
      
      u-boot-dtb.imx exceeds file size limit:
        limit:  503696 bytes
        actual: 509720 bytes
        excess: 6024 bytes
      make: *** [Makefile:1051: u-boot-dtb.imx] Error 1
      
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: default avatarFabio Estevam <festevam@gmail.com>
      219dee7e
    • Heinrich Schuchardt's avatar
      Makefile: reusable function for BOARD_SIZE_CHECK · b275030e
      Heinrich Schuchardt authored
      
      Carve out function size_check from macro BOARD_SIZE_CHECK. This will allow
      us to reuse the function for other file size checks.
      
      Depending on the value of CONFIG_BOARD_SIZE_LIMIT an error like the
      following is thrown:
      
      u-boot-dtb.img exceeds file size limit:
        limit:  409516 bytes
        actual: 444346 bytes
        excess: 34830 bytes
      make: *** [Makefile:1212: u-boot-dtb.img] Error 1
      
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      b275030e
    • Heinrich Schuchardt's avatar
      lib/vsprintf: allow printing upper case GUIDs · 3bad256f
      Heinrich Schuchardt authored
      
      In the UEFI context GUIDs are expected to be rendered in upper case.
      
      The patch uses the formerly unused bit 1 of the parameter str_format
      of function uuid_bin_to_str() to indicate if we need upper or lower case
      output.
      
      Function uuid_string() in vsprint.c is adjusted to correctly set the bit
      depending on the print format code.
      
      %pUb: 01020304-0506-0708-090a-0b0c0d0e0f10
      %pUB: 01020304-0506-0708-090A-0B0C0D0E0F10
      %pUl: 04030201-0605-0807-090a-0b0c0d0e0f10
      %pUL: 04030201-0605-0807-090A-0B0C0D0E0F10
      
      Up to this point only a diagnostic message in mount_ubifs() using '%pUB' is
      concerned by the change. Further patches are needed to adjust the UEFI
      subsystem.
      
      A unit test is provided inside the ut_print command.
      
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      3bad256f
  4. Jun 06, 2019
  5. Jun 05, 2019
Loading