RTL8812au stopped working

Here is the error message:
DKMS make.log for 8812au-5.6.4.2_35491.20191025 for kernel 5.9.6-1-MANJARO-ARM (aarch64)
Mon Nov 9 09:28:14 PM EST 2020
make[1]: Entering directory ‘/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build’
make ARCH=arm CROSS_COMPILE= -C /lib/modules/5.9.6-1-MANJARO-ARM/build M=/var/lib/dkms/8812au/5.6.4.2_35491.20191025/
build modules
make[2]: Entering directory ‘/usr/lib/modules/5.9.6-1-MANJARO-ARM/build’
Makefile:685: arch/arm/Makefile: No such file or directory
make[2]: *** No rule to make target ‘arch/arm/Makefile’. Stop.
make[2]: Leaving directory ‘/usr/lib/modules/5.9.6-1-MANJARO-ARM/build’
make[1]: *** [Makefile:2246: modules] Error 2
make[1]: Leaving directory ‘/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build’

Any help apprec!

Did you install the 5.9.6-1 kernel headers package for the kernel you are running?

Hello & Welcome,

is this your source?

https://aur.archlinux.org/packages/rtl8812au-dkms-git/

You have change PKGBUILD for ARM Devices? aarch64

line 9

arch=('i686' 'x86_64')

change to

arch=('i686' 'x86_64' 'aarch64')

or

arch=('any')

another possibility would be …

Source: AUR (en) - rtl88xxau-aircrack-dkms-git

here change line 12

arch=('x86_64')

as described above

Used this one:
Source: AUR (en) - rtl88xxau-aircrack-dkms-git
Which file to change line 12?
No PKGBUILD for the above.
I have 5.9.6-1-MANJARO-ARM linux headers installed.

Got this message:
Good news! Module version v5.6.4.2_35491.20191025 for 88XXau.ko.gz
exactly matches what is already found in kernel 5.9.6-1-MANJARO-ARM.
DKMS will not replace this module.
You may override by specifying --force.

depmod…

DKMS: install completed.
dkms status
8812au, 5.6.4.2_35491.20191025, 5.9.6-1-MANJARO-ARM, aarch64: installed (WARNING! Diff between built and installed module!)
rtl8812au, 5.6.4.2.r11.g3110ad6: added

Still not working ?

this is what the directory with files looks like

rtl88xxau-aircrack-dkms-git]$ ls -a
.  ..  dkms.conf  .git  PKGBUILD  .SRCINFO

the file PKGBUILD must be changed

original PKGBUILD for x86_64 System - NOT ARCH / ARM !
# Maintainer:  Iyán Méndez Veiga <me (at) iyanmv (dot) com>
# Contributor: Shaun Ren <shaun DOT ren (at) linux (dOt) com>
# Contributor: Simon Hanna <simon DOT hanna (at) serve-me (dOt) info>

pkgname=rtl88xxau-aircrack-dkms-git
_pkgbase=rtl88xxau
pkgver=r1123.e9fbf5c
pkgrel=1
pkgdesc="Aircrack-ng kernel module for Realtek 88XXau (USB adapters only) network cards (8811au, 8812au and 8821au chipsets) with monitor mode and injection support"
url="https://github.com/aircrack-ng/rtl8812au"
license=('GPL')
arch=('x86_64')
makedepends=('git')
depends=('dkms')
conflicts=('rtl8812au-aircrack-dkms-git' 'rtl8812au-dkms-git' 'rtl8821au-dkms-git' 'rtl8814au-dkms-git' 'rtl8812au-inject-dkms-git')

source=('rtl88xxau::git+https://github.com/aircrack-ng/rtl8812au.git#branch=v5.6.4.2'
        'dkms.conf')

sha256sums=('SKIP'
            'a1096f5141292aaf26e7556a170e8c9de86c4b6bb3fd3df48ee01996a223e56f')

pkgver() {
  cd ${srcdir}/${_pkgbase}
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
	cd ${srcdir}/${_pkgbase}
	mkdir -p ${pkgdir}/usr/src/${_pkgbase}-${pkgver}
	cp -pr * ${pkgdir}/usr/src/${_pkgbase}-${pkgver}
	cp ${srcdir}/dkms.conf ${pkgdir}/usr/src/${_pkgbase}-${pkgver}
	
	# Set name and version
	sed -e "s/@_PKGBASE@/${_pkgbase}-dkms/" \
            -e "s/@PKGVER@/${pkgver}/" \
	    -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
}

line 12:

arch=('x86_64')

change to (aarch64 or any)
result should look like this

arch=('aarch64')
or
arch=('any')

then, save the file and compile

after this…pls reboot

THX fixed. Thanks for all replies!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.