FL2000 driver problem

I have a problem with https://aur.archlinux.org/packages/fl2000-dkms

It should download, compile, etc. driver from github, but it is failing at beginning compilation:

(2/2) Install DKMS modules
==> dkms install --no-depmod -m fl2000 -v r23.2fc7b1b -k 5.4.64-1-MANJARO
Error! Bad return status for module build on kernel: 5.4.64-1-MANJARO (x86_64)
Consult /var/lib/dkms/fl2000/r23.2fc7b1b/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m fl2000 -v r23.2fc7b1b -k 5.4.64-1-MANJARO' returned 10
==> depmod 5.4.64-1-MANJARO

In the log there is an information about missing kernel headers files, first I downloaded manjaro headers from gitlab and copy missing files to /usr/lib/… but it needed more files every time, so I just edited dkms.conf.in and replaced ${kernel_source_dir} with path to my manjaro headers from git in /home, then it starting to compile and after 2h it fails with other code:

(2/2) Install DKMS modules
==> dkms install --no-depmod -m fl2000 -v r32.2a89a51 -k 5.4.67-1-MANJARO
Error!  Build of fl2000.ko failed for: 5.4.67-1-MANJARO (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/fl2000/r32.2a89a51/build/ for more information.
==> Warning, `dkms install --no-depmod -m fl2000 -v r32.2a89a51 -k 5.4.67-1-MANJARO' returned 7
==> depmod 5.4.67-1-MANJARO

These logs looks ok for me

I don’t know what to do further.

Correct procedure would have been to install the headers for your active kernel from standard repos. Here is a command working for all active kernels:

sudo pacman -S $(ls /boot | awk -F "-" '/^linux/ { print $1"-headers" }')
1 Like

I have them, problem is that there are missing files in them and compilation fails, that’s why I downloaded headers from git.

That’s a kernel compile log.

What did

1 Like

It looks like this

DKMS make.log for fl2000-r23.2fc7b1b for kernel 5.4.67-1-MANJARO (x86_64)
nie, 4 paĹş 2020, 21:50:53 CEST
make: Entering directory '/usr/lib/modules/5.4.67-1-MANJARO/build'
scripts/Makefile.build:42: arch/x86/entry/syscalls/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/x86/entry/syscalls/Makefile'.  Stop.
make: *** [arch/x86/Makefile:238: archheaders] Error 2
make: *** Waiting for unfinished jobs....
make: Leaving directory '/usr/lib/modules/5.4.67-1-MANJARO/build'

If I copy arch/x86/entry it need arch/x86/tools then I give up and give it headers from git

This could probably be extended to DKMS as well…

First thing I would do is ask the AUR packager. Use the comment section on the AUR page, and put the errors there.

Seems that makefile needs a lot of work.

It doesn’t work like that, at all.

@Wollie gave a good hint to install headers.

Probably won’t matter; I looked thru my $kver/build directory…none of those directories exist on my machine