[U-Boot] [PATCH V3 27/27] imx: Add i.MX8MM EVK board support.

Peng Fan peng.fan at nxp.com
Wed Oct 9 02:50:09 UTC 2019


Hi Tim,

> Subject: Re: [U-Boot] [PATCH V3 27/27] imx: Add i.MX8MM EVK board
> support.
> 
> On Mon, Aug 26, 2019 at 11:28 PM Peng Fan <peng.fan at 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.

I'll create a follow up patch to fix.

> 
> > @@ -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://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsou
> >
> +rce.codeaurora.org%2Fexternal%2Fimx%2Fimx-atf&data=02%7C01%7
> Cpeng
> >
> +.fan%40nxp.com%7C4fedc0bac43a4224ea7c08d74b555c69%7C686ea1d3bc
> 2b4c6fa
> >
> +92cd99c5c301635%7C0%7C1%7C637060702303548820&sdata=JxtdeK
> Uu%2BRcZ
> > +rggEEqvN9O75EzwrZXswQ0Fr6syIMx8%3D&reserved=0
> > +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

Yes.

> 
> > +=============================
> > +$ wget
> >
> +https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww
> >
> +.nxp.com%2Flgfiles%2FNMG%2FMAD%2FYOCTO%2Ffirmware-imx-8.0.bin&
> amp;dat
> >
> +a=02%7C01%7Cpeng.fan%40nxp.com%7C4fedc0bac43a4224ea7c08d74b55
> 5c69%7C6
> >
> +86ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637060702303548820
> &sdat
> >
> +a=sguVqlRGiMw0FAARIQA%2FY%2Box%2FU8uWH%2B8rBwgc%2B7D8Ic%3
> D&reserv
> > +ed=0
> > +$ 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

Yes.

> 
> > +
> > +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?

Using imx/master I do not met build failure. I not 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?

Please try imx/master.

Thanks,
Peng.

> 
> 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


More information about the U-Boot mailing list