Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]wifi driver failed to compile on ubuntu 24.04 LTS #341

Closed
2 tasks done
mariarti opened this issue May 1, 2024 · 10 comments
Closed
2 tasks done

[BUG]wifi driver failed to compile on ubuntu 24.04 LTS #341

mariarti opened this issue May 1, 2024 · 10 comments

Comments

@mariarti
Copy link

mariarti commented May 1, 2024

Describe the bug
wifi driver failed to compile on ubuntu 24.04 LTS

/rtl8812au$ sudo ./dkms-install.sh 
About to run dkms install steps...
Deprecated feature: REMAKE_INITRD (/usr/src/rtl8812au-5.2.20.2/dkms.conf)
Creating symlink /var/lib/dkms/rtl8812au/5.2.20.2/source -> /usr/src/rtl8812au-5.2.20.2
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8812au/5.2.20.2/source/dkms.conf)

Building module:
Cleaning build area...
'make' -j4 KVER=6.8.0-31-generic KSRC=/lib/modules/6.8.0-31-generic/build..............(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8812au: 5.2.20.2 not found
Error! Bad return status for module build on kernel: 6.8.0-31-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/5.2.20.2/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8812au/5.2.20.2/source/dkms.conf)

Building module:
Cleaning build area...
'make' -j4 KVER=6.8.0-31-generic KSRC=/lib/modules/6.8.0-31-generic/build.............(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8812au: 5.2.20.2 not found
Error! Bad return status for module build on kernel: 6.8.0-31-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/5.2.20.2/build/make.log for more information.
Finished running dkms install steps.
Disabled IPv6 Successfuly 
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

To Reproduce
sudo ./dkms-install.sh

Expected behavior
success compile and finish

Your setup (please complete the following information):

  • OS Ubuntu 24.04 LTS amd64
  • Hardware i5 x86
  • WiFi card rtl8812au
  • WiFi driver rtl8812au-5.2.20.2
git clone -b v5.2.20 https://github.com/svpcom/rtl8812au.git
cd rtl8812au/
sudo ./dkms-install.sh

Confirm you read

@svpcom
Copy link
Owner

svpcom commented May 1, 2024

Try to build without dkms (via make command) and upload build log

@mariarti
Copy link
Author

mariarti commented May 1, 2024

Consult /var/lib/dkms/rtl8812au/5.2.20.2/build/make.log for more information. from previous post.
dkms-install-log.txt

and build without dkms
make.txt

@svpcom
Copy link
Owner

svpcom commented May 17, 2024

Try svpcom/rtl8812au@84cacef or latest master

@mariarti
Copy link
Author

17-05-24.txt

@svpcom
Copy link
Owner

svpcom commented May 17, 2024

Try build without dkms

@mariarti
Copy link
Author

make-18-05-24.txt

@svpcom
Copy link
Owner

svpcom commented May 18, 2024

Make succeeded. So you need to cleanup dkms sources (something like dkms uninstall or manually remove /usr/src/rtl8812au-5.2.20.2)

@mariarti
Copy link
Author

dkms.txt

@svpcom
Copy link
Owner

svpcom commented May 18, 2024

Now dkms-install.sh should work

@mariarti
Copy link
Author

Yes, finally it performed without an errors.

user@pc:~/Downloads$ rm -rf rtl8812au/
user@pc:~/Downloads$ git clone -b v5.2.20 https://github.com/svpcom/rtl8812au.git
Cloning into 'rtl8812au'...
remote: Enumerating objects: 8659, done.
remote: Counting objects: 100% (192/192), done.
remote: Compressing objects: 100% (112/112), done.
remote: Total 8659 (delta 105), reused 143 (delta 79), pack-reused 8467
Receiving objects: 100% (8659/8659), 64.47 MiB | 21.51 MiB/s, done.
Resolving deltas: 100% (5899/5899), done.
user@pc:~/Downloads$ cd rtl8812au/
user@pc:~/Downloads/rtl8812au$ sudo ./dkms-install.sh 
[sudo] password for user: 
About to run dkms install steps...
Error! DKMS tree already contains: rtl8812au-5.2.20.2
You cannot add the same module/version combo more than once.
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8812au/5.2.20.2/source/dkms.conf)

Building module:
Cleaning build area...
'make' -j4 KVER=6.8.0-31-generic KSRC=/lib/modules/6.8.0-31-generic/build..................................
Signing module /var/lib/dkms/rtl8812au/5.2.20.2/build/88XXau_wfb.ko
Cleaning build area...
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8812au/5.2.20.2/source/dkms.conf)

88XXau_wfb.ko.zst:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-31-generic/updates/dkms/
depmod....
Finished running dkms install steps.
Disabled IPv6 Successfuly 
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1


user@pc:~$ sudo modprobe 88XXau_wfb
[sudo] password for user: 
user@pc:~$ lsmod
Module                  Size  Used by
88XXau_wfb           2404352  0

Later will go further with receiving data.
Thanks a lot for fix and help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants