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?
Is there any guide?It is used i.MX8QM yocto OS
Hi Xu Ji,
You can follow the below link.
Task #10 - How to create a custom layer
This will help you to create custom meta layer in yocto and also installing a new file to rootfs through yocto.
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?
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!
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 ,
I believe you can write the command suggested by Wigros 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.
Could u guide how to make it a part of rootfs?
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)
Retrieving data ...