07 Dec, 2018

1 commit


04 Dec, 2018

1 commit

  • 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
     

26 Nov, 2018

2 commits

  • Get build warning below because the CONFIG_SERIAL_TAG is not defined.

    drivers/usb/gadget/f_fastboot.c: In function ‘fastboot_setup’:
    drivers/usb/gadget/f_fastboot.c:1768:2: warning: ‘serialnr.high’ is used
    uninitialized in this function [-Wuninitialized]
    sprintf(serial, "%08x%08x", serialnr.high, serialnr.low);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    drivers/usb/gadget/f_fastboot.c:1768:2: warning: ‘serialnr.low’ is used
    uninitialized in this function [-Wuninitialized]

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

    Ye Li
     
  • Remove the fuse operation commands for imx8qm, this will
    help reduce the u-boot binary size.

    Test: build and boot ok on imx8qm.

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

    Luo Ji
     

23 Nov, 2018

3 commits


22 Nov, 2018

2 commits

  • The CONFIG_MMC_ENV_DEV binds with CONFIG_ENV_IS_IN_MMC on mx6sabreauto.
    When booting from other boot devices like EIMNOR, SPINOR, they need to
    load kernel from SD, if the configuration is not set, the loading will fail.

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

    Ye Li
     
  • Too many macros are used in fsl_avbkey.c and
    make it difficult to maintain.
    This patch made some refine by:
    1. Move all avb/atx operations to fsl_avb.c.
    2. Refine the functions logic.
    3. Drop some unsupported conditions/functions.

    Test: build and boot on
    imx8qm_mek/imx8mq_evk/imx6qp_sabresd/imx7d_pico/imx8m_aiy.

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

    Luo Ji
     

16 Nov, 2018

1 commit


12 Nov, 2018

7 commits

  • The rollback index should be updated when avb verify pass
    and the slot has been marked as successful, update the
    rollback index also for those enabled dual bootloader
    feature.
    This commit also fix some configs condition issue so
    read/write rollback index with trusty will work.

    Test: rollback index updated successfully on
    imx7d_pico and AIY.

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

    Ji Luo
     
  • SHA256 hash of the entire verified software stack should be calculated
    and passed to 'trusty_set_boot_params'. This commit will calculate the
    SHA256 hash which represents spl.bin and bootloader.img, and then extend
    that hash with the hash of vbmeta image into the final VBH.

    Bug: 110905171

    Test: VBH is calculated and passed ok on AIY.

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

    Ji Luo
     
  • Add support for fastboot variable 'at-vboot-state', it's composed
    by 6 sub-variable: 'bootloader-locked', 'bootloader-min-versions',
    'avb-perm-attr-set', 'avb-locked', 'avb-unlock-disabled' and
    'avb-min-versions'.

    Test: All 'at-vboot-state' variables are returned
    correctly on imx7d_pico and AIY.

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

    Ji Luo
     
  • Device will be locked permanently after disabling the unlcok vboot, store
    the disable unlock vboot status into fuse. Since the fuse write operation
    is irreversible so config 'CONFIG_AVB_FUSE' is disabled by default, user
    need to add this config manually and run this command again.

    Test: Disable unlock vboot bit is set after enabling "CONFIG_AVB_FUSE",
    device was locked permanently after running this command. This is
    verified on both imx7d_pico and AIY.

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

    Ji Luo
     
  • Add fastboot commands "fastboot oem at-get-vboot-unlock-challenge"
    and "fastboot oem at-unlock-vboot" to support the authenticated
    unlock feature for Android Things devices. Use software random
    numbers generator to generate the 16 bytes random challenge, it
    should be replaced with hardware encrypted random generator when
    the TEE part is ready.

    Test: Generate unlock challenge by:
    ./avbtool make_atx_unlock_credential
    --output=atx_unlock_credential.bin
    --intermediate_key_certificate=atx_pik_certificate.bin
    --unlock_key_certificate=atx_puk_certificate.bin
    --challenge=my_generated_challenge.bin
    --unlock_key=testkey_atx_puk.pem
    validated the unlock credential successfully on imx7d_pico
    and AIY.

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

    Ji Luo
     
  • Change-Id: Ia9e76742d0501d3222d5837057d8bc916f2ff989
    Signed-off-by: Haoran.Wang

    Haoran.Wang
     
  • Trusty image should be loaded to different address for AIY 1G/3G ddr
    board which have different ddr size. Use board id to distinguish
    different baseboard, load trusty image to 0x7e00_0000 for AIY 1G ddr
    board and 0xfe00_0000 for AIY 3G ddr board.

    Test: build and boot Trusty ok for AIY 1G/3G ddr board.

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

    Ji Luo
     

07 Nov, 2018

1 commit


06 Nov, 2018

1 commit

  • When using gcc 4.9 to build SPL, the image size is beyond current
    limitation 128KB. This gcc version is used in android tool chain. So
    enlarge the SPL max size to 148KB. This value is also aligned with
    other imx8mq/mm boards settings.

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

    Ye Li
     

03 Nov, 2018

6 commits


26 Oct, 2018

1 commit


25 Oct, 2018

1 commit


12 Oct, 2018

2 commits

  • After loading hdmi firmware, create partition, HDMI power domain will be
    off, this will cause HDMI firmware being lost.

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

    Peng Fan
     
  • camera sometime can't been open once run M4 image.
    ISI-CH0 probe funtion is not called when meet issue.

    The root cause is:
    M4 image set assign resource SC_R_ISI_CH0 into m4 partition
    when open camera in m4 side.
    Uboot will call update_fdt_with_owned_resources to check the pd
    in current dts node. it will call sc_rm_is_resource_owned to
    check the pd whether in other partition, If yes, it will delete
    the dts node. uboot delete isi_0 node whose pd is SC_R_ISI_CH0.

    add CONFIG_SKIP_RESOURCE_CHECING to skip checking resource when load dtb.

    Change-Id: Ibf79c0bb9bc133bd7e395be57ca4a1f2ca5cf75a
    Signed-off-by: zhang sanshan

    zhang sanshan
     

11 Oct, 2018

1 commit


10 Oct, 2018

1 commit


09 Oct, 2018

2 commits


01 Oct, 2018

2 commits


29 Sep, 2018

1 commit

  • The current u-boot configures the fdt_file environment variable
    to the file name of that built together with u-boot. Sometimes
    Linux kernel needs another dtb file other than the one built with
    u-boot. For example, imx7ulp needs to build imx7ulp-evk-qspi.dts for
    u-boot, but the kernel needs imx7ulp-evk.dts. Adding this new
    macro to let the user have an option to specify a dtb file to run
    Linux kernel.

    Signed-off-by: Shenwei Wang

    Shenwei Wang
     

28 Sep, 2018

4 commits