14 Dec, 2018

1 commit

  • The AHAB is currently supported in i.MX8QXP and i.MX8QM devices.

    Add an introductory document containing the following topics:

    - AHAB Secure Boot Architecture
    - System Control Unit (SCU) introduction
    - Security Controller (SECO) introduction
    - i.MX8/8x secure boot flow
    - AHAB PKI tree generation
    - SRK Table and SRK Hash generation

    Signed-off-by: Breno Lima
    Reviewed-by: Frank Zhang
    Reviewed-by: Marius Grigoras
    Reviewed-by: Utkarsh Gupta

    Breno Lima
     

13 Dec, 2018

3 commits


12 Dec, 2018

5 commits

  • Open configs to enable trusty for imx8mm_evk and also
    add new config imx8mm_evk_android_trusty_defconfig based
    on imx8mm_evk_android_defconfig.

    Test: Trusty starts ok.

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

    Ji Luo
     
  • Write magic number in board early init, and clear magic when booting
    Linux.

    This is to let XEN know the current EL1 code is U-Boot or Linux
    when reset/reboot. This is just a workaround because CM41 could not
    communicate with XEN now, even XEN knows that EL1 is reseting/rebooting.

    Signed-off-by: Peng Fan
    Reviewed-by: Flynn xu

    Peng Fan
     
  • To support partition reboot, the u-boot has to enable clocks by LPCG.
    The LPCG will reset to default value only when the subsystem is totally
    power off and reset. However, the resources in one subsystem may belong
    to different partitions, so the partition reboot may not reboot the entire
    subsystem.
    Powers, clocks/lpcg, GPR, IP may not reset depends on various cases and
    HW design. Thus, AP software has to ensure everything is reset by SW
    itself to support such above cases.

    Signed-off-by: Ye Li

    Ye Li
     
  • Each module may have one or more lpcg registers for SW/HW enabling its
    clocks. Add lpcg register address and its driver for accessing lpcg.

    Signed-off-by: Ye Li

    Ye Li
     
  • When moving to support partition reboot or android auto on XEN,
    linux kernel will runs into runtime suspend state, and the usb
    will be configured to low power suspend state by Linux.

    Then we reboot and runs into U-Boot, however the usb already in
    suspended state and uboot not able to lock the phy pll,
    after clearing PHCD to out of suspended state, the phy pll could be
    locked and fastboot works.

    Signed-off-by: Peng Fan
    Suggested-by: Li Jun
    Reviewed-by: Ye Li

    Peng Fan
     

11 Dec, 2018

1 commit

  • Pass bt mac address from uboot cmdline to write
    ro.boot.btmacaddr property for bluetooth hal to parse
    BDADDR which is composed from ro.boot.serialno,
    or it will fall back to persist property seted in init.rc.

    Change-Id: If6886596c79c699b8530d3249b1cc98f19aad51f
    Signed-off-by: yang.tian

    yang.tian
     

10 Dec, 2018

1 commit


07 Dec, 2018

1 commit


06 Dec, 2018

5 commits


05 Dec, 2018

1 commit


04 Dec, 2018

4 commits


29 Nov, 2018

1 commit


28 Nov, 2018

3 commits


27 Nov, 2018

3 commits

  • uuu doesn't parse SPL+FIT format for mek_8q platforms. this patch
    delete SPL and FIT related configurations in defconfig file for uuu
    uboot.

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

    faqiang.zhu
     
  • defconfig files for uuu uboot and uboot flashed to board need to be
    different.
    because ab slot feature need to be used, defconfig of BSP team won't
    be used.

    this patch add for defconfig files for uuu uboot used on imx8. these
    two files are directly copied from the files below:
    1. imx8qm_mek_android_defconfig
    2. imx8qxp_mek_android_defconfig
    3. imx8mm_evk_android_defconfig
    4. imx8mq_evk_android_defconfig

    they are respectively be pasted as:
    1. imx8qm_mek_android_uuu_defconfig
    2. imx8qxp_mek_android_uuu_defconfig
    3. imx8mm_evk_android_uuu_defconfig
    4. imx8mq_evk_android_uuu_defconfig

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

    faqiang.zhu
     
  • The SPL loads the FIT image FDT part to an address related with the device
    block length. This length is 512 for SD/MMC and is 1 for other devices
    like SDP, NOR, NAND, SPI, etc.
    When signing FIT image, we use fixed address caculated by SD/MMC block length
    to sign FDT part. Thus, when booting through uuu, this causes mismatch and
    gets authentication failed.

    Fix the issue by providing a override function for this FIT buffer address.
    When secure boot is enabled, adjust the addresses of other devices to be same
    with SD/MMC.

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

    Ye Li
     

26 Nov, 2018

5 commits

  • Get build warning below because the CONFIG_SERIAL_TAG is not defined.

    drivers/usb/gadget/f_fastboot.c: In function ‘fastboot_setup’:
    drivers/usb/gadget/f_fastboot.c:1768:2: warning: ‘serialnr.high’ is used
    uninitialized in this function [-Wuninitialized]
    sprintf(serial, "%08x%08x", serialnr.high, serialnr.low);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    drivers/usb/gadget/f_fastboot.c:1768:2: warning: ‘serialnr.low’ is used
    uninitialized in this function [-Wuninitialized]

    Signed-off-by: Ye Li

    Ye Li
     
  • Open configs to enable uuu for imx8mq_aiy.

    Test: uuu flash ok on imx8mq_aiy.

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

    Ji Luo
     
  • Add support for new target imx8mq_aiy.

    Test: build and boot ok on imx8mq_aiy.

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

    Ji Luo
     
  • The HABv4 secure boot procedure is now documented in different files:

    .
    └── habv4
    ├── csf_examples
    │   ├── additional_images
    │   │   └── csf_additional_images.txt
    │   ├── mx6_mx7
    │   │   ├── csf_uboot_fast_authentication.txt
    │   │   └── csf_uboot.txt
    │   └── mx8m_mx8mm
    │   ├── csf_fit.txt
    │   └── csf_spl.txt
    ├── guides
    │   ├── mx6_mx7_secure_boot.txt
    │   ├── mx8m_mx8mm_secure_boot.pdf
    │   └── mx8m_mx8mm_secure_boot.txt
    ├── introduction_habv4.txt
    └── script_examples
    └── genIVT.pl

    The old documentation secure_boot.txt can be removed.

    Reviewed-by: Utkarsh Gupta
    Signed-off-by: Breno Lima

    Breno Lima
     
  • Add HABv4 documentation for i.MX8M and i.MX8MM targets covering the
    following topics:

    - How to sign an securely boot an flash.bin image.
    - How to extend the root of trust for additional boot images.
    - Add 2 CSF examples.

    Reviewed-by: Utkarsh Gupta
    Signed-off-by: Breno Lima

    Breno Lima
     

23 Nov, 2018

3 commits


22 Nov, 2018

3 commits