Creating general Patch for kernel driver

Issues related to software problems.
Post Reply
lyf4sci
Posts: 7
Joined: 2014/12/23 04:22:16

Creating general Patch for kernel driver

Post by lyf4sci » 2014/12/23 04:25:45

Hi Experts,

I am making changes to some of the device drivers by recompiling it and generate a new .ko file and install it. But in that case each of the different versions of linux I have to recompile and needs to be installed.
Instead how to create a patch for all the series in the Cent OS 5 version and to install it independent of machine ?

User avatar
Super Jamie
Posts: 310
Joined: 2014/01/10 23:44:51

Re: Creating general Patch for kernel driver

Post by Super Jamie » 2014/12/23 13:00:42

This is what DKMS is for.

It's in RepoForge: http://pkgs.repoforge.org/dkms/

User avatar
toracat
Forum Moderator
Posts: 7386
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Creating general Patch for kernel driver

Post by toracat » 2014/12/23 17:04:23

If what you mean by "all the series in the Cent OS 5 version" is 'all kernel versions of CentOS 5', then you have another option. That is to create a kABI-tracking kmod package as described in this CentOS wiki article.

Yet another option, which is the easiest, will be to ask ELRepo to provide such a kmod package.
CentOS Forum FAQ

lyf4sci
Posts: 7
Joined: 2014/12/23 04:22:16

Re: Creating general Patch for kernel driver

Post by lyf4sci » 2015/06/30 08:56:19

Thanks for the reply.

Post Reply

Return to “CentOS 5 - Software Support”