
On Mon, Aug 26, 2019 at 11:28 PM Peng Fan peng.fan@nxp.com wrote:
<snip>
diff --git a/board/freescale/imx8mm_evk/README b/board/freescale/imx8mm_evk/README new file mode 100644 index 0000000000..a885bc5c97 --- /dev/null +++ b/board/freescale/imx8mm_evk/README
Hi Peng,
I'm working with an IMX8MM with U-Boot master + your v3 i.MX8MM-support series. I have a few comments and questions below.
@@ -0,0 +1,37 @@ +U-Boot for the NXP i.MX8MM EVK board
+Quick Start +=========== +- Build the ARM Trusted firmware binary +- Get ddr fimware +- Build U-Boot +- Boot
+Get and Build the ARM Trusted firmware +====================================== +Note: srctree is U-Boot source directory +Get ATF from: https://source.codeaurora.org/external/imx/imx-atf +branch: imx_4.19.35_1.0.0 +$ make PLAT=imx8mm bl31 +$ cp build/imx8mm/release/bl31.bin $(srctree)
+Get the ddr and hdmi firmware
There is no HDMI on i.MX8MM so remove 'hdmi' above
+============================= +$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.0.bin +$ chmod +x firmware-imx-8.0.bin +$ ./firmware-imx-8.0 +$ cp firmware-imx-7.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree)
typo: cp firmware-imx-8.0
+Build U-Boot +============ +$ export CROSS_COMPILE=aarch64-poky-linux- +$ make imx8mm_evk_defconfig +$ export ATF_LOAD_ADDR=0x920000 +$ make flash.bin
Build fails due to default_serial_console undefined. Did you need to enable DM_SERIAL?
After enabling DM_SERIAL build fails during image creation:
MKIMAGE u-boot.itb ./tools/imx8m_image.sh spl/u-boot-spl.cfgout 1 26061+0 records in 26061+0 records out 104244 bytes (104 kB, 102 KiB) copied, 0.0458568 s, 2.3 MB/s MKIMAGE flash.bin Not support no fit arch/arm/mach-imx/Makefile:151: recipe for target 'flash.bin' failed
If I hack using_fit=1 into tools/imx8mimage.c I can build flash.bin but it does not boot.
Am I missing some additional necessary patches to tools?
Best Regards,
Tim
+Burn the flash.bin to MicroSD card offset 33KB +$sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33
+Boot +==== +Set Boot switch to SD boot