Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SystemReady
u-boot-tfa-build
Commits
9e61dd89
Unverified
Commit
9e61dd89
authored
May 17, 2021
by
Grant Likely
Committed by
GitHub
May 17, 2021
Browse files
Merge pull request #5 from jmarinho/imx8mm
support the imx8mm-evk board
parents
ba4b2cf8
267a1c09
Changes
1
Hide whitespace changes
Inline
Side-by-side
board-imx8mm_evk.mk
0 → 100644
View file @
9e61dd89
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) Arm Limited, 2021
TFA_PLAT
:=
imx8mm
OPTEE_PLATFORM
:=
imx
OPTEE_EXTRA
+=
PLATFORM_FLAVOR
=
mx8mmevk
FLASH_IMAGE
:=
out_flash_imx8mm.bin
DDR_FW
:=
firmware-imx-8.9
$(DDR_FW)
:
$(DDR_FW).bin
#
# XXX: we need to check if $(DDR_FW) exists because after ./$(DDR_FW).bin the
# directory timestamp will be lower than its dependency ($(DDR_FW).bin)
#
ifeq
(,$(wildcard ./$(DDR_FW) ))
$(error
Please
execute
$(DDR_FW).bin
and
accept
the
EULA)
endif
$(DDR_FW).bin
:
wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/
$(DDR_FW)
.bin
chmod
+x
$(DDR_FW)
.bin
$(FLASH_IMAGE)
:
tfa/all ${FLASH_IMAGE_DEPS} | $(DDR_FW)
cp
u-boot/tools/mkimage imx-mkimage/iMX8M/mkimage_uboot
cp
u-boot/spl/u-boot-spl.bin imx-mkimage/iMX8M/
cp
u-boot/u-boot-nodtb.bin imx-mkimage/iMX8M/
cp
u-boot/dts/dt.dtb imx-mkimage/iMX8M/imx8mm-evk.dtb
cp
$(DDR_FW)
/firmware/ddr/synopsys/lpddr4_pmu_train_
*
imx-mkimage/iMX8M/
aarch64-linux-gnu-objcopy
-v
-O
binary optee_os/out/arm-plat-imx/core/tee.elf imx-mkimage/iMX8M//tee.bin
cp
trusted-firmware-a/build/imx8mm/release/bl31.bin imx-mkimage/iMX8M/
cd
imx-mkimage
&&
make
SOC
=
iMX8MM flash_spl_uboot
dd
if
=
imx-mkimage/iMX8M/flash.bin
of
=
$(FLASH_IMAGE)
bs
=
1024
seek
=
33
conv
=
notrunc
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment