Author: FransM

WiFi module

[Copy link]

7

threads

100

posts

647

credits

Senior member

Rank: 4

credits
647
Published in 2015-1-25 22:37:09 | Show all floors
Edited by john0815 at 2015-1-25 22:38

I start with modified script.bin and see with lsusb:

root@bananapi ~ # lsusb
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 003 Device 002: ID 0bda:8179 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 05e3:0660 Genesys Logic, Inc. USB 2.0 Hub
Bus 001 Device 004: ID 0461:0010 Primax Electronics, Ltd HP Keyboard
Bus 001 Device 005: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
root@bananapi ~ #


with dmesg:

37.903939] usb 3-1: new high-speed USB device number 2 using sw-ehci
[   38.066162] usb 3-1: New USB device found, idVendor=0bda, idProduct=8179
[   38.079275] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   38.090127] usb 3-1: Product: 802.11n WLAN NIC
[   38.097836] usb 3-1: Manufacturer: Realtek
[   38.202771] sw_usb_enable_hcd: usbc_num = 1
[   38.360863] usbcore: registered new interface driver rtl8188eu
571.471952] ADDRCONF(NETDEV_UP): wlan0: link is not ready


with iwconfig I get:
root@bananapi ~ # iwconfig
lo        no wireless extensions.

tunl0     no wireless extensions.

wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retryff   RTS thrff   Fragment thrff
          Encryption keyff
          Power Managementff
          Link Quality=0/100  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.

When I enter ifconfig I get:

root@bananapi ~ # ifconfig
eth0      Link encap:Ethernet  Hardware Adresse 02:85:08:82:f6:3e  
          inet Adresse:10.0.0.1  Bcast:10.0.0.255  Maske:255.255.255.0
          inet6-Adresse: fe80::85:8ff:fe82:f63e/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:1873 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1434 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:1126877 (1.0 MiB)  TX bytes:327622 (319.9 KiB)
          Interrupt:117 Basisadresse:0xc000

lo        Link encapokale Schleife  
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metrik:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


If I enter:

ip link set wlan0 up

with ifconfig I get now:

root@bananapi ~ # ifconfig
eth0      Link encap:Ethernet  Hardware Adresse 02:85:08:82:f6:3e  
          inet Adresse:10.0.0.1  Bcast:10.0.0.255  Maske:255.255.255.0
          inet6-Adresse: fe80::85:8ff:fe82:f63e/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:2365 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1845 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:1381063 (1.3 MiB)  TX bytes:404934 (395.4 KiB)
          Interrupt:117 Basisadresse:0xc000

lo        Link encapokale Schleife  
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metrik:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  Hardware Adresse ac:a2:13:5a:f7:b2  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


with iwlist scan I get:
237 root@bananapi ~ # iwlist scan                                            
lo        Interface doesn't support scanning.

tunl0     Interface doesn't support scanning.

wlan0     Scan completed :
          Cell 01 - Address: 84:26:15:21:EB:96
                    ESSID:"A1-21eb91"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.437 GHz (Channel 6)
                    Encryption keyn
                    Bit Rates:144 Mb/s
                    Extra:wpa_ie=dd1c0050f20101000050f20202000050f2040050f20201000050f2020c00
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    Extra:rsn_ie=30180100000fac020200000fac04000fac020100000fac020c00
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    Quality=64/100  Signal level=-56 dBm  

eth0      Interface doesn't support scanning.


but Wicd Manager will not find a wireless Lan.

My question:
Has anyone a solution for a working conecting to wlan
and
How can I automatically do this.

thank you

5

threads

37

posts

136

credits

Registered member

Rank: 2

credits
136
Published in 2015-1-25 22:52:06 | Show all floors
Edited by Tankafaire at 2015-1-25 15:54

If you are with WPA pass, try to change /etc/network/interfaces like this:
  1. allow-hotplug wlan0
  2. auto wlan0
  3. iface wlan0 inet dhcp
  4. wpa-ssid "your_ssid"
  5. wpa-psk "your_keypass"
Copy code

I've edited with wlan0

5

threads

37

posts

136

credits

Registered member

Rank: 2

credits
136
Published in 2015-1-25 22:58:06 | Show all floors
And for an automatically connection, you can use a graphical app:
  1. sudo apt-get install wicd
Copy code

then you click on 'setting' and you set wlan0

1

threads

25

posts

212

credits

Intermediate member

Rank: 3Rank: 3

credits
212
Published in 2015-1-25 23:33:50 | Show all floors
Edited by ryba84 at 2015-1-25 23:37

Ok. All working on kernel builded from sources: https://github.com/dan-and/linux-sunxi. The gpio ports are on another location but it works. Now I'm trying to add hw acceleration for full working desktop. I'm using sources more linux-sunxi friendly, because I want my image to be more uniwersal.

5

threads

37

posts

136

credits

Registered member

Rank: 2

credits
136
Published in 2015-1-25 23:43:09 | Show all floors
This depo don't work with me, only this one: https://github.com/silentcreek/bananapi-kernel

Anyway, if you can write a tuto for the GPU it should be great!

1

threads

25

posts

212

credits

Intermediate member

Rank: 3Rank: 3

credits
212
Published in 2015-1-26 00:06:48 | Show all floors
Edited by ryba84 at 2015-1-26 01:32

I've working build system for debian packeges (I've used this on cubieboard before CPU dead). Theoretically I should have full working Debian Jessy tommorow

EDIT:
I don't know why banana pi patches aren't merged into linux-sunxi.

11

threads

59

posts

326

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
326
 Author| Published in 2015-1-26 02:43:59 | Show all floors
This did not work for me.
I could export gpio89, but I can't write a value to it.

[root@localhost gpio89]# echo "out" > direction                                                                                                                                             
bash: echo: write error: Unknown error 517

Value remains "in"
I tried out with and without quotes.
This is the 3.17.8  from Fedora core 21
You can also reach me on freenode irc, channel #orangepi username eFfeM

1

threads

25

posts

212

credits

Intermediate member

Rank: 3Rank: 3

credits
212
Published in 2015-1-26 02:47:20 | Show all floors
The 3.17 doesn't fully support our SOC. I've no clue where is the problem. For full support for Allwinner A20 You should use banana pi/linux-sunxi 3.4 kernel.

9

threads

634

posts

4427

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4427
Published in 2015-1-26 02:52:18 | Show all floors
I have found one dirty workaround which is little better. It's done inside fex so you bootup with Wireless.

  1. [leds_para]
  2. leds_used = 0
  3. leds_num = 1
  4. leds_pin_1 = port:PH22<1><default><default><0>
  5. leds_name_1 = "green:ph24:led1"
  6. leds_default_1 = 1
  7. leds_trigger_1 = "default-on"
Copy code

9

threads

634

posts

4427

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4427
Published in 2015-1-26 03:07:22 | Show all floors
Performance: Router = Tplink WDR 3600

Not bad at all.

[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-19.1 sec   512 KBytes   220 Kbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-17.1 sec   384 KBytes   184 Kbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-19.2 sec   512 KBytes   218 Kbits/sec


Driver version:


8188eu
v4.1.2_4787.20120803

It's in my kernel by default.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list