01 Jul, 2022

1 commit


08 Apr, 2021

1 commit


28 Oct, 2019

1 commit


23 Aug, 2019

1 commit


04 Jun, 2019

1 commit


25 Apr, 2019

1 commit


24 Dec, 2018

2 commits


21 Dec, 2018

2 commits

  • For mek_8qm, bootloader offset in SD card is 32kb, in eMMC
    bootpartition, it's 0kb. This patch fix the issue that bootloader offset
    used in uboot is always based on the device that the board boot from.

    Now, if uboot environment variable "target_ubootdev" is set, bootloader
    offset used in uboot is based on the device "target_ubootdev" specified.
    So boot from eMMC to flash SD, the board can boot from SD and vice versa.

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

    faqiang.zhu
     
  • FEC has some clock settings inside DSC GPR. Kernel configures them,
    but u-boot not. So when doing partition reset, the GPR keeps the value
    from kernel, and cause clock issue to u-boot FEC: kernel enables the
    divclk in GPR and set the clock slice to 250Mhz, u-boot configures the
    clock slice to 125Mhz, the divclk causes the RGMII TX CLK to 62.5Mhz.

    Fix the issue by aligning the GPR and clock slice settings with kernel

    Signed-off-by: Ye Li
    Reviewed-by: Fugang Duan
    (cherry picked from commit ab6b18bcf3cade15586839274bfde2030726ad37)

    Ye Li
     

20 Dec, 2018

3 commits

  • To avoid end user executing uboot command through fastboot, the fastboot
    command of "ucmd" and "acmd" in the uboot to be flashed into
    non-volatile storage device is removed in this partch.

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

    faqiang.zhu
     
  • The HAB code can not set Field Return and SRK Revoke sticky bits in case
    OCOTP CTRL clock is gated out.

    In case we disable OCOTP CTRL clock in DCD and plugin those features may
    not operate as expected.

    Keep OCOTP CTRL clock enabled in DCD and plugin so HAB can propely lock
    those features, users should use the CSF Unlock command to prevent those
    features from being locked.

    Signed-off-by: Breno Lima
    Reviewed-by: Ye Li
    (cherry picked from commit 2ee4bd12140fa9a29ad1a7cb5016b78e4a4077f1)

    Breno Lima
     
  • The HAB code can not set Field Return and SRK Revoke sticky bits in case
    OCOTP CTRL clock is gated out.

    In case we disable OCOTP CTRL clock in DCD and plugin those features may
    not operate as expected.

    Keep OCOTP CTRL clock enabled in DCD and plugin so HAB can propely lock
    those features, users should use the CSF Unlock command to prevent those
    features from being locked.

    Signed-off-by: Breno Lima
    (cherry picked from commit fe78359704fa5c5199daf0274019ae58980bc710)

    Breno Lima
     

19 Dec, 2018

2 commits


14 Dec, 2018

5 commits

  • 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
     
  • There is no need to have an extra hab directory under doc/imx/:

    - doc/imx/hab/ahab/
    - doc/imx/hab/habv4/

    Remove extra hab directory for a cleaner documentation structure.

    Signed-off-by: Breno Lima
    Reviewed-by: Ye Li
    (cherry picked from commit 4568f4a4c853ff9d952cfb5ec7c38c479de697d2)

    Breno Lima
     
  • The current U-Boot implementation includes SPL targets for i.MX8QM and
    i.MXQXP MEK boards:

    - imx8qxp_mek_spl_defconfig
    - imx8qxp_mek_spl_fspi_defconfig
    - imx8qm_mek_spl_defconfig
    - imx8qm_mek_spl_fspi_defconfig

    The U-Boot proper and ATF are included in an additional container being
    necessary a different procedure for signing the flash.bin image.

    Add a step-by-step guide covering the signing procedure.
    Add a CSF example for the 3rd container.

    Signed-off-by: Breno Lima
    Reviewed-by: Frank Zhang
    Reviewed-by: Marius Grigoras
    Reviewed-by: Utkarsh Gupta
    (cherry picked from commit 04505024d38eebbb5f39133b502c8e450ca40215)

    Breno Lima
     
  • Add AHAB secure boot step-by-step guide for i.MX8 and i.MX8x families
    devices.

    Add 3 CSF example files:
    - Example to sign flash.bin only using SRK keys.
    - Example to sign flash.bin using a subordinate SGK key.
    - Example to sign Linux image only using SRK keys.

    Signed-off-by: Clement Le Marquis
    Reviewed-by: Frank Zhang
    Reviewed-by: Marius Grigoras
    Reviewed-by: Utkarsh Gupta
    (cherry picked from commit 7c46caba3b528b0399242f99612e5b094b1a4703)

    Clement Le Marquis
     
  • 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
    (cherry picked from commit 6e9ceb2526bd4a45c6ff669afb086cc3a0627e6b)

    Breno Lima
     

13 Dec, 2018

1 commit


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
    (cherry picked from commit 8132f6b5848d45cab795bb472d6484130985415d)

    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
    (cherry picked from commit 484104758d3c2f98d3c9ae493f778b1427e2630c)

    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
    (cherry picked from commit 19f234266e07c18ab8364336779bf2d3d1f51c81)

    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
    (cherry picked from commit 999ae3e37bc8fea05ac984eb043dd925d80f1208)

    Peng Fan
     

10 Dec, 2018

1 commit


07 Dec, 2018

1 commit


06 Dec, 2018

2 commits


05 Dec, 2018

1 commit


04 Dec, 2018

3 commits

  • Enable the memory operation commands because we need them
    sometimes, this won't increase much boot time.

    Test: build and boot on imx8qm_mek.

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

    Ji Luo
     
  • Add commands to write/read vbmeta public key to/from secure
    storage. The vbmeta public key can only be set once.
    Comands to set the public key:
    fastboot stage
    fastboot oem set-public-key

    Test: build and boot on imx8qxp_mek.

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

    Ji Luo
     
  • Secure storage is ready in trusty so we should read/write the rollback
    index from rpmb.
    But for borads without rpmb key, read/write the rpmb will fail and will
    block the following avb verify process. In this case, check if the rpmb
    key has been set and always return AVB_IO_RESULT_OK for the boards without
    rpmb key.

    Test: build and boot pass on imx8qm_mek.

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

    Ji Luo
     

29 Nov, 2018

2 commits


28 Nov, 2018

2 commits


27 Nov, 2018

2 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