Hi igor
now I have done everything as described in the document, and try to build a flash.bin
1. Build u-boot
unset LDFLAGS
make -j8 imx8mn_ddr4_evk_defconfig
make -j8
output:
...
COPY spl/u-boot-spl.bin
make[1]: Nothing to be done for 'SPL'.
===================== WARNING ======================
This board does not use CONFIG_DM_VIDEO Please update
the board to use CONFIG_DM_VIDEO before the v2019.07 release.
Failure to update by the deadline may result in board removal.
See doc/driver-model/MIGRATION.txt for more info.
====================================================
CFGCHK u-boot.cfg
i ignor this Warning.
2. Coppy following Files to imx-mkimage/iMX8M/:
bl31.bin
ddr4_dmem_1d.bin
ddr4_dmem_2d.bin
ddr4_imem_1d.bin
ddr4_imem_2d.bin
u-boot.bin
spl/u-boot-spl.bin
u-boot-nodtb.bin
arch/arm/dts/fsl-imx8mn-ddr4-evk.dtb
according to the document you should copy lpddr4_pmu_train_1d_dmem.bin ...
This board have no LPDDR4! it has DDR4, so i copy ddr4_dmem_1d.bin ...
3 generate flash.bin
make clean
make SOC=iMX8MN flash_spl_uboot ( in dokument make SOC=iMX8M flash_spl_uboot)
output:
...
PLAT=imx8mn HDMI=no
Compiling mkimage_imx8
gcc -O2 -pipe -g -feliminate-unused-debug-types mkimage_imx8.c -o mkimage_imx8 -lz
make[1]: *** No rule to make target 'lpddr4_pmu_train_1d_imem.bin', needed by 'u-boot-spl-ddr.bin'. Stop.
make: *** [Makefile:20: flash_spl_uboot] Error 2
why is lpddr4 required here?
ok, i copy the lpdd4-Files to imx-mkimage/iMX8M/ an generate once again.
output:
PLAT=imx8mn HDMI=no
Compiling mkimage_imx8
gcc -O2 -pipe -g -feliminate-unused-debug-types mkimage_imx8.c -o mkimage_imx8 -lz
make[1]: *** No rule to make target 'fsl-imx8mn-evk.dtb', needed by 'u-boot.itb'. Stop.
make: *** [Makefile:20: flash_spl_uboot] Error 2
i have use following imx-mkimage:
git clone https://source.codeaurora.org/external/imx/imx-mkimage -b imx_4.14.98_2.3.0
Well, it doesn't seem quite that simple!
What am I doing wrong?
Best regards
Klaus
ps:
when i make step1 with branch imx_4.14.98_8qxpc0_er become i no warning!
but the error on step3 is the same!
what branch of u-boot and imx-mkimage is the rigth?