Jump to content

Orange PI PC Wireless Module (8192cu)


joma

Recommended Posts

Didn't work on OrangePi PC with Armbian_5.14_Orangepipc_Debian_jessie_3.4.112 still (

# uname -a
Linux orangepipc 3.4.112-sun8i #2 SMP PREEMPT Sun Jun 5 08:38:56 CEST 2016 armv7l GNU/Linux
# lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

It is unable to make a connection with router although scanning for networks does work.

Jun 23 13:01:36 localhost kernel: [    4.551979] USB_SPEED_HIGH
Jun 23 13:01:36 localhost kernel: [    4.552012] CHIP TYPE: RTL8188C_8192C
Jun 23 13:01:36 localhost kernel: [    4.552055] register rtw_netdev_ops to netdev_ops
Jun 23 13:01:36 localhost kernel: [    4.552318] Chip Version ID: VERSION_NORMAL_TSMC_CHIP_88C.
Jun 23 13:01:36 localhost kernel: [    4.552329] RF_Type is 3!!
Jun 23 13:01:36 localhost kernel: [    4.552766] EEPROM type is E-FUSE
Jun 23 13:01:36 localhost kernel: [    4.552774] ====> ReadAdapterInfo8192C
Jun 23 13:01:36 localhost kernel: [    4.552891] Boot from EFUSE, Autoload OK !
Jun 23 13:01:36 localhost kernel: [    4.703781] EEPROMVID = 0x7392
Jun 23 13:01:36 localhost kernel: [    4.703794] EEPROMPID = 0x7811
Jun 23 13:01:36 localhost kernel: [    4.703800] EEPROMCustomerID : 0x00
Jun 23 13:01:36 localhost kernel: [    4.703806] EEPROMSubCustomerID: 0x00
Jun 23 13:01:36 localhost kernel: [    4.703812] RT_CustomerID: 0x00
Jun 23 13:01:36 localhost kernel: [    4.703823] _ReadMACAddress MAC Address from EFUSE = 74:da:38:41:69:6a
Jun 23 13:01:36 localhost kernel: [    4.703834] EEPROMRegulatory = 0x0
Jun 23 13:01:36 localhost kernel: [    4.703840] _ReadBoardType(0)
Jun 23 13:01:36 localhost kernel: [    4.703847] BT Coexistance = disable
Jun 23 13:01:36 localhost kernel: [    4.703854] mlmepriv.ChannelPlan = 0x02
Jun 23 13:01:36 localhost kernel: [    4.703863] _ReadPSSetting...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(0)
Jun 23 13:01:36 localhost kernel: [    4.703874] ### PS params=>  power_mgnt(1),usbss_enable(0) ###
Jun 23 13:01:36 localhost kernel: [    4.703881] ### AntDivCfg(0)
Jun 23 13:01:36 localhost kernel: [    4.703887] readAdapterInfo_8192CU(): REPLACEMENT = 1
Jun 23 13:01:36 localhost kernel: [    4.703898] <==== ReadAdapterInfo8192C in 150 ms
Jun 23 13:01:36 localhost kernel: [    4.704627] rtw_macaddr_cfg MAC Address  = 74:da:38:41:69:6a
Jun 23 13:01:36 localhost kernel: [    4.704643] bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
Jun 23 13:01:36 localhost kernel: [    4.705581] _rtw_drv_register_netdev, MAC Address (if1) = 74:da:38:41:69:6a
Jun 23 13:01:36 localhost kernel: [    4.705708] usbcore: registered new interface driver rtl8192cu
Jun 23 13:01:36 localhost kernel: [   70.438889] +871x_drv - drv_open, bup=0
Jun 23 13:01:36 localhost kernel: [   70.443159]  ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC
Jun 23 13:01:36 localhost kernel: [   70.443171] FirmwareDownload92C accquire FW from embedded image
Jun 23 13:01:36 localhost kernel: [   70.443180] fw_ver=v88, fw_subver=2, sig=0x88c0
Jun 23 13:01:36 localhost kernel: [   70.468396] fw download ok!
Jun 23 13:01:36 localhost kernel: [   70.468404] Set RF Chip ID to RF_6052 and RF type to 1T1R.
Jun 23 13:01:36 localhost kernel: [   70.857050] IQK:Start!!!
Jun 23 13:01:36 localhost kernel: [   70.867923] Path A IQK Success!!
Jun 23 13:01:36 localhost kernel: [   70.875673] Path A IQK Success!!
Jun 23 13:01:36 localhost kernel: [   70.880302] IQK: final_candidate is 0
Jun 23 13:01:36 localhost kernel: [   70.880331] IQK: RegE94=103 RegE9C=11 RegEA4=ff RegEAC=3ff RegEB4=0 RegEBC=0 RegEC4=0 RegECC=0
Jun 23 13:01:36 localhost kernel: [   70.880346]  Path A IQ Calibration Success !
Jun 23 13:01:36 localhost kernel: [   70.993928] pdmpriv->TxPowerTrackControl = 1
Jun 23 13:01:36 localhost kernel: [   70.998552] rtl8192cu_hal_init in 560ms
Jun 23 13:01:36 localhost kernel: [   71.015560] MAC Address = 74:da:38:41:69:6a
Jun 23 13:01:36 localhost kernel: [   71.015988] -871x_drv - drv_open, bup=1
Jun 23 13:01:36 localhost kernel: [   71.017693] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jun 23 13:01:36 localhost kernel: [   71.017790] [rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
Jun 23 13:01:36 localhost kernel: [   71.017830] set_mode = IW_MODE_INFRA
Jun 23 13:01:36 localhost kernel: [   71.018483] =>rtw_wx_set_essid
Jun 23 13:01:36 localhost kernel: [   71.018507] ssid=g�isQ�J�)ͺ����F|ºT�^[���vZ.c3�ɚ, len=32
Jun 23 13:01:36 localhost kernel: [   71.018533] Set SSID under fw_state=0x00000008
Jun 23 13:01:36 localhost kernel: [   71.018575] <=rtw_wx_set_essid, ret 0
Jun 23 13:01:36 localhost kernel: [   71.018825] hw_var_set_opmode()-4234 mode = 2
Jun 23 13:01:36 localhost kernel: [   71.080769] [rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
Jun 23 13:01:36 localhost kernel: [   72.326185] survey done event(2c) band:0 for wlan0
Jun 23 13:01:36 localhost kernel: [   72.326229] rtw_select_and_join_from_scanned_queue: return _FAIL(candidate == NULL)
Jun 23 13:01:36 localhost kernel: [   72.326253] try_to_join, but select scanning queue fail, to_roaming:0
Jun 23 13:01:36 localhost kernel: [   75.016928] ==>rtw_ps_processor .fw_state(8)
Jun 23 13:01:36 localhost kernel: [   75.016954] ==>ips_enter cnts:1
Jun 23 13:01:36 localhost kernel: [   75.016968] ===> rtw_ips_pwr_down...................
Jun 23 13:01:36 localhost kernel: [   75.017290] ====> rtw_ips_dev_unload...
Jun 23 13:01:36 localhost kernel: [   75.040928] usb_read_port_cancel
Jun 23 13:01:36 localhost kernel: [   75.041022] usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Jun 23 13:01:36 localhost kernel: [   75.041143] usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Jun 23 13:01:36 localhost kernel: [   75.041268] usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Jun 23 13:01:36 localhost kernel: [   75.041393] usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Jun 23 13:01:36 localhost kernel: [   75.041449] usb_write_port_cancel
Jun 23 13:01:36 localhost kernel: [   75.041537] ==> rtl8192cu_hal_deinit
Jun 23 13:01:36 localhost kernel: [   75.041553] bkeepfwalive(0)
Jun 23 13:01:36 localhost kernel: [   75.041566] card disble without HWSM...........
Jun 23 13:01:36 localhost kernel: [   75.046679] <=== rtw_ips_pwr_down..................... in 30ms
Jun 23 13:01:36 localhost kernel: [   77.360172] _rtw_pwr_wakeup call ips_leave....
Jun 23 13:01:36 localhost kernel: [   77.360199] ==>ips_leave cnts:1
...
Jun 23 13:01:36 localhost kernel: [   98.075745] ===>  rtw_ips_pwr_up..............
Jun 23 13:01:36 localhost kernel: [   98.075770] ===> ips_netdrv_open.........
Jun 23 13:01:36 localhost kernel: [   98.080711]  ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC
Jun 23 13:01:36 localhost kernel: [   98.080737] FirmwareDownload92C accquire FW from embedded image
Jun 23 13:01:36 localhost kernel: [   98.080760] fw_ver=v88, fw_subver=2, sig=0x88c0
Jun 23 13:01:36 localhost kernel: [   98.116067] fw download ok!
Jun 23 13:01:36 localhost kernel: [   98.116086] Set RF Chip ID to RF_6052 and RF type to 1T1R.
Jun 23 13:01:36 localhost kernel: [   98.507041] IQK:Start!!!
Jun 23 13:01:36 localhost kernel: [   98.518048] Path A IQK Success!!
Jun 23 13:01:36 localhost kernel: [   98.525797] Path A IQK Success!!
Jun 23 13:01:36 localhost kernel: [   98.537422] Path A IQK Success!!
Jun 23 13:01:36 localhost kernel: [   98.542167] IQK: final_candidate is 0
Jun 23 13:01:36 localhost kernel: [   98.542195] IQK: RegE94=103 RegE9C=10 RegEA4=ff RegEAC=3ff RegEB4=0 RegEBC=0 RegEC4=0 RegECC=0
Jun 23 13:01:36 localhost kernel: [   98.542210]  Path A IQ Calibration Success !
Jun 23 13:01:36 localhost kernel: [   98.653927] pdmpriv->TxPowerTrackControl = 1
Jun 23 13:01:36 localhost kernel: [   98.658677] rtl8192cu_hal_init in 580ms
Jun 23 13:01:36 localhost kernel: [   98.675742] <===  rtw_ips_pwr_up.............. in 600ms
Jun 23 13:01:36 localhost kernel: [   98.675929] ==> ips_leave.....LED(0x00028080)...
Jun 23 13:01:36 localhost kernel: [   99.986056] survey done event(22) band:0 for wlan0
Jun 23 13:01:36 localhost kernel: [  102.670104] ==>rtw_ps_processor .fw_state(8)
Jun 23 13:01:36 localhost kernel: [  102.670129] ==>ips_enter cnts:5
Jun 23 13:01:36 localhost kernel: [  102.670144] ===> rtw_ips_pwr_down...................
Jun 23 13:01:36 localhost kernel: [  102.670425] ====> rtw_ips_dev_unload...
Jun 23 13:01:36 localhost kernel: [  102.693927] usb_read_port_cancel
Jun 23 13:01:36 localhost kernel: [  102.694023] usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Jun 23 13:01:36 localhost kernel: [  102.694144] usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Jun 23 13:01:36 localhost kernel: [  102.694268] usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Jun 23 13:01:36 localhost kernel: [  102.694392] usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Jun 23 13:01:36 localhost kernel: [  102.694447] usb_write_port_cancel
Jun 23 13:01:36 localhost kernel: [  102.694534] ==> rtl8192cu_hal_deinit
Jun 23 13:01:36 localhost kernel: [  102.694550] bkeepfwalive(0)
Jun 23 13:01:36 localhost kernel: [  102.694564] card disble without HWSM...........
Jun 23 13:01:36 localhost kernel: [  102.699676] <=== rtw_ips_pwr_down..................... in 20ms
Jun 23 13:01:36 localhost kernel: [  104.993781] _rtw_pwr_wakeup call ips_leave....
Jun 23 13:01:36 localhost kernel: [  104.993810] ==>ips_leave cnts:5

 

Link to comment
Share on other sites

Hi. My name is Kris. I bought orange pi pc few months ago. I bought also wifi usb dongle, brand is NETIS, model wf2116. This card is based on 8192cu and it has two antennas. I installed latest Armbian for orangepi pc, 5.14, jessie server. All I need is to set this card to AP mode and get full 300 mb/s speed. I followed with this instruction to enable AP mode: http://elinux.org/RPI-Wireless-Hotspot. I'd like to notice, that I have also raspberry pi model b and this method works perfectly with this card with raspbian. With orange pi pc and armbian 5.14 jessie server I have problem. I done exactly as is described here http://elinux.org/RPI-Wireless-Hotspot , only I left original hostapd installed in armbian, I didn't install new package from apt-get. 

When I type lsusb, my card is:

"Bus 004 Device 002: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter"

 

Result of "lsmod":

 

 

 
ipt_MASQUERADE          1593  1
iptable_nat             3834  1
nf_nat                 12998  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4      12115  4 nf_nat,iptable_nat
nf_defrag_ipv4          1157  1 nf_conntrack_ipv4
xt_conntrack            2940  1
nf_conntrack           62003  5 ipt_MASQUERADE,nf_nat,xt_conntrack,iptable_nat,nf_conntrack_ipv4
iptable_filter          1277  1
ip_tables              10600  2 iptable_filter,iptable_nat
x_tables               13511  5 ip_tables,ipt_MASQUERADE,xt_conntrack,iptable_filter,iptable_nat
rtl8192cu              61143  0
rtlwifi                45784  1 rtl8192cu
rtl8192c_common        33420  1 rtl8192cu
mac80211              358429  3 rtlwifi,rtl8192c_common,rtl8192cu
8189es               1076034  0
 
/etc/hostapd.conf: (for testing I created open network, without password, and only g mode)

 

ssid=Test

interface=wlan0
hw_mode=g
channel=5
driver=nl80211
#bridge=br0
#logger_syslog=0
#logger_syslog_level=0
wmm_enabled=1
#ieee80211n=1
#wpa=2
#preamble=1
#wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
#wpa_passphrase=12345678
#wpa_key_mgmt=WPA-PSK
#wpa_pairwise=TKIP
#rsn_pairwise=CCMP
#auth_algs=1
macaddr_acl=0
noscan=1
#ht_capab=[HT40-][sHORT-GI-40][sHORT-GI-40][DSSS_CCK-40]
#country_code=SI
#ieee80211d=1
 
#5 Ghz example config
#hw_mode=a
#channel=108
#ht_capab=[HT40+][sHORT-GI-40][DSSS_CCK-40]
 

/etc/network/interfaces:

 

 

 
auto eth0
    iface eth0 inet static
        address x.x.x.199
        netmask 255.255.255.0
        gateway x.x.x.1
 
allow-hotplug wlan0
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcp
iface wlan0 inet static
 address 192.168.42.1
 netmask 255.255.255.0
 broadcast 192.168.42.255
up iptables-restore < /etc/iptables.ipv4.nat
 
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
 

ifconfig: 

 

eth0      Link encap:Ethernet  HWaddr 12:69:8a:ea:2c:0c

          inet addr:x.x.x.199  Bcast:x.x.x.255  Mask:255.255.255.0
          inet6 addr: fe80::1069:8aff:feea:2c0c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4745 errors:0 dropped:0 overruns:0 frame:0
          TX packets:372 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:305757 (298.5 KiB)  TX bytes:40514 (39.5 KiB)
          Interrupt:114
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
 
wlan0     Link encap:Ethernet  HWaddr 04:8d:38:b7:12:4a
          inet addr:192.168.42.1  Bcast:192.168.42.255  Mask:255.255.255.0
          inet6 addr: fe80::68d:38ff:feb7:124a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:576 (576.0 B)
 

iwconfig: 

 

lo        no wireless extensions.

 
tunl0     no wireless extensions.
 
wlan0     IEEE 802.11bgn  Mode:Master  Frequency:2.432 GHz  Tx-Power=20 dBm
          Retry  long limit:7   RTS thr=2347 B   Fragment thr:off
          Power Management:off
 
eth0      no wireless extensions.
 

 

After system start I can see network with ssid: "Test" , but when I try to connect with e.g. phone - opi pc are restarting, and from console I get these errors : 

 

Message from syslogd@localhost at Jul  5 13:30:04 ...

 kernel:[ 1561.439470] sunxi oops: enable sdcard JTAG interface
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] sunxi oops: cpu frequency: 480 MHz
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] sunxi oops: ddr frequency: 624 MHz
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] sunxi oops: gpu frequency: 105 MHz
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] sunxi oops: cpu temperature: 40
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] Process swapper/3 (pid: 0, stack limit = 0xef0fe2f8)
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] Stack: (0xef0ff870 to 0xef100000)
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] f860:                                     c0058854 00000003 eebbe180 ee115438
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] f880: 00000003 ef01d0c0 00000008 ef0ff9b0 00000008 00000000 ef0ff8c4 ef0ff8a8
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] f8a0: c0044e7c c0044a6c ef0fe000 00000001 ee4efec0 00000008 ef0ff8dc ef0ff8c8
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] f8c0: c0044ec8 c0044e44 ee116240 00000001 ef0ff8ec ef0ff8e0 c0044f14 c0044e98
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] f8e0: ef0ff90c ef0ff8f0 bf1bc07c c0044efc ee4efec0 ee115240 00000004 ee009348
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] f900: ef0ff94c ef0ff910 bf1c0f44 bf1bbfac ef0ff93c ef0ff920 c048c430 c048c444
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] f920: ee7d5780 ee009000 ee4efec0 ef0ff9b0 ee4efec0 bf1c0eb8 ee4efecf eebb7500
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] f940: ef0ff98c ef0ff950 bf14675c bf1c0ec4 ed807840 eea4e500 ef0ff994 ef0ff968
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] f960: c048be50 ef0ffa10 00000000 00000000 ee4efec0 ee7cf63e ef0ff9d4 00000000
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] f980: ef0ffa04 ef0ff990 bf150d38 bf1466c4 c0492194 c069ec28 eeab9ab0 ef0ff9a8
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] f9a0: c001a5f8 c001a034 ee115458 ee4efec0 ee114380 ee115458 eebb7a20 ee4efec0
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] f9c0: 000000ff 0000ff00 00000fff 0000ffff 00000001 00010000 c069f344 00000000
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] f9e0: ee4efec0 ee114380 0000003e 00000000 ee7cf656 00000000 ef0ffa64 ef0ffa08
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] fa00: bf1516e4 bf150470 ef0ffa24 c05e94f4 ee4efec0 ef0ffa14 ef0ffa14 00000000
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] fa20: 00000000 00000000 ee114380 eebb7500 ee009000 00000000 bf1c457c 00000002
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] fa40: ef0ffa9c ee4efec0 eebb7500 ee114380 00000000 118309a8 ef0ffa84 ef0ffa68
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] fa60: bf1520ec bf151654 ee4efec0 eebb7000 ee7cf660 00000000 ef0ffb0c ef0ffa88
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] fa80: bf152c98 bf15201c ef0ffac4 00000000 eebb7500 ee7cf652 ee114380 00000000
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] faa0: c0757c60 00000018 02880000 00000000 ee4efec0 ef144800 ef0ffb14 ef0ffac8
 
Message from syslogd@localhost at Jul  5 13:30:04 ...
 kernel:[ 1561.439470] fac0: 02884f5c 2e5c0000 aa51bf59 b7388d04 8d044a12 4a12b738 c09e0000 eebb7000
 

 

My question is : WTF ? :D I'm fighting with this from few weeks, I asked friend who tried help me remotely to fix this problem, he bought also this card (with this chipset, but without antennas),his card is working out of box, mine without success

Please help me, Kris

Link to comment
Share on other sites

My question is : WTF ? :D I'm fighting with this from few weeks, I asked friend who tried help me remotely to fix this problem, he bought also this card (with this chipset, but without antennas),his card is working out of box, mine without success

Please help me, Kris

@Kris:

 

Follow the below steps to compile the driver:

git clone https://github.com/pvaret/rtl8192cu-fixes
cd rtl8192cu-fixes
make ARCH=arm
# when done
sudo insmod 8192cu.ko
sudo cp ./blacklist-native-rtl8192.conf /etc/modprobe.d/
sudo cp ./8192cu-disable-power-management.conf /etc/modprobe.d/8192cu.conf

Disable 8189es driver and enable newly compiled driver:

sudo nano /etc/modules-load.d/modules.conf
The file should look like below. Add 8192cu to a new line at the bottom and add a # on 8189es line

#----------disable standard Armbian driver
# 8189es
#----------enable fixed WIFI RealTek driver
8192cu

Reboot and first test connecting to some AP. Then try fiddling with hostapd . . .

Link to comment
Share on other sites

Try below driver. Works with 0bda:818b

git clone https://github.com/shahidali55/Realtek-RTL8192EU-driver
cd Realtek-RTL8192EU-driver/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524/
make arch=ARM
sudo make install
sudo shutdown -r now

I am searching for Driver for Orange PI PC WiFi RTL8192EU.
The driver on installation CD gives error when compiled.

Any help please.

Link to comment
Share on other sites

Hey,

 

I'm having trouble getting rtl8192cu-fixes compiled:

lenny@orangepipc:[~/compile/rtl8192cu-fixes]$  ARCH=arm make -j4
make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.4.112-sun8i/build M=/home/lenny/compile/rtl8192cu-fixes  modules
make[1]: Entering directory '/usr/src/linux-headers-3.4.112-sun8i'
  LD [M]  /home/lenny/compile/rtl8192cu-fixes/8192cu.o
/home/lenny/compile/rtl8192cu-fixes/core/rtw_security.o: In function `is_multicast_mac_addr':
rtw_security.c:(.text+0x20e8): multiple definition of `is_multicast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x34): first defined here
/home/lenny/compile/rtl8192cu-fixes/core/rtw_security.o: In function `is_broadcast_mac_addr':
rtw_security.c:(.text+0x2110): multiple definition of `is_broadcast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x5c): first defined here
/home/lenny/compile/rtl8192cu-fixes/core/rtw_security.o: In function `is_zero_mac_addr':
rtw_security.c:(.text+0x219c): multiple definition of `is_zero_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0xe8): first defined here
/home/lenny/compile/rtl8192cu-fixes/core/rtw_debug.o: In function `is_multicast_mac_addr':
rtw_debug.c:(.text+0x0): multiple definition of `is_multicast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x34): first defined here
/home/lenny/compile/rtl8192cu-fixes/core/rtw_debug.o: In function `is_broadcast_mac_addr':
rtw_debug.c:(.text+0x28): multiple definition of `is_broadcast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x5c): first defined here
/home/lenny/compile/rtl8192cu-fixes/core/rtw_debug.o: In function `is_zero_mac_addr':
rtw_debug.c:(.text+0xb4): multiple definition of `is_zero_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0xe8): first defined here
/home/lenny/compile/rtl8192cu-fixes/core/rtw_io.o: In function `is_multicast_mac_addr':
rtw_io.c:(.text+0x0): multiple definition of `is_multicast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x34): first defined here
/home/lenny/compile/rtl8192cu-fixes/core/rtw_io.o: In function `is_broadcast_mac_addr':
rtw_io.c:(.text+0x28): multiple definition of `is_broadcast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x5c): first defined here
/home/lenny/compile/rtl8192cu-fixes/core/rtw_io.o: In function `is_zero_mac_addr':
rtw_io.c:(.text+0xb4): multiple definition of `is_zero_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0xe8): first defined here
/home/lenny/compile/rtl8192cu-fixes/core/rtw_ioctl_query.o: In function `is_multicast_mac_addr':
rtw_ioctl_query.c:(.text+0x0): multiple definition of `is_multicast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x34): first defined here
/home/lenny/compile/rtl8192cu-fixes/core/rtw_ioctl_query.o: In function `is_broadcast_mac_addr':
rtw_ioctl_query.c:(.text+0x28): multiple definition of `is_broadcast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x5c): first defined here
/home/lenny/compile/rtl8192cu-fixes/core/rtw_ioctl_query.o: In function `is_zero_mac_addr':
rtw_ioctl_query.c:(.text+0xb4): multiple definition of `is_zero_mac_addr'
...
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x5c): first defined here
/home/lenny/compile/rtl8192cu-fixes/os_dep/linux/mlme_linux.o: In function `is_zero_mac_addr':
mlme_linux.c:(.text+0x178): multiple definition of `is_zero_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0xe8): first defined here
/home/lenny/compile/rtl8192cu-fixes/os_dep/linux/recv_linux.o: In function `is_multicast_mac_addr':
recv_linux.c:(.text+0x1c): multiple definition of `is_multicast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x34): first defined here
/home/lenny/compile/rtl8192cu-fixes/os_dep/linux/recv_linux.o: In function `is_broadcast_mac_addr':
recv_linux.c:(.text+0x44): multiple definition of `is_broadcast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x5c): first defined here
/home/lenny/compile/rtl8192cu-fixes/os_dep/linux/recv_linux.o: In function `is_zero_mac_addr':
recv_linux.c:(.text+0xd0): multiple definition of `is_zero_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0xe8): first defined here
/home/lenny/compile/rtl8192cu-fixes/os_dep/linux/ioctl_cfg80211.o: In function `is_multicast_mac_addr':
ioctl_cfg80211.c:(.text+0x0): multiple definition of `is_multicast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x34): first defined here
/home/lenny/compile/rtl8192cu-fixes/os_dep/linux/ioctl_cfg80211.o: In function `is_broadcast_mac_addr':
ioctl_cfg80211.c:(.text+0x28): multiple definition of `is_broadcast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x5c): first defined here
/home/lenny/compile/rtl8192cu-fixes/os_dep/linux/ioctl_cfg80211.o: In function `is_zero_mac_addr':
ioctl_cfg80211.c:(.text+0xb4): multiple definition of `is_zero_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0xe8): first defined here
/home/lenny/compile/rtl8192cu-fixes/os_dep/linux/rtw_android.o: In function `is_multicast_mac_addr':
rtw_android.c:(.text+0x0): multiple definition of `is_multicast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x34): first defined here
/home/lenny/compile/rtl8192cu-fixes/os_dep/linux/rtw_android.o: In function `is_broadcast_mac_addr':
rtw_android.c:(.text+0x28): multiple definition of `is_broadcast_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0x5c): first defined here
/home/lenny/compile/rtl8192cu-fixes/os_dep/linux/rtw_android.o: In function `is_zero_mac_addr':
rtw_android.c:(.text+0xb4): multiple definition of `is_zero_mac_addr'
/home/lenny/compile/rtl8192cu-fixes/core/rtw_cmd.o:rtw_cmd.c:(.text+0xe8): first defined here
scripts/Makefile.build:432: recipe for target '/home/lenny/compile/rtl8192cu-fixes/8192cu.o' failed
make[2]: *** [/home/lenny/compile/rtl8192cu-fixes/8192cu.o] Error 1
Makefile:1368: recipe for target '_module_/home/lenny/compile/rtl8192cu-fixes' failed
make[1]: *** [_module_/home/lenny/compile/rtl8192cu-fixes] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.4.112-sun8i'
Makefile:584: recipe for target 'modules' failed
make: *** [modules] Error 2
lenny@orangepipc:[~/compile/rtl8192cu-fixes]$

System info:

lenny@orangepipc:[~/compile/rtl8192cu-fixes]$ uname -a
Linux orangepipc 3.4.112-sun8i #14 SMP PREEMPT Tue Jul 5 16:28:14 CEST 2016 armv7l armv7l armv7l GNU/Linux
lenny@orangepipc:[~/compile/rtl8192cu-fixes]$ lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lenny@orangepipc:[~/compile/rtl8192cu-fixes]$ ifconfig
eth0      Link encap:Ethernet  HWaddr c2:c4:a9:xx:xx:xx
          inet addr:192.168.xxx.xxx  Bcast:192.168.xxx.255  Mask:255.255.255.0
          inet6 addr: xxxx:xx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/64 Scope:Global
          inet6 addr: fe80::c0c4:a9ff:feae:d4c9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:619 errors:0 dropped:0 overruns:0 frame:0
          TX packets:428 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:62931 (62.9 KB)  TX bytes:57766 (57.7 KB)
          Interrupt:114

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  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:0
          RX bytes:0 (0.0   TX bytes:0 (0.0 

lenny@orangepipc:[~/compile/rtl8192cu-fixes]$ iwconfig
enx00f131xxxxxxx  unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated
          Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

lo        no wireless extensions.

tunl0     no wireless extensions.

eth0      no wireless extensions.

lenny@orangepipc:[~/compile/rtl8192cu-fixes]$ sudo ifup enx00f131xxxxxx
Unknown interface enx00f131xxxxxx
lenny@orangepipc:[~/compile/rtl8192cu-fixes]$ cat /etc/modules-load.d/modules.conf
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
 
#8189es
8189cu
 
gpio_sunxi
spi_sunxi
i2c_sunxi
 
#w1-sunxi
#w1-gpio
#w1-therm
#gc2035
#vfe_v4l2
#sunxi-cir
lenny@orangepipc:[~/compile/rtl8192cu-fixes]$ lsmod
Module                  Size  Used by
8192cu                624560  0
gpio_sunxi              8269  0

Also the name "enx00f131xxxxxx" seems to depend on the mac adress which does change nearly every reboot and so the name does change as well.

Link to comment
Share on other sites

Some people say stupid questions do not exist. That's my justification of asking  the following:

 

What's wrong with installing the package 'firmware-realtek'? I see people struggling with compiling drivers, while I have 4 different realtek USB wifi dongles (different chipsets as well) and they all work fine for me in the fabulous armbian (it's lonely at the top) after an 'apt-get install firmware-realtek'. This saves me time, which I can now spend on drinking a cold beer in the sun!

 

Maybe someone with greater knowledge then (the simple) me can enlighten what's wrong with installing the firmware-realtek package?

Link to comment
Share on other sites

The package does not exist.

lenny@orangepipc:[~]$ cat /etc/apt/sources.list
deb http://ports.ubuntu.com/xenial main restricted universe multiverse
deb http://ports.ubuntu.com/xenial-security main restricted universe multiverse
deb http://ports.ubuntu.com/xenial-updates main restricted universe multiverse
deb http://ports.ubuntu.com/xenial-backports main restricted universe multiverse
lenny@orangepipc:[~]$ sudo apt-get update
OK:1 http://ports.ubuntu.comxenial InRelease
Holen:2 http://ports.ubuntu.comxenial-security InRelease [94.5 kB]
OK:3 http://apt.armbian.comxenial InRelease
Holen:4 http://ports.ubuntu.comxenial-updates InRelease [95.7 kB]
OK:5 http://ports.ubuntu.comxenial-backports InRelease
Holen:6 http://ports.ubuntu.comxenial/main Translation-de [501 kB]
Holen:7 http://ports.ubuntu.comxenial/restricted Translation-de [2,752 B]
Holen:8 http://ports.ubuntu.comxenial/universe Translation-de [1,877 kB]
Holen:9 http://ports.ubuntu.comxenial/multiverse Translation-de [94.1 kB]
Holen:10 http://ports.ubuntu.comxenial-security/main armhf Packages [120 kB]
Holen:11 http://ports.ubuntu.comxenial-security/main Translation-en [55.7 kB]
Holen:12 http://ports.ubuntu.comxenial-updates/main armhf Packages [354 kB]
Holen:13 http://ports.ubuntu.comxenial-updates/universe armhf Packages [282 kB]
Es wurden 3,477 kB in 5 s geholt (609 kB/s).
Paketlisten werden gelesen... Fertig
lenny@orangepipc:[~]$ sudo apt-get install firmware-realtek
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
E: Paket firmware-realtek kann nicht gefunden werden.   # package could not be found
lenny@orangepipc:[~]$
Link to comment
Share on other sites

@zivimo2

The compilation errors are due to default compiler version (GCC 5) in Xenial. You need to patch the driver similar to this - replace "extern __inline" with "static __inline" for declatations of is_broadcast_mac_addr, is_multicast_mac_addr, is_zero_mac_addr (this one may not exist) in file include/ieee80211.h

 

Interface name is based on random MAC address, you can either set fixed MAC address in module parameter or disable renaming network interfaces by adding "net.ifnames=0" to kernel command line in /boot/boot.cmd

 

@makama80

Firmware won't help if there is no driver that requires it, so firmware and driver are not interchangeable but complementary components.

Link to comment
Share on other sites

Ehh... @

 

 

The package does not exist.

 

My sources.list:

 

 

deb http://httpredir.debian.org/debianjessie main contrib non-free
deb-src http://httpredir.debian.org/debianjessie main contrib non-free

deb http://httpredir.debian.org/debian/jessie-updates main contrib non-free
deb-src http://httpredir.debian.org/debian/jessie-updates main contrib non-free

# security packages come always from main repository
deb http://security.debian.org/jessie/updates main contrib non-free
deb-src http://security.debian.org/jessie/updates main contrib non-free

 

 

Evidence:

 

 

post-1540-0-14305800-1472143714_thumb.jpg

 

Link to comment
Share on other sites

@makama80

different OS! (ubuntu vs. debian), package still does not exist for ubuntu evidence: http://forum.armbian.com/index.php/topic/749-orange-pi-pc-wireless-module-8192cu/page-2#entry14550

 

@zador.blood.stained

thanks man! that worked like charm!

can you tell me how to set a fixed mac by module parameter?

 

green line = kernel command line?

lenny@orangepipc:[~]$ cat /boot/boot.cmd
gpio set PL10
gpio set PG11
setenv machid 1029
setenv bootm_boot_mode sec
if ext4load mmc 0 0x00000000 /boot/.verbose
then
setenv verbosity 7
else
setenv verbosity 1
fi
setenv bootargs "console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 cgroup_enable=memory swapaccount=1 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 panic=10 consoleblank=0 enforcing=0 loglevel=${verbosity}"
#--------------------------------------------------------------------------------------------------------------------------------
# Boot loader script to boot with different boot methods for old and new kernel
#--------------------------------------------------------------------------------------------------------------------------------
if ext4load mmc 0 0x00000000 /boot/.next || fatload mmc 0 0x00000000 .next || ext4load mmc 0 0x00000000 .next
then
# sunxi mainline kernel
#--------------------------------------------------------------------------------------------------------------------------------
ext4load mmc 0 0x49000000 /boot/dtb/${fdtfile} || fatload mmc 0 0x49000000 /dtb/${fdtfile} || ext4load mmc 0 0x49000000 /dtb/${fdtfile}
ext4load mmc 0 0x42000000 /boot/uInitrd || fatload mmc 0 0x42000000 uInitrd || ext4load mmc 0 0x42000000 uInitrd
ext4load mmc 0 0x46000000 /boot/zImage || fatload mmc 0 0x46000000 zImage || ext4load mmc 0 0x46000000 zImage
bootz 0x46000000 0x42000000 0x49000000
#bootz 0x46000000 - 0x49000000
#--------------------------------------------------------------------------------------------------------------------------------
else
# sunxi android kernel
#--------------------------------------------------------------------------------------------------------------------------------
ext4load mmc 0 0x43000000 /boot/script.bin || fatload mmc 0 0x43000000 script.bin || ext4load mmc 0 0x43000000 script.bin
ext4load mmc 0 0x42000000 /boot/uInitrd || fatload mmc 0 0x42000000 uInitrd || ext4load mmc 0 0x42000000 uInitrd
ext4load mmc 0 0x48000000 /boot/zImage || fatload mmc 0 0x48000000 zImage || ext4load mmc 0 0x48000000 zImage
bootz 0x48000000 0x42000000
#bootz 0x48000000
#--------------------------------------------------------------------------------------------------------------------------------
fi
# Recompile with:
# mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr
lenny@orangepipc:[~]$

EDIT:

addition to kernel args didnt change a thing so I made a udev rule:

cat /etc/udev/rules.d/99-usb-wifi.rules
# usb wifi dongle
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:f1:31:xx:xx:xx", NAME="wlan0"
Link to comment
Share on other sites

@zador.blood.stained

thanks man! that worked like charm!

can you tell me how to set a fixed mac by module parameter?

Assuming your module is called 8192cu you need to create file (name doesn't really matter) /etc/modprobe.d/8192cu.conf with content like this:

options 8192cu rtw_initmac=00:f1:31:12:34:56

You can verify parameter name with

modinfo 8192cu

since I don't have precompiled module to experiment with right now.

Link to comment
Share on other sites

I have a similar issue with a no-name brand version of the above chipset. I originally downloaded the armbian jessie distro with desktop and installed the above drivers with no real issue. I've run this as an OctoPrint server for my 3D printer for the last month+. Yesterday I logged into the server with putty and saw some updates available and ran upgrade. Apparently this broke my wifi completely. I ended up for simplicity just reinstalling the original image and starting from scratch. I'm not getting it to work this time around. I went ahead and upgraded everything before installing the 8192cu-fixes and everything completes without any errors or warnings. I copied the blacklist files and power management files to the correct modprobe.d folder as well. Rebooting and installing the dongle to the OPiPC, I don't have wifi, nor is there a wireless connection when I do iwconfig. If i manually run insmod 8192cu.ko then check lsmod again the module is loaded and the iwconfig shows a connection. I can run ifconfig wlan0 up and scan and connect to networks and remove the wired connection and run it fine. I tried rewriting the /etc/network/interfaces to comment out the wired and allow hotplug on the dongle and it still doesn't work, unless I manually run those files. Any suggestions?

Link to comment
Share on other sites

 

Headers are present on the system, don't download anything especially not some generic.

cd /usr/src/linux-headers-3.4.110-sun8i/
make scripts # this you will skip in the future when we fix the building process
cd
git clone https://github.com/pvaret/rtl8192cu-fixes
cd rtl8192cu-fixes
make ARCH=arm
# when done
insmod 8192cu.ko
# dmesg
usbcore: registered new interface driver rtl8192cu

Igor, all,   I followed that procedure on an OrangePi PC and for an obscure reason I can't get the module to load. 

 

running dmesg shows a log full of messages like this

8192cu: disagrees about version of symbol alloc_etherdev_mqs

 

[ 116.124329] 8192cu: disagrees about version of symbol alloc_etherdev_mqs

[ 116.124353] 8192cu: Unknown symbol alloc_etherdev_mqs (err -22)

[ 116.124425] 8192cu: disagrees about version of symbol skb_copy_bits

[ 116.124437] 8192cu: Unknown symbol skb_copy_bits (err -22)

[ 116.124467] 8192cu: disagrees about version of symbol skb_put

[ 116.124477] 8192cu: Unknown symbol skb_put (err -22)

[ 116.124542] 8192cu: disagrees about version of symbol __netif_schedule

[ 116.124553] 8192cu: Unknown symbol __netif_schedule (err -22)

[ 116.124586] 8192cu: disagrees about version of symbol unregister_netdev

[ 116.124597] 8192cu: Unknown symbol unregister_netdev (err -22)

[ 116.124612] 8192cu: disagrees about version of symbol skb_dequeue

[ 116.124623] 8192cu: Unknown symbol skb_dequeue (err -22)

[ 116.124652] 8192cu: disagrees about version of symbol dev_alloc_name

[ 116.124663] 8192cu: Unknown symbol dev_alloc_name (err -22)

[ 116.124698] 8192cu: disagrees about version of symbol unregister_netdevice_queue

[ 116.124710] 8192cu: Unknown symbol unregister_netdevice_queue (err -22)

[ 116.124747] 8192cu: disagrees about version of symbol eth_type_trans

[ 116.124757] 8192cu: Unknown symbol eth_type_trans (err -22)

[ 116.124813] 8192cu: disagrees about version of symbol __alloc_skb

[ 116.124823] 8192cu: Unknown symbol __alloc_skb (err -22)

[ 116.124845] 8192cu: disagrees about version of symbol netif_device_attach

[ 116.124856] 8192cu: Unknown symbol netif_device_attach (err -22)

[ 116.124869] 8192cu: disagrees about version of symbol skb_queue_tail

[ 116.124880] 8192cu: Unknown symbol skb_queue_tail (err -22)

[ 116.124913] 8192cu: disagrees about version of symbol dev_kfree_skb_any

[ 116.124924] 8192cu: Unknown symbol dev_kfree_skb_any (err -22)

[ 116.124956] 8192cu: disagrees about version of symbol skb_pull

[ 116.124967] 8192cu: Unknown symbol skb_pull (err -22)

[ 116.125007] 8192cu: disagrees about version of symbol skb_push

[ 116.125017] 8192cu: Unknown symbol skb_push (err -22)

[ 116.125037] 8192cu: disagrees about version of symbol wireless_send_event

[ 116.125048] 8192cu: Unknown symbol wireless_send_event (err -22)

[ 116.125064] 8192cu: disagrees about version of symbol register_netdev

[ 116.125075] 8192cu: Unknown symbol register_netdev (err -22)

[ 116.125097] 8192cu: disagrees about version of symbol free_netdev

[ 116.125108] 8192cu: Unknown symbol free_netdev (err -22)

[ 116.125173] 8192cu: disagrees about version of symbol __pskb_pull_tail

[ 116.125184] 8192cu: Unknown symbol __pskb_pull_tail (err -22)

[ 116.125197] 8192cu: disagrees about version of symbol netif_rx

[ 116.125207] 8192cu: Unknown symbol netif_rx (err -22)

[ 116.125224] 8192cu: disagrees about version of symbol skb_trim

[ 116.125235] 8192cu: Unknown symbol skb_trim (err -22)

[ 116.125310] 8192cu: disagrees about version of symbol netif_carrier_off

[ 116.125321] 8192cu: Unknown symbol netif_carrier_off (err -22)

[ 116.125344] 8192cu: disagrees about version of symbol skb_copy

[ 116.125355] 8192cu: Unknown symbol skb_copy (err -22)

[ 116.125370] 8192cu: disagrees about version of symbol skb_clone

[ 116.125381] 8192cu: Unknown symbol skb_clone (err -22)

[ 116.125392] 8192cu: disagrees about version of symbol dev_get_by_name

[ 116.125403] 8192cu: Unknown symbol dev_get_by_name (err -22)

[ 116.125417] 8192cu: disagrees about version of symbol netif_carrier_on

[ 116.125428] 8192cu: Unknown symbol netif_carrier_on (err -22)

[ 116.125486] 8192cu: disagrees about version of symbol register_netdevice

[ 116.125497] 8192cu: Unknown symbol register_netdevice (err -22)

 

 

lsusb 
Bus 004 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter 
cat /etc/modprobe.d/blacklist-rtl8192cu.conf
blacklist rtl8192cu
cat /etc/modprobe.d/8192cu.conf
# Disable power management in the 8192cu driver. This works around a bug in
# some hardware where the device never wakes back up.
# Credit goes to Saqib Razaq (https://github.com/s-razaq) for the fix.

# rtw_power_mgnt=0 disables power saving
# rtw_enusbss=0 disables USB autosuspend
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0

modinfo 8192cu

 

 

filename: /lib/modules/3.4.112-sun8i/kernel/net/wireless/8192cu.ko

version: v4.0.2_9000.20130911

author: Realtek Semiconductor Corp.

description: Realtek Wireless Lan Driver

license: GPL

srcversion: 55A93D5E72FC37E2BD0C0AB

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.112-sun8i SMP 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)

 

 

 

cat /etc/network/interfaces

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet static
    address 192.168.21.1
    netmask 255.255.255.0

can anyone shed some lights on what the issue could be?

Link to comment
Share on other sites

Igor, all,   I followed that procedure on an OrangePi PC and for an obscure reason I can't get the module to load. 

 

running dmesg shows a log full of messages like this

8192cu: disagrees about version of symbol alloc_etherdev_mqs

 

This error is due to incorrect headers being used to build the module. Please provide the output of below command:

uname -a
Link to comment
Share on other sites

If i manually run insmod 8192cu.ko then check lsmod again the module is loaded and the iwconfig shows a connection.

[...]

Any suggestions?

 

Are there multiple copies of the module in your system? I'm trying to resolve a similar situation, and although I haven't yet succeeded, I noticed this morning that this was the case for me.  

 

you can search for the modules by running this command:

find -L /lib/modules/  -name 8192cu.ko | awk '{ print "ls -lt "$1 }' | sh
Link to comment
Share on other sites

uname -a

Thanks for the tip.  Just to be on the safe side, I re-generated the compile headers (I had not done it after a dist-upgrade) and re-compiled the modules. This still didn't work, so I started looking for other modules that might still be clinging there from failed attempts.

find -L /lib/modules/  -name 8192cu.ko | awk '{ print "ls -lt "$1 }' | sh

There was another module found so I removed it and now the errors are gone from dmesg.

 

however the end goal was to get hostapd to work and I am unsure if my configuration is good or bad.  

 

trying the following command gives an error

 
iw wlan0 info
command failed: No such device (-19)

but I can scan for networks

iwlist wlan0 scanning
wlan0     Scan completed :
          Cell 01 - Address: XX:XX:XX:XX:XX:XX
                    ESSID:"XXXX"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.422 GHz (Channel 3)
                    Encryption key:on
                    Bit Rates:144 Mb/s
                    Extra:rsn_ie=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    Quality=20/100  Signal level=100/100

I am using a static address so ifconfig gives me this

ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:e0:4c:03:18:be
          inet addr:192.168.21.1  Bcast:255.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:543 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0   TX bytes:0 (0.0 
so I am guessing the dongle is recognized, the driver is loaded and my issue with hostapd belongs to a different thread?
Link to comment
Share on other sites

Does "iw dev wlan0 link" show as connected to SSID ?

If not, try "sudo ifup wlan0"

I haven't configured any network, as I want to use the dongle through hostapd.

 

# ifup wlan0
ifup: interface wlan0 already configured
# iw dev wlan0 link
Not connected.
Link to comment
Share on other sites

I haven't configured any network, as I want to use the dongle through hostapd.

 

In case of troubles its better to check if you can connect normally. Hostapd is a next step and some chips might need extra push (parameters) to jump into AP mode. AFAIK this chip works but you might need an patched hostapd. We provide both versions.

Link to comment
Share on other sites

Hi everyone,

 

I am new to this forum so would like to say hi :). I just got Orange PI PC board and would like to share my experience with it so far.

 

 

Hey,

 

I'm having trouble getting rtl8192cu-fixes compiled:

lenny@orangepipc:[~/compile/rtl8192cu-fixes]$  ARCH=arm make -j4
make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.4.112-sun8i/build M=/home/lenny/compile/rtl8192cu-fixes  modules
make[1]: Entering directory '/usr/src/linux-headers-3.4.112-sun8i'
  LD [M]  /home/lenny/compile/rtl8192cu-fixes/8192cu.o
/home/lenny/compile/rtl8192cu-fixes/core/rtw_security.o: In function `is_multicast_mac_addr':
rtw_security.c:(.text+0x20e8): multiple definition of `is_multicast_mac_addr'
...

 

I just came through the same problem and prepared a patch so it can be easily applied to this code in order to fix the compilation errors. As someone mentioned in this topic the functions that are causing the errors have to be made static. For the less experienced users: save the following content to a file and run git apply <patch file> in rtl8192cu-fixes folder then rerun compilation:

From 89d3d512da5f62535c02b93901dee4c3ef7a356f Mon Sep 17 00:00:00 2001
Date: Sun, 5 Feb 2017 14:07:54 +0100
Subject: [PATCH] Fix linking errors.

Change function declarations to static so they can be included
multiple times without causing linking error.
---
 include/ieee80211.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/ieee80211.h b/include/ieee80211.h
index e283a5f..d07bdb8 100755
--- a/include/ieee80211.h
+++ b/include/ieee80211.h
@@ -1194,18 +1194,18 @@ enum ieee80211_state {
 (((Addr[2]) & 0xff) == 0xff) && (((Addr[3]) & 0xff) == 0xff) && (((Addr[4]) & 0xff) == 0xff) && \
 (((Addr[5]) & 0xff) == 0xff))
 #else
-extern __inline int is_multicast_mac_addr(const u8 *addr)
+static __inline int is_multicast_mac_addr(const u8 *addr)
 {
         return ((addr[0] != 0xff) && (0x01 & addr[0]));
 }
 
-extern __inline int is_broadcast_mac_addr(const u8 *addr)
+static __inline int is_broadcast_mac_addr(const u8 *addr)
 {
        return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) &&   \
                (addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff));
 }
 
-extern __inline int is_zero_mac_addr(const u8 *addr)
+static __inline int is_zero_mac_addr(const u8 *addr)
 {
        return ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) &&   \
                (addr[3] == 0x00) && (addr[4] == 0x00) && (addr[5] == 0x00));
-- 
2.7.4


Link to comment
Share on other sites

I have strange problem with my OPI One.I have Wifi RTL8188CU wifi VID 0DBA, PID 8176. i soldered additional USB port on pads - power supply for USB  from GPIO pins.  I connected printer Laserjet P1005 to the secondary USB port. After a day only ping and screen is working, Remote desktop and printert is not accessible. I did not install any wifi drivers just updated armbian libraries via update all command.  

Where is the problem?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines