Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3436

Advanced users • Compiling a driver for Fenvi AX1800/Realtek RTL8852BU chipset

$
0
0
I've located source code for a driver, but need some assistance compiling it for the Raspberry Pi OS on a RP4.

This is what I've done to accomplish this goal:

Code:

sudo apt install -y raspberrypi-kernel-headers build-essential bc dkms git

Code:

git clone https://github.com/morrownr/rtl8852bu.git

Code:

cd rtl8852bu

Code:

sudo ./install-driver.sh
This all actually seems to work and compile properly. However, the Makefile configuration is for an I386 CPU, not the ARM CPU in the RP4.

These are the choices in the Makefile:

Code:

CONFIG_PLATFORM_I386_PC = yCONFIG_PLATFORM_RTL8198D = nCONFIG_PLATFORM_ANDROID_X86 = nCONFIG_PLATFORM_ANDROID_INTEL_X86 = nCONFIG_PLATFORM_NV_TK1 = nCONFIG_PLATFORM_NV_TK1_UBUNTU = nCONFIG_PLATFORM_ARM_SUNxI = nCONFIG_PLATFORM_RTK1319 = nCONFIG_PLATFORM_RTK16XXB = nCONFIG_PLATFORM_AML_S905 = nCONFIG_PLATFORM_AML_S905_L3A = nCONFIG_PLATFORM_HUANGLONG = nCONFIG_PLATFORM_ARM_ROCKCHIP = n
Can someone more experienced than I, help me edit the Makefile so the compiled driver will be configured for the RP4's CPU? Or does that happen automatically when you compile on the RP4 itself? Guessing I might enable the ARM_SUNxl or ARM_ROCKCHIP and disable I386.

I've searched the Internet, but the "solution" of adding/editing the Makefile to:

Code:

CONFIG_PLATFORM_I386_PC = nCONFIG_PLATFORM_ARM_RPI = y
Or

Code:

CONFIG_PLATFORM_I386_PC = nCONFIG_PLATFORM_ARM64_RPI = y
Doesn't work.

Any tips or help appreciated. I am doing the compilation on the RP4 itself.

Statistics: Posted by Moonstone — Sun Dec 29, 2024 1:52 pm — Replies 0 — Views 18



Viewing all articles
Browse latest Browse all 3436

Trending Articles