06 May, 2020
40 commits
-
Add env_get_offset interface to override static CONFIG_ENV_OFFSET,
and update env location driver to use env_get_offset. So for different
storage medium, we are able to store the env at different offset.We don't support this feature when CONFIG_ENV_IS_EMBEDDED is set.
Signed-off-by: Ye Li
(cherry picked from commit 5b12d7cabb14bab9a95af7460b36c6c85db1b328)
(cherry picked from commit 565d9002ac59b03d5bc77c6d88f2b93492166b66) -
Introduce puts hook for dm serial driver.
Change-Id: I75423998c7d8db20949bae6ac46a094dc62c9612
Signed-off-by: Peng Fan
Reviewed-by: Peng Fan
Reviewed-by: Flynn xu
(cherry picked from commit bb986d4ff2124285ec0d99a51a2702a53f485813) -
Add DEK blob encapsulation support for IMX8M through "dek_blob" command.
On ARMv8, u-boot runs in non-secure, thus cannot encapsulate a DEK blob
for encrypted boot.
The DEK blob is encapsulated by OP-TEE through a trusted application call.
U-boot sends and receives the DEK and the DEK blob binaries through OP-TEE
dynamic shared memory.To enable the DEK blob encapsulation, add to the defconfig:
CONFIG_SECURE_BOOT=y
CONFIG_FAT_WRITE=y
CONFIG_CMD_DEKBLOB=ySigned-off-by: Clement Faure
Reviewed-by: Ye Li
(cherry picked from commit 7ffd25bddc89db30612f4e805d103c7d8dde5d95) -
When download image through ROM API for stream mode (USB, eMMC fastboot).
We uses tricky way to get the total image size:
The spl_load_simple_fit is called but the data reading is invalid, so the image
data is not really downloaded.
We should not call HAB authenticate in this tricky way. Otherwise it
will alway fail.
This patch add a new flag SPL_FIT_BYPASS_POST_LOAD to skip the authentication
only for this tricky using.Signed-off-by: Ye Li
Reviewed-by: Peng Fan
(cherry picked from commit 47b0cf6de06ff9b3e2b2755d5c8203210378b26a)
(cherry picked from commit 3e50573a7007771586e737b343bdde4d98c21c23) -
Update below codes for DDR4 EVK:
1. Change SPL to non-DM
2. Add DM FEC ENET support
3. Enable Flexspi NOR support
4. Add USB typec host and device mode supportSigned-off-by: Ye Li
-
Sync the DTS and binding files with v5.4.y kernel.
Some updates in u-boot:
1. Add alias for flexspi, usbotg1 and usbotg2.
2. Add usbotg2 nodes
3. Add i2c force idle pins
4. Update usbotg nodes to use exconSigned-off-by: Ye Li
-
Previous patch "MLK-21885 lmb: Handle the overlap case for lmb reserve" adds
the overlap support to lmb reserve. However, u-boot has some places to use the
lmb_reserve when allocating memory in loading images. If we allowed overlap
in this function, it means images loading address can overlap each other and
cause the address check mechanism not work.So add another function to allow overlap and only use it for fdt reserved-memory
nodes. The FDT reserved-memory is ok to merge with other reserved memory, since
this won't break image loading address check.Signed-off-by: Ye Li
(cherry picked from commit 2109dc2a4da592003ec62820f5bdfb6bd0899805) -
Partition creation will be done in xen, remove it from uboot.
And add domu-android-auto propertySigned-off-by: Peng Fan
Reviewed-by: Flynn xu
(cherry picked from commit 23f7a037d14d05c2eea5622bd8ffda2f23d04372)
(cherry picked from commit 9646e5b095f4c79114eaa7d60bfa03504c7da172) -
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
(cherry picked from commit 0681ed943c1a00012a8f15e104048f48f2e1fcbe)
(cherry picked from commit e2922f4f0e6c659bb444d87ca4a2d103110c2f85) -
This patch is to add usb gadget super speed support in common
driver, including BOS descriptor and select the super speed
descriptor from function driver.Reviewed-by: Ye Li
Reviewed-by: Peter Chen
Tested-by: faqiang.zhu
Signed-off-by: Li Jun
(cherry picked from commit b0bc5f6d1292158a068446771c10a4e7285f9623)
(cherry picked from commit 363267844637123d4fcfb924d624882b02059082) -
This is a proting patch from linux kernel: 37a3a533429e
("usb: gadget: OS Feature Descriptors support"), the original commit
log see below:There is a custom (non-USB IF) extension to the USB standard:
http://msdn.microsoft.com/library/windows/hardware/gg463182
They grant permission to use the specification - there is
"Microsoft OS Descriptor Specification License Agreement"
under the link mentioned above, and its Section 2 "Grant
of License", letter (b) reads:"Patent license. Microsoft hereby grants to You a nonexclusive,
royalty-free, nontransferable, worldwide license under Microsoft’s
patents embodied solely within the Specification and that are owned
or licensable by Microsoft to make, use, import, offer to sell,
sell and distribute directly or indirectly to Your Licensees Your
Implementation. You may sublicense this patent license to Your
Licensees under the same terms and conditions."The said extension is maintained by Microsoft for Microsoft.
Yet it is fairly common for various devices to use it, and a
popular proprietary operating system expects devices to provide
"OS descriptors", so Linux-based USB gadgets whishing to be able
to talk to a variety of operating systems should be able to provide
the "OS descriptors".This patch adds optional support for gadgets whishing to expose
the so called "OS Feature Descriptors", that is "Extended Compatibility ID"
and "Extended Properties".Hosts which do request "OS descriptors" from gadgets do so during
the enumeration phase and before the configuration is set with
SET_CONFIGURATION. What is more, those hosts never ask for configurations
at indices other than 0. Therefore, gadgets whishing to provide
"OS descriptors" must designate one configuration to be used with
this kind of hosts - this is what os_desc_config is added for in
struct usb_composite_dev. There is an additional advantage to it:
if a gadget provides "OS descriptors" and designates one configuration
to be used with such non-USB-compliant hosts it can invoke
"usb_add_config" in any order because the designated configuration
will be reported to be at index 0 anyway.This patch also adds handling vendor-specific requests addressed
at device or interface and related to handling "OS descriptors"."Signed-off-by: Li Jun
(cherry picked from commit 859be2fc12dbd1b99e140641f2d7fa14df29c9dd)
(cherry picked from commit b524637d502ca75e6eb385b59df708f858a6da2a)
(cherry picked from commit 56ac0900c5182055a771fd2777f0bbb2295f49a8) -
As other users may use utf8_to_utf16le() to convert the utf8
to utf16 for usb, so move it to head file.Signed-off-by: Li Jun
(cherry picked from commit 94870cb6b587243e0a68ee9a3ec43540d76152cc)
(cherry picked from commit 80150d76172e4443179ddfe8f91c39126493cffa)
(cherry picked from commit 2d84420646336bc8e9ffea23122ef6c28d3a4f89) -
This is a porting patch from linux kernel: 19824d5eeece
("usb: gadget: OS String support"), original commit log
see below:"There is a custom (non-USB IF) extension to the USB standard:
http://msdn.microsoft.com/library/windows/hardware/gg463182
They grant permission to use the specification - there is
"Microsoft OS Descriptor Specification License Agreement"
under the link mentioned above, and its Section 2 "Grant
of License", letter (b) reads:"Patent license. Microsoft hereby grants to You a nonexclusive,
royalty-free, nontransferable, worldwide license under Microsoft’s
patents embodied solely within the Specification and that are owned
or licensable by Microsoft to make, use, import, offer to sell,
sell and distribute directly or indirectly to Your Licensees Your
Implementation. You may sublicense this patent license to Your
Licensees under the same terms and conditions."The said extension is maintained by Microsoft for Microsoft.
Yet it is fairly common for various devices to use it, and a
popular proprietary operating system expects devices to provide
"OS descriptors", so Linux-based USB gadgets whishing to be able
to talk to a variety of operating systems should be able to provide
the "OS descriptors".This patch adds optional support for gadgets whishing to expose
the so called "OS String" under index 0xEE of language 0.
The contents of the string is generated based on the qw_sign
array and b_vendor_code.Interested gadgets need to set the cdev->use_os_string flag,
fill cdev->qw_sign with appropriate values and fill cdev->b_vendor_code
with a value of their choice.This patch does not however implement responding to any vendor-specific
USB requests."Signed-off-by: Li Jun
(cherry picked from commit b6ea0aaee307be0defaf8dc2c1eae9110bdae9a7)
(cherry picked from commit ccc7596829c33eb1b616e3f5ba434edff444f805)
(cherry picked from commit 98d8afdca42c1f0e7a875b628e0fb398af2cdea7) -
uuu will use fastboot command to write emmc, enable it as
default for iMX8MM EVK boardSigned-off-by: Frank Li
Signed-off-by: Ye Li
(cherry picked from commit ed6898da1c1a78dbf59ac4d6d291bc25e14c636e) -
Add the uuu environment to each board, when booting from USB, the
u-boot will use them by defaultSigned-off-by: Ye Li
(cherry picked from commit e36e653ca2f5b0e879d84925219455790acaf2d2) -
This commit is cherry-picked from community:
commit 343749c42554b058e53086aefe21d47b383326d5
author Kever Yang
date Wed, 19 Jul 2017 18:13:59 +0800 (19:13 +0900)mmc: rpmb: update size format for write_counter
According to MMC spec, the write_counter is 4-byte length,
use 'int' instead of 'long' type for the 'long' is not 4-byte
in 64 bit CPU.Signed-off-by: Jason Zhu
Signed-off-by: Kever Yang
Reviewed-by: Simon Glass
Signed-off-by: Jaehoon ChungTest: Access RPMB successfully on imx8m.
Change-Id: I402b53c990856c2cdf7c3686eabf259f5581464d
Signed-off-by: Luo Ji -
Secure Storage service in Trusty OS will compute
the encrypted mmc frame and the rpmb proxy inject the frame
to driver directly. So that need to export RPMB related
interface for Secure Storage proxy use.Change-Id: I7f69831a20a440f597d323b610fa615fd4344d05
Signed-off-by: Haoran.Wang
(cherry picked from commit 4d2c1873ce8221e35874265e41dc42a6df169659)
(cherry picked from commit ce4e9dc35ff89a2429224ae6d0ffb4109cb42e28)
(cherry picked from commit 412ece12209e2f916616053ad65b421e95c07955) -
The lib provided ql-tipc communication channel with
Trusty OS.
Also the AVB, Keymaster, hwcrypto and SecureStorage service
tipc client implement in this lib.Change-Id: I0ab1ec9ee1b6f272b960c2e944008283c2c9249a
Signed-off-by: Haoran.Wang
(cherry picked from commit 8fb370dd80fbb293b58115d2e7fc4970813773c7)
(cherry picked from commit 0ccdd527a794c2b450658980361a7857ce7495c9)
(cherry picked from commit ffca28682c5a9375c29b3036a156aff190341960) -
Porting the FSL android fastboot features from imx u-boot v2018.03 to
support all SoCs: imx6/imx7/imx7ulp/imx8/imx8m.The UUU commands like UCmd and ACmd are also added. Users need set
CONFIG_FASTBOOT_UUU_SUPPORT=y to enable the feature.Signed-off-by: Frank Li
Signed-off-by: Ye Li
(cherry picked from commit 65120b06a7f750b9b1a6e0db3d2082cc7088d5a8)
(cherry picked from commit 9b149c2a28829fe7017f83981d634157bc31cc94) -
Porting the android AVB lib from imx u-boot v2018.03. Since 2019 u-boot
has added latest AVB library, try to reuse it.Signed-off-by: Ye Li
(cherry picked from commit 2105662ada738a271e12a81d775134a5821dc38f)
(cherry picked from commit f7291d86c4183ce2e299ad271aa5618c71507ffc)
(cherry picked from commit b871714c519e1bda3de6afbd354bee2cb246e4b7) -
Adding new config file and uTee file name to enable OP-TEE support
on imx6ulz EVK.Signed-off-by: Silvano di Ninno
(cherry picked from commit e3c26a7b908a6a3591ab2e619735c44a85e23972)
Signed-off-by: Ye Li
(cherry picked from commit 6f6c9a9a838981eb9c6c0dd3558125039250c319)
(cherry picked from commit c11884b0f613afcb85800a0ef7a4176d05a5df67) -
1. Add emmc, nand, and qspi boot support: defconfigs and DTS
2. Support USB2NET dongle
3. Fix is_mx6ull to include 6ulz
4. Update DTS model name
5. Modify ENV offset to 896KB for SD/eMMCSigned-off-by: Ye Li
-
Add defconfig for tee support;
Enable the TZASC support;
Add env config for tee support.Signed-off-by: Bai Ping
Reviewed-by: Peng Fan
(cherry picked from commit 3535868b89df84d3e6554114f7867f9ef908ff01)
(cherry picked from commit 82a0b53092cdc0b025749f4d8f1cdfcc66e07db7)
(cherry picked from commit dc1602c2d7f9d1ff021e46a9187bbcb10f172a71)
(cherry picked from commit 181ae93e7b804db6dca4a0d2c3aaf547413428bb) -
Add different defconfig for optee;
Enable the TZASC support;
Add env config for tee support.Signed-off-by: Bai Ping
Reviewed-by: Peng Fan
(cherry picked from commit 1f86ee60e72bb56af69a4128e8234e08c9bb1f59)
(cherry picked from commit 819b988f3f1a8a207a380b09b4c71374b4b3ae0b)
(cherry picked from commit 7d816e96f304a2a899efb675fda153ebe84775d2)
(cherry picked from commit 53889189eca457cc915d2270c0034f225d9719ed) -
Add different defconfigs.
Enable Trustzone.
Update env to runtime boot OP-TEE.
mx7d arm2 board not supported now.Signed-off-by: Peng Fan
(cherry picked from commit 435807b41ae99bb9f4e0b2c7b9e5287c2bd520c0)
(cherry picked from commit b78124c2f68b9aa4ec2f160d99364bfab72ab5e3)
(cherry picked from commit 641b195a5633cfc3960a42bbb332dd8fead9f939)
(cherry picked from commit 4ca1af73ade293f135ccf44686f87e39b1f494ec) -
Add different defconfigs.
Enable Trustzone.
Update env to runtime boot OP-TEE.Signed-off-by: Peng Fan
(cherry picked from commit af4e26c34e091994615ec721bc357b45e43c89e9)
(cherry picked from commit cd8397e9c973ac31766adf9565b2af18db9f9606)
(cherry picked from commit 79e2e2fbe7ddf376619efb43c4b4e6c4285a6f5c)
(cherry picked from commit 65fd479c23fa3d36d54c1853e3e2645ebcc56e96) -
Add different defconfigs.
Enable Trustzone.
Update env to runtime boot OP-TEE.Signed-off-by: Peng Fan
(cherry picked from commit 7c93e616d69f57668fb7e5ac24d8f7fa98dbe1f2)
(cherry picked from commit eb9063ee64bc30f51a20eec9da0750b0e82f3799)
(cherry picked from commit 580e0b29ca6501f706af6140357019e7f83692dd)
(cherry picked from commit c86df3e535c9528e43f36bfb8d362ca24f71098a) -
Add defconfigs.
Enable Trustzone.
Update env to runtime boot OP-TEE.
To 6QP AUTO, TZASC not enabled now.Signed-off-by: Peng Fan
(cherry picked from commit 62277d7e521894b079911fd8e8b26507ff03c018)
(cherry picked from commit b7be942860a15feb0bd660b1922d4ed9306f1184)
(cherry picked from commit 56d2100c6b3c483d063ce70ad7ce9d6da378ada6)
(cherry picked from commit 44242fe2c59c99936552cefd42b576feb51a25d7) -
Add tee environment variable to fix mfgtool/uuu bootcmd error
Signed-off-by: Peng Fan
(cherry picked from commit 2604fd8bdcd0c36d17899b01f370fd4507cea33e)Signed-off-by: Ye Li
(cherry picked from commit e8f86c28bdb867a2d020a02140722661ebbae467)
(cherry picked from commit 0b4e421e230ae478150c893f93daa6836e60ffd2) -
Specify the default dtb file for kernel boot per i.MX7ULP
board config.Signed-off-by: Shenwei Wang
Reviewed-by: Frank Li
Reviewed-by: Ye Li
(cherry picked from commit 3fba1c1a76cadfe0177e61a85eac3da10ee086e0)
(cherry picked from commit 013eb1fdfdb33df19a0917fd554160a84ec45dd1)
(cherry picked from commit 6052c4d6059f7f545f2f6d73bf77dd4fc5687130) -
Default address of earlycon parameter is not correct,
use correct value for imx7ulp_evk.Test: imx7ulp_evk boots ok.
Change-Id: I2cecb6bfacca573013313ba4ae3783784ccfd506
Signed-off-by: Luo Ji
(cherry picked from commit 9dce3365b8ea0cbdaed06f0c9b98c98b2f150c5a)
(cherry picked from commit c727966e6688fd3de199de1b631a8fd57a8c7149) -
When TEE is enabled, the high 32MB memory is reserved to TEE. So the
mtest end address 0x9e000000 will overlay with u-boot runtime text and data.Fix the issue by changing the mtest end to half of DDR size.
Signed-off-by: Ye Li
(cherry picked from commit 9b56f22639703bd70bfdd1de0cbdcef2b80f0bff)
(cherry picked from commit e9c1c97f64df33eaded9f78268782a246010928f)
(cherry picked from commit 87e7df87b7818052a8c915a5eaeb468d22004383)
(cherry picked from commit 149c3d17879749fd43935893130ccdb3530bc025) -
Add board_late_mmc_env_init to support MMC device detection for environment
variables.Signed-off-by: Ye Li
(cherry picked from commit 6c2fe5b60692e7d0e86383c44792e5f2938bfa14)
(cherry picked from commit 74f5fffe9aee3e1434b63b95e33e7ecc7e5a2b08)
(cherry picked from commit 74b505dd70fc5ba5bb00ec0359ec6f79be757388) -
Since we can use USB ethernet instead of local ethernet, add ethernet support
for it. To use USB ethernet function at u-boot, just plug in Micro-AB cable
at USBOTG1 port with USB2Ethernet adapter connected.Signed-off-by: Peter Chen
(cherry picked from commit 60ffddf87cf6b8502c5d5fc6540364adfd66ebb3)
Signed-off-by: Ye Li
(cherry picked from commit 63c2e1de37e1e24f35279f50efa5a330e2cb3d07)
(cherry picked from commit c82f3bef0aa0cba4937eb6c39501e446dca01746)
(cherry picked from commit b9d238f6e240e189299e49654ca3abf53e92cb28) -
Porting codes to support USB OTG0 on the EVK board. Convert
to use DM USB driver.Signed-off-by: Ye Li
(cherry picked from commit b4e01a67a0740c524e7522da7ace0488f86261db)
(cherry picked from commit 23144983d3347f8f91695cea73aab8558cc66629)
(cherry picked from commit a5d3e7a334689b5c7b4e99f10c1a6044e4775699) -
Porting the QSPI flash board support from v2016.03, and convert to use
DM QSPI driver.
Since we need to support QSPI at default in u-boot, change the default
DTS file to qspi enabled DTS.Signed-off-by: Ye Li
(cherry picked from commit 41895cd598be6c4a64fc4fec521120e4962abc28)
(cherry picked from commit b4698ce0e5b6952a88702075ce905a059da277d9)
(cherry picked from commit 2fa81543fa49924a92a470cce62fbca7544ecd56) -
Enable the module disable fuse checking configurations, and ENET fuse checking during
ENET setup.Signed-off-by: Ye Li
Tested-by: Bai Ping
(cherry picked from commit d2192a3909be8ab9433082e7c04c917489b28e25)
(cherry picked from commit 5fa7d431db1c5eda903f211a99c426d8d57293bd)
(cherry picked from commit 5fc6fe6b0f85f61bc60712af5b8cd55e7b8b0789)
(cherry picked from commit 522748cbcfc2ddd5a3490fe74683926048ff099d) -
Enable the configurations CONFIG_MODULE_FUSE and CONFIG_OF_SYSTEM_SETUP for
module fuse check. And modify board level codes for SD, FEC and EIM.Signed-off-by: Ye Li
(cherry picked from commit 9232e9f7637afa3b71b43ab2d1361582ec5a080a)
(cherry picked from commit 687b586bf7d3b0d2f796c8ea768e4fb450079adb)
(cherry picked from commit f1cdd3b004b15d950b35f3ef625af23c2f106f5a)
(cherry picked from commit e5ac66df336a1ce45f315ada5d8f1a73e8f22632) -
To align with v2019.04, add functions:
1. Support GPMI NAND
2. Support LCD splash screen
3. Add 9x9 EVK board support with LPDDR2 used
4. Update PMIC and LDO bypass for 9x9 EVK
5. Support two ethernet controllersSigned-off-by: Ye Li
(cherry picked from commit 154d6c905a848eed3bcc1ae2e142da3508a61b92)
(cherry picked from commit e7617471ab33579da972db82e042937233c857fa) -
Add functions below to align with v2019.04
1. Switch from SPL to Non-SPL
2. Add plugin and DCD for DDR initialization
3. Update two ethernet controllers support at runtime
4. Add GPMI NAND support
5. Add LDO bypass settingsSigned-off-by: Ye Li