LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Module/Kernel Versions and numbering wrong (https://www.linuxquestions.org/questions/fedora-35/module-kernel-versions-and-numbering-wrong-433256/)

joelunch 04-09-2006 02:55 AM

Module/Kernel Versions and numbering wrong
 
How does fedora tell programs what version of kernel (and file location) to build modules for?

When makeing the modules for video for linux (v4l) it makes them for an old kernel version (not running) and installs them in that old kernel version directory. I have compiled my own kernel totaly from source in /usr/src/linux/
as I have always done.

when I do make or make install on the v4l is puts the files in the oldest kernel version on the system. Is there a kernel version file or something that will tell make where to look? Even make KERNEL_PATH=/usr/src/linux didn't do the job. There is no configure command for v4l.

Thanks in advance.

Joe

Lenard 04-09-2006 10:08 AM

Quote:

Originally Posted by joelunch
How does fedora tell programs what version of kernel (and file location) to build modules for?

When makeing the modules for video for linux (v4l) it makes them for an old kernel version (not running) and installs them in that old kernel version directory. I have compiled my own kernel totaly from source in /usr/src/linux/
as I have always done.

Should not be a problem, unless you forgot/missed a step or did not use 'make install' when done building.

Quote:

when I do make or make install on the v4l is puts the files in the oldest kernel version on the system. Is there a kernel version file or something that will tell make where to look? Even make KERNEL_PATH=/usr/src/linux didn't do the job. There is no configure command for v4l.
You may be able to edit the make file to point to the correct kernel source location. Check and see if /lib/modules/<version#>/build exists and where it links to, example;

$ ls -l /lib/modules/2.6.16.2/build
lrwxrwxrwx 1 root root 23 Apr 8 08:55 /lib/modules/2.6.16.2/build -> /usr/src/linux-2.6.16.2


All times are GMT -5. The time now is 02:11 AM.