31 Jul, 2019

1 commit

  • Convert the ci_udc driver to driver model by using the uclass
    UCLASS_USB_GADGET_GENERIC. The clk and power of USB controller and USB
    PHY both are initialized by parsing the device tree nodes.

    If CONFIG_DM_USB_GADGET is defined, we use the ci_udc driver in DM way,
    if it does not defined, we can use ci_udc driver in its original Non-DM
    way.

    Move some USB PHY register definitions from ehci-mx6.c to
    asm/mach-imx/regs-usbphy.h in order to share with DM usb gadget driver.

    Signed-off-by: Sherry Sun
    Reviewed-by: Ye Li

    Sherry Sun
     

30 Jul, 2019

2 commits


26 Jul, 2019

12 commits


25 Jul, 2019

8 commits

  • MMC device id remap function "board_mmc_get_env_dev()" was
    removed in u-boot v2019 because we add the mmc device aliases
    in dts file. But we still need to remap the mmc device id in
    spl or read/write rpmb keyslot package will fail.

    This patch adds mmc device id remap function in spl to get the
    correct device id.

    Test: boot on imx8mm with trusty enabled.

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

    Ji Luo
     
  • The A/B slot selection is moved to spl, it may lead to hang
    if no bootable slots found. The only way to recover the board
    is re-flash images with uuu tool, which is quite inconvenient
    for some customers who can't enter serial download mode.

    This patch will set "spl recovery mode" which will give us a
    chance to re-flash images with fastboot commands.

    Test: Enter spl recovery mode and flash images when no bootable
    slots found.

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

    Ji Luo
     
  • when conduct fastboot lock/unlock operations, erase the userdata first
    and then set lock/unlock status to improve security level.

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

    faqiang.zhu
     
  • It can be dangerous to export some hwcrypto commands to Linux,
    add commands to limit some commands within bootloader.

    Test: hwcrypto commands can't be used after locking boot state.

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

    Ji Luo
     
  • Add new command to generate bkek from trusty.

    Test: generate and dump bkek.

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

    Ji Luo
     
  • Add sha256 hmac support in u-boot.

    Test: hmac calculation.

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

    Ji Luo
     
  • In host end, need encrypt the attestation keys and certs
    by manufacture protection public key though AES-128-ECB.
    Then use below 4 set of commands to provision encrypted
    RSA attestation and EC attestation:
    * $fastboot stage atte_rsa_key.bin
    * $fastboot oem set-rsa-atte-key-enc
    * $fastboot stage atte_rsa_cert.bin
    * $fastboot oem append-rsa-atte-cert-enc
    * $fastboot stage atte_ec_key.bin
    * $fastboot oem set-ec-atte-key-enc
    * $fastboot stage atte_ec_cert.bin
    * $fastboot oem append-ec-atte-cert-enc

    Change-Id: I8a7c64004a17f7dde89f28c3123a2e2b1a6d3346
    Signed-off-by: Haoran.Wang

    Haoran.Wang
     
  • Add new keymaster commands to get Manufacure Production key (mppubk).
    Since the mppubk can only be generated in OEM CLOSED imx8q board, so
    we can only use this command when the board is HAB/AHAB closed.

    Commands to extract the mppubk:
    * $fastboot oem get-mppubk
    * $fastboot get_staged mppubk.bin

    Test: Generate and dump the mppubk.bin

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

    Ji Luo
     

24 Jul, 2019

13 commits

  • Align using emmc loader when there is no Trusty OS for Android standard
    boot in SD/EMMC.

    Add hook for getting correct offset when load uboot.

    Change-Id: I5898cf196e734ffaca1a513918a049ce504b14e9
    Signed-off-by: Haoran.Wang

    Haoran.Wang
     
  • This patch removed the SDP support in imx8mn due
    it will cause the memory resource limitation when run
    SPL.

    This patch also removed ROMAPI loader. Due Trusty OS
    need SPL support mmc related features. So fall back to use
    mmc loader instead of ROMAPI.

    To fix mmc loader, correct the uboot raw loader offset.

    Change-Id: If13f6c9133226efd0831a1867377b8ab0abb6327
    Signed-off-by: Haoran.Wang

    Haoran.Wang
     
  • Duplicate imx8mn_ddr4_evk_android_defconfig to
    imx8mn_ddr4_evk_android_trusty_defconfig to for the one
    who support Trusty OS.

    Change-Id: I0577324a913abc1a118d2e58bea2534b8873ae88
    Signed-off-by: Haoran.Wang

    Haoran.Wang
     
  • Add configs to support evk_imx8mm 4GB DDR board. The 4GB DDR will
    be split into two banks, one is 3GB (0x4000_0000~0xffff_0000) and
    another is 1GB(0x1_0000_0000~0x1_4000_0000).

    Test: build and boot with or without trusty.

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

    Ji Luo
     
  • Follow Bootloader requirement spec in
    https://source.android.com/devices/bootloader/unlock-trusty.
    Need to pass the flash lock status by androidboot.flash.locked.

    This patch fixed the GTS failure
    com.google.android.gts.persistentdata.PersistentDataHostTest#testTestGetFlashLockState.

    Change-Id: I9a3508f7546b02c998e7668df2a33f864a58db75
    Signed-off-by: Haoran.Wang

    Haoran.Wang
     
  • Do not pass BDADDR from uboot cmdline when
    serial is all zero, and instead btmacaddr
    will be set from persist.service.bdroid.bdaddr
    which is set in device's init.freescale.rc

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

    yang.tian
     
  • modify the defconfig file for evk_8mn running Android, to make evk_8mn
    be able to be flashed with mcu firmware image and boot up the mcu.

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

    faqiang.zhu
     
  • new imx8mn chips have Cortex-M7 inside, not like any other existing
    multi-core i.MX MPU, users may manually flash mcu firmware with
    fastboot, partition name need to be specified at the same time, so the
    mcu firmware partition name need to be changed. related enum and
    variable names are also modified.

    Change-Id: Ia801e76fb3a20d0074dbbc1433258358c1a53907
    Signed-off-by: faqiang.zhu
    Signed-off-by: Ji Luo

    Ji Luo
     
  • new imx8mn chips have Cortex-M7 inside, not like other imx8m devices
    of imx8mm and imx8mq which have Cortex-M4 inside. the names of MACROs
    used to boot MCU on imx8m devices is modified to make them more common
    to cover M4 and M7.
    annotations are also modified based on the differences between M4 and
    M7.

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

    faqiang.zhu
     
  • imx-regs-imx8mm.h is used both for imx8mm and imx8mn, while mcu in
    imx8mn is Cortex-M7, it's different from Cortex-M4 in imx8mm, change
    the MACRO name of mcu TCM base address from M4_BOOTROM_BASE_ADDR to
    MCU_BOOTROM_BASE_ADDR.
    since this MACRO will be used in common code for i.MX chips, the same
    MACRO name in other files are also modified.

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

    faqiang.zhu
     
  • Add support for AIY 2GB DDR size. Wrap support for
    3GB DDR board with CONFIG_AIY_LPDDR4_3G because of
    the limited ocram size.

    Test: build and boot on 2GB AIY board.

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

    Ji Luo
     
  • Align the eMMC device id to '2' to get correct bootloader0
    offset.

    Test: bootloader0 partition flash.

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

    Ji Luo
     
  • Add configs to support evk_imx8mn android build.

    Test: build and boot on eMMC and sd.

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

    Ji Luo
     

23 Jul, 2019

1 commit


22 Jul, 2019

1 commit


19 Jul, 2019

1 commit

  • This CONFIG_ENV_DEFAULT_NOWHERE config must be enabled for USB download
    when we implemented the override function to select env storage medium.
    To avoid adding it to every imx8mn defconfig, enable the config as default
    on imx8mn.

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

    Ye Li
     

18 Jul, 2019

1 commit