Open dragon99919 opened 3 years ago
I am hoping that some of the other Manjaro users stop by and help us figure this out. I've been using Linux since around 1994 but there is only so much time in the day to learn everything I would like to learn and I simply have not had the time to really learn the details of Manjaro. It is a real challenge trying to keep all of the repos here going.
I did a little searching and did not see much help. Do you mind being a guinea pig? If not, let's see if we narrow down where things are going south.
Open a terminal and go to the driver directory. Probably ~/src/8814au
Run the following:
$ make clean $ make $ make install
Basically that installs the driver, or should, without using dkms. Tell me what happens.
I suspect dkms is getting confused. Exactly what is confusing it is not clear.
As expected, after removing the DKMS module and installing the driver without it for both kernels worked like a charm! So yep, looks like a DKMS-related problem.
Ah, yes, I should have mentioned that cleaning out dkms is needed but you are on top of that.
When you used make to install the driver, I assume you had to run it twice, once for each kernel?
How did you tell the system which kernel is active?
Well, when you install an additional kernel in Manjaro, leter you just select which one you want to run the system with in the GRUB. So I removed the DKMS module, restarted system, installed the driver manually, restarted system, installed additional kernel with internet being back on, restarted the system, launched new system with new kernel and then installed the driver manually again, restarted the system again and boom - now whatever kernel I use, the driver is there!
Okay. I see. But even though the driver is working with both kernels, no dkms support means no driver as soon as a new kernel flows in.
What you are describing sounds very similar to how Debian based systems work... but there has to be a difference between the systems somewhere. For help with the discussion, here is the dkms manpage that I use:
http://manpages.ubuntu.com/manpages/focal/man8/dkms.8.html
As you can see, dkms has a lot of options. I'll bet that it is possible to use a different configuration in the install scripts here that would work for Manjaro and Debian and hopefully any other distros within reason. The question is, how do we figure that out. I'm having a hard time finding info but I mostly hang out in Debian related sites. Do you have Manjaro related forums that you could ask for help? Someone knows how to solved this, we just need to find them.
Right, I've created a thread on Manjaro forum, here. Hopefully, we shall see if someone had this problem with anything else like that in the past.
Well, it seems that surely something indeed goes wrong here... Here's the output of the kernel installation (I was sitting on 5.10 LTS, installed the driver and it was working fine so I tried to install 5.12 as additional kernel):
And that's the build.log file:
DKMS make.log for rtl8814au-5.8.5.1 for kernel 5.12.19-1-MANJARO (x86_64) Mon Aug 30 21:43:02 CEST 2021 make: uname: No such file or directory make: pwd: No such file or directory make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.12.19-1-MANJARO/build M= modules make: pwd: No such file or directory make: make: No such file or directory make: *** [Makefile:2383: modules] Error 127