Netgear-A6210 icon indicating copy to clipboard operation
Netgear-A6210 copied to clipboard

Add support for building via DKMS

Open alexharrington opened this issue 7 years ago • 6 comments

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

alexharrington avatar Jan 09 '17 13:01 alexharrington

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!

pdktdk avatar Jan 17 '17 02:01 pdktdk

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.

alexharrington avatar Jan 17 '17 08:01 alexharrington

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.

pdktdk avatar Jan 17 '17 09:01 pdktdk

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.

alexharrington avatar Jan 17 '17 10:01 alexharrington

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.

pdktdk avatar Jan 17 '17 13:01 pdktdk

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

alexharrington avatar Jan 17 '17 13:01 alexharrington