Calaf Posted January 12, 2018 Posted January 12, 2018 Is there any way/hope to have bluetooth working on the OrangePi Win? Thanks!
Calaf Posted January 21, 2018 Author Posted January 21, 2018 dpeddi commit 238072cb55009480c5170a9952d5ee1e83a74473 fix bt on orangepiwin Wow, kudos to you! Thanks! Will test asap.
sadkhann Posted January 24, 2018 Posted January 24, 2018 I have the same problem how can I solve can u help me. When I push Bluetooth it says no adapter found.
Igor Posted January 24, 2018 Posted January 24, 2018 Two days ago a fix was submitted, but I haven't tested it yet. On self-made image it might just work. https://github.com/armbian/build/commit/c9dcb99b93cbd6373b6db1d3bbf90a5c256bd185
sadkhann Posted January 24, 2018 Posted January 24, 2018 2 hours ago, Igor said: Two days ago a fix was submitted, but I haven't tested it yet. On self-made image it might just work. https://github.com/armbian/build/commit/c9dcb99b93cbd6373b6db1d3bbf90a5c256bd185 I'm quite new in this linux systems. What can I do with this link? And if I must do anything how can I do to fix?
Igor Posted January 24, 2018 Posted January 24, 2018 14 minutes ago, sadkhann said: I'm quite new in this linux systems. What can I do with this link? And if I must do anything how can I do to fix? If you are new to this ... I replace images in download section (get Xenial desktop) - they have the same name - download them again. They have this fix implemented, but they are not tested.
sadkhann Posted January 24, 2018 Posted January 24, 2018 12 minutes ago, Igor said: If you are new to this ... I replace images in download section - they have the same name - download them again. They have this fix implemented, but they are not tested. Thank you very much I will try it :))
sadkhann Posted January 24, 2018 Posted January 24, 2018 3 hours ago, Igor said: If you are new to this ... I replace images in download section (get Xenial desktop) - they have the same name - download them again. They have this fix implemented, but they are not tested. I installed the system you said but it still doesnt work. The bluetooth symbol comes but when I want to add my keyboard it warns me "No adaptor found" . I tried nearly everything but I cant do.
Calaf Posted January 24, 2018 Author Posted January 24, 2018 It's a step forward, But it doesn't work yet. Actually, this is the same as with the Orangepi images: - rfkill lists bluetooth root@orangepiwin:~# rfkill list all 0: sunxi-bt: Bluetooth Soft blocked: no Hard blocked: no ... (I unblocked it, since it was initially blocked) but hcitool doesn't see the device. root@orangepiwin:~# hcitool dev Devices: Trying the usual sequence ends with a timeout (I also had to reimport the firmware file first) root@orangepiwin:~# echo "0" > /sys/class/rfkill/rfkill0/state root@orangepiwin:~# echo "1" > /sys/class/rfkill/rfkill0/state root@orangepiwin:~# echo " " > /dev/ttyS3 root@orangepiwin:~# hciattach /dev/ttyS3 bcm43xx 1500000 bcm43xx_init Initialization timed out. I'd like to help if I can. By the way, is it possible to build myself the 4.11 image, the version you first built had clan disabled, and this one has a legacy 3.10 kernel ? (the 4.14.y seems to have broken network, or is this fixed?) Thanks Calaf
Igor Posted January 24, 2018 Posted January 24, 2018 5 hours ago, sadkhann said: I installed the system you said but it still doesnt work. The bluetooth symbol comes but when I want to add my keyboard it warns me "No adaptor found" . I tried nearly everything but I cant do. This means BT is not up and operational. We just put this image out even few things are not fully operational since it can be used for most cases. BT will eventually be solved, but it's functioning is not our top priority. Unfortunately. This is the case on other boards as well. This comes usually when we have nothing else to do or somebody just provides a fix for it. I thought it was. 3 hours ago, Calaf said: By the way, is it possible to build myself the 4.11 image, the version you first built had clan disabled, and this one has a legacy 3.10 kernel ? (the 4.14.y seems to have broken network, or is this fixed?) 2 Unfortunately, 4.14 has for sure broken and afaik also up. The current image is probably the best whats out there for this board.
dpeddi Posted January 26, 2018 Posted January 26, 2018 (edited) Hi, What i did in my patch was to port the stuff shown by following video in a more armbian compliant way. http://www.youtube.com/watch?v=kH-1PC7chIU I've live applied changes on 10/01/2018 armbian and tested on my orangepi winplus (barcode dated 20170926) win ap6212A Please note that hciattach trick (a6212-patch) won't work for me as well, but worked brcm40183-patch. firstrun has been modded to enable the new helper, so a new install should get bluetooth by default. @Igor Just installed the new image - can't find changes to brcm40183-patch bring by https://github.com/armbian/build/commit/238072cb55009480c5170a9952d5ee1e83a74473 probably that is the issue... Edited January 26, 2018 by dpeddi
Igor Posted January 26, 2018 Posted January 26, 2018 (edited) 26 minutes ago, dpeddi said: Just installed the new image You mean self-made or the one from the download? I will look more into this. Edit: Problem found. Repository needs a small update. Edited January 26, 2018 by Igor
dpeddi Posted January 26, 2018 Posted January 26, 2018 the downloaded one... @Igor however I have another mistake... I forgot to add https://github.com/BPI-SINOVOIP/BPI-files/blob/master/others/brcm/lib/firmware/ap6212/bcm43438a1.hcd?raw=true after fixing the brcm40183-patch and copying again bcm43438a1.hcd bt started to work again.. I have no idea about why echo " " >/dev/ttyS1 won't activate the bt chip.
dpeddi Posted January 26, 2018 Posted January 26, 2018 25 minutes ago, Igor said: Edit: Problem found. Repository needs a small update. what do you mean with repository? github?
Igor Posted January 26, 2018 Posted January 26, 2018 22 minutes ago, dpeddi said: what do you mean with repository? github? Those scripts go to armbian-tools package, which is by default installed from apt.armbian.com. After this commit, it should work ... just trying out.
dpeddi Posted January 26, 2018 Posted January 26, 2018 @Igor about the firmware? should I fork and pull request or you could just add https://github.com/BPI-SINOVOIP/BPI-files/blob/master/others/brcm/lib/firmware/ap6212/bcm43438a1.hcd?raw=true ?
Igor Posted January 26, 2018 Posted January 26, 2018 Push it here: https://github.com/armbian/firmware/tree/master/ap6212 I just tested and hci device is up but it doesn't work Strange. Don't have more time today ...
dpeddi Posted January 27, 2018 Posted January 27, 2018 So at least bluetooth scan works for you and show near device?
Igor Posted January 27, 2018 Posted January 27, 2018 2 hours ago, dpeddi said: So at least bluetooth scan works for you and show near device? No, nothing. That's a problem.
Igor Posted January 27, 2018 Posted January 27, 2018 I tried now once again with brcm40183-patch ... and it works We don't need to change a method, just make it more resilient? hci0: Type: BR/EDR Bus: UART BD Address: 43:29:B1:55:01:01 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING PSCAN RX bytes:728 acl:0 sco:0 events:49 errors:0 TX bytes:4205 acl:0 sco:0 commands:49 errors:0 Scan also work.
dpeddi Posted January 27, 2018 Posted January 27, 2018 just a new pull request.. we can still use ap6212-bluetooth init script.... that's my dmesg with patched ap6212-bluetooth (https://github.com/armbian/build/pull/878/commits/02b98de61e16b12f65716f5303450264c8abbb3e) since this commit may bring regression to other board... give it a try ;-) 19.630792] libphy: 1c30000.eth-0:00 - Link is Up - 100/Full [ 19.630831] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 19.829358] Bluetooth: HCI UART driver ver 2.2 [ 19.829370] Bluetooth: HCI H4 protocol initialized [ 19.829374] Bluetooth: HCI BCSP protocol initialized [ 19.829378] Bluetooth: HCILL protocol initialized [ 19.829381] Bluetooth: HCIATH3K protocol initialized [ 19.829385] Bluetooth: HCI Three-wire UART (H5) protocol initialized [ 20.413018] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 20.413029] Bluetooth: BNEP filters: protocol multicast [ 20.413061] Bluetooth: BNEP socket layer initialized [ 26.259140] HDMI set ptbl: 4 4 0 96 5 5 2 1 5 0 0 0 114 110 40 208 30 1 1 [ 26.259499] HDMI set ptbl: 4 4 0 96 5 5 2 1 5 0 0 0 114 110 40 208 30 1 1 [ 26.291430] HDMI set ptbl: 4 4 0 96 5 5 2 1 5 0 0 0 114 110 40 208 30 1 1 [ 26.291792] HDMI set ptbl: 4 4 0 96 5 5 2 1 5 0 0 0 114 110 40 208 30 1 1 [ 26.309039] HDMI set ptbl: 4 4 0 96 5 5 2 1 5 0 0 0 114 110 40 208 30 1 1 [ 26.311321] HDMI set ptbl: 4 4 0 96 5 5 2 1 5 0 0 0 114 110 40 208 30 1 1 [ 26.922488] Bluetooth: RFCOMM TTY layer initialized [ 26.922543] Bluetooth: RFCOMM socket layer initialized [ 26.922548] Bluetooth: RFCOMM ver 1.11 [ 31.780860] sunxi-bt bt.28: block state already is 0 [ 34.068836] NET: Registered protocol family 38 [ 35.883778] input: MiMouse as /devices/virtual/misc/uhid/input5 [ 35.884534] hid-generic 0005:2717:0040.0001: input,hidraw0: BLUETOOTH HID v0.23 Mouse [MiMouse] on 43:29:B1:55:01:01
Calaf Posted January 30, 2018 Author Posted January 30, 2018 Yes it works for me now with the legacy kernel. Thanks for your help.
sadkhann Posted February 11, 2018 Posted February 11, 2018 On 29.01.2018 at 4:27 PM, dpeddi said: Does it work for you now? I cant do it. And I understand nothing to your solving types.
Igor Posted February 11, 2018 Posted February 11, 2018 3 hours ago, sadkhann said: I cant do it. And I understand nothing to your solving types. It can be very simple: download latest desktop image - it works there out of the box. If you are familiar with scripts and hackings, scrap the commit log and fix your current image.
sadkhann Posted February 11, 2018 Posted February 11, 2018 Just now, Igor said: It can be very simple: download latest desktop image - it works there out of the box. If you are familiar with scripts and hackings, scrap the commit log and fix your current image. I dont familier with scrips and hackings. I just wanna learn but I stuck in it. It really hard to solve, I think....
Igor Posted February 11, 2018 Posted February 11, 2018 Just now, sadkhann said: I just wanna learn but I stuck in it. It really hard to solve, I think.... Download image then. We barely can provide support hints, while one to one guidance and teaching is not possible.
sadkhann Posted February 11, 2018 Posted February 11, 2018 Just now, Igor said: Download image then. We barely can provide support hints, while one to one guidance and teaching is not possible. I downloaded and run lastest image.
Igor Posted February 11, 2018 Posted February 11, 2018 1 hour ago, sadkhann said: I downloaded and run lastest image. OK, I'll check.
Recommended Posts