Configure kernel modules to load at boot

cancel
Showing results for 
Search instead for 
Did you mean: 

Configure kernel modules to load at boot

246 Views
Contributor IV

Hi,

I want to add conf file like galcore.conf in /etc/modules-load.d/ let some ko load at boot.

How to make create the conf file in /etc/modules-load.d/ folder?

0 Kudos
8 Replies

17 Views
NXP TechSupport
NXP TechSupport

Hi Xu,

    if you want to let linux load your module automatically when linux boots, you can do like this :

For example, module's name is my_module.ko.

# sudo echo "my_module" > /etc/modules-load.d/my_module.conf

Have a nice day!

BR,

Weidong

0 Kudos

17 Views
Contributor IV

hi,Wigros

I know it,but I don't want manual,I want to linux auto do this,put this into binary in image,like galcore.conf,

I want to know galcore.ko how to do this?

0 Kudos

17 Views
Senior Contributor II

Hi xu.ji@hirain.com ,

I believe you can write the command suggested by weidong.sun in your conf file and make it a part of rootfs through your yocto. Then it will be part of your image and no need to manually run any commands.

Let us know if you still face any issue.

Regards,

Kunal

0 Kudos

17 Views
Contributor IV

Could u guide how to make it a part of rootfs?

0 Kudos

17 Views
Senior Contributor II

Hi xu.ji@hirain.com ,

As I already mentioned in my previous comment, please go through below link thoroughly to add a new file to your rootfs. (Please read all the comments of the below link as well)

Task #10 - How to create a custom layer 

Regards,

Kunal

0 Kudos

17 Views
Senior Contributor II

Hi xu.ji@hirain.com,

You can follow the below link. 

https://community.nxp.com/docs/DOC-95333 

This will help you to create custom meta layer in yocto and also installing a new file to rootfs through yocto.

Regards,

Kunal

0 Kudos

17 Views
Contributor IV

hi,

I am not want make custom layer,I just make some linux kernel driver to module and then when boot systemd add this ko,so I need to add conf file about my ko add into /etc/modules-load.d/

I refer the galcore ko it is the gpu driver but I can find make galcore.conf in code,do u know it?

0 Kudos

17 Views
Contributor IV

Is there any guide?It is used i.MX8QM yocto OS

0 Kudos