Kernel config file used by Yocto

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

Kernel config file used by Yocto

跳至解决方案
44,627 次查看
dhavalvadhar
Contributor IV

Hello,

I able to configure the Ubuntu machine and build the images using Yocto. But now I would like to modify the kernel configuration and build the kernel with that configuration. I read somewhere that Yocto uses the kernel configuration file "<build_dir>/../sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.10.17/mx6/defconfig". But the linux kernel version is 3.14.28. Then how come the Yocto build uses the configuration file of linux kernel v3.10.17.

Please help me to understand this.

Appreciate your quick reply.

Thanks,

Dhaval

标签 (1)
标记 (2)
1 解答
24,339 次查看
chrishossack
Contributor III

Hi Khang,

I've started another post about this subject and described my work around for this on the following thread

Changing the Kernel configuration for i.MX6 SABRE

The only way I found to change my Kernel that works is to run the following commands in this particular order.

$ bitbake linux-imx -c cleansstate
$ bitbake linux-imx -c menuconfig

(change anything)

$ bitbake linux-imx

But this changes the ./tmp rather than ../source, so changes are easily lost.

Cheers

Chris

在原帖中查看解决方案

24 回复数
487 次查看
BiyongSUN
NXP Employee
NXP Employee

ls fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-fsl-arm/recipes-kernel/linux/

linux-imx_3.14.28.bb  linux-imx_%.bbappend  linux-imx-mfgtool_3.14.28.bb

0 项奖励
回复
487 次查看
dhavalvadhar
Contributor IV

Thanks Biyong for your quick response!

I ran 'bitbake linux-imx -c menuconfig' command. And thus .bb file of linux kernel version 3.14.28, it will first run the do_configure_prepend() function before starting configuration. So it will copy the 'imx_v7_defconfig' to '.config' and 'defconfig' files.

1. What is the need of copying imx_v7_defconfig to those files?

2. How did the bitbake command use the .bb file of 3.14.28 linux kernel and not of 3.10.17 linux kernel?

0 项奖励
回复
487 次查看
BiyongSUN
NXP Employee
NXP Employee

For how to use the yocto, please refer to the yocto official site.

And 3.10.17 and 3.14.28 use the different way to handle the linux config file. It depends on the designer.

In the 3.14.28, it copy the default config file to .config. cheat the linux. it has run the make <default config> already.

you can add you owner recipe for your owner favorite way. 

487 次查看
dhavalvadhar
Contributor IV

Ok.. Thanks Biyong.

0 项奖励
回复