14 Mar, 2019
1 commit
-
change the mtd rootfs partition index number for i.MX8QXP lpddr4 validation board.
Signed-off-by: Han Xu
(cherry picked from commit 2d5923f215dfcc74b187e3b7ec4af1d0c9462d45)
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 -
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
11 Mar, 2019
1 commit
-
Also fixes MLK-21051: Replace manually added pads with defines from SCFW
export package.Signed-off-by: Leonard Crestez
Acked-by: Fugang Duan
(cherry picked from commit cc76365cb15dc9d4ba3983ec93094c6017e12d83)
08 Mar, 2019
1 commit
-
Move spl to 0x8000_0000 will cause cpu1 ~ cpu3 jump to spl when
boot/reboot, revert this patch.This reverts commit 7d111f4c8bac25c234b0fc24af885421ce8bb188.
Change-Id: I9adcd980b42a7539d6309cafaabff9d079ca993d
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_0000Test: reboot ok on imx8qm/imx8qxp.
Change-Id: I49e8be51bf427dd00eb7507de22a787c6f6e1582
Signed-off-by: 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
27 Feb, 2019
1 commit
-
Set the default environment "panel" as "NULL" to fix the
LVDS0-HDMI not work issue.Test: LVDS0-HDMI works fine on imx8qm_mek.
Change-Id: I115b0a185717762af911fe1e9237fb26ecbb7e3e
Signed-off-by: Ji Luo
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) -
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)
25 Feb, 2019
2 commits
-
When M4 is booted by ROM, we have to enable RPMSG in kernel, so need
to select the -rpmsg.dtb. If M4 is not enabled, use default kernel dtb.Signed-off-by: Ye Li
Reviewed-by: Peng Fan
(cherry picked from commit 8a57be45e18295ce1b19799723775cf5b205281d) -
Remove trusty support in domu, since trusty EL3 not ready to handle
tipc being interrupt by xen. But we still leave the memory for trusty,
then it could be easy to add trusty back.Signed-off-by: Peng Fan
Reviewed-by: Flynn xu
(cherry picked from commit 1623426811bdf59c3d5dcab2be20293910a9bc5d)
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)
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
19 Feb, 2019
3 commits
-
Update MEK SPL configs to enable SPL NOR support and change ENV to
SD as default.Signed-off-by: Ye Li
Reviewed-by: Peng Fan
(cherry picked from commit f21f2571befdad09b9c9df4fe1fc8e27cf315019) -
SPL should not use DM_SPI_FLASH, this is already cleaned in
Makefile.uncmd_spl, but not in config_uncmd_spl.hSigned-off-by: Ye Li
(cherry picked from commit cf8468482ec3cceb05700a326df044dc41f38793) -
If a device has relevant power domain, we will check the power up
result in probing the device. If the power up is failed, the device_probe
will return failure immediately.The only exception is the new FLAG (DM_FLAG_IGNORE_POWER_ON) is set by driver
to indicate ignore the power up result.Signed-off-by: Ye Li
(cherry picked from commit 8524ca764d8fbd05da1593abfed62bb075c50cd4)
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)
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 -0800SCF-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)
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) -
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 lengthSigned-off-by: Ye Li
(cherry picked from commit aba0e51cc397e1d98be950f9c15619de06ebf782)
11 Feb, 2019
1 commit
-
The usb mass storage (f_mass_storage.c) uses fixed usb index 0,
this causes problem while CDNS3 USB controller index is 1.
Modify the API of fsg to pass the controller index.Signed-off-by: Ye Li
Reviewed-by: Jun Li
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
25 Jan, 2019
2 commits
-
Since different ARM2/Validation boards use different kernel FDT, configure
them to CONFIG_DEFAULT_FDT_FILE in defconfigSigned-off-by: Ye Li
Reviewed-by: Peng Fan -
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
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 -
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
21 Jan, 2019
2 commits
-
Enable the new mipi panel driver and add parameters to board codes.
We enable the RM68200_WXGA as default panel, users can set "panel"
environment variable to switch to different panel.Signed-off-by: Ye Li
Reviewed-by: Fancy Fang -
mx7ulp EVK B will use two mipi dsi panels, the new panel RM68200_WXGA
supports WXGA resolution.Signed-off-by: Ye Li
19 Jan, 2019
1 commit
-
When booting M4 with alt_config enabled, M4 will reserve 128MB for
video framebuffer from 0x88000000 to its partition, but Dom0 linux
loading address is 0x85000000, which will cause confict, so change
xenlinux_addr from 0x85000000 to 0x92000000.Signed-off-by: Flynn xu
Reviewed-by: Peng Fan
18 Jan, 2019
2 commits
-
Open configs to enable dual bootloader feature for
imx8q Android Auto.Test: Build and boot on imx8q.
Change-Id: I99da2ee6b87efd201e16df1046188ae86cab1466
Signed-off-by: Ji Luo -
The CAAM driver in u-boot will use JR0 by default, but for
imx8q, both JR0 and JR1 are assigned to SECO and A core
should never access them.
Power on the JR3 in this patchset and use it to complete
the CAAM operations for imx8q.Test: CAAM self test cases pass for imx8q.
Change-Id: Ie3d77d1f2910e7f4c257c797c12b5c8a30ad936a
Signed-off-by: Ji Luo
16 Jan, 2019
2 commits
-
The new uuu will change to burn entire boot image to nandfit mtdpart not
only the FIT image. We enable REDUND offset configuration here, so that SPL will
try to find FIT header at two locations: the begin of nandfit mtdpart and
the 0x57c00 offset of nandfit mtdpart. This helps to be compatible with both
old and new uuu.Signed-off-by: Ye Li
-
Add the NAND support to SPL container parser and enable it for imx8qxp arm2
nand reworked board.
The SPL NAND will read from nandfit mtdpart (128MB offset) to parsing the entire
boot image and get the 3rd container from it. This requires burning tool (uuu)
to program the entire boot image into nandfit.Signed-off-by: Ye Li
09 Jan, 2019
2 commits
-
Due to some USB configurations are moved to header file to bypass
SPL build. Changes android and androidatuo defconfigs and header
files to avoid build break.Signed-off-by: Ye Li
-
Enable the SPL SDP driver and USB driver in MEK board codes and defconfigs.
Because the USB driver needs larger malloc pool, increase the malloc size
and disable simple mallocSigned-off-by: Ye Li
08 Jan, 2019
2 commits
-
Keystore attestation requires provision keys and cerificate chains into
secure storage. Add commands to support rsa/ecdsa keys and certificate
chains provision, each key/certificate should be staged before provision.
Usage:
Set rsa attestation key:
fastboot stage
fastboot oem set-rsa-atte-key
Set ec attestation key:
fastboot stage
fastboot oem set-ec-atte-key
Append rsa attestation certs:
fastboot stage
fastboot oem append-rsa-atte-cert
Append ec attestation certs:
fastboot stage
fastboot oem append-ec-atte-certTest: Pass CTS cases:
android.keystore.cts.KeyAttestationTest#testRsaAttestation
android.keystore.cts.KeyAttestationTest#testEcAttestationChange-Id: Ic3ed87e7e328a39b0f1bfb163356ea9e37d2f4fc
Signed-off-by: Ji Luo -
When running on iMX6ULZ, need to set tee_file to uTee-6ulzevk not
uTee-6ullevk. Thus, add findtee script into env to set correct tee
file before booting.Signed-off-by: Ye Li
Reviewed-by: Peng Fan
04 Jan, 2019
1 commit
-
After the commit 265edc03d5a1 ("fs/fat: Clean up open-coded sector
cluster conversions"), it is hung up writing new file to FAT16
disk with more than 19 files in armv7. It is because result value
of sect_to_cluster() is not proper by casting from signed value to
unsigned value. Fix the wrong casting of sect_to_cluster().Reported-by: Jaehoon Chung
Signed-off-by: Seung-Woo Kim
Reviewed-by: Lukasz Majewski
(cherry picked from commit 6e2151c729674aecabf5ec5a96dac97433632009)
24 Dec, 2018
1 commit
-
Sometimes we need to set random rpmb key which is invisible
except for the device.
Generate the random key with hwcrypto interface and support
fastboot command "fastboot oem set-rpmb-random-key" to set it.Test: build and boot on imx8q.
Change-Id: I44e1b6b091366d8ffceb1159fc65c17610ce5243
Signed-off-by: Ji Luo