How to build uboot for imx8mm with dts

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to build uboot for imx8mm with dts

2,784 Views
satokimiyasu
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 fsl-setup-release.sh -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,

Labels (1)
0 Kudos
2 Replies

2,283 Views
shivanipatel
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.

Regards,

Shivani

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

0 Kudos

1,762 Views
VinithNama
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 Kudos