u-boot/board/ronetix/imx8mq-cm
Fabio Estevam f0f461287e imx: Suggest the NXP ATF github repo
As explained in the text at the bottom of the page
https://source.codeaurora.org/external/imx/imx-atf:

"QUIC repositories on this site will not receive any updates after
March 31, 2022, and will be deleted on March 31, 2023."

Point to the NXP ATF github repo instead.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Oliver Graute <oliver.graute@kococonnector.com>
Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
2023-01-31 16:02:05 +01:00
..
imx8mq_cm.c ARM:imx:imx8mq-cm: Add support for Ronetix iMX8MQ-CM 2021-05-02 12:46:54 +02:00
imximage-8mq-lpddr4.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
Kconfig imx: Finish migration of IMX_CONFIG to Kconfig 2021-08-31 17:46:37 -04:00
lpddr4_timing.c ARM:imx:imx8mq-cm: Add support for Ronetix iMX8MQ-CM 2021-05-02 12:46:54 +02:00
MAINTAINERS ARM:imx:imx8mq-cm: Add support for Ronetix iMX8MQ-CM 2021-05-02 12:46:54 +02:00
Makefile ARM:imx:imx8mq-cm: Add support for Ronetix iMX8MQ-CM 2021-05-02 12:46:54 +02:00
README imx: Suggest the NXP ATF github repo 2023-01-31 16:02:05 +01:00
spl.c global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00

U-Boot for the Ronetix i.MX8MQ-CM board

Quick Start
===========
- Build the ARM Trusted firmware binary
- Get ddr firmware
- Build U-Boot
- Boot

Get and Build the ARM Trusted firmware
======================================
$ git clone https://github.com/nxp-imx/imx-atf
$ cd imx-atf
$ git checkout imx_4.19.35_1.0.0
$ make PLAT=imx8mq bl31
$ cd ..
$ cp imx-atf/build/imx8mq/release/bl31.bin .

Get the ddr firmware
====================
$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin
$ chmod +x firmware-imx-8.9.bin
$ ./firmware-imx-8.9.bin
$ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin .

Build U-Boot
============
$ /opt/cross/aarch64-ronetix-linux-9.2/bin/aarch64-ronetix-linux-gnu-
$ make imx8mq_cm_defconfig
$ make

Burn the flash.bin to MicroSD card offset 33KB
==============================================
$sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=sync
$sudo dd if=u-boot.itb of=/dev/sd[x] bs=1024 seek=384 conv=sync

Boot
====
Set Boot switch on base board iMX8M-MB to SD boot:
    SW1[8:1]: OFF OFF OFF ON - OFF ON OFF OFF
    SW4[2:1]: OFF OFF
    J4: 1,2 - open; 3,4 - close; 5,6 - open