24 Mar, 2020

1 commit


25 Nov, 2019

1 commit


15 Nov, 2019

1 commit


11 Nov, 2019

1 commit


01 Nov, 2019

1 commit


02 Apr, 2019

1 commit

  • As the M4 use different DDR memory size in normal android/car2 and car
    image, use different defconfig for car2 to decrease DDR memory
    reservation. So memory reserved for each M4 core is 8MB in car2 and
    normal android image. it's 32MB for car image.

    Change-Id: Idf608f539cd614a154c78e3a1af28eff1da5c1f2
    Signed-off-by: Zhang Bo

    Zhang Bo
     

01 Apr, 2019

1 commit

  • Add support for DVT AIY 1G board, distinguish the board type
    with the board id.
    TYPE: ID:
    Micron 1G 0x5
    HYNIX 1G 0x3
    Micron 3G 0x1

    Test: Boot on AIY 1G/3G ddr board.

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

    Ji Luo
     

29 Mar, 2019

2 commits


20 Mar, 2019

1 commit

  • The sec_in32 preprocessor is defined as follows in include/fsl_sec.h file:
    When address "a" is calculated using math for ex: addition of base address and an offset, then casting is applied only to the first address which in this example is base address.

    caam_ccbvid_reg = sec_in32(CONFIG_SYS_FSL_SEC_ADDR + CAAM_CCBVID_OFFSET)
    resolves to:
    caam_ccbvid_reg = in_le32((ulong *)(ulong)CONFIG_SYS_FSL_SEC_ADDR + CAAM_CCBVID_OFFSET)
    instead it should resolve to:
    caam_ccbvid_reg = in_le32((ulong *)(ulong)(CONFIG_SYS_FSL_SEC_ADDR + CAAM_CCBVID_OFFSET))

    Thus add parenthesis around the address "a" so that however the address is calculated, the casting is applied to the final calculated address.

    Bug introduced by commit 79e90af14af3 ("MLK-18044-2: crypto: caam: Fix build warnings pointer casting").

    Signed-off-by: Utkarsh Gupta
    Reviewed-by: Horia Geanta
    Reviewed-by: Ye Li
    (cherry picked from commit 5d10d1cab052f8af4fd00640e09642aa0a596922)

    Utkarsh Gupta
     

14 Mar, 2019

1 commit


12 Mar, 2019

2 commits

  • Trusty is not supported for xen so we don't need to check
    the keyslot package or rollback index in spl. Reassign the
    dram address for spl and u-boot to avoid conflicts.

    Support serial init functions to enable debug console
    in spl when xen is running.

    Test: Boot and A/B slot switch on imx8qm_mek.

    Change-Id: If6829252f1ec2e32255f951715c8747181951fd0
    Signed-off-by: Ji Luo
    Reviewed-by: Peng Fan

    Ji Luo
     
  • Image size is about 30M and 0x8028000+30M has overlaped with malloc
    memory. malloc memory end address is 0x88000000 and need to decrease the
    malloc size to reserve enough memory for loading kernel and dtb image.

    The memory address 0x90000000~0x92000000 has been reserved for M4 in
    SCFW. Need to change the HDMI firmware loading address to 0x84000000
    which is aligned with BSP image.

    Change-Id: I6f9b6e05a9c9d8b5f7d385632a0ef54a0c20667d
    Signed-off-by: Zhang Bo

    Zhang Bo
     

11 Mar, 2019

1 commit


08 Mar, 2019

1 commit


07 Mar, 2019

1 commit

  • The spl is located at ocram which will be lost when suspend/resume,
    partition reboot will make A core reboot from the start address of
    ATF, which blocks dual bootloader feature on Android Auto.

    Move the spl to dram and make the partition reboot from spl to fix this
    issue. The memory map will be changed to:
    SPL: 0x0000_0000 --------> 0x8000_0000
    ATF: 0x8000_0000 --------> 0x8004_0000
    U-boot: 0x8002_0000 --------> 0x8006_0000

    Test: reboot ok on imx8qm/imx8qxp.

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

    Ji Luo
     

05 Mar, 2019

1 commit

  • Create new config file based on "imx8mq_aiy_android_defconfig"
    and enable the CONFIG_IMX_TRUSTY_OS to supprt Trusty OS for AIY.
    Also enlarge the malloc poll to 96 MB because calculate hash
    with CAAM will consume more heap memory.

    Test: Trusty OS boots up and CAAM functions work.

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

    Ji Luo
     

27 Feb, 2019

1 commit


26 Feb, 2019

2 commits

  • The CONFIG_QSPI_BOOT has been removed from SPL flexspi build, because
    we have to change the u-boot ENV to SD/MMC, and this configuration will
    set relevant configurations.

    But we don't clean up CONFIG_QSPI_BOOT for SPL completely, SPL still has
    some places using it and cause problem to flexspi boot.
    Using CONFIG_SPL_SPI_SUPPORT to replace the CONFIG_QSPI_BOOT.

    Signed-off-by: Ye Li
    (cherry picked from commit 0491bd4ba21ad620b4c514323a7d6b8a9e10325c)

    Ye Li
     
  • Partition creation will be done in xen, remove it from uboot.
    And add domu-android-auto property

    Signed-off-by: Peng Fan
    Reviewed-by: Flynn xu
    (cherry picked from commit 23f7a037d14d05c2eea5622bd8ffda2f23d04372)

    Peng Fan
     

25 Feb, 2019

2 commits


23 Feb, 2019

1 commit

  • The imx6ul/ull/ulz EVK boards enable eMMC fastboot with ack by default bootcfg.
    So when using uuu to burn eMMC, we have to set ack to 1 in "mmc partconf" command.
    Add this env for these board, so that uuu can use it to solve the problem by
    executing "if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;" to
    use the emmc_ack at runtime.

    Signed-off-by: Ye Li
    (cherry picked from commit 9a4a67ed9f07e99cf284fe2929c4f12809b5884b)

    Ye Li
     

22 Feb, 2019

1 commit

  • Grant user the permission to change the bootargs can be very
    dangerous, so add config 'CONFIG_APPEND_BOOTARGS' to guard the
    bootargs appending feature.

    Test: bootargs can't be appended if "CONFIG_APPEND_BOOTARGS" is
    not set.

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

    Ji Luo
     

19 Feb, 2019

3 commits


18 Feb, 2019

1 commit

  • Current signed OS container loading address is 0x88000000. It conflicts
    with DDR memory reserved for M4. If we build image with ALT_CONFIG enabled.
    SCFW will assign that memory to M4. Then authentication to kernel image
    will have problem. So modify to new address 0x98000000 which is safe.

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

    Ye Li
     

15 Feb, 2019

1 commit

  • Update to latest SCFW API with below commit. Add version API and
    remove some resource ids.

    commit 004247e14afc74a21d65569415c4b2e35bfaabc3
    Author: Ranjani Vaidyanathan
    Date: Thu Feb 14 14:55:12 2019 -0800

    SCF-341 Fix bug in setting large slice clock divider

    Incorrect mask was applied when clearing out the bits in the
    DSC large slice divider.

    Signed-off-by: Ranjani Vaidyanathan

    Signed-off-by: Ye Li
    (cherry picked from commit 745f2e597613e96f1ac630e842faafdc060ee029)

    Ye Li
     

12 Feb, 2019

2 commits

  • We use MU8 and MU9 to communicate with M4_0 and M4_1 in u-boot. Add
    relevant nodes for the MU driver.

    Signed-off-by: Ye Li
    (cherry picked from commit b06674a91991fe3bfe5a2f6000195cb8546c72a6)

    Ye Li
     
  • Add a common iMX MU driver in misc uclass to communicate with M4.
    The MU message format is defined to use 4 words as below, the driver
    will use all 4 TR/RR in MU to pass one message

    |WORD 0 | WORD 1 | WORD 2 | WORD 3 |
    |SEQ | TYPE | PAYLOAD ADDRESS | PAYLOAD LENGTH |

    - SEQ:
    A sequence id starts from 0 and increases for each request message

    - TYPE:
    0x1: Request. Message sent from AP will set to this value.
    0x2: Response. Message responded from M4 set to this value.
    0x3: MU A side is ready.
    0x4: MU B side is ready.

    - PAYLOAD ADDRESS:
    A pointer to the memory address where the uplayer message is stored

    - PAYLOAD LENGTH:
    The uplayer message length

    Signed-off-by: Ye Li
    (cherry picked from commit aba0e51cc397e1d98be950f9c15619de06ebf782)

    Ye Li
     

11 Feb, 2019

1 commit


31 Jan, 2019

1 commit

  • Open configs to add trusty os support for imx8q xen
    build. The rpmb keyslot package must be checked and
    copied to secure memory before trusty os boot.

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

    Ji Luo
     

25 Jan, 2019

2 commits

  • Since different ARM2/Validation boards use different kernel FDT, configure
    them to CONFIG_DEFAULT_FDT_FILE in defconfig

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

    Ye Li
     
  • There are two new validation boards: LPDDR4 board (30123) and DDR3L board (30010)
    for imx8x family 17x17 chips. These two boards have same design except the DDR.
    Since SCFW is resposible for DDR initialization, U-boot could use one build to
    cover two boards.
    The 8DX 17x17 DDR3L ARM2 has been added into u-boot before, so we rename the config
    CONFIG_TARGET_IMX8DX_DDR3_ARM2 to CONFIG_TARGET_IMX8X_17X17_VAL to cover DDR3L and
    LPDDR4.

    Considering 8DX and 8QXP 17x17 may solder to the boards, we create two defconfig:
    one for DX and another for 8qxp to share with the CONFIG_TARGET_IMX8X_17X17_VAL
    but with different FDTs.

    Signed-off-by: Ye Li

    Ye Li
     

22 Jan, 2019

2 commits

  • The imx8qm_arm2 has duplcated settings for initrd_addr and initrd_high,
    and needs to change initrd_addr to 0x83100000 to align with other imx8
    boards.

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

    Ye Li
     
  • On most of mx6 and mx7 platforms, we set the initrd address to 0x3800000
    offset from DRAM base. However, the optee address is 0x4000000 offset from
    DRAM base. So it will cause memory overlap when using initramfs and optee at
    same time, for example using uuu to boot into kernel.

    To fix the conflict, we set initrd address to 0x6680000 offset from DRAM base,
    because OPTEE needs reserve 32MB memory from 0x4000000 offset to 0x6000000 offset.

    Signed-off-by: Ye Li

    Ye Li
     

21 Jan, 2019

2 commits


19 Jan, 2019

1 commit