1. 07 Oct, 2015 1 commit
  2. 26 Jul, 2015 1 commit
  3. 10 Jul, 2015 1 commit
  4. 10 Feb, 2015 1 commit
  5. 09 Sep, 2014 1 commit
  6. 14 Oct, 2013 1 commit
  7. 31 Aug, 2013 3 commits
    • Stefano Babic's avatar
      tools: add support for setting the CSF into imximage · 0187c985
      Stefano Babic authored
      Add support for setting the CSF (Command Sequence File) pointer
      which is used for HAB (High Assurance Boot) in the imximage by
      adding e.g.
      
      CSF 0x2000
      
      in the imximage.cfg file.
      
      This will set the CSF pointer accordingly just after the padded
      data image area. The boot_data.length is adjusted with the
      value from the imximage.cfg config file.
      
      The resulting u-boot.imx can be signed with the FSL HAB tooling.
      The generated CSF block needs to be appended to the u-boot.imx.
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      0187c985
    • Stefano Babic's avatar
      tools: dynamically allocate imx_header in imximage · 377e367a
      Stefano Babic authored
      Change to dynamically allocate the imx_header to correctly
      allocate the IVT, Boot Data and DCD at correct locations
      depending on the boot media.
      
      Also check that the Image Vector Table Offset + IVT +
      Boot Data + DCD <= Initial Load Region Size.
      
      Previously struct imx_header was always 4096 bytes and was
      not dealing correctly with the Image Vector Table Offset.
      
      Now, the memory allocation looks for e.g. SD boot like this
      
       Storage   u-boot.imx                             RAM
       Device
      
       00000000                                         177ff000 <--------------
                                                                               |
       00000400  00000000  d1 00 20 40 IVT.header       177ff400 <-------      |
       00000404  00000004  00 00 80 17 IVT.entry        177ff404 -----------   |
       00000408  00000008  00 00 00 00 IVT.reserved1    177ff408        |  |   |
       0000040C  0000000C  2c f4 7f 17 IVT.dcd          177ff40C ------ |  |   |
       00000410  00000010  20 f4 7f 17 IVT.boot         177ff410 ---- | |  |   |
       00000414  00000014  00 f4 7f 17 IVT.self         177ff414 --------  |   |
       00000418  00000018  00 00 00 00 IVT.csf          177ff418    | |    |   |
       0000041C  0000001C  00 00 00 00 IVT.reserved2    177ff41C    | |    |   |
       00000420  00000020  00 f0 7f 17 BootData.start   177ff420 <--- |    | ---
       00000424  00000024  00 60 03 00 BootData.length  177ff424      |    |
       00000428  00000028  00 00 00 00 BootData.plugin  177ff428      |    |
       0000042C  0000002C  d2 03 30 40 DCD.header       177ff42C <-----    |
       ...                                                                 |
       00001000  00000c00  13 00 00 ea U-Boot Start     17800000 <----------
      
      While at it also remove the unused #define HEADER_OFFSET.
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      377e367a
    • Stefano Babic's avatar
      tools: imx_header should not include flash_offset · 4655d40f
      Stefano Babic authored
      Doing a  make distclean; make mx6qsabresd_config; make
      and      hexdump -C u-boot.imx | less
      
       ...
       00000360  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
       *
       000003f0  00 00 00 00 00 00 00 00  00 00 00 00 00 04 00 00  |................|
                                                      ^^^^^^^^^^^
       00000400  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
       *
       00001000  13 00 00 ea 14 f0 9f e5  14 f0 9f e5 14 f0 9f e5  |...ê.ð.å.ð.å.ð.å|
       ...
      
      shows the flash_offset value being written into the final
      generated image, wich is not correct.
      
      Instead create flash_offset as static variable such that the
      generated image is "clean".
      
       00000360  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
       *
       00001000  13 00 00 ea 14 f0 9f e5  14 f0 9f e5 14 f0 9f e5  |...ê.ð.å.ð.å.ð.å|
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      4655d40f
  8. 24 Jul, 2013 1 commit
  9. 05 May, 2013 1 commit
    • Marek Vasut's avatar
      imx: Align the imximage header and payload to multiples of 4k · 895d9966
      Marek Vasut authored
      The MX53 ROM loads the data from NAND in multiples of pages and
      supports maximum page size of 4k. Thus, align the image and header
      to 4k to be safe from ROM bugs.
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      Cc: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
      Cc: Fabio Estevam <fabio.estevam@freescale.com>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Tom Rini <trini@ti.com>
      895d9966
  10. 28 Apr, 2013 1 commit
    • Marek Vasut's avatar
      tools: arm: imx: Implement BOOT_OFFSET command for imximage · 6cb83829
      Marek Vasut authored
      Implement BOOT_OFFSET command for imximage. This command is parallel
      to current BOOT_FROM command, but allows more flexibility in configuring
      arbitrary image header offset. Also add an imximage.cfg with default
      offset values into arm/arch/imx-common/ so the board-specific imximage.cfg
      can include this file to avoid magic constants.
      
      The syntax of BOOT_OFFSET command is "BOOT_OFFSET <u32 offset>".
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      Cc: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
      Cc: Fabio Estevam <fabio.estevam@freescale.com>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Tom Rini <trini@ti.com>
      Acked-by: default avatarStefano Babic <sbabic@denx.de>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      6cb83829
  11. 20 Oct, 2012 1 commit
  12. 27 Mar, 2012 1 commit
    • Dirk Behme's avatar
      imximage: Remove overwriting of flash_offset · 49d3e272
      Dirk Behme authored
      The flash header supports different flash offsets for different
      boot devices. E.g. parallel NOR or OneNAND use a different offset
      than FLASH_OFFSET_STANDARD (== 0x400).
      
      The flash offset is correctly read from the configuration in
      parse_cfg_cmd(). But is then overwritten wrongly in set_imx_hdr_v1/2().
      
      Fix this by removing this overwriting. Use the flash offset
      correctly read from the configuration, instead.
      
      If there is no flash_offset read from the configuration file, i.e.
      the BOOT_FROM tag is missing, exit with an error message.
      Signed-off-by: default avatarDirk Behme <dirk.behme@de.bosch.com>
      CC: Jason Liu <liu.h.jason@gmail.com>
      CC: Stefano Babic <sbabic@denx.de>
      Tested-by: default avatarStefano Babic <sbabic@denx.de>
      49d3e272
  13. 12 Feb, 2012 1 commit
  14. 12 Apr, 2011 1 commit
    • Loïc Minier's avatar
      Drop config.h include in tools/imximage.h · 13d72f02
      Loïc Minier authored
      "make tools-all" should allow building tools such as mkimage and the new
      imximage without any config, but imximage.c currently fails to build
      with:
      imximage.h:27:20: error: config.h: No such file or directory
      
      config.h is not needed in imximage.h nor in imximage.c, and imximage.h
      is only included from imximage.c, so drop this include to fix the build.
      Signed-off-by: default avatarLoc Minier <loic.minier@linaro.org>
      13d72f02
  15. 01 Feb, 2011 1 commit
  16. 23 Feb, 2010 1 commit
  17. 25 Jan, 2010 1 commit