Age | Commit message (Collapse) | Author |
|
Address 0x8880_0000 is reserved for M4 image on imx8q, which
leaves limited memory region for the malloc pool. The avb
will consume much heap memory to verify the kernel and dtbo
image, memory conflicts may happen as the kernel/dtbo image
size is getting larger.
As the avb will load kernel/dtbo in every avb_slot_verify(), but
will only free the memory after both slots are checked(if needed).
And for trusty enabled platforms, extra heap memory will be used
to do the hash calculation.
This commit will free the slot memory once it's marked as unbootable
and will use fixed memory started from CONFIG_FASTBOOT_BUF_ADDR to
help store the data to do the hash calculation. With above change,
we get a chance to decrease the malloc pool size.
Test: boot on imx8qxp and imx8mn.
Change-Id: Id95b9becf6fa7fae4f120a4dc9e9a3ba90da578c
Signed-off-by: Ji Luo <ji.luo@nxp.com>
|
|
imx8mq has very limited TCM memory (about 256k bytes) to store the spl
code and lpddr4 training binaries, u-boot may panic when the spl code
size becomes too large. This problem is much worse on AIY because we
have to support multiple ddr size.
And on some daily build servers, the u-boot binary will be slight larger
than the binary built on other servers (which is quite confusing...).
This patch disables some unused configs to decrease the spl size, it will
help fix u-boot panic built from daily build servers.
Test: build and boot on AIY.
Change-Id: I6e216bf4d88fb29c9cacd945e9dc93ddf9e73451
Signed-off-by: Ji Luo <ji.luo@nxp.com>
|
|
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 <ji.luo@nxp.com>
|