Rtl8812au: Install on Raspbian

Created on 16 Jun 2019  Â·  6Comments  Â·  Source: aircrack-ng/rtl8812au

Hi, seems that is not working the sudo make on raspbian, is only working for Arch?

Most helpful comment

@veganinside Yes, master works on a Raspberry Pi 3B+, Raspbian 9.9 and kernel 4.19.42-v7+ for me with with the instructions at the README.md, plus a small tweak to dkms-install.sh:

diff --git a/dkms-install.sh b/dkms-install.sh
index 547a6f4..1af64d8 100755
--- a/dkms-install.sh
+++ b/dkms-install.sh
@@ -14,7 +14,7 @@ DRV_VERSION=5.3.4
 cp -r ${DRV_DIR} /usr/src/${DRV_NAME}-${DRV_VERSION}

 dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
-dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
+ARCH=arm dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
 dkms install -m ${DRV_NAME} -v ${DRV_VERSION}
 RESULT=$?

Otherwise the ARCH is set to armv7l if you enable CONFIG_PLATFORM_ARM_RPI (and no rules are found to build for this architecture) or ARCH is set to arm64 if you enable CONFIG_PLATFORM_ARM64_RPI and then:

DKMS make.log for rtl8812au-5.3.4 for kernel 4.19.42-v7+ (armv7l)
lun jun 17 23:11:07 CEST 2019
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/4.19.42-v7+/build M=/var/lib/dkms/rtl8812au/5.3.4/build O="" modules
make[1]: se entra en el directorio '/usr/src/linux-headers-4.19.42-v7+'
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_io.o
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’

I suspect this is happening because while the CPU is arm64, the system and gcc are not (Raspbian still didn't make images or packages, AFAIK).

@kimocoder maybe a note at the README.md file could help other users?

All 6 comments

Mainly for Kali, but should be working on other platforms.
which branch? which RPI board?

Got more hardware incoming (RPI's), so we'll fix it

Raspberry B+. Running raspbian little. So Kali would be fully working?

El dom., 16 jun. 2019 20:14, Christian Bremvåg notifications@github.com
escribió:

Mainly for Kali, but should be working on other platforms.
which branch? which RPI board?

Got more hardware incoming (RPI's), so we'll fix it

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/aircrack-ng/rtl8812au/issues/377?email_source=notifications&email_token=AML32B7YVHT4QOYPSF6ILCDP2Z7JBA5CNFSM4HYRWF4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXZSJIQ#issuecomment-502473890,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AML32BZDJBZPDR3BTVINBELP2Z7JBANCNFSM4HYRWF4A
.

Is any branch working good on Raspbian? any similar experiences?
Thanks.

@veganinside Yes, master works on a Raspberry Pi 3B+, Raspbian 9.9 and kernel 4.19.42-v7+ for me with with the instructions at the README.md, plus a small tweak to dkms-install.sh:

diff --git a/dkms-install.sh b/dkms-install.sh
index 547a6f4..1af64d8 100755
--- a/dkms-install.sh
+++ b/dkms-install.sh
@@ -14,7 +14,7 @@ DRV_VERSION=5.3.4
 cp -r ${DRV_DIR} /usr/src/${DRV_NAME}-${DRV_VERSION}

 dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
-dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
+ARCH=arm dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
 dkms install -m ${DRV_NAME} -v ${DRV_VERSION}
 RESULT=$?

Otherwise the ARCH is set to armv7l if you enable CONFIG_PLATFORM_ARM_RPI (and no rules are found to build for this architecture) or ARCH is set to arm64 if you enable CONFIG_PLATFORM_ARM64_RPI and then:

DKMS make.log for rtl8812au-5.3.4 for kernel 4.19.42-v7+ (armv7l)
lun jun 17 23:11:07 CEST 2019
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/4.19.42-v7+/build M=/var/lib/dkms/rtl8812au/5.3.4/build O="" modules
make[1]: se entra en el directorio '/usr/src/linux-headers-4.19.42-v7+'
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_io.o
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’

I suspect this is happening because while the CPU is arm64, the system and gcc are not (Raspbian still didn't make images or packages, AFAIK).

@kimocoder maybe a note at the README.md file could help other users?

This issue has been resolved in the latest v5.6.4.2. Other branches will be left behind.
Anyhow, if the problem isn't resolved for somehow, or you got other issues, please re-open or create a new one for each specific. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oldstanda picture oldstanda  Â·  5Comments

satmandu picture satmandu  Â·  18Comments

iagosrodrigues picture iagosrodrigues  Â·  6Comments

Karlodun picture Karlodun  Â·  14Comments

eliterunics picture eliterunics  Â·  10Comments