jurobystricky / Netgear-A6210

AC1200 High Gain WiFi USB Adapter Linux kernel driver
292 stars 155 forks source link

Add support for building via DKMS #56

Open alexharrington opened 7 years ago

alexharrington commented 7 years ago

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

pdktdk commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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