Linux Kernel Configuration + Yocto

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

Linux Kernel Configuration + Yocto

2,615 次查看
Mark_Clark
Contributor I

I have built the image for kirkstone and need to tweak the kernel configuration.
I have reviewed this documentation:
https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-change-Linux-Kernel-configuration...

The patch it creates does not seem to work when copied. 

I need to add and remove some kernel features.  I have been able to edit the imx_v7_defconfig that yocto uses and accomplish this but that seems like the wrong way to go about it and would rather leave the NXP supplied sources alone.

Any advice would be appreciated.

标签 (3)
0 项奖励
回复
3 回复数

2,591 次查看
Mark_Clark
Contributor I

Thanks for your response.  Wouldn't it be better to create a new defconfig based off imx_v7_defconfig (what the default for this arch appears to be... imx.solo) and point to that (my_new_defconfig) instead?   I have tried doing this as well in the linux_imx meta area but it is overridden by something that I cannot find.   I need something that I can check into git and check out on a build machine for repeatable builds.

0 项奖励
回复

2,588 次查看
Chavira
NXP TechSupport
NXP TechSupport

2,595 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @Mark_Clark!
Thank you for contacting NXP Support!

If you have the patch created you can download our Yocto Project and then use the command "bitbake -c devshell virtual/kernel".

After that, you can see a new shell with the source code of the kernel and you can apply your patches.

After that, you can compile the entire image or only compile and deploy the kernel

To compile an image: "bitbake <image_name>"

To compile and deploy the kernel: "bitbake -c compile virtual kernel" and "bitbake -c deploy virtual kernel"

Best Regards!
Chavira

0 项奖励
回复