I’m trying to download the EW-7811Un driver and using the make utility and it gives me an error and my wlan0 is not enabled. I see it under lsusb but ifconfig wlan0 returns nothing. Can someone help me on this?
Could share your driver and the error log here?
I see there is no default driver supported for Kernel 4.9. EDIMAX - Download
Hi,
I downloaded the following driver from EDIMAX ~/EW-7811Un_Linux_Driver_1.0.1.9/rtl8188C_8192C_usb_linux_v4.0.9_20171222
and then I did the following after unzip and tar xvf of that driver
export ARCH=arm64
make
and this make is not working
make
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/4.9.140-tegra/build M=/home/racecar/EW-7811Un_Linux_Driver_1.0.1.9/rtl8188C_8192C_usb_linux_v4.0.9_20171222 modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9’
CC [M] /home/racecar/EW-7811Un_Linux_Driver_1.0.1.9/rtl8188C_8192C_usb_linux_v4.0.9_20171222/core/rtw_br_ext.o
/home/racecar/EW-7811Un_Linux_Driver_1.0.1.9/rtl8188C_8192C_usb_linux_v4.0.9_20171222/core/rtw_br_ext.c: In function ‘nat25_db_handle’:
/home/racecar/EW-7811Un_Linux_Driver_1.0.1.9/rtl8188C_8192C_usb_linux_v4.0.9_20171222/core/rtw_br_ext.c:1449:28: error: implicit declaration of function ‘csum_ipv6_magic’; did you mean ‘csum_tcpudp_magic’? [-Werror=implicit-function-declaration]
hdr->icmp6_cksum = csum_ipv6_magic(&iph->saddr, &iph->daddr,
^~~~~~~~~~~~~~~
csum_tcpudp_magic
cc1: some warnings being treated as errors
scripts/Makefile.build:335: recipe for target ‘/home/racecar/EW-7811Un_Linux_Driver_1.0.1.9/rtl8188C_8192C_usb_linux_v4.0.9_20171222/core/rtw_br_ext.o’ failed
make[2]: *** [/home/racecar/EW-7811Un_Linux_Driver_1.0.1.9/rtl8188C_8192C_usb_linux_v4.0.9_20171222/core/rtw_br_ext.o] Error 1
Makefile:1629: recipe for target ‘module/home/racecar/EW-7811Un_Linux_Driver_1.0.1.9/rtl8188C_8192C_usb_linux_v4.0.9_20171222’ failed
make[1]: *** [module/home/racecar/EW-7811Un_Linux_Driver_1.0.1.9/rtl8188C_8192C_usb_linux_v4.0.9_20171222] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9’
Makefile:730: recipe for target ‘modules’ failed
make: *** [modules] Error 2
racecar@racecar:~/EW-7811Un_Linux_Driver_1.0.1.9/rtl8188C_8192C_usb_linux_v4.0.9_20171222
I followed the article on this forums on EW-78111UN V2 wifi set up 165047/13
git clone https://github.com/pvaret/rtl8192cu-fixes.git
xavier@xavier-desktop:~/rtl8192cu-fixes$ git diff Makefile
diff --git a/Makefile b/Makefile
index 0bec4c2..f1ae374 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ CONFIG_RTL8192CU_REDEFINE_1X1 = n
CONFIG_INTEL_WIDI = n
CONFIG_WAKE_ON_WLAN = n
-CONFIG_PLATFORM_I386_PC = y
+CONFIG_PLATFORM_JETSON = y
CONFIG_PLATFORM_ARM_GENERIC = n
CONFIG_PLATFORM_TI_AM3517 = n
CONFIG_PLATFORM_ANDROID_X86 = n
@@ -237,10 +237,10 @@ ifeq ($(CONFIG_INTEL_WIDI), y)
EXTRA_CFLAGS += -DCONFIG_INTEL_WIDI
endif
-ifeq ($(CONFIG_PLATFORM_I386_PC), y)
+ifeq ($(CONFIG_PLATFORM_JETSON), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
-SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
-ARCH ?= $(SUBARCH)
+SUBARCH :=
+ARCH ?= arm64
CROSS_COMPILE ?=
KVER := $(shell uname -r)
KSRC := /lib/modules/$(KVER)/build
xavier@xavier-desktop:~/rtl8192cu-fixes$
xavier@xavier-desktop:~/rtl8192cu-fixes$ make
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/4.9.253-tegra/build M=/home/xavier/rtl8192cu-fixes modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.253-tegra-ubuntu18.04_aarch64/kernel-4.9'
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_cmd.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_security.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_debug.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_io.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_ioctl_query.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_ioctl_set.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_ieee80211.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_mlme.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_mlme_ext.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_wlan_util.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_pwrctrl.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_rf.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_recv.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_sta_mgt.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_ap.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_xmit.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_p2p.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_tdls.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_br_ext.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_iol.o
CC [M] /home/xavier/rtl8192cu-fixes/core/rtw_sreset.o
CC [M] /home/xavier/rtl8192cu-fixes/core/efuse/rtw_efuse.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/hal_intf.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/hal_com.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/dm.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/rtl8192c_hal_init.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/rtl8192c_phycfg.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/rtl8192c_rf6052.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/rtl8192c_dm.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/rtl8192c_rxdesc.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/rtl8192c_cmd.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/usb/usb_halinit.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/usb/rtl8192cu_led.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/usb/rtl8192cu_xmit.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/usb/rtl8192cu_recv.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/usb/usb_ops_linux.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/rtl8192c_sreset.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/rtl8192c_xmit.o
CC [M] /home/xavier/rtl8192cu-fixes/hal/rtl8192c/usb/Hal8192CUHWImg.o
CC [M] /home/xavier/rtl8192cu-fixes/os_dep/osdep_service.o
CC [M] /home/xavier/rtl8192cu-fixes/os_dep/linux/os_intfs.o
CC [M] /home/xavier/rtl8192cu-fixes/os_dep/linux/usb_intf.o
CC [M] /home/xavier/rtl8192cu-fixes/os_dep/linux/usb_ops_linux.o
CC [M] /home/xavier/rtl8192cu-fixes/os_dep/linux/ioctl_linux.o
CC [M] /home/xavier/rtl8192cu-fixes/os_dep/linux/xmit_linux.o
CC [M] /home/xavier/rtl8192cu-fixes/os_dep/linux/mlme_linux.o
CC [M] /home/xavier/rtl8192cu-fixes/os_dep/linux/recv_linux.o
CC [M] /home/xavier/rtl8192cu-fixes/os_dep/linux/ioctl_cfg80211.o
CC [M] /home/xavier/rtl8192cu-fixes/os_dep/linux/rtw_android.o
/home/xavier/rtl8192cu-fixes/os_dep/linux/rtw_android.c: In function ‘rtw_android_priv_cmd’:
/home/xavier/rtl8192cu-fixes/os_dep/linux/rtw_android.c:386:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (copy_from_user(command, (void *)priv_cmd.buf, priv_cmd.total_len)) {
^
/home/xavier/rtl8192cu-fixes/os_dep/linux/rtw_android.c:572:61: warning: passing argument 1 of ‘get_int_from_command’ makes pointer from integer without a cast [-Wint-conversion]
pwfd_info->rtsp_ctrlport = ( u16 ) get_int_from_command( priv_cmd.buf );
^~~~~~~~
/home/xavier/rtl8192cu-fixes/os_dep/linux/rtw_android.c:334:5: note: expected ‘char *’ but argument is of type ‘compat_uptr_t {aka unsigned int
’
int get_int_from_command( char* pcmd )
^~~~~~~~~~~~~~~~~~~~
/home/xavier/rtl8192cu-fixes/os_dep/linux/rtw_android.c:592:62: warning: passing argument 1 of ‘get_int_from_command’ makes pointer from integer without a cast [-Wint-conversion]
pwfd_info->wfd_device_type = ( u8 ) get_int_from_command( priv_cmd.buf );
^~~~~~~~
/home/xavier/rtl8192cu-fixes/os_dep/linux/rtw_android.c:334:5: note: expected ‘char *’ but argument is of type ‘compat_uptr_t {aka unsigned int
’
int get_int_from_command( char* pcmd )
^~~~~~~~~~~~~~~~~~~~
/home/xavier/rtl8192cu-fixes/os_dep/linux/rtw_android.c:616:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (copy_to_user((void *)priv_cmd.buf, command, bytes_written)) {
^
LD [M] /home/xavier/rtl8192cu-fixes/8192cu.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/xavier/rtl8192cu-fixes/8192cu.mod.o
LD [M] /home/xavier/rtl8192cu-fixes/8192cu.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.9.253-tegra-ubuntu18.04_aarch64/kernel-4.9'
xavier@xavier-desktop:~/rtl8192cu-fixes$ sudo make install
install -p -m 644 8192cu.ko /lib/modules/4.9.253-tegra/kernel/drivers/net/wireless/
/sbin/depmod -a 4.9.253-tegra
xavier@xavier-desktop:~/rtl8192cu-fixes$
Hi Alan,
What are the commands and what is the output from the commands here, can you highlight them?
I get the following error after make command:
make
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/4.9.140-tegra/build M=/home/racecar/rtl8192cu-fixes modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9’
Makefile:667: arch/aarch64/Makefile: No such file or directory
make[1]: *** No rule to make target ‘arch/aarch64/Makefile’. Stop.
make[1]: Leaving directory ‘/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9’
Makefile:595: recipe for target ‘modules’ failed
make: *** [modules] Error 2
- Get the driver code.
git clone https://github.com/pvaret/rtl8192cu-fixes.git
- Update the MakeFile
xavier@xavier-desktop:~/rtl8192cu-fixes$ git diff Makefile
diff --git a/Makefile b/Makefile
index 0bec4c2..f1ae374 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ CONFIG_RTL8192CU_REDEFINE_1X1 = n
CONFIG_INTEL_WIDI = n
CONFIG_WAKE_ON_WLAN = n
-CONFIG_PLATFORM_I386_PC = y
+CONFIG_PLATFORM_JETSON = y
CONFIG_PLATFORM_ARM_GENERIC = n
CONFIG_PLATFORM_TI_AM3517 = n
CONFIG_PLATFORM_ANDROID_X86 = n
@@ -237,10 +237,10 @@ ifeq ($(CONFIG_INTEL_WIDI), y)
EXTRA_CFLAGS += -DCONFIG_INTEL_WIDI
endif
-ifeq ($(CONFIG_PLATFORM_I386_PC), y)
+ifeq ($(CONFIG_PLATFORM_JETSON), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
-SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
-ARCH ?= $(SUBARCH)
+SUBARCH :=
+ARCH ?= arm64
CROSS_COMPILE ?=
KVER := $(shell uname -r)
KSRC := /lib/modules/$(KVER)/build
- make and make install
xavier@xavier-desktop:~/rtl8192cu-fixes$
xavier@xavier-desktop:~/rtl8192cu-fixes$ make
xavier@xavier-desktop:~/rtl8192cu-fixes$ sudo make install
xavier@xavier-desktop:~/rtl8192cu-fixes$
Pls follow above steps exactly.
Hi,
I follow the exact steps and when I do the git diff Makefile, it simply returns the prompt and nothing else
racecar@racecar:~
$ git clone GitHub - pvaret/rtl8192cu-fixes: Realtek 8192 chipset driver, ported to kernel 3.11.
Cloning into ‘rtl8192cu-fixes’…
remote: Enumerating objects: 747, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 747 (delta 7), reused 14 (delta 5), pack-reused 721
Receiving objects: 100% (747/747), 2.11 MiB | 6.01 MiB/s, done.
Resolving deltas: 100% (415/415), done.
racecar@racecar:~
$ cd rtl8192cu-fixes
racecar@racecar:~/rtl8192cu-fixes
$ git diff Makefile
racecar@racecar:~/rtl8192cu-fixes
and when I go do the make it aborts
racecar@racecar:~/rtl8192cu-fixes
$ make
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/4.9.140-tegra/build M=/home/racecar/rtl8192cu-fixes modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9’
Makefile:667: arch/aarch64/Makefile: No such file or directory
make[1]: *** No rule to make target ‘arch/aarch64/Makefile’. Stop.
make[1]: Leaving directory ‘/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9’
Makefile:595: recipe for target ‘modules’ failed
make: *** [modules] Error 2