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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
684 Views
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.

Labels (2)
0 Kudos
1 Solution
600 Views
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

View solution in original post

0 Kudos
2 Replies
601 Views
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 Kudos
600 Views
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 Kudos