09 Aug, 2019

1 commit

  • On imx8 platform, the usb2 and usb3 ports are both supported. Which
    means we can use usb2(ci_udc_otg) and usb3(cdns3_generic_peripheral)
    gadget driver to run sdp/fastboot/ums at the same time.

    For sdp and the fastboot that runs automatically when uboot starts,
    board_usb_gadget_port_auto() is added to autodetect usb port, this
    means that we don't have to specify which USB port should be used to
    download in code, now we can just connect either usb port then it
    will download automatically.

    Signed-off-by: Sherry Sun

    Sherry Sun
     

01 Aug, 2019

1 commit

  • We may need to enable the dual bootloader feature on non-trusty
    platforms, skip the bootloader rollback index check in spl if
    trusty is not enabled.

    Don't generate rpmb key in spl, it should be generated in u-boot
    proper with u-boot commands.

    Test: dual bootloader on imx8mm.

    Change-Id: Iac454e0140cd6f4472a66d267d9ba0d40df7102c
    Signed-off-by: Ji Luo

    Ji Luo
     

24 Jul, 2019

1 commit

  • Add support for AIY 2GB DDR size. Wrap support for
    3GB DDR board with CONFIG_AIY_LPDDR4_3G because of
    the limited ocram size.

    Test: build and boot on 2GB AIY board.

    Change-Id: I04da60cc0d0b22c6c32ff705bcab4095068ba6ea
    Signed-off-by: Ji Luo

    Ji Luo
     

15 Jul, 2019

1 commit

  • this commit is a merge of three patches from imx_v2018.03 as below:

    1.
    commit dbcf1e3cc079d2f1b3df6c4c9ec3a34d0c05eb4c
    Author: Luo Ji
    Date: Fri Jun 8 10:31:11 2018 +0800

    [iot] Support dual bootloader in SPL

    Move the A/B slot check to SPL, the A/B slot switch
    workflow is just like what we have in libavb_ab.

    Test: A/B select works fine on imx8m.

    2.
    commit 71562aae3b8123ccd7503e596e478951568fcd24
    Author: Ji Luo
    Date: Mon Jan 14 18:28:08 2019 +0800

    MA-13938 [Android] imx8q: Support dual bootloader feature

    Support dual bootloader feature for imx8q which uses the
    container format. Move the A/B slot select and verify to
    SPL stage, the bootloader rollback index will be stored
    at the last 8K bytes of eMMC rpmb storage.

    Test: Boot and rbindex verify pass on imx8q.

    Change-Id: Ic9410a48092cc05de599dd897fc912177e2a1fe1
    Signed-off-by: faqiang.zhu

    Ji Luo
     

09 Jul, 2019

3 commits

  • When download image through ROM API for stream mode (USB, eMMC fastboot).
    We uses tricky way to get the total image size:
    The spl_load_simple_fit is called but the data reading is invalid, so the image
    data is not really downloaded.
    We should not call HAB authenticate in this tricky way. Otherwise it
    will alway fail.
    This patch add a new flag SPL_FIT_BYPASS_POST_LOAD to skip the authentication
    only for this tricky using.

    Signed-off-by: Ye Li
    Reviewed-by: Peng Fan
    (cherry picked from commit 47b0cf6de06ff9b3e2b2755d5c8203210378b26a)

    Ye Li
     
  • ROM supports secondary boot which can boot from a new offset specified
    by fuse. So adjust the offset calculation by counting the ROM's image_offset
    parameter for SD/eMMC.
    The secondary boot on flexspi is different like SD/eMMC. ROM will map the
    space of secondary boot to the start of flexspi AHB memory. So it is same
    as primary boot for SPL.

    Signed-off-by: Ye Li
    Reviewed-by: Peng Fan
    (cherry picked from commit c33881aa8a7e5a545b156ea2c452c5f7578f1ebd)

    Ye Li
     
  • i.MX8MNano ROM exports APIs to load images from boot device. We use this way
    for SPL loading FIT image. Users need enable CONFIG_SPL_IMX_ROMAPI_SUPPORT
    and set a buffer address via CONFIG_SPL_IMX_ROMAPI_LOADADDR

    Signed-off-by: Ye Li
    Signed-off-by: Frank Li
    (cherry picked from commit 4783e96fa88a7f279a3efee2cc7646bb53c7c1a7)

    Ye Li
     

28 Jun, 2019

1 commit


24 May, 2019

13 commits


23 Mar, 2019

1 commit


01 Mar, 2019

1 commit


19 Feb, 2019

1 commit

  • SPL currently does not check uImage CRCs when loading U-Boot.

    This patch adds checking the uImage CRC when SPL loads U-Boot. It does
    this by reusing the existing config option SPL_CRC32_SUPPORT to allow
    leaving out the CRC check on boards where the additional code size or
    boot time is a problem (adding the CRC check currently adds ~1.4 kByte
    to flash).

    The SPL_CRC32_SUPPORT config option now gets enabled by default if SPL
    support for legacy images is enabled to check the CRC on all boards
    that don't actively take countermeasures.

    Signed-off-by: Simon Goldschmidt
    Reviewed-by: Simon Glass

    Simon Goldschmidt
     

16 Feb, 2019

1 commit

  • Since there is the SPL_USB_HOST_SUPPORT for enabling USB support in SPL,
    makes more sense to rename the SPL_USB_SUPPORT as SPL_USB_STORAGE.
    Everything that is not part of the usb storage support in SPL is now
    build under SPL_USB_HOST_SUPPORT.

    Signed-off-by: Abel Vesa
    Reviewed-by: Tom Rini
    Reviewed-by: Fabio Estevam
    Reviewed-by: Lukasz Majewski

    Abel Vesa
     

07 Feb, 2019

3 commits

  • SPL only needs to be able to read from SPI Flash to load next stage and
    does not really need write/erase etc. Therefore in order to reduce SPI
    Flash code size in SPL, enable SPI_FLASH_TINY, that only supports
    reading from SPI flash, as default.

    Note: Since, SPI_FLASH_TINY does not support SPI_FLASH_BAR,
    SPI_FLASH_TINY is not enabled for boards with SPI controllers that
    cannot support 4 byte addressing.

    Signed-off-by: Vignesh R
    Reviewed-by: Jagan Teki
    Tested-by: Jagan Teki #zynq-microzed

    Vignesh R
     
  • Add a tiny SPI flash stack that just supports reading data/images from
    SPI flash. This is useful for boards that have SPL size constraints and
    would need to use SPI flash framework just to read images/data from
    flash. There is approximately 1.5 to 2KB savings with this.

    Based on prior work of reducing spi flash id table by
    Simon Goldschmidt

    Signed-off-by: Vignesh R
    Tested-by: Simon Goldschmidt
    Tested-by: Stefan Roese
    Tested-by: Horatiu Vultur
    Reviewed-by: Jagan Teki
    Tested-by: Jagan Teki #zynq-microzed

    Vignesh R
     
  • Sync Serial Flash Discoverable Parameters (SFDP) parsing support from
    Linux. This allows auto detection and configuration of Flash parameters.

    Signed-off-by: Vignesh R
    Tested-by: Simon Goldschmidt
    Tested-by: Stefan Roese
    Tested-by: Horatiu Vultur
    Reviewed-by: Jagan Teki
    Tested-by: Jagan Teki #zynq-microzed

    Vignesh R
     

01 Feb, 2019

3 commits


27 Jan, 2019

1 commit

  • Make use of "IMAGE_MAX_SIZE" and "IMAGE_TEXT_BASE" rather than
    CONFIG_SPL_MAX_SIZE and CONFIG_SPL_TEXT_BASE. This lets us re-use the
    same script for both SPL and TPL. Add logic to scripts/Makefile.spl to
    pass in the right value when preprocessing the script.

    Cc: Stefano Babic
    Cc: Fabio Estevam
    Cc: Jagan Teki
    Cc: Maxime Ripard
    Cc: Andreas Bießmann
    Cc: Philipp Tomsich
    Cc: Michal Simek
    Cc: Daniel Schwierzeck
    Cc: York Sun
    Cc: Bin Meng
    Cc: Heiko Schocher
    Cc: Adam Ford
    Signed-off-by: Tom Rini
    Reviewed-by: Daniel Schwierzeck
    Tested-by: Daniel Schwierzeck
    Tested-by: Adam Ford #da850evm & omap3_logic_somlv
    Reviewed-by: Simon Goldschmidt

    Tom Rini
     

26 Jan, 2019

1 commit


18 Jan, 2019

1 commit


16 Jan, 2019

1 commit

  • Add support for gunzip-ing gzip-compressed uImages in the SPL Ymodem code.
    Loading data over Ymodem can be gruelingly slow, gzip-ing the data can
    reduce that aggravating slowness at least slightly (depends on the data,
    u-boot.bin compresses to ~1/3 of it's original size on ARM64), hence add
    optional support for decompressing gzip-compressed uImages.

    Signed-off-by: Marek Vasut
    Cc: Tom Rini

    Marek Vasut
     

11 Jan, 2019

1 commit


01 Jan, 2019

3 commits

  • imx for 2019.01

    - introduce support for i.MX8M
    - fix size limit for Vhybrid / pico boards
    - several board fixes
    - w1 driver for MX2x / MX5x

    Tom Rini
     
  • If we don't define CONFIG_SPL_FIT_IMAGE_TINY, when loading images from FIT,
    the SPL will record all loadables' info to u-boot's FDT. This causes
    problem when HAB is enabled, because FDT's content is modified before
    we authenticate it.

    Signed-off-by: Ye Li
    Signed-off-by: Peng Fan

    Ye Li
     
  • Introduce two board level callback functions to FIT image loading process, and
    a SPL_FIT_FOUND flag to differentiate FIT image or RAW image.

    Implement functions in imx common SPL codes to call HAB funtion
    to authenticate the FIT image. Generally, we have to sign multiple regions
    in FIT image:
    1. Sign FIT FDT data (configuration)
    2. Sign FIT external data (Sub-images)

    Because the CSF supports to sign multiple memory blocks, so that we can use one
    signature to cover all regions in FIT image and only authenticate once.
    The authentication should be done after the entire FIT image is loaded into
    memory including all sub-images.
    We use "-p" option to generate FIT image to reserve a space for FIT IVT
    and FIT CSF, also this help to fix the offset of the external data (u-boot-nodtb.bin,
    ATF, u-boot DTB).

    The signed FIT image layout is as below:
    --------------------------------------------------
    | | | | | | | |
    | FIT | FIT | FIT | | U-BOOT | ATF | U-BOOT |
    | FDT | IVT | CSF | | nodtb.bin | | DTB |
    | | | | | | | |
    --------------------------------------------------

    Signed-off-by: Ye Li
    Reviewed-by: Peng Fan
    Reviewed-by: Tom Rini
    Signed-off-by: Peng Fan

    Ye Li
     

15 Dec, 2018

1 commit