blob: 1d43fa5f4f84d2ecebe87b1992a95d660a19c637 [file] [log] [blame]
Ilko Iliev7666ccc2021-04-23 09:45:52 +02001U-Boot for the Ronetix i.MX8MQ-CM board
2
3Quick Start
4===========
5- Build the ARM Trusted firmware binary
6- Get ddr firmware
7- Build U-Boot
8- Boot
9
10Get and Build the ARM Trusted firmware
11======================================
12$ git clone https://source.codeaurora.org/external/imx/imx-atf
13$ cd imx-atf
14$ git checkout imx_4.19.35_1.0.0
15$ make PLAT=imx8mq bl31
16$ cd ..
17$ cp imx-atf/build/imx8mq/release/bl31.bin .
18
19Get the ddr firmware
20====================
21$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin
22$ chmod +x firmware-imx-8.9.bin
23$ ./firmware-imx-8.9.bin
24$ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin .
25
26Build U-Boot
27============
28$ /opt/cross/aarch64-ronetix-linux-9.2/bin/aarch64-ronetix-linux-gnu-
29$ make imx8mq_cm_defconfig
30$ make
31
32Burn the flash.bin to MicroSD card offset 33KB
33==============================================
34$sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=sync
35$sudo dd if=u-boot.itb of=/dev/sd[x] bs=1024 seek=384 conv=sync
36
37Boot
38====
39Set Boot switch on base board iMX8M-MB to SD boot:
40 SW1[8:1]: OFF OFF OFF ON - OFF ON OFF OFF
41 SW4[2:1]: OFF OFF
42 J4: 1,2 - open; 3,4 - close; 5,6 - open