vck5
vck5

Reputation: 33

override duplicate device driver for kernel

i'm trying to update kernel with my linux device drivers , but kernel provide the same drivers . according to driver precedence in /etc/depmod.d/dist.conf built-in drivers take precedence over weak-updates. there is way to change the precedence in kernel by crating you own config file in /etc/depmod.d/yourdriver.conf override sym53c8xx 2.6.32-* weak-updates/sym53c8xx http://people.redhat.com/jcm/el6/dup/docs/dup_book.pdf

however i'm trying the same thing but it doesn't include my driver after i run depmod . has anyone done that before here ? any help is appreciated.

Upvotes: 2

Views: 2914

Answers (2)

vck5
vck5

Reputation: 33

http://people.redhat.com/jcm/el6/dup/docs/dup_book.pdf had the correct answer , i didn't read it carefully . create a conf file in /etc/depmod/foo.conf and add this to file

override foo * weak-updates/foofolder

Upvotes: 1

0andriy
0andriy

Reputation: 4674

There is special folder under /lib/modules/<version>, i.e. /lib/modules/<version>/extra. If you put modules there they will override whatever you have in kernel for the same device. I checked this on Fedora, but I think it's a standard practice.

Upvotes: 2

Related Questions