[U-Boot] [PATCH] mx8mqevk: Update README with additional info
Stefano Babic
sbabic at denx.de
Sun Feb 4 10:10:13 UTC 2018
Hi Diego, Peng,
On 23/01/2018 14:33, Diego Dorta wrote:
> The main reason for this update is due the currently README has no enough
> info to boot the board. Add a few more steps that make the board bootable.
>
> Signed-off-by: Diego Dorta <diego.dorta at nxp.com>
> ---
>
As patch for mx8evk requires change, this is also postponed. Peng, I
will suggest you put this (even as separate patch, I have nothing
against it) in your next post.
Thanks,
Stefano
> This patch depends on Peng Fan's patch series: https://patchwork.ozlabs.org/cover/857942/
>
> board/freescale/mx8mq_evk/README | 92 +++++++++++++++++++++++++++-------------
> 1 file changed, 63 insertions(+), 29 deletions(-)
>
> diff --git a/board/freescale/mx8mq_evk/README b/board/freescale/mx8mq_evk/README
> index 5a6e8b84d7..cd7e67eec5 100644
> --- a/board/freescale/mx8mq_evk/README
> +++ b/board/freescale/mx8mq_evk/README
> @@ -1,47 +1,81 @@
> U-Boot for the NXP i.MX8MQ EVK board
>
> Quick Start
> -====================
> -- Build the ARM Trusted firmware binary
> +===========
> +
> - Build U-Boot
> -- Get ddr fimware and tools
> +- Build the ARM Trusted firmware binary
> +- Get DDR firmware and mkimage tool
> - Generate flash.bin using imx-mkimage
> +- Flash the binary into the SD card
> - Boot
>
> -Get and Build the ARM Trusted firmware
> -====================
> -Get ATF from: https://source.codeaurora.org/external/imx/imx-atf
> -$ make PLAT=imx8mq bl31
> -
> Build U-Boot
> -====================
> -$ export ARCH=arm64
> -$ export CROSS_COMPILE=aarch64-poky-linux-
> +============
> +
> $ make mx8mq_evk_defconfig
> $ make
>
> -Get the ddr firmware and tools
> -====================
> -Note: Better to use NXP released yocto to get the firmware in case
> - there is new releases.
> -https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.2.bin
> -imx-mkimage: https://source.codeaurora.org/external/imx/imx-mkimage/
> +Get and Build the ARM Trusted firmware
> +======================================
> +
> +$ git clone https://source.codeaurora.org/external/imx/imx-atf
> +$ cd imx-atf/
> +$ git checkout origin/imx_4.9.51_imx8m_beta
> +$ make PLAT=imx8mq bl31
> +
> +Get the DDR firmware and mkimage tool
> +==============================
> +
> +$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.2.bin
> +$ chmod +x firmware-imx-7.2.bin
> +$ ./firmware-imx-7.2.bin
> +
> +Download the imx-mkimage tool:
> +
> +$ git clone https://source.codeaurora.org/external/imx/imx-mkimage/
> +$ cd imx-mkimage/
> +$ git checkout origin/imx_4.9.51_imx8m_beta
> +
>
> Generate flash.bin using imx-mkimage
> -====================
> -Copy bl31.bin u-boot-nodtb.bin u-boot-spl.bin fsl-imx8mq-evk.dtb to
> - imx-mkimage/iMX8M
> -Copy lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_1d_imem.bin
> - lpddr4_pmu_train_2d_dmem.bin lpddr4_pmu_train_2d_imem.bin to
> - imx-mkimage/iMX8M
> -If you want to run with HDMI, copy signed_hdmi_imx8m.bin to imx-mkimage/iMX8M
> +====================================
> +
> +Copy the following binaries to imx-mkimage/iMX8M folder:
> +
> +$ cp imx-atf/build/imx8mq/release/bl31.bin imx-mkimage/iMX8M/
> +$ cp u-boot/u-boot-nodtb.bin imx-mkimage/iMX8M/
> +$ cp u-boot/spl/u-boot-spl.bin imx-mkimage/iMX8M/
> +$ cp u-boot/arch/arm/dts/fsl-imx8mq-evk.dtb imx-mkimage/iMX8M/
> +
> +Copy the following firmwares to imx-mkimage/iMX8 folder :
> +
> +$ cp firmware-imx-7.2/firmware/ddr/synopsys/lpddr4_pmu_train_1d_dmem.bin imx-mkimage/iMX8M/
> +$ cp firmware-imx-7.2/firmware/ddr/synopsys/lpddr4_pmu_train_1d_imem.bin imx-mkimage/iMX8M/
> +$ cp firmware-imx-7.2/firmware/ddr/synopsys/lpddr4_pmu_train_2d_dmem.bin imx-mkimage/iMX8M/
> +$ cp firmware-imx-7.2/firmware/ddr/synopsys/lpddr4_pmu_train_2d_imem.bin imx-mkimage/iMX8M/
> +
> +If you want to run with HDMI, copy signed_hdmi_imx8m.bin to imx-mkimage/iMX8M.
> +
> +Before generating the flash.bin, transfer the mkimage generated by U-Boot to iMX8M folder:
> +
> +$ cp u-boot/tools/mkimage imx-mkimage/iMX8M/
> +$ mv imx-mkimage/iMX8M/mkimage imx-mkimage/iMX8M/mkimage_uboot
> +
> +$ cd imx-mkimage/
> +$ make SOC=iMX8M flash_spl_uboot
> +
> +Or for using HDMI:
> +
> +$ make SOC=iMX8M flash_hdmi_spl_uboot
> +
> +Flash the binary into the SD card
> +=================================
>
> -make SOC=iMX8M flash_hdmi_spl_uboot or make SOC=iMX8M flash_spl_uboot to
> -generate flash.bin.
> +Burn the flash.bin binary to SD card offset 33KB:
>
> -Burn the flash.bin to MicroSD card offset 33KB
> -$sudo dd if=iMX8M/flash.bin of=/dev/sd[x] bs=1024 seek=33
> +$ sudo dd if=iMX8M/flash.bin of=/dev/sd[x] bs=1024 seek=33
>
> Boot
> -====================
> +====
> Set Boot switch SW801: 1100 and Bmode: 10 to boot from Micro SD.
>
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
More information about the U-Boot
mailing list