Celile Yıldız
Celile Yıldız

Reputation: 23

How can kernel modules load automatically

I loaded some kernel modules on linux for an embedded system. When I run these kernel-modules by insmod command, it works. How can I run these modules automatically(without entering any command) at boot starting time

-----SOLVED----

I added modules' configuration file to etc/modules-load.d

Then I put modules and modules.dep file in /lib/modules/uname -rdirectory

----SOLVED----

Upvotes: 2

Views: 9443

Answers (2)

Jobin James
Jobin James

Reputation: 1040

You can use modprobe command

 modprobe {driver-name}

Upvotes: 0

ChauhanTs
ChauhanTs

Reputation: 469

Add your modules in the following config file

/etc/modules-load.d/modules.conf

Upvotes: 4

Related Questions