15 Oct, 2013

1 commit


31 Aug, 2013

3 commits

  • 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: Stefano Babic

    Stefano Babic
     
  • 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

    Stefano Babic
     
  • 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: Stefano Babic

    Stefano Babic
     

24 Jul, 2013

1 commit


05 May, 2013

1 commit


28 Apr, 2013

1 commit

  • 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 ".

    Signed-off-by: Marek Vasut
    Cc: Albert ARIBAUD
    Cc: Benoît Thébaudeau
    Cc: Fabio Estevam
    Cc: Scott Wood
    Cc: Stefano Babic
    Cc: Tom Rini
    Acked-by: Stefano Babic
    Acked-by: Stefan Roese

    Marek Vasut
     

20 Oct, 2012

1 commit


27 Mar, 2012

1 commit

  • 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: Dirk Behme
    CC: Jason Liu
    CC: Stefano Babic
    Tested-by: Stefano Babic

    Dirk Behme
     

12 Feb, 2012

1 commit

  • The i.MX6 processor can boot from NOR flash and SATA disks,
    additionally. Add the flash offsets for these additional
    boot modes.

    Signed-off-by: Dirk Behme
    Signed-off-by: Fabio Estevam
    CC: Stefano Babic
    CC: Jason Liu
    Acked-by: Jason Liu

    Dirk Behme
     

13 Apr, 2011

1 commit

  • "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: Loïc Minier

    Loïc Minier
     

02 Feb, 2011

1 commit


24 Feb, 2010

1 commit


26 Jan, 2010

1 commit