ceton / infinitv_pcie

Linux driver for the Ceton InfiniTV PCIe
15 stars 16 forks source link

suggestion: add dkms support for the Ceton module #10

Open smithwd opened 6 years ago

smithwd commented 6 years ago

I am not sure if you are familiar with DKMS, but it will automagically allow rebuilding custom kernel modules every time the kernel is updated.

As is, i need to manually re-install the Ceton module after every kernel update, which is annoying.

The following DKMS script is an example of what it could look like to auto update the Ceton module.

You need to add the following dkms.conf file to the module source directory (/usr/src/infinitv_pcie-1.0):

MAKE="make KERNEL_VERSION=${kernelver}" CLEAN="make clean" BUILT_MODULE_NAME=ctn91xx DEST_MODULE_LOCATION=/extra/ BUILT_MODULE_LOCATION= PACKAGE_NAME=infinitv_pcie PACKAGE_VERSION=1.0 AUTOINSTALL=yes REMAKE_INITRD=yes

Note that the module source directory is computed as:

/usr/src/${PACKAGE_NAME}-${PACKAGE_VERSION}

To enable, build, and install the module using DKMS - use the following:

$ sudo dkms add -m infinitv_pcie -v 1.0 $ sudo dkms build -m infinitv_pcie -v 1.0 $ sudo dkms install -m infinitv_pcie -v 1.0

After doing this, future module updates should be automatic.

Documentation on DKMS can be found here:

https://help.ubuntu.com/community/DKMS

Note that I used to use DKMS with the older Ceton driver source for years, but needed to update this when Ubuntu 18.04 went to a later kernel.

Hope this helps make the driver module easier to use!

JamesRHarris commented 6 years ago

I have been using the following dkms.conf since may 2013 on fedora without issue.

MAKE="make KERNEL_VERSION=${kernelver}"
CLEAN="make clean"
BUILT_MODULE_NAME=ctn91xx
PACKAGE_NAME=ceton
DEST_MODULE_LOCATION="/extra"
PACKAGE_VERSION=2013.0326.226
# REMAKE_INITRD=yes
AUTOINSTALL=yes
JamesRHarris commented 5 years ago

I'm running on fedora, they have already shipped 4.20.11. I'm not having problems.

On Mon, Mar 4, 2019 at 12:16 AM Karl Shea notifications@github.com wrote:

Have you been able to build against 4.15? Not sure if it's just my machine.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ceton/infinitv_pcie/issues/10#issuecomment-469158377, or mute the thread https://github.com/notifications/unsubscribe-auth/ANFl_wFSylgtrht1uyWY8-0DmSjj3tR5ks5vTNZsgaJpZM4Vk0tI .

-- James Harris Software Engineer james.r.harris@gmail.com

punkerdood commented 4 years ago

Thanks Bill - that worked for me in ubuntu 5.3.0-62 generic