cubieplayer / Cubian

Debian for Cubieboard
http://cubian.org
270 stars 49 forks source link

SparkLAN WUBR-508N Wifi module RT5572 chipset #268

Closed berttl closed 9 years ago

berttl commented 10 years ago

Hello, Sorry to bother you. I have been trying to get the above WIFI module working with an A20 cubieboard. Web page for WIFI module (http://www.sparklan.com/product.php?func=view&prod_id=191) . The module in the RT2800USB driver is not present so the module does not get detected. According to the forums the RT2800USB does have that module in there. I had search a few of the forums and tried to compile the drivers provided by SparkLAN myself. I have not been very successful. The kernel I have is 3.4.75-sun7i, no headers were available for this version. So I used apt-get and got 3.4.79-sun7i, this started to work, I am now running into more issues. A file is missing : /usr/src/linux-headers-3.4.79-sun7i/arch/arm/include/asm/barrier.h:41:27: fatal error: mach/barriers.h: No such file or directory compilation terminated.

Full output below: cubie@Cubian:~/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816$ sudo make make -C tools make[1]: Entering directory /home/cubie/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/tools' gcc -g bin2h.c -o bin2h make[1]: Leaving directory/home/cubie/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/tools' /home/cubie/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/tools/bin2h cp -f os/linux/Makefile.6 /home/cubie/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/os/linux/Makefile make -C /lib/modules/3.4.75-sun7i/build SUBDIRS=/home/cubie/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/os/linux modules make[1]: Entering directory /usr/src/linux-headers-3.4.79-sun7i' CC [M] /home/cubie/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/os/linux/../../common/crypt_md5.o In file included from /usr/src/linux-headers-3.4.79-sun7i/arch/arm/include/asm/domain.h:14:0, from /usr/src/linux-headers-3.4.79-sun7i/arch/arm/include/asm/thread_info.h:28, from include/linux/thread_info.h:53, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/stat.h:60, from include/linux/module.h:10, from /home/cubie/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/include/os/rt_linux.h:31, from /home/cubie/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/include/rtmp_os.h:44, from /home/cubie/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/include/rtmp_comm.h:69, from /home/cubie/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/include/rt_config.h:33, from /home/cubie/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/os/linux/../../common/crypt_md5.c:28: /usr/src/linux-headers-3.4.79-sun7i/arch/arm/include/asm/barrier.h:41:27: fatal error: mach/barriers.h: No such file or directory compilation terminated. make[2]: *** [/home/cubie/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/os/linux/../../common/crypt_md5.o] Error 1 make[1]: *** [_module_/home/cubie/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/os/linux] Error 2 make[1]: Leaving directory/usr/src/linux-headers-3.4.79-sun7i' make: *\ [LINUX] Error 2

I would like to get this module running being 300Mbs and supports AP mode, it would suit a lot of my projects. Would it be possible the RT5572 drivers be included in the RT2800USB module on a Cubian update, they should work with this module fine.

Once again sorry about the troubles. Regards, Brett.

berttl commented 10 years ago

Thought I would try the image from https://romanrm.net/a10/kernel . No luck with the RA5572 cubie@Cubian:/system/vendor/modules$ lsusb Bus 001 Device 002: ID 148f:5572 Ralink Technology, Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

The uImage file from the above website has all the drivers enabled in it but unfortunately the RA5572 driver is not included in that version of the RT2800USB linux driver. It looks as though that version was incorporated into kernels 3.10. The error that is in the above make output as issue #261 . I know I am using the wrong header file, I thought it was a shot, this header file seem to be for the cubietruck. The header files are not there for the Cubieboard2 (3.4.75) as in issue #255 . When I can get some more hardware together I will try and compile a kernel, I have not done this before on an arm device or even any cross compiling, so it will be a big learning curve for me.

berttl commented 10 years ago

Tried loading the image in issue #237 Did an apt-get update and tried compiling the kernel:

make -C tools make[1]: Entering directory /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/tools' gcc -g bin2h.c -o bin2h make[1]: Leaving directory/home/share/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/tools' /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/tools/bin2h cp -f os/linux/Makefile.6 /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/os/linux/Makefile make -C /lib/modules/3.4.79-sun7i/build SUBDIRS=/home/share/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/os/linux modules make[1]: Entering directory /usr/src/linux-headers-3.4.79-sun7i' CC [M] /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/os/linux/../../common/crypt_md5.o In file included from /usr/src/linux-headers-3.4.79-sun7i/arch/arm/include/asm/domain.h:14:0, from /usr/src/linux-headers-3.4.79-sun7i/arch/arm/include/asm/thread_info.h:28, from include/linux/thread_info.h:53, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/stat.h:60, from include/linux/module.h:10, from /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/include/os/rt_linux.h:31, from /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/include/rtmp_os.h:44, from /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/include/rtmp_comm.h:69, from /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/include/rt_config.h:33, from /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/os/linux/../../common/crypt_md5.c:28: /usr/src/linux-headers-3.4.79-sun7i/arch/arm/include/asm/barrier.h:41:27: fatal error: mach/barriers.h: No such file or directory compilation terminated. make[2]: *** [/home/share/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/os/linux/../../common/crypt_md5.o] Error 1 make[1]: *** [_module_/home/share/DPO_RT5572_LinuxSTA_2.6.1.3_SparkLAN20130816/os/linux] Error 2 make[1]: Leaving directory/usr/src/linux-headers-3.4.79-sun7i' make: *\ [LINUX] Error 2

berttl commented 10 years ago

From the config file in the boot directory: CONFIG_ARCH_HAS_BARRIERS=y But there is no barrier.h file in the /usr/src/linux-headers-3.4.79-sun7i/arch/arm/include/asm/ directory.

berttl commented 10 years ago

/usr/src/linux-headers-3.4.79-sun7i/arch/arm/include/asm/barrier.h is trying to include the barriers.h file in the mach directory. Checked the source and the barriers.h in https://github.com/mmplayer/linux-sunxi/tree/dev/sunxi-3.4/arch/arm/include/asm it is not there either. Are memory barriers needed? Even if I compile a kernel will I need to set CONFIG_ARCH_HAS_BARRIERS=y ?

I have found this but it is for an old version of the kernel.

1 / 2 * OMAP memory barrier header. 3 4 * Copyright (C) 2011 Texas Instruments, Inc. 5 * Santosh Shilimkar santosh.shilimkar@ti.com 6 * Richard Woodruff r-woodruff2@ti.com 7 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License version 2 as 10 * published by the Free Software Foundation. 11 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 _/ 21 22 #ifndef MACH_BARRIERS_H 23 #define MACH_BARRIERS_H 24 25 #include <asm/outercache.h> 26 27 extern void omap_bus_sync(void); 28 29 #define rmb() dsb() 30 #define wmb() do { dsb(); outer_sync(); omap_bussync(); } while (0) 31 #define mb() wmb() 32 33 #endif / __MACH_BARRIERS_H / 34

michalliu commented 10 years ago

I can see it here https://github.com/mmplayer/linux-sunxi/blob/dev/sunxi-3.4/arch/arm/mach-sun7i/include/mach/barriers.h

berttl commented 10 years ago

Thank you. My apologies I was looking in the mach directory that was in the asm directory. /usr/src/linux-headers-3.4.79-sun7i/arch/arm/include/asm/mach. I did not realize that the include location was related to that directory. I am using the headers I got through apt-get. I cannot see an include directory in the mach-sun7i directory though. Is this the difference between a full source and header files?

cubie@Cubian:/usr/src/linux-headers-3.4.79-sun7i/arch/arm/mach-sun7i$ ls clock cpu-freq dma Makefile pm rf

berttl commented 10 years ago

Just for giggles I copied the include directory into the mach-sun7i directory and started the to compile the driver again. Now it is missing the memory.h in the plat directory.

arch/arm/mach-sun7i/include/mach/memory.h:24:25: fatal error: plat/memory.h: No such file or directory compilation terminated. Almost need the whole kernel source and not the headers.

berttl commented 10 years ago

copied the plat directory. Now got scripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: "(" unexpected

berttl commented 10 years ago

Tried a sudo make prepare modules Did a lot of making then erred again. scripts/mod/modpost: Syntax error: ")" unexpected

Found this sudo make scripts/kallsyms

Will do after some sleep and work.

berttl commented 10 years ago

Compiles with warnings, make install seems to work. But... 10.630417] rtusb init rt2870 ---> [ 10.638977] [ 10.638991] [ 10.638997] === pAd = f1030000, size = 566576 === [ 10.639007] [ 10.660403] <-- RTMPAllocAdapterBlock, Status=0 [ 26.374333] NICLoadFirmware: We need to load firmware [ 26.660526] ERROR: 256 KiB atomic DMA coherent pool is too small! [ 26.660540] Please increase it with coherent_pool= kernel parameter! [ 26.677342] <-- ERROR in Alloc Bulk buffer for HTTxContext! [ 26.686395] <-- RTMPAllocTxRxRingMemory, Status=3 [ 26.704447] ERROR!!! RTMPAllocTxRxMemory failed, Status[=0x00000003] [ 26.717659] ---> RTMPFreeTxRxRingMemory [ 26.724082] <--- RTMPFreeTxRxRingMemory [ 26.730820] !!! rt28xx Initialized fail !!!

lsmod Module Size Used by cpufreq_userspace 3532 0 cpufreq_conservative 5720 0 cpufreq_fantasy 3855 0 cpufreq_powersave 1242 0 mali 113613 0 ump 57111 1 mali gpio_sunxi 9258 0 rt5572sta 781018 0

sudo ifconfig ra0 ra0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

iwconfig lo no wireless extensions.

tunl0 no wireless extensions.

ra0 Ralink STA

eth0 no wireless extensions.

sudo ifdown ra0 Internet Systems Consortium DHCP Client 4.2.2 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/ra0/00:00:00:00:00:00 Sending on LPF/ra0/00:00:00:00:00:00 Sending on Socket/fallback

sudo ifup ra0 Internet Systems Consortium DHCP Client 4.2.2 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/

RTNETLINK answers: Operation not permitted Listening on LPF/ra0/00:00:00:00:00:00 Sending on LPF/ra0/00:00:00:00:00:00 Sending on Socket/fallback DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 5 send_packet: Network is down receive_packet failed on ra0: Network is down DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 6 send_packet: Network is down No DHCPOFFERS received. No working leases in persistent database - sleeping.

berttl commented 10 years ago

Found what was stopping the works. ERROR: 256 KiB atomic DMA coherent pool is too small! added coherent_pool=1M to the uEnv.txt file.

Now to get access point mode working.

berttl commented 10 years ago

Tested the wifi adaptor in infrastructure mode, works perfectly. Now the problem is with access point mode.

Trying to compile driver to support hostapd and 80211 driver support, hmmm getting:

CC [M] /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.o In file included from /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_os.h:44:0, from /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_comm.h:69, from /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:33, from /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:28: /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:77:0: warning: "EXT_BUILD_CHANNEL_LIST" redefined [enabled by default]

:0:0: note: this is the location of the previous definition /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c: In function âIndicate_Legacy_Packetâ: /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:2502:17: error: implicit declaration of function âRTMP_AP_802_11_REMOVE_LLC_AND_CONVERT_TO_802_3â [-Werror=implicit-function-declaration] /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:2566:17: error: implicit declaration of function âAP_ANNOUNCE_OR_FORWARD_802_3_PACKETâ [-Werror=implicit-function-declaration] /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c: In function âRtmpPrepareHwNullFrameâ: /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:3142:4: warning: passing argument 2 of âhex_dumpâ from incompatible pointer type [enabled by default] /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_os_util.h:679:6: note: expected âunsigned char _â but argument is of type âUINT32 *â /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:3150:4: warning: passing argument 2 of âRTUSBReadMACRegisterâ makes integer from pointer without a cast [enabled by default] /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp.h:7214:10: note: expected âUSHORTâ but argument is of type âUSHORT *â /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:3151:4: warning: passing argument 2 of âhex_dumpâ from incompatible pointer type [enabled by default] /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_os_util.h:679:6: note: expected âunsigned char *â but argument is of type âUINT32 *â /home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:3021:8: warning: unused variable âMlmeRateâ [-Wunused-variable] cc1: some warnings being treated as errors make[2]: *_\* [/home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.o] Error 1 make[1]: **\* [_module_/home/share/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-3.4.79-sun7i' make: **\* [LINUX] Error 2 Guess its time to learn a little C, been meaning to do it for a while. "implicit-function-declaration" calling a function before it is declared or assuming it to be declared?
valentin-fischer commented 10 years ago

Thank you for this post!!!! This helped me to make the wifi stick work on my cubieboard2.

You saved me some good hours of work :)

michalliu commented 10 years ago

It seems the header package is not complete. I haven't test the header package with compiling some driver. So, until I closed this issue, please use the full source via apt-get install linux-sources

berttl commented 10 years ago

Thank you for your help Michalliu.

berttl commented 9 years ago

Sorry, I know it is a little off subject. But I also found the /usr/src/linux-headers-3.4.79-sun4i/arch/arm/mach-sun4i/include/mach and /usr/src/linux-headers-3.4.79-sun4i/arch/arm/plat-sunxi/include/plat folders to be missing in the 3.4.79 sun4i header packages, this was even after an update. Copied the files from the source tree and the compile worked. Needed to compile the Realtek driver and hostapd to access point mode working on my project.

valentin-fischer commented 9 years ago

@berttl yes, this was the issue in my case also. I managed to put the files together and could compile my Wifi drivers...

cubieplayer commented 9 years ago

The header package has been fixed. I compile this wifi driver without any problem. Please upgrade your header package to latest version.

cubieplayer commented 9 years ago

@berttl You can try to compile this driver now, for me the compilation is smoothly now.

berttl commented 9 years ago

Hello Cubieplayer,

Thank you for the update, sorry about the delay in trying it. Unfortunately I can only use the cubieboard1 at the moment, I will be not be able to try CB2 for a little while.

I updated the kernel headers and recompiled the driver. The compile ran smoothly as you said, but unfortunately there seems to be a version error when the driver is loaded. I made sure the old driver was removed and also ran apt-get again to reinstall the headers.

Is there anything else I have to do after the header update? I have included various outputs from command that I hope will help with the problem. I will continue with getting this going. Once again thank you and the team for the help.

dmesg

[ 6543.880562] 8192cu: disagrees about version of symbol usb_alloc_urb [ 6543.885013] 8192cu: Unknown symbol usb_alloc_urb (err -22) [ 6543.890405] 8192cu: disagrees about version of symbol usb_free_urb [ 6543.894763] 8192cu: Unknown symbol usb_free_urb (err -22) [ 6543.900462] 8192cu: disagrees about version of symbol usb_alloc_coherent [ 6543.905337] 8192cu: Unknown symbol usb_alloc_coherent (err -22) [ 6543.910474] 8192cu: disagrees about version of symbol usb_put_dev [ 6543.914742] 8192cu: Unknown symbol usb_put_dev (err -22) [ 6543.920187] 8192cu: disagrees about version of symbol usb_reset_device [ 6543.924889] 8192cu: Unknown symbol usb_reset_device (err -22) [ 6543.929935] 8192cu: disagrees about version of symbol usb_get_dev [ 6543.934203] 8192cu: Unknown symbol usb_get_dev (err -22) [ 6543.939447] 8192cu: disagrees about version of symbol usb_submit_urb [ 6543.943976] 8192cu: Unknown symbol usb_submit_urb (err -22) [ 6543.949522] 8192cu: disagrees about version of symbol usb_free_coherent [ 6543.954311] 8192cu: Unknown symbol usb_free_coherent (err -22) [ 6543.959805] 8192cu: disagrees about version of symbol usb_control_msg [ 6543.964420] 8192cu: Unknown symbol usb_control_msg (err -22) [ 6543.969636] 8192cu: disagrees about version of symbol usb_kill_urb [ 6543.973991] 8192cu: Unknown symbol usb_kill_urb (err -22)

uname -a

Linux Cubian 3.4.79-sun4i #23 PREEMPT Thu Jul 3 06:37:24 CST 2014 armv7l GNU/Linux

modinfo 8192cu

filename: /lib/modules/3.4.79-sun4i/kernel/drivers/net/wireless/rtl8192cu/8192cu.ko version: v3.3.2_3192.20120103 author: Realtek Semiconductor Corp. description: Realtek Wireless Lan Driver license: GPL srcversion: CBC24B60F5FB1A326BA049B alias: usb:v0BDAp8186d_dc_dsc_dp_ic_isc_ip alias: usb:v0E66p0019d_dc_dsc_dp_ic_isc_ip alias: usb:v0846p9021d_dc_dsc_dp_ic_isc_ip alias: usb:v0B05p17ABd_dc_dsc_dp_ic_isc_ip alias: usb:v0DF6p0061d_dc_dsc_dp_ic_isc_ip alias: usb:v20F4p624Dd_dc_dsc_dp_ic_isc_ip alias: usb:v050Dp2103d_dc_dsc_dp_ic_isc_ip alias: usb:v050Dp2102d_dc_dsc_dp_ic_isc_ip alias: usb:v2001p3307d_dc_dsc_dp_ic_isc_ip alias: usb:v4855p0091d_dc_dsc_dp_ic_isc_ip alias: usb:v07AAp0056d_dc_dsc_dp_ic_isc_ip alias: usb:v07B8p8178d_dc_dsc_dp_ic_isc_ip alias: usb:v2019pAB2Bd_dc_dsc_dp_ic_isc_ip alias: usb:v7392p7822d_dc_dsc_dp_ic_isc_ip alias: usb:v0586p341Fd_dc_dsc_dp_ic_isc_ip alias: usb:v2001p3309d_dc_dsc_dp_ic_isc_ip alias: usb:v2001p330Ad_dc_dsc_dp_ic_isc_ip alias: usb:v2001p3307d_dc_dsc_dp_ic_isc_ip alias: usb:v2019p1201d_dc_dsc_dp_ic_isc_ip alias: usb:v04F2pAFFCd_dc_dsc_dp_ic_isc_ip alias: usb:v04F2pAFFBd_dc_dsc_dp_ic_isc_ip alias: usb:v04F2pAFF8d_dc_dsc_dp_ic_isc_ip alias: usb:v04F2pAFFAd_dc_dsc_dp_ic_isc_ip alias: usb:v04F2pAFF9d_dc_dsc_dp_ic_isc_ip alias: usb:v04F2pAFF7d_dc_dsc_dp_ic_isc_ip alias: usb:v13D3p3358d_dc_dsc_dp_ic_isc_ip alias: usb:v13D3p3359d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp317Fd_dc_dsc_dp_ic_isc_ip alias: usb:v2019pAB2Ed_dc_dsc_dp_ic_isc_ip alias: usb:v2019p4902d_dc_dsc_dp_ic_isc_ip alias: usb:v4856p0091d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp5088d_dc_dsc_dp_ic_isc_ip alias: usb:v0DF6p005Cd_dc_dsc_dp_ic_isc_ip alias: usb:v13D3p3357d_dc_dsc_dp_ic_isc_ip alias: usb:v4855p0090d_dc_dsc_dp_ic_isc_ip alias: usb:v20F4p648Bd_dc_dsc_dp_ic_isc_ip alias: usb:v2019pAB2Ad_dc_dsc_dp_ic_isc_ip alias: usb:v050Dp1102d_dc_dsc_dp_ic_isc_ip alias: usb:v2001p3308d_dc_dsc_dp_ic_isc_ip alias: usb:v103Cp1629d_dc_dsc_dp_ic_isc_ip alias: usb:v06F8pE033d_dc_dsc_dp_ic_isc_ip alias: usb:v0EB0p9071d_dc_dsc_dp_ic_isc_ip alias: usb:v07B8p8189d_dc_dsc_dp_ic_isc_ip alias: usb:v7392p7811d_dc_dsc_dp_ic_isc_ip alias: usb:v0DF6p0052d_dc_dsc_dp_ic_isc_ip alias: usb:v2019pED17d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp817Cd_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp8178d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp8177d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp018Ad_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp818Ad_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp817Fd_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp8754d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp817Dd_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp817Bd_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp817Ad_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp817Ed_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp8170d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp8176d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp8191d_dc_dsc_dp_ic_isc_ip depends: intree: Y vermagic: 3.4.79-sun4i preempt mod_unload modversions ARMv7 p2v8 parm: rtw_ips_mode:The default IPS mode (int) parm: ifname:charp parm: rtw_initmac:charp parm: rtw_channel_plan:int parm: rtw_chip_version:int parm: rtw_rfintfs:int parm: rtw_lbkmode:int parm: rtw_network_mode:int parm: rtw_channel:int parm: rtw_mp_mode:int parm: rtw_wmm_enable:int parm: rtw_vrtl_carrier_sense:int parm: rtw_vcs_type:int parm: rtw_busy_thresh:int parm: rtw_ht_enable:int parm: rtw_cbw40_enable:int parm: rtw_ampdu_enable:int parm: rtw_rx_stbc:int parm: rtw_ampdu_amsdu:int parm: rtw_lowrate_two_xmit:int parm: rtw_rf_config:int parm: rtw_power_mgnt:int parm: rtw_low_power:int parm: rtw_wifi_spec:int parm: rtw_antdiv_cfg:int parm: rtw_enusbss:int parm: rtw_hwpdn_mode:int parm: rtw_hwpwrp_detect:int parm: rtw_max_roaming_times:The max roaming times to try (uint) parm: rtw_mc2u_disable:int

michalliu commented 9 years ago

@berttl I saw the log is for 8192cu rather than rt5572

berttl commented 9 years ago

Hello Michalliu, Sorry yes that is correct. I will be test the original combination when I get my cubieboard 2 and wifi adaptor back. I was using cubieboard 1 and realtek combo to get the rest of my project running while the other cubieboard and wifi adaptor were with someone else. Hopefully sometime this week I will have the other boards back to test the original setup. I have also tried the X1 Cubian install, the drivers compile ok but the driver moans about the symbol versions again. I also had to increase the coherent pool as well. Once again thank you for the help.

berttl commented 9 years ago

Opps, noticed the directory and version on the modinfo. Hmm the module with the same name, even though the it is black listed maybe a conflict.

Here is the modinfo of the driver I compiled:

filename: /lib/modules/3.4.79-sun4i/kernel/drivers/net/wireless/8192cu.ko version: v4.0.2_9000.20130911 author: Realtek Semiconductor Corp. description: Realtek Wireless Lan Driver license: GPL srcversion: CE388896624E104C8F146BC alias: usb:v0BDAp8186d_dc_dsc_dp_ic_isc_ip alias: usb:v0789p016Dd_dc_dsc_dp_ic_isc_ip alias: usb:v0DF6p0070d_dc_dsc_dp_ic_isc_ip alias: usb:v04BBp0950d_dc_dsc_dp_ic_isc_ip alias: usb:v06F8pE035d_dc_dsc_dp_ic_isc_ip alias: usb:v2357p0100d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp2E2Ed_dc_dsc_dp_ic_isc_ip alias: usb:v050Dp1004d_dc_dsc_dp_ic_isc_ip alias: usb:v0E66p0020d_dc_dsc_dp_ic_isc_ip alias: usb:v0E66p0019d_dc_dsc_dp_ic_isc_ip alias: usb:v0846pF001d_dc_dsc_dp_ic_isc_ip alias: usb:v0846p9021d_dc_dsc_dp_ic_isc_ip alias: usb:v0B05p17ABd_dc_dsc_dp_ic_isc_ip alias: usb:v0DF6p0061d_dc_dsc_dp_ic_isc_ip alias: usb:v20F4p624Dd_dc_dsc_dp_ic_isc_ip alias: usb:v050Dp2103d_dc_dsc_dp_ic_isc_ip alias: usb:v050Dp2102d_dc_dsc_dp_ic_isc_ip alias: usb:v4855p0091d_dc_dsc_dp_ic_isc_ip alias: usb:v07AAp0056d_dc_dsc_dp_ic_isc_ip alias: usb:v07B8p8178d_dc_dsc_dp_ic_isc_ip alias: usb:v2019pAB2Bd_dc_dsc_dp_ic_isc_ip alias: usb:v7392p7822d_dc_dsc_dp_ic_isc_ip alias: usb:v0586p341Fd_dc_dsc_dp_ic_isc_ip alias: usb:v2001p3309d_dc_dsc_dp_ic_isc_ip alias: usb:v2001p330Ad_dc_dsc_dp_ic_isc_ip alias: usb:v2001p3307d_dc_dsc_dp_ic_isc_ip alias: usb:v2019p1201d_dc_dsc_dp_ic_isc_ip alias: usb:v04F2pAFFCd_dc_dsc_dp_ic_isc_ip alias: usb:v04F2pAFFBd_dc_dsc_dp_ic_isc_ip alias: usb:v04F2pAFF8d_dc_dsc_dp_ic_isc_ip alias: usb:v04F2pAFFAd_dc_dsc_dp_ic_isc_ip alias: usb:v04F2pAFF9d_dc_dsc_dp_ic_isc_ip alias: usb:v04F2pAFF7d_dc_dsc_dp_ic_isc_ip alias: usb:v13D3p3358d_dc_dsc_dp_ic_isc_ip alias: usb:v13D3p3359d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp317Fd_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp0A8Ad_dc_dsc_dp_ic_isc_ip alias: usb:vCDABp8011d_dc_dsc_dp_ic_isc_ip alias: usb:v04BBp094Cd_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp1E1Ed_dc_dsc_dp_ic_isc_ip alias: usb:v0B05p17BAd_dc_dsc_dp_ic_isc_ip alias: usb:vCDABp8010d_dc_dsc_dp_ic_isc_ip alias: usb:v2001p330Bd_dc_dsc_dp_ic_isc_ip alias: usb:v2019pAB2Ed_dc_dsc_dp_ic_isc_ip alias: usb:v2019p4902d_dc_dsc_dp_ic_isc_ip alias: usb:v0846p9041d_dc_dsc_dp_ic_isc_ip alias: usb:v4856p0091d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp5088d_dc_dsc_dp_ic_isc_ip alias: usb:v0DF6p005Cd_dc_dsc_dp_ic_isc_ip alias: usb:v13D3p3357d_dc_dsc_dp_ic_isc_ip alias: usb:v4855p0090d_dc_dsc_dp_ic_isc_ip alias: usb:v20F4p648Bd_dc_dsc_dp_ic_isc_ip alias: usb:v2019pAB2Ad_dc_dsc_dp_ic_isc_ip alias: usb:v050Dp1102d_dc_dsc_dp_ic_isc_ip alias: usb:v2001p3308d_dc_dsc_dp_ic_isc_ip alias: usb:v103Cp1629d_dc_dsc_dp_ic_isc_ip alias: usb:v06F8pE033d_dc_dsc_dp_ic_isc_ip alias: usb:v0EB0p9071d_dc_dsc_dp_ic_isc_ip alias: usb:v07B8p8189d_dc_dsc_dp_ic_isc_ip alias: usb:v7392p7811d_dc_dsc_dp_ic_isc_ip alias: usb:v0DF6p0052d_dc_dsc_dp_ic_isc_ip alias: usb:v2019pED17d_dc_dsc_dp_ic_isc_ip alias: usb:v1058p0631d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp8191d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp817Cd_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp8178d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp8177d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp17C0d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp018Ad_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp818Ad_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp817Fd_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp8754d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp817Dd_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp817Bd_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp817Ad_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp817Ed_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp8170d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp8176d_dc_dsc_dp_ic_isc_ip alias: usb:v0BDAp8191d_dc_dsc_dp_ic_isc_ip* depends: vermagic: 3.4.79-sun4i preempt mod_unload modversions ARMv7 p2v8 parm: rtw_ips_mode:The default IPS mode (int) parm: ifname:The default name to allocate for first interface (charp) parm: if2name:The default name to allocate for second interface (charp) parm: rtw_initmac:charp parm: rtw_channel_plan:int parm: rtw_chip_version:int parm: rtw_rfintfs:int parm: rtw_lbkmode:int parm: rtw_network_mode:int parm: rtw_channel:int parm: rtw_mp_mode:int parm: rtw_wmm_enable:int parm: rtw_vrtl_carrier_sense:int parm: rtw_vcs_type:int parm: rtw_busy_thresh:int parm: rtw_ht_enable:int parm: rtw_cbw40_enable:int parm: rtw_ampdu_enable:int parm: rtw_rx_stbc:int parm: rtw_ampdu_amsdu:int parm: rtw_lowrate_two_xmit:int parm: rtw_rf_config:int parm: rtw_power_mgnt:int parm: rtw_low_power:int parm: rtw_wifi_spec:int parm: rtw_special_rf_path:int parm: rtw_antdiv_cfg:int parm: rtw_enusbss:int parm: rtw_hwpdn_mode:int parm: rtw_hwpwrp_detect:int parm: rtw_hw_wps_pbc:int parm: rtw_max_roaming_times:The max roaming times to try (uint) parm: rtw_force_iol:Force to enable IOL (bool) parm: rtw_mc2u_disable:int parm: rtw_mac_phy_mode:int parm: rtw_80211d:int parm: rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint) cubie@Cubian:/$