Jump to content

BPi Pro | WiFi seems active, but fails.


Fourdee

Recommended Posts

Hi all,

 

Creating a DietPi image for BPi Pro based on ARMbian. I finally got a chance to test do_expand_rootfs() from /etc/init.d/firstrun. Now works with multiple partitions, thanks for doing that :)

 

Having an issue with the onboard WiFi on the BPi Pro (Lemaker). It appears to be enable, active and ready for use, however, I can not get it to scan/connect to a SSID, or even work in AP mode.

 

Built the image using your excellent build tools:

[ o.k. ] Building [ Armbian 5.17 Bananapipro Debian jessie default ]
root@DietPi:~# iwlist wlan0 scan
wlan0     No scan results

Fails to set country code. Always returns 00.

 

 

root@DietPi:~# iw reg set GB
root@DietPi:~# iw reg get
country 00: DFS-UNSET
        (2402 - 2472 @ 40), (6, 20), (N/A)
        (2457 - 2482 @ 40), (6, 20), (N/A), NO-IR
        (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, NO-IR
        (5170 - 5250 @ 40), (6, 20), (N/A), NO-IR
        (5735 - 5835 @ 40), (6, 20), (N/A), NO-IR
root@DietPi:~# uname -a
Linux DietPi 3.4.112-sun7i #1 SMP PREEMPT Mon Jul 11 11:51:44 BST 2016 armv7l GNU/Linux
root@DietPi:~# lsmod
Module                  Size  Used by
ap6211                624694  0
brcmfmac               96753  0
brcmutil                4804  1 brcmfmac
spidev                  6366  0
a20_tp                  3333  0
8021q                  18601  0
garp                    6068  1 8021q
stp                     2028  1 garp
llc                     5357  2 stp,garp
sunxi_ir                4013  0

 

 

Is cfg80211 built into kernel?

 

 

root@DietPi:~# modprobe cfg80211
root@DietPi:~# lsmod
Module                  Size  Used by
spidev                  6366  0
ap6211                624694  0
a20_tp                  3333  0
8021q                  18601  0
garp                    6068  1 8021q
stp                     2028  1 garp
llc                     5357  2 stp,garp
sunxi_ir                4013  0

root@DietPi:~# dmesg | grep ap6211
[  451.514454] [ap6211] --->The Drive has been modified for BananaPro by LeMaker team<---
[  451.517353] [ap6211] select wifi ap6211
[  451.520712] [ap6211] Initializing ap6211.
[  451.525891] [ap6211] Succeed to set the gpio ap6211_wl_vdd_en to 0
[  451.531355] [ap6211] Succeed to set the gpio ap6211_wl_regon to 1
[  451.734606] [ap6211] WLAN placed in POWER ON
[  451.926840] [ap6211] Linux Kernel SDIO/MMC Driver
[  451.943795] [ap6211] Broadcom Dongle Host Driver: register interface [wlan0] MAC: 00:90:4c:11:22:33
[  451.950442] [ap6211] Succeed to set the gpio ap6211_wl_regon to 0
[  452.030664] ap6210: exports duplicate symbol bcmsdh_probe (owned by ap6211)
[  452.040690] ap6210: exports duplicate symbol bcmsdh_probe (owned by ap6211)
[  452.181233] [ap6211] WLAN placed in RESET
[  504.259810] [ap6211] Dongle Host Driver, version 1.28.23.3 (r).
[  504.266857] [ap6211] Compiled in drivers/net/wireless/ap6211 on Jul 11 2016 at 11:49:23.
[  504.271955] [ap6211] Succeed to set the gpio ap6211_wl_regon to 1
[  504.475418] [ap6211] WLAN going back to live
[  504.704716] [ap6211] dhd_bus_devreset: WLAN ON
[  504.710694] [ap6211] Final fw_path=/lib/firmware/ap6210/fw_bcm40181a2.bin
[  504.716351] [ap6211] Final nv_path=/lib/firmware/ap6210/nvram_ap6210.txt
[  504.722860] [ap6211] download firmware /lib/firmware/ap6210/fw_bcm40181a2.bin
[  504.995352] [ap6211] Dongle ready, protocol version 4
[  505.000034] [ap6211] Dongle ready, protocol version 4
[  505.010310] [ap6211] Firmware up: op_mode=0x0001, Broadcom Dongle Host Driver mac=e0:76:d0:03:54:f4
[  505.027629] [ap6211] Firmware version = wl0: Apr 22 2013 14:50:00 version 5.90.195.89.6 FWID 01-b30a427d
[  505.030627] [ap6211] Chip: a962 Rev 1 Pkg 9
[  512.519653] [ap6211]  Escan set error (-16)
[  512.521861] [ap6211] error (-16)
[  512.525283] [ap6211] Scan err = (-16), busy?-16
[  512.527963] [ap6211] scan error (-16)
[  581.110543] [ap6211] scan is not ready

root@DietPi:~# ifconfig -a
bond0     Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MASTER MULTICAST  MTU:1500  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 

eth0      Link encap:Ethernet  HWaddr 02:8e:02:c2:64:56
          inet addr:192.168.0.133  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::8e:2ff:fec2:6456/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:821 errors:0 dropped:0 overruns:0 frame:0
          TX packets:586 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:80449 (78.5 KiB)  TX bytes:85245 (83.2 KiB)
          Interrupt:117

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:136 errors:0 dropped:0 overruns:0 frame:0
          TX packets:136 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:11472 (11.2 KiB)  TX bytes:11472 (11.2 KiB)

tunl0     Link encap:IPIP Tunnel  HWaddr
          NOARP  MTU:1480  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 

wlan0     Link encap:Ethernet  HWaddr e0:76:d0:03:54:f4
          inet6 addr: fe80::e276:d0ff:fe03:54f4/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0   TX bytes:3260 (3.1 KiB) 

 

 

/etc/network/interfaces:

 

 

# Local
auto lo
iface lo inet loopback

# Ethernet
allow-hotplug eth0
iface eth0 inet dhcp
metric 0
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
#dns-nameservers 8.8.8.8 8.8.4.4

# Wifi
allow-hotplug wlan0
iface wlan0 inet dhcp
metric 1
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
wireless-essid FuzonWifi
wireless-key xxxxxxxxxxxxxxxxxxxxxxxx
wireless-mode Managed
wireless-power off
wpa-ssid FuzonWifi
wpa-psk xxxxxxxxxxxxxxxxxxxxxxxx
#dns-nameservers 8.8.8.8 8.8.4.4

 

 

Any help would be greatly appreciated!

Link to comment
Share on other sites

We could have mixed up something around firmware on recent firmware rework - AFAIK the rest is unchanged for a while. 

 

I am unable to check / out of office.

Link to comment
Share on other sites

We could have mixed up something around firmware on recent firmware rework - AFAIK the rest is unchanged for a while. 

 

I am unable to check / out of office.

 

Thanks Igor.

 

When you get back into office :)  , please let me know if you need any additional info, and, if there are any tests I can run to help debug.

Link to comment
Share on other sites

Ok, tried using ap6210 instead of ap6211 as per: http://wiki.lemaker.org/BananaPro/Pi:WiFi_configuration

 

 

root@DietPi:~# modprobe -v ap6210
insmod /lib/modules/3.4.112-sun7i/kernel/drivers/net/wireless/ap6210/ap6210.ko
modprobe: ERROR: could not insert 'ap6210': Operation not permitted

root@DietPi:~# dmesg | grep ap6210
[  418.331180] [ap6210] bluetooth is disable in script.fex.
[  418.336457] [ap6210] [dhd_module_init] get wl_host_wake gpio failed

 

 

 

 

I also tried loading the following (gpio) additional modules, as per this link: https://github.com/armStrapTools/ap6210/issues/2#issuecomment-46096001. However, the modules appear to be built into kernel.

 

 

root@DietPi:~# modprobe gpio_sunxi
root@DietPi:~# modprobe pwm_sunxi
root@DietPi:~# modprobe sunxi_gmac
root@DietPi:~# modprobe disp
root@DietPi:~# modprobe sunxi_cedar_mod
root@DietPi:~# lsmod
Module                  Size  Used by
spidev                  6366  0
a20_tp                  3333  0
8021q                  18601  0
garp                    6068  1 8021q
stp                     2028  1 garp
llc                     5357  2 stp,garp
sunxi_ir                4013  0
sg                     23859  0

 

 

 

Managed to get the ap6210 module loaded by install this package: http://forum.armbian.com/index.php/topic/340-banana-pi-pro-m1plus-no-wifi-armbian-45/#entry2138

 

 

root@DietPi:~# lsmod
Module                  Size  Used by
wifi_gpio               6375  0
spidev                  6366  0
ap6210                624553  0
a20_tp                  3365  0
8021q                  18593  0
garp                    6072  1 8021q
stp                     2032  1 garp
llc                     5365  2 stp,garp
sunxi_ir                4037  0
sg                     23805  0

Still fails to scan:

root@DietPi:~# iwlist wlan0 scan
wlan0     No scan results

root@DietPi:~# dmesg | grep ap6210
[    6.389476] [ap6210] --->The Drive has been modified for BananaPro by LeMaker team<---
[    6.392512] [ap6210] select wifi ap6210
[    6.395927] [ap6210] Initializing ap6210.
[    6.401154] [ap6210] Succeed to set the gpio ap6210_wl_vdd_en to 0
[    6.406634] [ap6210] Succeed to set the gpio ap6210_wl_regon to 1
[    6.821078] [ap6210] WLAN placed in POWER ON
[    6.969660] [ap6210] Linux Kernel SDIO/MMC Driver
[    7.002693] [ap6210] Broadcom Dongle Host Driver: register interface [wlan0] MAC: 00:90:4c:11:22:33
[    7.008050] [ap6210] Succeed to set the gpio ap6210_wl_regon to 0
[    7.402288] [ap6210] WLAN placed in RESET
[    8.297867] bcmdhd: exports duplicate symbol bcmsdh_probe (owned by ap6210)
[    8.321743] bcmdhd: exports duplicate symbol bcmsdh_probe (owned by ap6210)
[    8.360219] bcm4330: exports duplicate symbol bcmsdh_probe (owned by ap6210)
[    8.370828] bcm4330: exports duplicate symbol bcmsdh_probe (owned by ap6210)
[   76.841378] [ap6210] Dongle Host Driver, version 1.28.23.3 (r).
[   76.848483] [ap6210] Compiled in drivers/net/wireless/ap6210 on Sep 30 2015 at 14:15:34.
[   76.853556] [ap6210] Succeed to set the gpio ap6210_wl_regon to 1
[   77.030559] [ap6210] WLAN going back to live
[   77.264234] [ap6210] dhd_bus_devreset: WLAN ON
[   77.270228] [ap6210] Final fw_path=/lib/firmware/ap6210/fw_bcm40181a2.bin
[   77.275901] [ap6210] Final nv_path=/lib/firmware/ap6210/nvram_ap6210.txt
[   77.282410] [ap6210] download firmware /lib/firmware/ap6210/fw_bcm40181a2.bin
[   77.553626] [ap6210] Dongle ready, protocol version 4
[   77.558314] [ap6210] Dongle ready, protocol version 4
[   77.568628] [ap6210] Firmware up: op_mode=0x0001, Broadcom Dongle Host Driver mac=e0:76:d0:03:54:f4
[   77.586143] [ap6210] Firmware version = wl0: Apr 22 2013 14:50:00 version 5.90.195.89.6 FWID 01-b30a427d
[   77.589137] [ap6210] Chip: a962 Rev 1 Pkg 9
[   78.900382] [ap6210] scan is not ready

 

 

 

 

 

apt-get remove linux-firmware-image-sun7i && apt-get install linux-firmware-image-banana

 

 

root@DietPi:~# lsmod
Module                  Size  Used by
wifi_gpio               6375  0
spidev                  6366  0
ap6210                624553  0
a20_tp                  3365  0
8021q                  18593  0
garp                    6072  1 8021q
stp                     2032  1 garp
llc                     5365  2 stp,garp
sunxi_ir                4037  0
sg                     23805  0


root@DietPi:~# iwlist wlan0 scan
wlan0     No scan results

root@DietPi:~# dmesg | grep ap6210
....................
[  139.984454] [ap6210] Firmware up: op_mode=0x0001, Broadcom Dongle Host Driver mac=e0:76:d0:03:54:f4
[  140.002005] [ap6210] Firmware version = wl0: Apr 22 2013 14:50:00 version 5.90.195.89.6 FWID 01-b30a427d
[  140.005006] [ap6210] Chip: a962 Rev 1 Pkg 9
[  141.317466] [ap6210] scan is not ready

root@DietPi:~# modprobe -rf ap6210
root@DietPi:~# modprobe ap6211
modprobe: FATAL: Module ap6211 not found.
 

 

Not sure what else to try. I'll write Armbian_5.14_Bananapipro_Debian_jessie_3.4.112 and test.

Link to comment
Share on other sites

Same results with Armbian_5.14_Bananapipro_Debian_jessie_3.4.112:

 

 

 

 

root@bananapipro:~# modprobe ap6210
modprobe: ERROR: could not insert 'ap6210': No such device

root@bananapipro:~# modprobe ap6211
root@bananapipro:~# iwlist wlan0 scan
wlan0     No scan results

root@bananapipro:~# dmesg | grep ap6211
[  115.824928] [ap6211] --->The Drive has been modified for BananaPro by LeMaker team<---
[  115.827897] [ap6211] select wifi ap6211
[  115.831592] [ap6211] Initializing ap6211.
[  115.836902] [ap6211] Succeed to set the gpio ap6211_wl_vdd_en to 0
[  115.842218] [ap6211] Succeed to set the gpio ap6211_wl_regon to 1
[  116.046074] [ap6211] WLAN placed in POWER ON
[  116.240488] [ap6211] Linux Kernel SDIO/MMC Driver
[  116.268157] [ap6211] Broadcom Dongle Host Driver: register interface [wlan0] MAC: 00:90:4c:11:22:33
[  116.274576] [ap6211] Succeed to set the gpio ap6211_wl_regon to 0
[  116.316005] ap6210: exports duplicate symbol bcmsdh_probe (owned by ap6211)
[  116.329771] ap6210: exports duplicate symbol bcmsdh_probe (owned by ap6211)
[  116.491371] [ap6211] WLAN placed in RESET
[  148.460828] [ap6211] Dongle Host Driver, version 1.28.23.3 (r).
[  148.467891] [ap6211] Compiled in drivers/net/wireless/ap6211 on Jun 22 2016 at 17:42:25.
[  148.473064] [ap6211] Succeed to set the gpio ap6211_wl_regon to 1
[  148.676814] [ap6211] WLAN going back to live
[  148.913189] [ap6211] dhd_bus_devreset: WLAN ON
[  148.919489] [ap6211] Final fw_path=/lib/firmware/ap6210/fw_bcm40181a2.bin
[  148.925146] [ap6211] Final nv_path=/lib/firmware/ap6210/nvram_ap6210.txt
[  148.931907] [ap6211] download firmware /lib/firmware/ap6210/fw_bcm40181a2.bin
[  149.203569] [ap6211] Dongle ready, protocol version 4
[  149.208259] [ap6211] Dongle ready, protocol version 4
[  149.218519] [ap6211] Firmware up: op_mode=0x0001, Broadcom Dongle Host Driver mac=e0:76:d0:03:54:f4
[  149.235841] [ap6211] Firmware version = wl0: Mar 10 2014 14:59:50 version 5.90.195.89.18 FWID 01-b13c09c7
[  149.238882] [ap6211] Chip: a962 Rev 1 Pkg 9
[  150.563168] [ap6211] scan is not ready

 

 

Is anyone with a BPi Pro able to write Armbian_5.14_Bananapipro_Debian_jessie_3.4.112 and confirm the results above?

Link to comment
Share on other sites

Tested with BPi Pro Raspbian official image and it works fine. Is this executing some sort of hacky workaround?

 

 

 

 

root@lemaker:~# modprobe -v ap6210
insmod /lib/modules/3.4.103/kernel/drivers/net/wireless/ap6210/ap6210.ko

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  206.932534] Internal error: Oops: 7 [#1] PREEMPT SMP ARM
Segmentation fault
root@lemaker:~#
Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  207.825032] Process modprobe (pid: 2524, stack limit = 0xee2dc2f0)

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  207.834511] Stack: (0xee2dde10 to 0xee2de000)

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  207.845987] de00:                                     bf0f7be0 bf38fd                                                                 84 c034f6c0 00000000

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  207.861282] de20: f04fe000 c034f6e0 bf38fd84 00000000 c034f6c0 c034da                                                                 88 ef023860 ee528bb8

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  207.876575] de40: bf38fd84 c08ef540 ee4ff380 c034eacc bf384818 c02c51                                                                 84 ef023800 bf38fd84

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  207.891869] de60: bf38f870 c0914100 00000000 f04fe000 bf3ba000 c034fc                                                                 04 bf3978b8 bf38f870

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  207.907162] de80: c0914100 00000000 f04fe000 bf3ba038 bf3978b8 ee2dc0                                                                 00 c0914100 00000000

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  207.922456] dea0: f04fe000 c00085b8 8040003f d07fbc60 80000013 bf3ba0                                                                 00 00000001 ee2dc000

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  207.937750] dec0: ee2dded4 c005b984 ef002180 ee2dc000 0000cbaf bf3978                                                                 b8 bf397900 00000001

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  207.953044] dee0: ee797480 f04fe000 bf3978b8 00000001 0000cbaf c007f5                                                                 8c bf3978c4 00007fff

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  207.968338] df00: 00000000 b6f55948 00000124 00000000 c007d1f0 b6f559                                                                 48 bf3979f4 bf3978c4

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  207.983632] df20: ee2dc000 f056a784 f04fe000 000b0f07 f0570428 f05701                                                                 90 f05a2358 00071df8

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  207.998925] df40: 00081fb8 bf3918e8 000003fe 0000003c 0000003d 000000                                                                 32 00000036 00000015

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  208.014218] df60: 00000000 bf375180 00000006 00000000 00000000 000000                                                                 00 00000000 c0815ffc

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  208.029512] df80: 08000071 00000000 00040000 b7751398 00000080 c000eb                                                                 04 ee2dc000 00000000

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  208.044806] dfa0: 00000000 c000e980 00000000 00040000 b6c8c000 000b0f                                                                 07 b6f55948 b6c8c000

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  208.060100] dfc0: 00000000 00040000 b7751398 00000080 b7751290 000b0f                                                                 07 b6f55948 00000000

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  208.075394] dfe0: 00000000 bebe491c b6f4cfb4 b6eb80d4 60000010 b6c8c0                                                                 00 00000000 00010074

Message from syslogd@lemaker at Jul 13 15:33:03 ...
 kernel:[  208.227399] Code: e5884188 13a00001 e8bd81f0 e8bd81f0 (e5100008)

 

 

dmesg

 

 

 

 

[  206.617273] [ap6210] --->The Drive has been modified for BananaPro by LeMaker team<---
[  206.620153] [ap6210] select wifi ap6210
[  206.640571] sysfs: cannot create duplicate filename '/devices/platform/ap6210_gpio_wifi.0'
[  206.642445] Modules linked in: ap6210(+) mali_drm drm mali ump [last unloaded: ap6210]
[  206.727144] [<c0350d1c>] (platform_device_add+0x100/0x1d4) from [<bf3ba388>] (ap6210_gpio_wifi_init+0x100/0x14c [ap6210])
[  206.737402] [<bf3ba388>] (ap6210_gpio_wifi_init+0x100/0x14c [ap6210]) from [<bf3ba038>] (dhd_module_init+0x38/0x288 [ap6210])
[  206.746156] [<bf3ba038>] (dhd_module_init+0x38/0x288 [ap6210]) from [<c00085b8>] (do_one_initcall+0x34/0x174)
[  206.793225] kobject_add_internal failed for ap6210_gpio_wifi.0 with -EEXIST, don't try to register things with the same name in the same directory.
[  206.795109] Modules linked in: ap6210(+) mali_drm drm mali ump [last unloaded: ap6210]
[  206.859961] [<c0350d1c>] (platform_device_add+0x100/0x1d4) from [<bf3ba388>] (ap6210_gpio_wifi_init+0x100/0x14c [ap6210])
[  206.870311] [<bf3ba388>] (ap6210_gpio_wifi_init+0x100/0x14c [ap6210]) from [<bf3ba038>] (dhd_module_init+0x38/0x288 [ap6210])
[  206.879083] [<bf3ba038>] (dhd_module_init+0x38/0x288 [ap6210]) from [<c00085b8>] (do_one_initcall+0x34/0x174)
[  206.939673] Modules linked in: ap6210(+) mali_drm drm mali ump [last unloaded: ap6210]
[  208.159398] [<c034fc04>] (driver_register+0x78/0x12c) from [<bf3ba038>] (dhd_module_init+0x38/0x288 [ap6210])
[  208.178025] [<bf3ba038>] (dhd_module_init+0x38/0x288 [ap6210]) from [<c00085b8>] (do_one_initcall+0x34/0x174)


 

Link to comment
Share on other sites

Image built today from sources.

modprobe ap6211
dmesg | grep ap6211
[  102.814856] [ap6211] --->The Drive has been modified for BananaPro by LeMaker team<---
[  102.818131] [ap6211] select wifi ap6211
[  102.823217] [ap6211] Initializing ap6211.
[  102.828485] [ap6211] Succeed to set the gpio ap6211_wl_vdd_en to 0
[  102.833803] [ap6211] Succeed to set the gpio ap6211_wl_regon to 1
[  103.039964] [ap6211] WLAN placed in POWER ON
[  103.227529] [ap6211] Linux Kernel SDIO/MMC Driver
[  103.243971] [ap6211] Broadcom Dongle Host Driver: register interface [wlan0] MAC: 00:90:4c:11:22:33
[  103.249510] [ap6211] Succeed to set the gpio ap6211_wl_regon to 0
[  103.458339] [ap6211] WLAN placed in RESET
[  103.723750] ap6210: exports duplicate symbol bcmsdh_probe (owned by ap6211)
[  103.732250] ap6210: exports duplicate symbol bcmsdh_probe (owned by ap6211)
[  116.496845] [ap6211] Dongle Host Driver, version 1.28.23.3 (r).
[  116.503904] [ap6211] Compiled in drivers/net/wireless/ap6211 on Jul 28 2016 at 18:02:45.
[  116.509697] [ap6211] Succeed to set the gpio ap6211_wl_regon to 1
[  116.714965] [ap6211] WLAN going back to live
[  116.950881] [ap6211] dhd_bus_devreset: WLAN ON
[  116.957350] [ap6211] Final fw_path=/lib/firmware/ap6210/fw_bcm40181a2.bin
[  116.963026] [ap6211] Final nv_path=/lib/firmware/ap6210/nvram_ap6210.txt
[  116.970251] [ap6211] download firmware /lib/firmware/ap6210/fw_bcm40181a2.bin
[  117.235133] [ap6211] Dongle ready, protocol version 4
[  117.239816] [ap6211] Dongle ready, protocol version 4
[  117.249959] [ap6211] Firmware up: op_mode=0x0001, Broadcom Dongle Host Driver mac=98:3b:16:e9:6c:98
[  117.267178] [ap6211] Firmware version = wl0: Mar 10 2014 14:59:50 version 5.90.195.89.18 FWID 01-b13c09c7
[  117.270182] [ap6211] Chip: a962 Rev 1 Pkg 9

I configure wlan0 adapter in /etc/network/interfaces - SSID and password, then:

ifconfig wlan0 up
iwconfig wlan0

wlan0     IEEE 802.11  ESSID:""  
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Bit Rate:65 Mb/s   Tx-Power:32 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Power Managementmode:All packets received

Everything work's well. I also tried AP mode (modprobe ap6211 op_mode=2) and it works fine.

Link to comment
Share on other sites

Image built today from sources.

Everything work's well. I also tried AP mode (modprobe ap6211 op_mode=2) and it works fine.

 

Thanks Igor, i'll try it out.

 

Curious, will this get rolled out to the armbian repo, under one of these packages as a update?

linux-jessie-root-bananapipro linux-image-sun7i linux-headers-sun7i linux-firmware-image-sun7i linux-u-boot-bananapipro-default
Link to comment
Share on other sites

With small changes which were done recently and are not yet properly documented (sorry about that). It actually might have effect on this.

-

linux-firmware-image-sun7i

+

armbian-hostapd-jessie
armbian-tools-jessie
armbian-firmware

Files in repository are around 3 weeks old so no warranty that this is fixed but worth trying.

Link to comment
Share on other sites

With small changes which were done recently and are not yet properly documented (sorry about that). It actually might have effect on this.

-

linux-firmware-image-sun7i
+

armbian-hostapd-jessie
armbian-tools-jessie
armbian-firmware
Files in repository are around 3 weeks old so no warranty that this is fixed but worth trying.

 

 

Thanks Igor,

 

Seems these packages armbian-tools-jessie armbian-firmware are not available.

 

 

 

root@DietPi:~# apt-get install armbian-tools-jessie armbian-firmware
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package armbian-tools-jessie
E: Unable to locate package armbian-firmware
root@DietPi:~# cat /etc/apt/sources.list.d/armbian.list
deb http://apt.armbian.com jessie main
root@DietPi:~# apt-cache search armbian | grep '^armbian-'
armbian-hostapd - Patched hostapd
armbian-tools - Armbian tools, sunxi, temper

 

 

Installed armbian-tools armbian-hostapd , still no wifi:

 

 

 

wlan0     Interface doesn't support scanning.

 

 

 

 

I'll compile the image and report back.

Link to comment
Share on other sites

Fresh installation of Armbian_5.17_Bananapipro_Debian_jessie_3.4.112.img, built today.

 

Scan now works, but it wont connect.

Tried both DHCP (times out) and STATIC, with WiFi creds set in network interfaces:

root@bananapipro:~# iwconfig wlan0
wlan0     IEEE 802.11  ESSID:""
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
          Bit Rate:65 Mb/s   Tx-Power:32 dBm
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

wlan0     Link encap:Ethernet  HWaddr e0:76:d0:03:54:f4
          inet addr:192.168.0.188  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::e276:d0ff:fe03:54f4/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0   TX bytes:910 (910.0 
Same issues with setting country code, not saving changes.

 

 

root@bananapipro:~# iw reg set GB
root@bananapipro:~# iw reg get
country 00: DFS-UNSET
        (2402 - 2472 @ 40), (6, 20), (N/A)
        (2457 - 2482 @ 40), (6, 20), (N/A), NO-IR
        (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, NO-IR
        (5170 - 5250 @ 40), (6, 20), (N/A), NO-IR
        (5735 - 5835 @ 40), (6, 20), (N/A), NO-IR

 

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