How to build uboot for imx8mm with dts

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to build uboot for imx8mm with dts

3,427 次查看
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,

标签 (1)
0 项奖励
回复
2 回复数

2,926 次查看
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 项奖励
回复

2,405 次查看
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 项奖励
回复