03 May, 2021

1 commit


08 Jan, 2021

1 commit


04 Jan, 2021

1 commit


22 Dec, 2020

5 commits

  • Locating the misc partition by ID can help reduce the boot
    time but error may happen if the ID of the misc partition
    is changed. Moving the misc partition to the start of the
    GPT and locate the partition by name is another option but
    it will break the backward compatibility as the GPT is
    changed.

    part_get_info_by_name() will loop the PTE and return the
    matched partition info, but it will cost much time as it
    will reload the whole PTE from storage in each loop.

    This commit provides part_get_info_efi_by_name() to support
    return the partition info by name without reloading the whole
    PTE.

    Test: A/B slot switch in dual bootloader.

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

    Ji Luo
     
  • This commit fixes Coverity Issue: 11468195, avoid
    uninitialized value using.

    Test: AVB check.

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

    Ji Luo
     
  • Enable configs to support ID attestation.

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

    Ji Luo
     
  • The device IDs are provisioned from bootloader, this commit
    add commands to provision the deivce IDs:
    $ fastboot oem append-device-id

    Test: Device IDs provision and attest.

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

    Ji Luo
     
  • As some features are not supported on Android 10, below commit
    sync configs for Android 10:
    commit 010173028e553b3ecde036402a46d7e33b928e00
    Author: Ji Luo
    Date: Wed Nov 18 20:14:51 2020 +0800

    MA-18292 Sync configs for Android 10 release

    Virtual A/B is not supported for Android 10 release, disable
    the configs here. And as the dual bootloader feature is enabled
    for car2 on Android 10, enable CONFIG_DUAL_BOOTLOADER for car2.

    This commit reverts the change to sync with Android 11 release.

    Test: Builds and boots on imx8qm.

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

    Ji Luo
     

16 Dec, 2020

1 commit


14 Dec, 2020

1 commit

  • If the target device have DOS partition, uboot will save the partition
    type as dos partition at early stage when the driver bind the device.
    After the gpt partition is flashed, uboot will try to reload the DOS
    partition, instead of the the EFI partition.

    In this commit, if the GPT partition is successfully flashed, set the
    partition type to be PART_TYPE_EFI if necessary, so the EFI partitions
    will be reloaded.

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

    faqiang.zhu
     

02 Dec, 2020

1 commit

  • Automotive will find the misc partition by the ID instead of
    by name to decrease the boot time. But the misc partition ID
    is different between Android 10 and Android 11 release. This
    commit sync the misc partition ID with GPT.

    Test: slot switch on imx8qm.

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

    Ji Luo
     

30 Nov, 2020

1 commit

  • Fix below build warning when enabling BEE config on iMX6UL EVK board.

    arch/arm/mach-imx/mx6/bee.c: In function ‘bee_test’:
    arch/arm/mach-imx/mx6/bee.c:201:2: warning: implicit declaration of
    function ‘flush_dcache_range’; did yomean ‘check_cache_range’?
    [-Wimplicit-function-declaration]
    201 | flush_dcache_range(address, address + range);
    | ^~~~~~~~~~~~~~~~~~
    | check_cache_range

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

    Ye Li
     

27 Nov, 2020

1 commit


20 Nov, 2020

2 commits

  • evk_7ulp images has normal ramdisk in boot.img and recovery ramdisk in
    recovery.img.

    Normal ramdisk in boot.img is used to boot up Android, ramdisk addr need
    to be passed to kernel any way.

    Recovery ramdisk in recovery.img is not used to boot up Android, there
    is no need to pass "androidboot.force_normal_boot=1".

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

    faqiang.zhu
     
  • Use the struct lpspi when it is not a NULL ptr.

    Reviewed-by: Fugang Duan
    Signed-off-by: Clark Wang
    (cherry picked from commit 697198f65dba420534e8df1d5443f0b0869cc31f)

    Clark Wang
     

19 Nov, 2020

6 commits

  • TEE memory region are moved to 0x56000000 ~ 0x58000000 to
    support i.MX 8MN DDR3L board:

    TEE-619 imx: 8mn: add support for i.MX 8MN DDR3L EVK

    DD3L EVK board only has 512MB of DDR.
    move OP-TEE mapping for all the 8MN boards.

    Signed-off-by: Silvano di Ninno

    Adjust the fastboot buffer region to avoid conflicts.

    Test: Super partition flash on imx8mn.

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

    Ji Luo
     
  • To avoid u-boot MMU table overlap M4 RPMSG vring buffer, reserve
    the top 1MB DDR.

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

    Ye Li
     
  • To avoid u-boot MMU table overlap M4 RPMSG vring buffer. Reserve
    the top 1MB DDR when bootaux is enabled.

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

    Ye Li
     
  • When booting with M4 RPMSG demo in u-boot, the M4 will use top 1MB
    DDR for RPMSG vring buffer. This overlaps with u-boot MMU table and
    modifies some MMU entries.
    On mx7dsabresd, this cause u-boot failed to access LCDIF registers
    due to the wrong MMU entries.

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

    Ye Li
     
  • Low drive mode needs to update GPU freq in kernel DTB. But 5.4 and 5.10
    kernel are using different GPU node pathes. Update low_drive_gpu_freq
    to support both two paths.

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

    Ye Li
     
  • Virtual A/B is not supported for Android 10 release, disable
    the configs here. And as the dual bootloader feature is enabled
    for car2 on Android 10, enable CONFIG_DUAL_BOOTLOADER for car2.

    Test: Boots on imx8qm_mek.

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

    Ji Luo
     

16 Nov, 2020

4 commits


09 Nov, 2020

4 commits


06 Nov, 2020

5 commits


03 Nov, 2020

5 commits


30 Oct, 2020

1 commit

  • AVB verify should fail for GKI boot image but we should allow it
    continue to boot in UNLOCKED state. In such case, we should not
    update the stored rollback index.

    This commit will update the rollback index only when the AVB
    verify is OK to prevent rollback index check error.

    Test: boots.

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

    Ji Luo