Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openwrt Kernel 4.9.184 // Cross-compiling & Backports project (Help) #321

Open
MrX0r opened this issue Nov 5, 2019 · 0 comments
Open

Openwrt Kernel 4.9.184 // Cross-compiling & Backports project (Help) #321

MrX0r opened this issue Nov 5, 2019 · 0 comments

Comments

@MrX0r
Copy link

MrX0r commented Nov 5, 2019

Hello I have the following problem, the driver does not work under kernel 4.9.184 on Openwrt

What I have done

export STAGING_DIR=/home/src/openwrt
export LD_LIBRARY_PATH=$TOOLCHAIN_DIR/usr/lib/
export LDCFLAGS=$TOOLCHAIN_DIR/usr/lib/
export PATH=$STAGING_DIR/bin:$PATH
export TOOLCHAIN_DIR=$STAGING_DIR/toolchain-mips_24kc_gcc-7.3.0_musl/

export ARCH=mips
export CROSS_COMPILE=$STAGING_DIR/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/bin/mips-openwrt-linux-
make KSRC=/home/src/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/linux-4.9.184/

How can I load the cfg80211 module into the driver, where do I have to edit the kernel source, which file? he created the driver with cfg80211!

Openwrt uses backport wireless driver package instead of the in kernel one, and use it to build the entire mac80211 subsystem and its related drivers.

#254 (comment)

OpenWRT is using drivers from "backports project". For this reason the cfg80211 module was compiled with a header file that has a slightly different wiphy structure from the standard kernel headers. To resolve this you need to apply a patch from the backports project to the kernel headers (in the OpenWRT-SDK) before compiling the driver:

https://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git/tree/patches/0003-cfg80211-wext-padding/include_net_cfg80211.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant