Closed MrX0r closed 4 years ago
You put the driver in the wrong directory. Use 'sudo make install' the way READ.md says!!!
lwfinger
You put the driver in the wrong directory. Use 'sudo make install' the way READ.md says!!!
Hello I can not do make install on the Openwrt system. I have created the driver on an Ubuntu system
install:
install -p -m 644 8188eu.ko $(MODDESTDIR)
@if [ -a /lib/modules/$(KVER)/kernel/drivers/staging/rtl8188eu/r8188eu.ko ] ; then modprobe -r r8188eu; fi;
@echo "blacklist r8188eu" > /etc/modules.d50-8188eu.conf
cp rtl8188eufw.bin /lib/firmware/.
/sbin/depmod -a ${KVER}
mkdir -p /lib/firmware/rtlwifi
cp rtl8188eufw.bin /lib/firmware/rtlwifi/.
lsmod I read I have to adjust cfg80211 and mac80211 that the driver is loaded there?
cfg80211 221776 6 ath9k,ath9k_common,ath10k_core,ath,rtlwifi,mac80
usbcore 128432 5 rtl_usb,ledtrig_usbport,8188eu,ehci_platform,ehc
mac80211 441920 4 ath9k,rtl_usb,ath10k_core,rtlwifi
I have created 50-8188eu with the content r8188eu /etc/modules.d/50-8188eu
On openwrt there is no /etc/modprobe.d/
The driver comes in there! /lib/modules/4.14.151 /kernel/drivers/staging/ does not exist on openwrt
root@OpenWrt:~# ls -a /lib/modules/4.14.151
. hwmon.ko nf_conntrack_ipv4.ko nf_reject_ipv4.ko xt_REDIRECT.ko
.. ip6_tables.ko nf_conntrack_ipv6.ko nf_reject_ipv6.ko xt_TCPMSS.ko
ath.ko ip6t_REJECT.ko nf_conntrack_rtcache.ko nls_base.ko xt_comment.ko
ath10k_core.ko ip6table_filter.ko nf_defrag_ipv4.ko ppp_async.ko xt_conntrack.ko
ath10k_pci.ko ip6table_mangle.ko nf_defrag_ipv6.ko ppp_generic.ko xt_limit.ko
ath9k.ko ip_tables.ko nf_flow_table.ko pppoe.ko xt_mac.ko
ath9k_common.ko ipt_MASQUERADE.ko nf_flow_table_hw.ko pppox.ko xt_mark.ko
ath9k_hw.ko ipt_REJECT.ko nf_log_common.ko slhc.ko xt_multiport.ko
cfg80211.ko iptable_filter.ko nf_log_ipv4.ko usb-common.ko xt_nat.ko
compat.ko iptable_mangle.ko nf_log_ipv6.ko usbcore.ko xt_state.ko
crc-ccitt.ko iptable_nat.ko nf_nat.ko x_tables.ko xt_tcpudp.ko
ehci-hcd.ko ledtrig-usbport.ko nf_nat_ipv4.ko xt_CT.ko xt_time.ko
ehci-platform.ko mac80211.ko nf_nat_masquerade_ipv4.ko xt_FLOWOFFLOAD.ko
gpio-button-hotplug.ko nf_conntrack.ko nf_nat_redirect.ko xt_LOG.ko
root@OpenWrt:~# modinfo r8188eu module: /lib/modules/4.9.184/r8188eu.ko license: GPL depends: usbcore
That can not work "depends: usbcore"
I know nothing of openWRT. You are on your own.
I know nothing of openWRT. You are on your own.
@lwfinger Can it be that I have to adjust the makefile?
He also had the same problem, but I'm not very good at it. Add with depends in the kernel!
https://github.com/lwfinger/rtl8188eu/issues/266#issuecomment-443289701
But where do I have to add that?
USB dongle with cfg80211
Result : Driver works on OpenWrt 18.06.1, detects my USB dongle with cfg80211 (No warnings with dmesg), able to scan (clients appear), but can't connect it to my WPA/WPA2 home router when i try either it does nothing or just hangs and i have to manually reboot the device.
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:
What do I have to change? and where?
Hello I have the following problem, the driver does not work under kernel 4.14.151
What I have done
I have put the file, 8188eu.ko (3.45 MB) in this folder and renamed it. /lib/modules/4.14.151/rtl8188eu.ko
And I created a file in /etc/modules.d/rtl8188eu
firmware (rtl8188eufw.bin) to /lib/firmware/rtlwifi/
Do I have to change anything in the wireless.mk (package \ linux \ modules)?
I heard I have to adjust something there!
root@OpenWrt:~# cat /sys/kernel/debug/usb/devices