How to build uboot for imx8mm with dts

表示  限定  | 次の代わりに検索 

How to build uboot for imx8mm with dts

Contributor II

I try to make new uboot for my custom board base on imx8mm evk.
But results was nothing change time stamp on deploy/images/imx8mmevk.
Why dts setting can't make?

1. I edited fsl-imx8mm-evk.dts file.
2. bitbake -c deploy u-boot-imx
3. bitbake u-boot-imx

It maybe I miss understand about comment out in dts.
Can we use comment out by "//" in dts.  Is it only "/* */"

One more wander thing.
When I do
DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk source -b ./build

local.conf and bblayer.conf will be over write from zip.
I want to make custom driver with editing Kconfig also.
How to keep custom environment when I rebuild?

Best regards,

0 件の賞賛
2 返答(返信)

Senior Contributor II

Hi, Sato Kimiyasu

To compile the u-boot in yocto, you need to use the below commands in the following order,

  1. bitbake -c compile -f u-boot-imx
  2. bitbake u-boot-imx or bitbake -c deploy u-boot-imx

You can use both // or /* */ to comment out in dts file.

To add and keep the yocto kernel changes, you can refer below links.

  1. i.MX Yocto Project: How can I patch the kernel? 
  2. Section 2.6.2 and 2.6.3 of this link

Hope this information helps you.



Note: If this post answers your question, please click the Correct Answer button. Thank you!

0 件の賞賛

Contributor III

Hi madam,

               I have updated my changes in the dts of u-boot, i have built using command that you specified. How can i flash to an sd card which includes kernel image, u-boot image, dtb file..

0 件の賞賛