Author: FransM

WiFi module

[Copy link]

7

threads

100

posts

647

credits

Senior member

Rank: 4

credits
647
Published in 2015-1-26 04:44:48 | Show all floors
Tankafaire replied at 2015-1-25 22:58
And for an automatically connection, you can use a graphical app:

then you click on 'setting' and  ...

Thank you - wifi is working now.
Your tips have been great.

0

threads

31

posts

109

credits

Registered member

Rank: 2

credits
109
Published in 2015-12-14 21:34:46 | Show all floors
Edited by miha at 2015-12-14 22:02

Hi,

I am running on my OPI+ :


  1. # cat /etc/*ele*
  2. PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
  3. NAME="Debian GNU/Linux"
  4. VERSION_ID="7"
  5. VERSION="7 (wheezy)"
  6. ID=debian
  7. ANSI_COLOR="1;31"
  8. HOME_URL="http://www.debian.org/"
  9. SUPPORT_URL="http://www.debian.org/support/"
  10. BUG_REPORT_URL="http://bugs.debian.org/"
Copy code


And output of lsusb:

  1. Bus 002 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
  2. Bus 003 Device 002: ID 05e3:0718 Genesys Logic, Inc. IDE/SATA Adapter
  3. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  4. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  5. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  6. Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Copy code


And output of command modprobe 8188eu
  1. ERROR: could not insert '8188eu': Exec format error
Copy code


Downloaded hopefully correct drivers:
  1. # git clone https://github.com/lwfinger/rtl8188eu
Copy code


Since I am beginner with Orange, help from you fellows would be more than welcome to get wifi working. I have already installed wifi-tools and sunxi-tools for manipulating configuration files.

How to install kernel-headers for my system?

Thank you
-miha

Published in 2015-12-14 22:27:28 | Show all floors
Since lsusb output is missing the dongle at all: Are you sure you're using the right script.bin (or the right image? Are you using loboris' image or one from the manufaturer)?

0

threads

31

posts

109

credits

Registered member

Rank: 2

credits
109
Published in 2015-12-14 23:39:10 | Show all floors
Edited by miha at 2015-12-14 23:43

Hi,

I took files, if I recall correctly, from Google Drive

File name wasebian_wheezy_mini.img
script.bin.OPI-PLUS_1080p50 and uImage_OPI-PLUS. Is this answer to your question for me?

I also noticed that state-of-the-art editor VI was missing so I had to install it first (never used nano...)

Br
-miha


0

threads

31

posts

109

credits

Registered member

Rank: 2

credits
109
Published in 2015-12-15 00:04:21 | Show all floors
Edited by miha at 2015-12-15 00:23

Planning installation of linux headers, I have following available for installation:

  1. # apt-cache search linux-header
  2. linux-headers-3.2.0-4-all - All header files for Linux 3.2 (meta-package)
  3. linux-headers-3.2.0-4-all-armhf - All header files for Linux 3.2 (meta-package)
  4. linux-headers-3.2.0-4-common - Common header files for Linux 3.2.0-4
  5. linux-headers-3.2.0-4-mx5 - Header files for Linux 3.2.0-4-mx5
  6. linux-headers-3.2.0-4-omap - Header files for Linux 3.2.0-4-omap
  7. linux-headers-3.2.0-4-vexpress - Header files for Linux 3.2.0-4-vexpress
  8. linux-headers-2.6-mx5 - Header files for Linux mx5 configuration (dummy package)
  9. linux-headers-2.6-omap - Header files for Linux omap configuration (dummy package)
  10. linux-headers-mx5 - Header files for Linux mx5 configuration (meta-package)
  11. linux-headers-omap - Header files for Linux omap configuration (meta-package)
  12. linux-headers-vexpress - Header files for Linux vexpress configuration (meta-package)
  13. linux-headers-3.16.0-0.bpo.4-all - All header files for Linux 3.16 (meta-package)
  14. linux-headers-3.16.0-0.bpo.4-all-armhf - All header files for Linux 3.16 (meta-package)
  15. linux-headers-3.16.0-0.bpo.4-armmp - Header files for Linux 3.16.0-0.bpo.4-armmp
  16. linux-headers-3.16.0-0.bpo.4-armmp-lpae - Header files for Linux 3.16.0-0.bpo.4-armmp-lpae
  17. linux-headers-3.16.0-0.bpo.4-common - Common header files for Linux 3.16.0-0.bpo.4
  18. linux-headers-armmp - Header files for Linux armmp configuration (meta-package)
  19. linux-headers-armmp-lpae - Header files for Linux armmp-lpae configuration (meta-package)
Copy code


But again, my version is 3.4.39 #2 SMP PREEMPT Mon Oct 12 12:03:03 CEST 2015 armv7l GNU/Linux

I pulled from git:

  1. ~/git/OrangePI-Kernel# ls -la
  2. total 60
  3. drwxr-xr-x  8 root root 4096 Dec 14 14:00 .
  4. drwxr-xr-x  6 root root 4096 Dec 14 13:56 ..
  5. drwxr-xr-x  4 root root 4096 Dec 14 13:59 brandy
  6. drwxr-xr-x  4 root root 4096 Dec 14 13:59 build
  7. -rwxr-xr-x  1 root root 5775 Dec 14 13:59 build_linux_kernel.sh
  8. -rwxr-xr-x  1 root root 1406 Dec 14 13:59 build_mali_driver.sh
  9. -rwxr-xr-x  1 root root 5329 Dec 14 13:59 build_scripts.sh
  10. drwxr-xr-x  3 root root 4096 Dec 14 13:59 chips
  11. -rwxr-xr-x  1 root root  456 Dec 14 13:59 config_linux_kernel.sh
  12. drwxr-xr-x  8 root root 4096 Dec 14 14:00 .git
  13. drwxr-xr-x 26 root root 4096 Dec 14 16:07 linux-3.4
  14. drwxr-xr-x  3 root root 4096 Dec 14 14:00 pctools
  15. -rw-r--r--  1 root root 1180 Dec 14 13:59 README.md

  16. ~/git/OrangePI-Kernel# cd ..
  17. /root/git
  18. # mkdir OrangePI-Kernel.org
  19. # cp -pr OrangePI-Kernel/* OrangePI-Kernel.org/.
Copy code


There is also possibility that I'll start from square one again ie. flashing new image to sd-card but i would like to know which image is best for me, headless server running LAMP, preferably Debian-based distribution. And WIFI working

Br
-miha
Published in 2015-12-15 00:40:54 | Show all floors
miha replied at 2015-12-14 23:39
script.bin.OPI-PLUS_1080p50 and uImage_OPI-PLUS. Is this answer to your question for me?

If you don't want to start compiling your own kernel I would suggest using his update_kernel.sh script first:

https://github.com/loboris/Orang ... er/update_kernel.sh



0

threads

6

posts

289

credits

Intermediate member

Rank: 3Rank: 3

credits
289
Published in 2015-12-15 01:31:31 | Show all floors
In my OPI+ with Orange Jessie... i just do those

  1. delete the old /lib/modules/3.4.39 directory
  2. copy lib directory from the archive to the linux partition
  3. run: sudo depmod -a
  4. reboot
Copy code


after that i was able to enable the Wifi from terminal

  1. sudo nmcli -a d wifi connect
Copy code

0

threads

31

posts

109

credits

Registered member

Rank: 2

credits
109
Published in 2015-12-15 12:49:32 | Show all floors
Edited by miha at 2015-12-15 13:35

Hi,

Decided to try update_kernel.sh and after reboot & depmod -a wifi-adapter is available:

  1. $ sudo ifconfig -a | grep -A 15 wlan0
  2. wlan0     Link encap:Ethernet  HWaddr 58:63:56:c8:eb:2c  
  3.           UP BROADCAST MULTICAST  MTU:1500  Metric:1
  4.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  5.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  6.           collisions:0 txqueuelen:1000
  7.           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

  8. wlan1     Link encap:Ethernet  HWaddr 5a:63:56:c8:eb:2c  
  9.           UP BROADCAST MULTICAST  MTU:1500  Metric:1
  10.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  11.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  12.           collisions:0 txqueuelen:1000
  13.           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
Copy code


For some reason there is two wlan-interfaces with same mac address.  Anyway this is good start to get wifi working, thanks bronco for your suggestion.
I looked also how kernel compilation goes nowadays ( I performed my last kernel compilation 15 years ago..) and that hasn't changed. Except there is lot more to choose for the kernel (or is this just golden memories how things was 15 years ago)

EDIT: Actually, HWaddresses does not match;
HWaddr 58:63:56:c8:eb:2c
HWaddr 5a:63:56:c8:eb:2c

Br
-miha

0

threads

31

posts

109

credits

Registered member

Rank: 2

credits
109
Published in 2015-12-15 14:42:39 | Show all floors
Edited by miha at 2015-12-15 14:44

Well... it's not that simple to get wifi working...
I have WPA2-PSK WLAN@home so I did following:


  1. # ip link show wlan0
  2. 7: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT qlen 1000
  3.     link/ether 58:63:56:c8:eb:2c brd ff:ff:ff:ff:ff:ff

  4. # iwlist wlan0 scan |grep mySSID
  5.                     ESSID:"mySSID"

  6. # wpa_passphrase <mySSID>
  7. # vi /etc/wpa_supplicant.conf

  8. ctrl_interface=/var/run/wpa_supplicant
  9. network={
  10.         ssid="mySSID"
  11.         psk=73b35a8ce20a19d9b736149d3be3fa48154631fgef0d1b132cdda72adb1fcce
  12.         key_mgmt=WPA-PSK
  13.         proto=RSN WPA
  14.         pairwise=CCMP TKIP
  15.         group=CCMP TKIP
  16. }
Copy code


An then try:

  1. #  wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf
  2. rfkill: Cannot open RFKILL control device
  3. ioctl[SIOCSIWAP]: Operation not permitted
  4. ioctl[SIOCSIWENCODEEXT]: Invalid argument
  5. ioctl[SIOCSIWENCODEEXT]: Invalid argument
  6. # whoami
  7. root
Copy code


And this is output of dmesg right after command wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf:

  1. [ 8406.811486] RTL871X: rtw_aes_decrypt(wlan0) no_gkey_bc_cnt:1, no_gkey_mc_cnt:0
  2. [ 8408.399109] RTL871X: sta recv deauth reason code(2) sta:00:1e:52:7a:a3:2a, ignore = 0
  3. [ 8408.410647] hw_var_set_bssid   reg=618
  4. [ 8411.230122] RTL871X: nolinked power save enter
  5. [ 8420.290221] ==> rtl8188e_iol_efuse_patch
  6. [ 8420.515175] RTL871X: nolinked power save leave
  7. [ 8420.516604] RTL871X: set bssid:00:1e:52:7a:a3:2a
  8. [ 8420.516666] RTL871X: set ssid [mySSID] fw_state=0x00000088
  9. [ 8420.516696] hw_var_set_bssid   reg=618
  10. [ 8420.532249] RTL871X: start auth
  11. [ 8420.535103] RTL871X: auth success, start assoc
  12. [ 8420.538491] RTL871X: assoc success
  13. [ 8420.550522] RsvdPageNum: 8
  14. [ 8420.942993] RTL871X: rtw_aes_decrypt(wlan0) no_gkey_bc_cnt:2, no_gkey_mc_cnt:0
  15. [ 8423.168493] hw_var_set_bssid   reg=618
  16. [ 8423.174154] RTL871X: set bssid:00:1e:52:7a:a3:2a
  17. [ 8423.174352] RTL871X: set ssid [mySSID] fw_state=0x00000088
  18. [ 8423.174372] hw_var_set_bssid   reg=618
  19. [ 8423.179193] RTL871X: set bssid:00:1e:52:7a:a3:2a
  20. [ 8423.179356] RTL871X: set ssid [mySSID] fw_state=0x00000088
  21. [ 8423.179730] RTL871X: set bssid:00:1e:52:7a:a3:2a
  22. [ 8423.179774] RTL871X: set ssid [mySSID] fw_state=0x00000088
  23. [ 8423.194871] RTL871X: start auth
  24. [ 8423.196581] RTL871X: auth success, start assoc
  25. [ 8423.199384] hw_var_set_bssid   reg=618
  26. [ 8424.541721] RTL871X: set bssid:00:00:00:00:00:00
  27. [ 8426.020118] RTL871X: nolinked power save enter
  28. [ 8426.900449] ==> rtl8188e_iol_efuse_patch
  29. [ 8427.158739] RTL871X: nolinked power save leave
  30. [ 8428.470108] RTL871X: nolinked power save enter
Copy code


Br
-miha

0

threads

31

posts

109

credits

Registered member

Rank: 2

credits
109
Published in 2015-12-15 14:54:05 | Show all floors
Edited by miha at 2015-12-15 15:09

More debug

  1. #  wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf -dd
  2. wpa_supplicant v1.0
  3. random: Trying to read entropy from /dev/random
  4. Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
  5. Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
  6. Reading configuration file '/etc/wpa_supplicant.conf'
  7. ctrl_interface='/var/run/wpa_supplicant'
  8. Line: 4 - start of a new network block
  9. ssid - hexdump_ascii(len=4):
  10.      6d 79 53 53 49 44                                       mySSID            
  11. PSK - hexdump(len=32): [REMOVED]
  12. key_mgmt: 0x2
  13. proto: 0x3
  14. pairwise: 0x18
  15. group: 0x18
  16. Priority group 0
  17.    id=0 ssid='mySSID'
  18. WEXT: cfg80211-based driver detected
  19. wext: interface wlan0 phy: phy0
  20. rfkill: Cannot open RFKILL control device
  21. WEXT: RFKILL status not available
  22. SIOCGIWRANGE: WE(compiled)=22 WE(source)=16 enc_capa=0xf
  23.   capabilities: key_mgmt 0xf enc 0xf flags 0x0
  24. ioctl[SIOCSIWAP]: Operation not permitted
  25. WEXT: Failed to clear BSSID selection on disconnect
  26. netlink: Operstate: linkmode=1, operstate=5
  27. wlan0: Own MAC address: 58:63:56:c8:eb:2c
  28. wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
  29. wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
  30. wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
  31. wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
  32. wpa_driver_wext_set_key: alg=0 key_idx=4 set_tx=0 seq_len=0 key_len=0
  33. ioctl[SIOCSIWENCODEEXT]: Invalid argument
  34. Driver did not support SIOCSIWENCODEEXT
  35. wpa_driver_wext_set_key: alg=0 key_idx=5 set_tx=0 seq_len=0 key_len=0
  36. ioctl[SIOCSIWENCODEEXT]: Invalid argument
  37. Driver did not support SIOCSIWENCODEEXT
  38. wpa_driver_wext_set_countermeasures
  39. wlan0: RSN: flushing PMKID list in the driver
  40. wlan0: Setting scan request: 0 sec 100000 usec
  41. WPS: Set UUID for interface wlan0
  42. WPS: UUID based on MAC address - hexdump(len=16): f9 1c de 3d a5 4f 5c 8b 96 62 48 c4 8a bb 5a 2e
  43. EAPOL: SUPP_PAE entering state DISCONNECTED
  44. EAPOL: Supplicant port status: Unauthorized
  45. EAPOL: KEY_RX entering state NO_KEY_RECEIVE
  46. EAPOL: SUPP_BE entering state INITIALIZE
  47. EAP: EAP entering state DISABLED
  48. EAPOL: Supplicant port status: Unauthorized
  49. EAPOL: Supplicant port status: Unauthorized
  50. Using existing control interface directory.
  51. wlan0: Added interface wlan0
  52. Daemonize..

  53. # ifconfig |tail -8
  54. wlan0     Link encap:Ethernet  HWaddr 58:63:56:c8:eb:2c  
  55.           inet6 addr: fe80::5a63:56ff:fec8:eb2c/64 Scope:Link
  56.           UP BROADCAST MULTICAST  MTU:1500  Metric:1
  57.           RX packets:4 errors:0 dropped:85 overruns:0 frame:0
  58.           TX packets:0 errors:0 dropped:30 overruns:0 carrier:0
  59.           collisions:0 txqueuelen:1000
  60.           RX bytes:46505 (45.4 KiB)  TX bytes:0 (0.0 B)

  61. # lshw -class network
  62.   *-network:0 DISABLED   
  63.        description: Wireless interface
  64.        physical id: 2
  65.        logical name: wlan1
  66.        serial: 5a:63:56:c8:eb:2c
  67.        capabilities: ethernet physical wireless
  68.        configuration: broadcast=yes driver=rtl8189es driverversion=3.4.39-01-lobo firmware=N/A link=no multicast=yes wireless=unassociated
  69.   *-network:1
  70.        description: Wireless interface
  71.        physical id: 3
  72.        logical name: wlan0
  73.        serial: 58:63:56:c8:eb:2c
  74.        capabilities: ethernet physical wireless
  75.        configuration: broadcast=yes driver=rtl8189es driverversion=3.4.39-01-lobo firmware=N/A link=no multicast=yes wireless=unassociated
  76.   *-network:2
  77.        description: Ethernet interface
  78.        physical id: 4
  79.        logical name: eth0
  80.        serial: b2:56:88:8a:eb:bd
  81.        size: 100Mbit/s
  82.        capacity: 1Gbit/s
  83.        capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
  84.        configuration: autonegotiation=on broadcast=yes driver=sunxi_geth driverversion=SUNXI Gbgit driver V1.1 duplex=full ip=192.168.255.15 link=yes multicast=yes port=MII speed=100Mbit/s
  85. # lsmod
  86. Module                  Size  Used by
  87. 8189es                901572  0
  88. #
Copy code


Can you advice what to do/try next? Thanks.
Br
-miha
[/code]
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list