SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I need to patch the kernel module: /lib/modules/4.4.217/kernel/drivers/media/usb/gspca/gspca_ov519.ko
using the source I’ve found here: github.com/torvalds/linux/blob/master/drivers/media/usb/gspca/ov519.c (that should add some tricks to support mi webcam).
Since I never did something like that, and I have no idea how to proceed, would someone be so kind as to show me the way step by step?
Thanks for helping.
I recommend checking out SlackBuilds for "kmod" packages. My last public SlackBuild for a module upgrade was for kvm-kmod in the 14.0 Slackbuilds. There are other examples if you search around at SlackBuilds.org.
I recommend checking out SlackBuilds for "kmod" packages
I can see that the source for your kmod’s SlackBuilds contains multiple files, including of course Makefile and configure. That make me think I cannot download only the ov519.c source file from the repository, should I download the whole gspca module? Or is it fine to use the gspca folder I have un /usr/src/ replacing ov519.c?
Last edited by theCapitain; 04-08-2020 at 03:03 AM.
You'll need the kernel source for the same version as what you're running, and you'll have to apply your patch before building the module. Once you build it you can try replacing the existing module with the newly patched one. Note that if you upgrade the kernel afterwards with slackpkg your modules will be replaced with the stock ones again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.