08 Jan, 2021

8 commits

  • VDD SOC normal run changed to 0.85V
    LPDDR4 freq0 change from 4000MTS to 2400MTS

    Change-Id: I69676ea5b582a817fb3c367bd861db96ba647540
    (cherry picked from commit 1205f1edfaed1383181d4d52344cc55e5e92a351)

    haidong.zheng
     
  • AOSP adds command 'KM_CLEAR_ATTESTATION_CERT_CHAIN' to clear
    the attestation cert chain, but its ID will conflict with
    'KM_SET_ATTESTATION_KEY_ENC'. This commit will reorder the
    keymaster commands to avoid conflicts.

    Test: ID attestation provision.

    Change-Id: I0046b5bee4e0ffea3bdcff31859452da53d8e50d
    Signed-off-by: Ji Luo
    (cherry picked from commit e19aa1c26047dc719e7561695100dac807925ae7)

    Ji Luo
     
  • 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
    (cherry picked from commit cd8f603f0d977ed73f0d0b44437c5c68fcebde25)

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

    Test: AVB check.

    Change-Id: I04eb8faafd6c9a9fec1aeae0b29edc6940251094
    Signed-off-by: Ji Luo
    (cherry picked from commit 742cc182bf9d0d0a7c8cecdac2a328e5c0bd64cb)

    Ji Luo
     
  • Enable configs to support ID attestation.

    Change-Id: I1478d4981e7a1a10e11e4e71dcbfd49c64331a9d
    Signed-off-by: Ji Luo
    (cherry picked from commit a9ee1ce64fe5b1a79cfcd3ae1da9ed8acaa645fb)

    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
    (cherry picked from commit 7575ac07ac625c35269868511297385a69c96196)

    Ji Luo
     
  • The values printed for DCD block have wrong order. To follow CSF
    authenticate data format, the first value should be load address,
    second value is file offset.

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

    Ye Li
     
  • pass imx8 soc revision info to kernel so it can be used to judge
    bootloader0 partition offset in postinstall command and update
    the partition.

    Change-Id: Ifc4d3d2abe8a694d7ec6f368c3e56f3d175982e5
    Signed-off-by: faqiang.zhu
    (cherry picked from commit cc51505010505ad39a12c07e7405bb992407d927)

    faqiang.zhu
     

21 Dec, 2020

1 commit


11 Dec, 2020

5 commits

  • The keymaster client won't be initialized if the rpmb
    key is not set, return early with error in such case
    to avoid panic.

    Test: provision attestation keys & certs on boards without
    rpmb key set.

    Change-Id: I6f908aecafd15ab390629cb89b090c9ee817ba1e
    Signed-off-by: Ji Luo
    (cherry picked from commit b999b03c3eb153a99b481e42315e048653247107)

    Ji Luo
     
  • 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
    (cherry picked from commit 62becd667e5f3ebbefef796818eda78f4d0e167b)

    faqiang.zhu
     
  • 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
     
  • blk_dwrite() will write data in blocks, padding the keyslot_package
    struct to one block to avoid redundant data write.

    Test: RPMB key set.

    Change-Id: I326d7f4394d15e6e22b12c3abd6a5e2de18920cc
    Signed-off-by: Ji Luo
    (cherry picked from commit 8a0deb19628d2752b516fbce00fc1b988f2e78b5)

    Ji Luo
     
  • 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
    (cherry picked from commit 3f4d826944f7f0db9251cf26f6f65014ca3f5e8a)

    faqiang.zhu
     

10 Dec, 2020

3 commits


20 Nov, 2020

3 commits

  • * origin/dn_uboot: (14 commits)
    Revert "mmc: move mmc_power_cycle() after controller initialization"
    Revert "mmc: rework mmc_set_initial_state"
    board: freescale: vid.c: add parantheses to fix build warning
    net: pfe_eth: read PFE ESBC header flash with spi_flash_read API
    lx2160a: Fix address for secure boot headers
    ...

    BJ DevOps Team
     
  • 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
     
  • 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
    (cherry picked from commit e70c3875de6060cd3ab983fdc6cc207c45e646a7)

    Ji Luo
     

19 Nov, 2020

5 commits


16 Nov, 2020

5 commits

  • 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
     
  • For dual core and single core iMX8M parts, the thermal node and PMU node
    in kernel DTB also needs update to remove the refers to deleted core nodes.
    Otherwise both driver will fail to work.

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

    Ye Li
     
  • There are 3 part numbers for 11x11 i.MX8MNano with different core number
    configuration: UltraLite Quad/Dual/Solo

    Comparing with i.MX8MN Lite parts, they have MIPI DSI disabled. So
    checking the MIPI DSI disable fuse to recognize these parts.

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

    Ye Li
     
  • On imx6Q/imx6DL, we find if config the DTOCV to 0~3, it will impact
    cmd6 behavior, after cmd6 get transfer complete interrupt, the data0
    line will keep low over 5 seconds. This should be a IC bug on imx6Q/DL.
    For other platforms, do not has this issue.

    To fix this issue, fix the DTOCV to 0xE, the max setting, this also align
    with Linux configuration.

    Signed-off-by: Haibo Chen
    Reviewed-by: Ye Li
    (cherry picked from commit 6df53e27277d43353cfffd895b7b1c1e1b847ab3)

    Haibo Chen
     
  • Since optee has moved to 0x56000000 on iMX8MN EVK. So mtest address
    will conflict with optee and u-boot relocation. Set the mtest space
    after the optee reserved region and adjust size for 1GB DDR3L EVK.

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

    Ye Li
     

09 Nov, 2020

10 commits

  • Add "cpufreq.default_governor=SCHEDUTIL" to iMX8QM MEK bootargs, so that
    v5.10 kernel can uses schedutil cpufreq governor as default.

    Signed-off-by: Ye Li
    Reviewed-by: Anson Huang

    Ye Li
     
  • Two LCD data pins (D16 and D17) are missed in DTS to cause color issue,
    also update pad setting to align with kernel.

    Signed-off-by: Ye Li
    Acked-by: Peng Fan
    (cherry picked from commit 90cf964cb4daebd66d5b8b0af944e2a2282b13d5)

    Ye Li
     
  • The value of Unique ID in uboot and kernel is different for iMX8MP:

    serial#=02e1444a0002aaff
    root@imx8mpevk:/sys/devices/soc0# cat soc_uid
    D699300002E1444A

    The reason is that Fuse Addresses of Unique ID of iMX8MP are 0x420 and
    0x430.

    Reviewed-by: Ye Li
    Signed-off-by: Alice Guo
    (cherry picked from commit 38bcdd0bf78951480cb67e1b9d58b37c364195fc)

    Alice Guo
     
  • Since iMX8MP LPDDR4 EVK uses OD for VDD_SOC, so we can set GIC clock
    to 500Mhz to align with kernel. For DDR4 EVK, uses default 400Mhz for
    ND VDD_SOC.
    Move the codes from SOC codes to board level to match with voltage
    setting.

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

    Ye Li
     
  • Because DDR4 runs at 3200MTS, this speed does not require to use overdrive
    voltage for VDD_SOC, so set VDD_SOC to nominal 0.85v on DDR4 EVK.
    The VDD_ARM was set to 0.95v to avoid timing risk from SOC to ARM when
    VDD_SOC is 0.95v, set it back to 0.85v as well.

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

    Ye Li
     
  • imx8mp has serial number as all zeros, hard code the BT mac
    address for such case instead of setting it by property.

    Test: BT on imx8mp.

    Change-Id: I99f5b49164e1fa40c7fc6ecb639c71fa89158852
    Signed-off-by: Ji Luo
    (cherry picked from commit 501690cb93c4df30700c1bf40f0f2eaed2444503)

    Ji Luo
     
  • GCC for arm32 doesn't support division between signed
    and unsigned integer. Clean up the code to use 'long'
    for both arm32 and arm64 platforms.

    Test: build on 7ulp and 8mm.

    Change-Id: I21c23b1948994558237b27bfe7452e78e3d45172
    Signed-off-by: Ji Luo
    (cherry picked from commit 2062183df063e0653e9e88a690764647702af7dd)

    Ji Luo
     
  • Add prarantheses to fix build warning as follows,
    if (!strict_strtoul(argv[1], 10, &override))
    ^~
    board/freescale/common/vid.c:976:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the if
    if (ret < 0)

    Signed-off-by: Biwen Li

    Biwen Li
     
  • Read PFE ESBC header flash with spi_flash_read API
    - logs as follows,
    Net: SF: Detected s25fs512s with page size 256 Bytes, erase size 256
    KiB, total 64 MiB
    "Synchronous Abort" handler, esr 0x96000210
    elr: 000000008206db44 lr : 0000000082004ea0 (reloc)
    elr: 00000000b7ba6b44 lr : 00000000b7b3dea0
    x0 : 00000000b79407e8 x1 : 0000000040640000
    x2 : 0000000000000050 x3 : 0000000000000000
    x4 : 000000000000000a x5 : 0000000000000050
    x6 : 0000000000000366 x7 : 00000000b7942308
    x8 : 00000000b76407c0 x9 : 0000000000000008
    x10: 0000000000000044 x11: 00000000b7634d1c
    x12: 000000000000004f x13: 0000000000000044
    x14: 00000000b7634d98 x15: 00000000b76407c0
    x16: 0000000000000000 x17: 0000000000000000
    x18: 00000000b7636dd8 x19: 0000000000000000
    x20: 00000000b79407d0 x21: 00000000b79407e8
    x22: 0000000040640000 x23: 00000000b7634e58
    x24: 0000000000000000 x25: 0000000003800000
    x26: 00000000b7bdd000 x27: 0000000000000000
    x28: 0000000000000000 x29: 00000000b7634d10

    Code: d2800003 eb03005f 54000101 d65f03c0 (f8636826)
    Resetting CPU ...

    Signed-off-by: Biwen Li

    Biwen Li
     
  • Update kernel_size_sd variable with correct value for lx2160a.

    Signed-off-by: Manish Tomar

    Manish Tomar