• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..02-Nov-2021-

Kconfig A D02-Nov-2021227 1610

MAINTAINERS A D02-Nov-2021154 76

Makefile A D02-Nov-2021181 135

README A D02-Nov-20211.1 KiB4336

imx8mq_cm.c A D02-Nov-20211.8 KiB8558

imximage-8mq-lpddr4.cfg A D02-Nov-2021143 97

lpddr4_timing.c A D02-Nov-202138.7 KiB1,8671,820

spl.c A D02-Nov-20214.2 KiB166123

README

1U-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
43