On Tue, Jul 23, 2024 at 11:14 AM Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote:
On Tue, Jul 23, 2024 at 10:07 AM Andrei Borzenkov <arvidjaar@gmail.com> wrote:
*** Driver kernel version=6.4.0-150600.23.14 (6.4.0)
This version is wrong, the correct version should be 6.4.0-150600.23.14-default
Seems not to make a difference:
*** *** Making pcan driver in netdev mode *** *** Host OS Release=openSUSE Leap v15.6 *** Host machine kernel version=6.4.12-1-default *** Driver kernel version=6.4.0-150600.23.14-default (6.4.0) *** Path to kernel sources=/usr/src/linux
Where does it come from? It is wrong, it must be /lib/modules/6.4.0-150600.23.14-default/build (or equivalent target for this link). Something does not work correctly in auto-detection of the kernel build directory. Check what your Makefile does. As a general rule - you must be using the kernel **build** directory, not kernel **source** directory. You can build multiple kernels with different configurations from the same sources and building external modules needs files from both locations starting from the build.