Comments (8)
I have a Pi 3 and Pi 4 but have not found a need to test this driver. When I have time, I might work on this but your best bet might be in the Kali forums.
from 88x2bu.
I've been trying to get this driver up and running on my raspberry pi 4 for the last couple of hours but no luck so far. The raspberry pi is running Kali 2020.1 with the latest upgrades etc. Installing the driver seems to work just fine and no errors occur.
However, I can't seem the interface up, I've tried "ifconfig wlan0 up" and "ip link set wlan0 up", both times I get the error "SIOCSIFFLAGS: Operation not permitted" (yes I'm running it as root so sudo isn't needed).
Kernel version = 4.19.118-Re4son-v8l+
I've been checking my logs but can't find anything related to the issue.
Hope someone can assist me in this matter.
Might I ask how you've compiled the driver for the Raspberry Pi 4? Have quickly looked at the Makefile and can't see any Pi related options.
from 88x2bu.
I had time to add the appropriate lines in the Makefile today. I will try to document it as soon as I have time.
from 88x2bu.
I had time to add the appropriate lines in the Makefile today. I will try to document it as soon as I have time.
Looks straightforward. I was previously using another repo for the rtl8812bu and had to add 'EXTRA_CFLAGS += -fno-stack-protector' to get in to compile on arm64.
Thanks so much for the speedy reply.
from 88x2bu.
-fno-stack-protector needed for ARM64_RPI.
ERROR: "__stack_chk_guard" [/var/lib/dkms/rtl88x2bu/5.8.7.4/build/88x2bu.ko] undefined!
Modified the Makefile...
ifeq ($(CONFIG_PLATFORM_ARM64_RPI), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
EXTRA_CFLAGS += -fno-stack-protector
ARCH ?= arm64
CROSS_COMPILE ?=
KVER ?= $(shell uname -r)
KSRC := /lib/modules/$(KVER)/build
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
INSTALL_PREFIX :=
endif
Complies cleanly after that. Thanks once again. (Linux DietPi 5.4.72-v8+ #1356 SMP PREEMPT Thu Oct 22 13:58:52 BST 2020 aarch64 GNU/Linux)
from 88x2bu.
PieGuy314,
Thanks for the help with the Makefile. I have added the line you suggested.
Could I get you to document the steps needed to compile on RasPi ARM and ARM64? It would help me get the documentation in the README much faster.
I have a Pi 3B and Pi 4B so I have the hardware to test but both systems are busy right now. Hopefully, at some point in the next weeks I can do some testing with them. I also have 2 more driver to add RasPi support and Packet Injection support to, That will keep me busy for a while.
from 88x2bu.
Could I get you to document the steps needed to compile on RasPi ARM and ARM64? It would help me get the documentation in the README much faster.
Here goes...
sudo apt-get install -y bc build-essential dkms git raspberrypi-kernel-headers
git clone https://github.com/morrownr/88x2bu.git
cd 88x2bu
sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
For 32-bit OS's - armv6/v7/v8 (Raspberry Pi Zero, 1, 2, 3, 4)...
sed -i 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile
For 64-bit OS's - armv8 (Raspberry Pi 3, 4)...
sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/g' Makefile
Then...
sudo ./dkms-install.sh
If everything goes well, reboot. If not, consult the build log.
from 88x2bu.
Thanks. I'm working on adding the docs and I hope to test on my RPI 4B soon.
from 88x2bu.
Related Issues (20)
- Ubuntu 18.04 work well HOT 2
- Newer driver available at DLINK HOT 1
- Computer freezes static and background audio playback (like youtube) loops HOT 1
- First time didn't work because of multiple kernels available
- is it suitable for 8832bu ?
- (info) Just wanted to thank you for making this... HOT 6
- [help wanted]wpa_supplicant fail with driver wext but success with nl80211 HOT 1
- (solution found) Cannot compile on CentOS7 3.10.0-1160.42.2.el7.x86_64 HOT 17
- Suggestion: Add Asus AC53 Nano to the list of working devices HOT 1
- (interesting discussion) How to cross-compile for OpenWrt? HOT 4
- no 5GHz anything HOT 5
- system lockup on interface deletion/addition HOT 3
- RTL8812BU adapter less sensitive on Ubuntu HOT 3
- 2.4 ghz channel does not work in ARM HOT 3
- Cudy AC1300, Station can't see AP with the same dongle, in Scan results HOT 4
- Makefile Error: Raspberry Pi OS (64 bit) support was turned on in Makefile as planned HOT 10
- TEROW ROW02FD vs ROW02CD. Same adapter both uses MT7612u or no? HOT 1
- May be worth calling out the importance of `rtw_switch_usb_mode` in the README HOT 6
- Please consider adding `rtw_dfs_region_domain` to config file HOT 7
- New 88x2bu driver v5.13.1-20-gbd7c7eb9d.20210702 HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 88x2bu.