Kernel config file used by Yocto

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Kernel config file used by Yocto

ソリューションへジャンプ
44,624件の閲覧回数
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,336件の閲覧回数
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 返答(返信)
486件の閲覧回数
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 件の賞賛
返信
486件の閲覧回数
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 件の賞賛
返信
486件の閲覧回数
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. 

486件の閲覧回数
dhavalvadhar
Contributor IV

Ok.. Thanks Biyong.

0 件の賞賛
返信