Code Monkey home page Code Monkey logo

Comments (8)

morrownr avatar morrownr commented on June 17, 2024

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.

PieGuy314 avatar PieGuy314 commented on June 17, 2024

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.

morrownr avatar morrownr commented on June 17, 2024

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.

PieGuy314 avatar PieGuy314 commented on June 17, 2024

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.

PieGuy314 avatar PieGuy314 commented on June 17, 2024

-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.

morrownr avatar morrownr commented on June 17, 2024

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.

PieGuy314 avatar PieGuy314 commented on June 17, 2024

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.

morrownr avatar morrownr commented on June 17, 2024

Thanks. I'm working on adding the docs and I hope to test on my RPI 4B soon.

from 88x2bu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.