09 Feb, 2021
1 commit
12 Jan, 2021
1 commit
03 Sep, 2020
1 commit
17 Jul, 2020
1 commit
14 Jul, 2020
1 commit
07 Jul, 2020
1 commit
16 Apr, 2020
1 commit
29 Oct, 2019
2 commits
-
Optee has 4MB shared memory at its top space which was assigned to
non-secure OS partition in ATF. By default this memory is added to
u-boot DDR banks and will pass to kernel. This means kernel has possibility
to allocate from this memory for system usage. At same time this memory is
used by optee and mem-remapped by optee kernel driver. So it is possible to
have conflict and cause kernel crash.Fix the issue by removing the shared memory from u-boot DDR banks. Then it
is not visible for both u-boot and kernel and can avoid such issue.Signed-off-by: Ye Li
Reviewed-by: Anson Huang
(cherry picked from commit 164279c42de0d058b7abe198cc154ee683087e6a) -
In MLK-22582, write memcmp incorrectly as memcpy.
Signed-off-by: Alice Guo
(cherry picked from commit 16a073f563a25401f1ec289db1c82dd8dab61601)
28 Oct, 2019
8 commits
-
Both imx8mn/imx8mm EVK boards have eMMC 5.1 chip and support SD3.0
So we enable the HS400ES and UHS configs to enhance eMMC/SD access.The change also needs to set usdhc clock to 400Mhz and update compatible
string to fsl,imx8mm-usdhcSigned-off-by: Ye Li
Reviewed-by: Peng Fan
(cherry picked from commit cf83fe7dcfcb14dd633ad43ef387793a863e111a) -
iMX8MQ EVK board has a eMMC5.0 chip and supports SD3.0, so enable the UHS
and HS400 configs to enhance the eMMC/SD access.The change also needs to set usdhc clock to 400Mhz, and add the off-on-delay-us
to SD reset pin, otherwise some SD cards will fail to select UHS mode in
re-initialization.Signed-off-by: Ye Li
(cherry picked from commit 57e1bc5f634be231b2bfd10cf0cbbff86dadd2e1) -
To enable HS400 and UHS for imx8m platforms, update the driver data
to share with imx8x platforms and add relevant compatible string.Signed-off-by: Ye Li
(cherry picked from commit e0cc56f76027d014414b5aed6c26af444388093a) -
In mmc initial state, the mmc framework sets clock to 0, so the fsl_esdhc
driver converts to use min clock 400Khz. But the priv->clock is logged
400Khz not 0, and cause following calls to set_ios to set clock again.Each set to clock has 10ms delay for stable, then the problem accumulates
some unnecessary delay.Signed-off-by: Ye Li
(cherry picked from commit 151ab3bef2b1ec1c142c31048f3005ebce2a7a18) -
The property was changed to "u-boot,off-on-delay-us" in u-boot fixed
regulator. Update the dts to use the new nameSigned-off-by: Ye Li
Reviewed-by: Peng Fan
(cherry picked from commit e68d12af8d17ae1017eacfc73b72ab999ef9837f) -
Verify/dump boot structures.
Signed-off-by: Alice Guo
(cherry picked from commit 65354b516d9919509fadff096c1ba6808e6975cf) -
Verify/dump boot structures written to NAND Flash chip.
Signed-off-by: Alice Guo
(cherry picked from commit 215953009a0429705a3aaaa7c495e6ad7a0a8a3a) -
the function named mxs_nand_ecc_read_page
To enable the Randomizer module, set GPMI_ECCCTRL[RANDOMIZER_ENABLE] to
1, then set GPMI_ECCCOUNT[RANDOMIZER_PAGE] to select randomizer page
number needed to be randomized.Signed-off-by: Alice Guo
(cherry picked from commit e8271a1c7621cc3607d3e9c7b0a872342b5f4c95)
25 Oct, 2019
4 commits
-
Load HDMI firmware to enable HDMI display interface. So car2 image can
support HDMI display.Change-Id: Ifd55315302319fe6b02f2ea289926a4b748cdb77
Signed-off-by: Zhang Bo -
Copy configs/imx8qm_mek_androidauto2_trusty_defconfig to
configs/imx8qm_mek_androidauto2_trusty_md_defconfig and will base this
file to add some config for HDMI firmware loading.Change-Id: I34b0ac39fc9314992102d93dd198d5741db4fc36
Signed-off-by: Zhang Bo -
As the IMX_LOAD_HDMI_FIMRWARE has moved to Kconfig, it should be enabled
in the defconfig. The IMX_HDMI_FIRMWARE_LOAD_ADDR,
IMX_HDMITX_FIRMWARE_SIZE and IMX_HDMIRX_FIRMWARE_SIZE should set in the
board header file. Or there is build error when enable
CONFIG_IMX_LOAD_HDMI_FIMRWARE=y.Change-Id: Ie4b655ac886a8f231034e81413a036eb096d6122
Signed-off-by: Zhang Bo -
Move the macro IMX_LOAD_HDMI_FIMRWARE to Kconfig, so it can be enable or
disable in different defconfig.Change-Id: I2e1291d3bc2d6efb29309525b33b84ba8f9b83da
Signed-off-by: Zhang Bo
24 Oct, 2019
4 commits
-
Refine trusty logs output to make it more
simple.Test: boots.
Change-Id: Id94fc245206c5f78e0dbcb0baf5db6475c9f744d
Signed-off-by: Ji Luo -
Since commit c98b47f1ff60 ("MLK-22749 imx8mq: Add workaround to fix sticky
bits lock up") it's not possible to build i.MX8MM and i.MX8MN targets with
CONFIG_SECURE_BOOT enabled:CC cmd/version.o
arch/arm/mach-imx/imx8m/soc.c:326:23: error: ‘CONFIG_IMX_UNIQUE_ID’ undeclared \
(first use in this function); did you mean ‘CONFIG_IMX_VIDEO_SKIP’?
if (!is_uid_matched(CONFIG_IMX_UNIQUE_ID))
^~~~~~~~~~~~~~~~~~~~The OCOTP sticky bit workaround is only needed for i.MX8MQ devices, other devices
should not build the secure_lockup() function.Add CONFIG_IMX8MQ to the conditional compilation to avoid such issue.
Fixes: c98b47f1ff60 ("MLK-22749 imx8mq: Add workaround to fix sticky bits lock up")
Signed-off-by: Breno Lima
Reviewed-by: Ye Li
(cherry picked from commit be033bff3c718e8bd7d4ac5ecfe4361892fc6e61) -
When enabled randomizer during ECC reading, the controller reported it's
erased page. Checking zero count will cause data get modified to all
0xFF. Stop checking during randomizer to workaround this issue.Signed-off-by: Han Xu
(cherry picked from commit f88f68f29026b084396db003c60e0c15995d1670) -
add the missing bch register debug0
Signed-off-by: Han Xu
(cherry picked from commit 0883946855f7e1eabe26787fbc8529ac412047e7)
22 Oct, 2019
1 commit
-
androidboot.storage_type has been replaced by androidboot.boot_device_root.
Change-Id: Ibec80808e6ae720be128c0a2d9e2f4d325c56716
Signed-off-by: Jindong
17 Oct, 2019
4 commits
-
According to i.MX7ULP Reference Manual we should wait for WDOG unlock
and reconfiguration to complete.Section "59.5.3 Configure Watchdog" provides the following example:
DisableInterrupts; //disable global interrupt
WDOG_CNT = 0xD928C520; //unlock watchdog
while(WDOG_CS[ULK]==0); //wait until registers are unlocked
WDOG_TOVAL = 256; //set timeout value
WDOG_CS = WDOG_CS_EN(1) | WDOG_CS_CLK(1) | WDOG_CS_INT(1) |
WDOG_CS_WIN(0) | WDOG_CS_UPDATE(1);
while(WDOG_CS[RCS]==0); //wait until new configuration takes effect
EnableInterrupts; //enable global interruptUpdate U-Boot WDOG driver to align with i.MX7ULP reference manual.
Reviewed-by: Ye Li
Signed-off-by: Breno Lima
(cherry picked from commit 3ffee301cb4570e0e7681448ec434f0689bcbaa3) -
remove the unnecessary space in imx6sx sabreauto mtdparts
Signed-off-by: Han Xu
(cherry picked from commit c8bbf2b43767fe7be69a0383ab426172b5083ee1) -
Enable the mtdparts for imx6sx sabreauto platform
Signed-off-by: Han Xu
(cherry picked from commit d76d7e0a28c04a51265b8777a82033bd2e74eda5) -
With Android10 code, to build GSI image for devices launching with
Android10, the target should be "aosp_$arch-user". Google releases GSI
images is so built in user mode.To do CTS-on-GSI test, a debug ramdisk containing .prop file to enable
adb root permission and GSI keys to verify the GSI image is needed, this
ramdisk is in boot image. so ramdisk in boot image need to be loaded by
uboot even in non-recovery mode.To save boot time, only standard Android use ramdisk to boot up Android,
Android Auto keeps the original way: kernel be responsible for verify
and mount system partition. Let the customers to decide whether to use
recovery ramdisk to boot the system. and under this condition, user-debug
Android Auto GSI image need to be used for VTS-on-GSI test.when use ramdisk to bootup Android, info provided by "dm=" bootarg is
not used by kernel to setup dm-verity, so it is removed from the
bootargs. The 4.19 kernel used together with this uboot does not handle
"skip_initramfs", so it's also removed.Change-Id: Ia8b8fa8b85a44acda2670b46504038a009ce01a8
Signed-off-by: faqiang.zhu
16 Oct, 2019
4 commits
-
imx8mq/imx8mn has very limited ocram/tcm size, oversized spl image
will cause build break or boot hang, remove more unnecessary configs
fot imx8mq/imx8mn to reduce the spl size.Test: boot.
Change-Id: Ib27eeedf892227f83eaaa7601ba1706a8010a860
Signed-off-by: Ji Luo -
Enable config to support secure unlock feature for imx8q standard
Android.Test: build and boot.
Change-Id: I60825772578832566f48340ffa69bce7365b52db
Signed-off-by: Ji Luo -
Duplicate config based on trusty enabled config file to enable
secure unlock for imx8q standard Android.Test: boot.
Change-Id: Ib47dc2ecc2d5be69ed840236b6532559eca577f7
Signed-off-by: Ji Luo -
Add commands to read oem device unlock state from
trusty avb app. Use the oem device unlock state to
determine if the device can be unlocked instead of
the state in persistdata part.Test: Read oem device unlock state from avb app.
Change-Id: Ifccaa788ba0f681c2b3a47151c8474e8da5a2559
Signed-off-by: Ji Luo
15 Oct, 2019
6 commits
-
Latest SCFW has removed old MISC SECO commands. So update the codes
to use new SECO commands.Signed-off-by: Ye Li
Reviewed-by: Peng Fan
(cherry picked from commit 8e54efce6d2a1691605ae23983ff91f4a702adba) -
Current codes have wrong definitions for SC_MISC_SECO_AUTH_SECO_FW,
SC_MISC_SECO_AUTH_HDMI_TX_FW and SC_MISC_SECO_AUTH_HDMI_RX_FW and
cause HDP firmware authentication failed.Sync the API definitions with latest SCFW export.
Signed-off-by: Ye Li
(cherry picked from commit 87ee3c16a649a418b8c6fdae53234f88a90c8fb3) -
flash in u-boot for imx8mm-evk
imx8mm-evk uses BCH encoding and randomizer
modify macro and print size_t with %zx
use CONFIG_IMX8M because it should apply to imx8mq/mm/mn
Signed-off-by: Alice Guo
(cherry picked from commit 8d95b51fd70be29ef6beaa0f65c101b329f04f8e) -
remove space from mtdparts definition and remove
"#define CONFIG_MTD_DEVICE" to make source code can be copiled correctlySigned-off-by: Alice Guo
(cherry picked from commit c01b869d5b9dc8cff340c9b911d8df9d2aa257dd) -
dependency of CMD_NANDBCB`s default value
compiling nandbcb of imx8mm-evk depends on NAND and CMD_MTDPARTS
modify dependency of CMD_NANDBCB`s default value
Signed-off-by: Alice Guo
(cherry picked from commit 1b14e8cbefdb0f8126ceb6a85b1fd0db142328e6) -
randomizer
imx8mm-evk needs to BCH encode and set NAND page number needed to be
randomizedmodify conditional compilation
Should use CONFIG_IMX8M, it should apply to imx8mq/mm/mn
Signed-off-by: Alice Guo
(cherry picked from commit da40cd99e4b3a78d2609ee777d60d651d6dbc313)