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?
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
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?
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
Could u guide how to make it a part of rootfs?
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
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
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?
Is there any guide?It is used i.MX8QM yocto OS