How to customize the yocto build for my hardware?

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

How to customize the yocto build for my hardware?

661 次查看
chillinwithscb
Contributor III
Been working with im8mn EVK and now trying to setup the yocto build for my custom board that has IMX8MN, but different LPDDR4.
 
I created a new layer. It has a machine/.conf; custom file for my board. I added a patch file to modify the lpddr4_timing.c that is for the IMX8MN EVK. This works, but it seems less than satisfying way to do this. In particular, I can no longer build for the EVK since my new build config is usual the EVK config with minimal changes to support by hardware.
 
Also, the build still uses a DTB named im8mn_evk.
 
How do I fully customize the board config? The info seems to be spread over several files and directories. What are the files I need to modify or replace?
 
Drilling in, I think I need to copy the following files, add them to my layer and modify for my board. Yes?
 
sources/meta-freescale/conf/machine/imx8mm-lpddr4-evk.conf
sources/meta-freescale/conf/machine/include/imx8mn-evk.inc
 
But what to change in these files? 
 
I changed both KERNEL_DEVICETREE_BASENAME and UBOOT_CONFIG_BASENAME since they both had values like imx8mn_evk. But, then the build fails saying it can't find a _defconfig named by my change to these variables. That brings me to:
 
(build)/tmp/work/compton-poky-linux/u-boot-imx/2024.04/git/configs/imx8mn_evk_defconfig
 
Which seems to be the defconfig the build uses for the EVK. That under tmp; not sources. How do I affect this file for my board/build/customization?
0 项奖励
回复
3 回复数

648 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @chillinwithscb!

Thank you for contacting NXP Support!

 

You need to calibrate your ram memory using our DDR Tool.

All the steps to customize our BSP according to your hardware are described in our IMX PORTING GUIDE.

 

Best Regards!

Chavira

0 项奖励
回复

640 次查看
chillinwithscb
Contributor III
I already have the lpddr4_timing.c file that works with my DDR. The question is about how to use that. How to integrate it into the build. This is a yocto question; not a question about DDR.

I've read the IMX porting guide many times. It's written so badly. I can't get much value from it. I post questions here since that and other docs are so bad.
0 项奖励
回复

620 次查看
Chavira
NXP TechSupport
NXP TechSupport

HI @chillinwithscb!

 

Our documentation assumes that you know how works Yocto and Linux in general also you can consult the Yocto Documentation to understand how you can do the proper modifications.

We have some community post that you can consult to apply your patches to Yocto too.

 

https://community.nxp.com/t5/Processor-Expert-Software/Creating-and-applying-a-git-patch-in-a-yocto-...

 

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Yocto-Project-customization-guide/ta-p/1...

0 项奖励
回复