{"action":"created","issue":{"url":"https://api.github.com/repos/BPI-SINOVOIP/BPI-M3-bsp/issues/22","repository_url":"https://api.github.com/repos/BPI-SINOVOIP/BPI-M3-bsp","labels_url":"https://api.github.com/repos/BPI-SINOVOIP/BPI-M3-bsp/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/BPI-SINOVOIP/BPI-M3-bsp/issues/22/comments","events_url":"https://api.github.com/repos/BPI-SINOVOIP/BPI-M3-bsp/issues/22/events","html_url":"https://github.com/BPI-SINOVOIP/BPI-M3-bsp/issues/22","id":296153710,"number":22,"title":"Fails: Building kernel module for Nano 150M Banana Pi WiFi USB 2.0 Dongle (8188eu) for Banana Pi BPI-M3","user":{"login":"arkhipenko","id":312909,"avatar_url":"https://avatars0.githubusercontent.com/u/312909?v=4","gravatar_id":"","url":"https://api.github.com/users/arkhipenko","html_url":"https://github.com/arkhipenko","followers_url":"https://api.github.com/users/arkhipenko/followers","following_url":"https://api.github.com/users/arkhipenko/following{/other_user}","gists_url":"https://api.github.com/users/arkhipenko/gists{/gist_id}","starred_url":"https://api.github.com/users/arkhipenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkhipenko/subscriptions","organizations_url":"https://api.github.com/users/arkhipenko/orgs","repos_url":"https://api.github.com/users/arkhipenko/repos","events_url":"https://api.github.com/users/arkhipenko/events{/privacy}","received_events_url":"https://api.github.com/users/arkhipenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-11T02:32:43Z","updated_at":"2018-02-13T04:25:13Z","closed_at":null,"author_association":"NONE","body":"I bought this adapter: Nano 150M Banana Pi WiFi USB 2.0 Dongle (here) because it says Banana Pi. \r\nSo one would assume it works with all Banana Pi’s. No such luck: 3.4.39-BPI-M3-Kernel does not have appropriate module included.\r\n\r\nUSB device ID: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter\r\n\r\nI found the kernel source here. \r\nI found the required module source: [rtl8188eu](https://github.com/lwfinger/rtl8188eu)\r\n\r\nIt compiles almost to the end, but then it breaks:\r\n\r\n```\r\nroot@bpi-iot-ros-ai:~/workspace/RTL8188EU/rtl8188eu# make\r\nmake ARCH=arm CROSS_COMPILE= -C /lib/modules/3.4.39-BPI-M3-Kernel/build M=/home/pi/workspace/RTL8188EU/rtl8188eu  modules\r\nmake[1]: Entering directory '/media/mikey/BPI-USER/github/build/release/BPI-M3-bsp/linux-sunxi'\r\n\r\n  WARNING: Symbol version dump /media/mikey/BPI-USER/github/build/release/BPI-M3-bsp/linux-sunxi/Module.symvers\r\n           is missing; modules will have no dependencies and modversions.\r\n\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_ap.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_br_ext.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_cmd.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_debug.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_efuse.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_ieee80211.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_io.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_ioctl_set.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_iol.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_led.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_mlme.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_mlme_ext.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_mp.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_mp_ioctl.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_pwrctrl.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_p2p.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_recv.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_rf.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_security.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_sreset.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_sta_mgt.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_wlan_util.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/core/rtw_xmit.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/HalHWImg8188E_MAC.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/HalHWImg8188E_BB.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/HalHWImg8188E_RF.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/HalPhyRf.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/HalPhyRf_8188e.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/HalPwrSeqCmd.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/Hal8188EPwrSeq.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/Hal8188ERateAdaptive.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/hal_intf.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/hal_com.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/odm.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/odm_debug.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/odm_interface.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/odm_HWConfig.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/odm_RegConfig8188E.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/odm_RTL8188E.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/rtl8188e_cmd.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/rtl8188e_dm.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/rtl8188e_hal_init.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/rtl8188e_mp.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/rtl8188e_phycfg.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/rtl8188e_rf6052.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/rtl8188e_rxdesc.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/rtl8188e_sreset.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/rtl8188e_xmit.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/rtl8188eu_led.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/rtl8188eu_recv.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/rtl8188eu_xmit.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/usb_halinit.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/hal/usb_ops_linux.o\r\n  CC [M]  /home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.o\r\n/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.c:7814:2: error: unknown field ‘private’ specified in initializer\r\n  .private = rtw_private_handler,\r\n  ^\r\n/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.c:7814:13: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]\r\n  .private = rtw_private_handler,\r\n             ^\r\n/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.c:7814:13: note: (near initialization for ‘rtw_handlers_def.get_wireless_stats’)\r\n/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.c:7815:2: error: unknown field ‘private_args’ specified in initializer\r\n  .private_args = (struct iw_priv_args *)rtw_private_args,\r\n  ^\r\n/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.c:7815:18: warning: excess elements in struct initializer\r\n  .private_args = (struct iw_priv_args *)rtw_private_args,\r\n                  ^\r\n/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.c:7815:18: note: (near initialization for ‘rtw_handlers_def’)\r\n/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.c:7816:2: error: unknown field ‘num_private’ specified in initializer\r\n  .num_private = sizeof(rtw_private_handler) / sizeof(iw_handler),\r\n  ^\r\n/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.c:7816:17: warning: excess elements in struct initializer\r\n  .num_private = sizeof(rtw_private_handler) / sizeof(iw_handler),\r\n                 ^\r\n/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.c:7816:17: note: (near initialization for ‘rtw_handlers_def’)\r\n/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.c:7817:2: error: unknown field ‘num_private_args’ specified in initializer\r\n  .num_private_args = sizeof(rtw_private_args) / sizeof(struct iw_priv_args),\r\n  ^\r\n/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.c:7817:22: warning: excess elements in struct initializer\r\n  .num_private_args = sizeof(rtw_private_args) / sizeof(struct iw_priv_args),\r\n                      ^\r\n/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.c:7817:22: note: (near initialization for ‘rtw_handlers_def’)\r\nscripts/Makefile.build:307: recipe for target '/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.o' failed\r\nmake[2]: *** [/home/pi/workspace/RTL8188EU/rtl8188eu/os_dep/ioctl_linux.o] Error 1\r\nMakefile:1370: recipe for target '_module_/home/pi/workspace/RTL8188EU/rtl8188eu' failed\r\nmake[1]: *** [_module_/home/pi/workspace/RTL8188EU/rtl8188eu] Error 2\r\nmake[1]: Leaving directory '/media/mikey/BPI-USER/github/build/release/BPI-M3-bsp/linux-sunxi'\r\nMakefile:151: recipe for target 'modules' failed\r\nmake: *** [modules] Error 2\r\nroot@bpi-iot-ros-ai:~/workspace/RTL8188EU/rtl8188eu# \r\n\r\n```\r\nAny help in finishing this compile process is greatly appreciated!\r\n\r\nThanks Anatoli"},"comment":{"url":"https://api.github.com/repos/BPI-SINOVOIP/BPI-M3-bsp/issues/comments/365147183","html_url":"https://github.com/BPI-SINOVOIP/BPI-M3-bsp/issues/22#issuecomment-365147183","issue_url":"https://api.github.com/repos/BPI-SINOVOIP/BPI-M3-bsp/issues/22","id":365147183,"user":{"login":"arkhipenko","id":312909,"avatar_url":"https://avatars0.githubusercontent.com/u/312909?v=4","gravatar_id":"","url":"https://api.github.com/users/arkhipenko","html_url":"https://github.com/arkhipenko","followers_url":"https://api.github.com/users/arkhipenko/followers","following_url":"https://api.github.com/users/arkhipenko/following{/other_user}","gists_url":"https://api.github.com/users/arkhipenko/gists{/gist_id}","starred_url":"https://api.github.com/users/arkhipenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkhipenko/subscriptions","organizations_url":"https://api.github.com/users/arkhipenko/orgs","repos_url":"https://api.github.com/users/arkhipenko/repos","events_url":"https://api.github.com/users/arkhipenko/events{/privacy}","received_events_url":"https://api.github.com/users/arkhipenko/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T04:25:13Z","updated_at":"2018-02-13T04:25:13Z","author_association":"NONE","body":"Sorry for late reply - had to get home to run the command on the laptop I was cross-compiling on. \r\n\r\nThis is what is says on my cross-compile machine:\r\nanatoli@epsilon:~/workspace/rtl8188eu$ file 8188eu.ko \r\n8188eu.ko: ELF 32-bit LSB  relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=f92e91d7b76847798c8bc0ba295555d9113065fb, not stripped\r\n\r\nlooks close to yours, but sha1 is not 100% same. Should it be?\r\n\r\nI am setting up a 32bit 14.04.05 Ubuntu VM to compile it on the 32 system (this one is 64 bit)"}}
{"actor":{"display_login":"arkhipenko"}}