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

Add support for building via DKMS #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alexharrington
Copy link

Add dkms.conf so that you can install the module via DKMS and have it automatically re-built on kernel upgrade.

@pdktdk
Copy link

pdktdk commented Jan 17, 2017

Hi Alex,

I went ahead and followed your instruction successfully. I'm surprised this wasn't an option previously. Is there anyway to automatically check for updates or do I just check back periodically?

Also, if there is an update would you mind sharing the steps to replace? Do I delete the Netgear directory under /usr/src and simply reinstall/repeat the steps?

Edit: I just noticed you had your own updated zip with the dkms.conf. LOL I will keep following you in case you have any other improvements.

Ubuntu (Zorin) 14.04 x64 - Netgear A6210

Thanks for helping out!

@alexharrington
Copy link
Author

I very much doubt I'll make any further changes. The adapter I was using with this wasn't working that well so I've swapped it out for now. I just wanted to be sure while I was using it, that if the kernel was updated the module would be automatically rebuilt for the newer version. There's no other automatic update built in.

The only change is the dkms.conf file which you can apply to the original maintainers repo locally if they choose not to merge this in.

@pdktdk
Copy link

pdktdk commented Jan 17, 2017

Funnily enough I updated the kernel earlier yesterday - I wish I'd have found this prior just to fully test it.

So if the driver is updated or changed by the author do I just delete the folder under /usr/src and reinstall using the same procedure?

Thanks again.

@alexharrington
Copy link
Author

Exactly so. Remove the /usr/src folder, pull down fresh source from the author, add the dkms.conf file, and then use dkms to rebuild.

@pdktdk
Copy link

pdktdk commented Jan 17, 2017

I was reading a thread regarding a driver issue recompiling and the issue was resolved using the line:
MAKE[0]="'make' all KVER=${kernelver}"

What is the difference between that and:
MAKE[0]="make -j$(nproc) && make install"
?

Thanks again for the generosity.

@alexharrington
Copy link
Author

I really don't know I'm afraid. I just took an example dkms.conf file and modified it until it works.

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

Successfully merging this pull request may close these issues.

2 participants