Yocto - Add functionality without recompiling all kernel - (modules ?)

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

Yocto - Add functionality without recompiling all kernel - (modules ?)

ソリューションへジャンプ
705件の閲覧回数
maximedutres
Contributor I

Hi,

I'm currently working on i.MX28 with a linux kernel generated by Yocto project.

I noticed that I can activate some functionnalities of kernel with this specific config file :

meta-*****\recipes-kernel\linux\linux-fslc\mxs\defconfig

For example, I've changed 

# CONFIG_CAN_BCM is not set

to

CONFIG_CAN_BCM=y

I recompile linux kernel with following command

bitbake -C fetch virtual/kernel

and it activates BCM protocol for CAN bus.

I would like to know if it is possible to add this BCM protocol without recompiling all kernel.

I've heard kernel modules could do that, but I'm totally novice to that.

Thank you in advance if you could help me.

ラベル(2)
0 件の賞賛
1 解決策
621件の閲覧回数
maximedutres
Contributor I

In case someone is interested, I finally manage to do it.

By replacing

CONFIG_CAN_BCM=y

with

CONFIG_CAN_BCM=m

and generating kernel, I was able to find my module can-bcm.ko in an generated archive named modules-***.tgz.

Then, by doing following command in a linux kernel not equiped with BCM protocol, it finally enables it :

insmod can-bcm.ko

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
622件の閲覧回数
maximedutres
Contributor I

In case someone is interested, I finally manage to do it.

By replacing

CONFIG_CAN_BCM=y

with

CONFIG_CAN_BCM=m

and generating kernel, I was able to find my module can-bcm.ko in an generated archive named modules-***.tgz.

Then, by doing following command in a linux kernel not equiped with BCM protocol, it finally enables it :

insmod can-bcm.ko

0 件の賞賛
621件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee

Hi Maxime,

thank you very much for sharing your solution.


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛