AnsweredAssumed Answered

How to fix USB WIFI error of ZYNQ board

Question asked by opticslee on Apr 22, 2015
Latest reply on Apr 22, 2015 by larsc

Hi all,

 

   I hope to transmit RF data from the ZedBoard with AD-FMCOMMS2-EBZ to my PC via 150M WIFI. I chose a Mercury 150M USB WIFI dongle (MW150US) as the USB to WIFI adaptor, where its main control chip is RTL8188EU and its latest driver can be downloaded from http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=48&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#RTL8188CUS

 

   According to readme, I just add a new platform selection (include: ARCH, CROSS_COMPILE, the path to the ADI zynq kernel source code and so on) into the file of “../driver/Makefile” to cross-compile these driver source code on my PC with ubuntu 14.04. However, I failed. The same source code (without modification ) can be used for my i386 PC with ubuntu 12.04.

  Has any one can help me to fix these errors or give me any tips?

  Thanks a lot!

 

  Best Regards,

  Optics Lee

 

 

-----My Changing is:-----

  CONFIG_PLATFORM_ADI_ZYNQ = y

 

 

  ifeq ($(CONFIG_PLATFORM_ADI_ZYNQ), y)

   EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN

   ARCH := arm

   CROSS_COMPILE := arm-xilinx-linux-gnueabi-

   KVER  := $(shell uname -r)

   KSRC := /opt/adi/kernel/linux

  endif

 

 

-----Compile error message is:-----

root@lab-OptiPlex-390:/opt/adi/RTL_WD_SRC/driver/rtl8188eu# make

make ARCH=arm  CROSS_COMPILE=arm-xilinx-linux-gnueabi- -C /opt/adi/kernel/linux M=/opt/adi/RTL_WD_SRC/driver/rtl8188eu  modules

make[1]: Entering directory `/opt/adi/kernel/linux'

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_cmd.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_security.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_debug.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_io.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_ioctl_query.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_ioctl_set.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_ieee80211.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_mlme.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_mlme_ext.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_wlan_util.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_pwrctrl.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_rf.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_recv.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_sta_mgt.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_ap.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_xmit.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_p2p.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_tdls.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_br_ext.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_iol.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/rtw_sreset.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/core/efuse/rtw_efuse.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/hal_intf.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/hal_com.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/dm.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/rtl8192c_hal_init.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/rtl8192c_phycfg.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/rtl8192c_rf6052.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/rtl8192c_dm.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/rtl8192c_rxdesc.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/rtl8192c_cmd.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/usb/usb_halinit.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/usb/rtl8192cu_led.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/usb/rtl8192cu_xmit.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/usb/rtl8192cu_recv.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/usb/usb_ops_linux.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/rtl8192c_sreset.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/rtl8192c_xmit.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/hal/rtl8192c/usb/Hal8192CUHWImg.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/osdep_service.o

  CC [M]  /opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.o

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c: In function 'rtw_proc_init_one':

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:313:3: error: implicit declaration of function 'create_proc_entry' [-Werror=implicit-function-declaration]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:313:11: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:320:3: error: implicit declaration of function 'create_proc_read_entry' [-Werror=implicit-function-declaration]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:320:9: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:326:9: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:332:8: error: dereferencing pointer to incomplete type

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:348:21: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:379:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:385:7: error: dereferencing pointer to incomplete type

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:387:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:393:7: error: dereferencing pointer to incomplete type

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:396:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:404:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:412:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:420:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:427:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:434:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:441:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:448:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:455:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:462:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:469:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:476:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:483:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:490:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:497:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:504:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:511:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:520:9: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:527:9: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:537:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:555:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:561:7: error: dereferencing pointer to incomplete type

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:564:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:570:7: error: dereferencing pointer to incomplete type

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:572:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:578:7: error: dereferencing pointer to incomplete type

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:580:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:586:7: error: dereferencing pointer to incomplete type

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:588:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:594:7: error: dereferencing pointer to incomplete type

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:596:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:602:7: error: dereferencing pointer to incomplete type

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:605:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:608:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:615:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:622:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:628:7: error: dereferencing pointer to incomplete type

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:631:8: warning: assignment makes pointer from integer without a cast [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:637:7: error: dereferencing pointer to incomplete type

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c: At top level:

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:999:2: warning: initialization from incompatible pointer type [enabled by default]

/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.c:999:2: warning: (near initialization for 'rtw_netdev_ops.ndo_select_queue') [enabled by default]

cc1: some warnings being treated as errors

make[2]: *** [/opt/adi/RTL_WD_SRC/driver/rtl8188eu/os_dep/linux/os_intfs.o] Error 1

make[1]: *** [_module_/opt/adi/RTL_WD_SRC/driver/rtl8188eu] Error 2

make[1]: Leaving directory  `/opt/adi/kernel/linux'

make: *** [modules] Error 2

root@lab-OptiPlex-390:/opt/adi/RTL_WD_SRC/driver/rtl8188eu#

Outcomes