Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,11 @@ EXTRA_CFLAGS += -DPLATFORM_LINUX
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
KVER := $(shell uname -r)

##KVER := $(shell uname -r)
## Manual kernel release definition
KVER := 4.19.66-v7+

KSRC := /lib/modules/$(KVER)/build
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
INSTALL_PREFIX :=
Expand All @@ -1124,7 +1128,11 @@ EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
EXTRA_CFLAGS += -DPLATFORM_LINUX
ARCH ?= arm
CROSS_COMPILE ?=
KVER ?= $(shell uname -r)

##KVER ?= $(shell uname -r)
## Manual kernel release definition
KVER ?= 4.19.66-v7+

KSRC := /lib/modules/$(KVER)/build
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
INSTALL_PREFIX :=
Expand Down
56 changes: 56 additions & 0 deletions README-RASP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<u>**8822BU for Raspbian**</u>

# Driver for 802.11ac USB Adapter with
## RTL8822BU chipset
## Only STA/Monitor Mode is supported, no AP.

> NOTE: The build was tested with Raspbian GNU/Linux 9 (stretch) and kernel 4.19.66-v7+.
> In case it also works with additional releases, it would be nice ask to add your release as also compatible.

**To install Raspbian headers**
`sudo apt-get install raspberrypi-kernel-headers`

**To install prerequisites**
`apt-get install build-essential`

**To install build dependencies**
`sudo apt install git bc bison flex libssl-dev make`

**Build the driver**
`sudo make all`

<u>In case that you face build error due to wrong or missing headers you can identify your Kernel release and manually define it in the Makefile. Consider the following example to enforce the kernel release "4.19.66-v7+":</u>

### Section 1
**Comment the following line**
`KVER := $(shell uname -r)`

**Add the following lines**
`## Example of kernel release manual definition`
`KVER := 4.19.66-v7+`

###Section 2
**Comment the following line**
`KVER ?= $(shell uname -r)`

**Add the following lines**
`## Example of kernel release manual definition`
`KVER ?:= 4.19.66-v7+`

**Install the driver**
`sudo make install`

**Configure de driver into the system**
`modprobe 8188eu.ko`

**Reboot the system**
`sudo reboot`

**To blacklist an internal driver if it already exist on your system, add it to the respective file**
`/etc/modprobe.d/blacklist`

References
* https://www.raspberrypi.org/documentation/linux/kernel/building.md
* https://www.raspberrypi.org/forums/viewtopic.php?t=154749
* https://github.com/marcelolavor/rtl8822bu
* https://github.com/lwfinger/rtl8188eu
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ install the kernel sources and build an <u>external</u> module.
This driver allows use of wpa_supplicant by using the nl80211 driver
`wpa_supplicant -Dnl80211`

If installing on Rasberry Pi or other "armv71" devices, edit the Makefile and set `CONFIG_PLATFORM_ARM_RPI = y` and `CONFIG_PLATFORM_I386_PC = n`
If installing on Rasberry Pi or other "armv71" devices, firstly install all prerequisities mentioned at README-RASP.md, edit the Makefile and set `CONFIG_PLATFORM_ARM_RPI = y` and `CONFIG_PLATFORM_I386_PC = n`, and finally, proceed with make proceedures mentioned above.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo procedures

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo prerequisites


**STATUS**
Driver works fine (some sort of)
Expand Down