Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: add dkms support for the Ceton module #10

Open
smithwd opened this issue Jul 28, 2018 · 3 comments
Open

suggestion: add dkms support for the Ceton module #10

smithwd opened this issue Jul 28, 2018 · 3 comments

Comments

@smithwd
Copy link

smithwd commented Jul 28, 2018

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!

  • Bill
@JamesRHarris
Copy link
Contributor

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
Copy link
Contributor

JamesRHarris commented Mar 4, 2019 via email

@punkerdood
Copy link

punkerdood commented Jul 16, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants