blob: 1074992f2f888a83dafd3ed1040e1deb16f434a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
NXP i.MX8MP-EVK board
=====================
The board comes with:
* 6GiB of LPDDR4 RAM
* 32GiB eMMC
Not including booting via serial, the device can boot from either SD or eMMC.
Downloading DDR PHY firmware
----------------------------
As a part of DDR intialization routine NXP i.MX8MP EVK requires and
uses several binary firmware blobs that are distributed under a
separate EULA and cannot be included in Barebox. In order to obtain
them do the following::
wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.7.bin
chmod +x firmware-imx-8.7.bin
./firmware-imx-8.7.bin
Executing that file should produce a EULA acceptance dialog as well as
result in the following files:
- lpddr4_pmu_train_1d_dmem.bin
- lpddr4_pmu_train_1d_imem.bin
- lpddr4_pmu_train_2d_dmem.bin
- lpddr4_pmu_train_2d_imem.bin
As a last step of this process those files need to be placed in
"firmware/"::
for f in lpddr4_pmu_train_1d_dmem.bin \
lpddr4_pmu_train_1d_imem.bin \
lpddr4_pmu_train_2d_dmem.bin \
lpddr4_pmu_train_2d_imem.bin; \
do \
cp firmware-imx-8.7/firmware/ddr/synopsys/${f} \
firmware/${f}; \
done
Get and Build the Trusted Firmware A
------------------------------------
Get TF-A from https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/ and
checkout version v2.7::
make PLAT=imx8mp bl31
cp build/imx8mp/release/bl31.bin ${barebox_srctree}/imx8mp-bl31.bin
.. warning:: It is important to use a version >= v2.7 else your system
might not boot.
Build Barebox
-------------
i.MX8MP-EVK support is contained in the imx_v8_defconfig to build it use::
make imx_v8_defconfig
make
Boot Configuration
------------------
The NXP i.MX8MP-EVK board has four switches responsible for configuring
bootsource/boot mode. The settings for the different boot sources are
printed on the board.
|