[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2018-03-16 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~kzapalowicz/snappy-hwe-snaps/+git/bluez/+merge/341516 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-09-20 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~kzapalowicz/snappy-hwe-snaps/+git/bluez/+merge/331039 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-08-03 Thread Jamie Strandboge
** Changed in: snappy Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 To manage notifi

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-05-09 Thread Oliver Grawert
well, the btattach tool would still have to be shipped and executed by bluez. how would the additional info added in the interface data get handed over to the btattach tool ? how would we execute it ? i admit it looks a lot better and bluez wouldn't have to define each and every board implement

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-05-09 Thread Konrad Zapałowicz
I like @morphis idea -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 To manage notifications about this bug go to: https:

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-05-08 Thread Simon Fels
Btw. you guys should see if the more modern btattach utility does the job instead of hciattach too. See http://manpages.ubuntu.com/manpages/xenial/man1/btattach.1.html for a few details. Sooner or later btattach will replace hciattach as the way to attach serial lines to the kernel bluetooth stack.

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-05-08 Thread Konrad Zapałowicz
@ogra A few questions to make sure that I understand: I have seen that you have added /dev/ttyAMA to the serial interface of snapd. Any other changes on this side such as discussed previously modifications to gadget snap? Now you are also suggesting a unit that would hciattach to the desired ser

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-05-08 Thread Oliver Grawert
here is a proof of concept script+systemd unit ... http://paste.ubuntu.com/24537569/ using this setup i have properly working BT after boot *if* the bluez snap is in --devmode my proposal forward would be to: - ship a similar script inside the bluez package - make it a daemon so we get a syst

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-05-06 Thread Oliver Grawert
with todays edge image the interface is available on the pi3 ... we now need a device specific hciattach systemd unit in the bluez snap (since that ships the hciattach binary, we cant ship this in the image) ogra@pi3:~$ snap interfaces|grep blue :bluetooth-control- pi3:pi-bluetooth

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-19 Thread Konrad Zapałowicz
@ogra going back to this after a while, what is the status - is it being included in the gadget snap? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-07 Thread Gustavo Niemeyer
Jamie's suggestion seems spot on for the time being. This is really something for the gadget to expose, and it should be made in an explicit way. It can be a regular expression as suggested because then you cannot assign a particular snap plug to a particular serial port anymore. The upcoming hot-

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-07 Thread Gustavo Niemeyer
Sorry, it CANNOT be a regular expression. I wish Launchpad allowed edits. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-07 Thread Oliver Grawert
also ... keep in mind that we will additionally need to ship a systemd unit caring for the hciattach call that will be equally specific and will likely live where the hciattach tool lives (in the bluez package), we can not ship this in the gadget without having the tool available. i think we need t

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-07 Thread Oliver Grawert
@korad, well, i would assume that 90% of the IoT boards we will support will have such a UART based setup, so i would lean towards having generic serial tty support in the BT rules without having to define it for each single board in the gadget... i.e. simply by adding rw support for /dev/tty[A-Z]*

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-06 Thread Konrad Zapałowicz
@jdstrand @ogra This depends on how the Bluetooth chip is wired on hardware level. If it is using UART like in this case it all further depends on how the UARTs are wired. It might be /dev/ttyAMA0 however it might also be /dev/ttyS0 or even /dev/bluetooth - whoever writes the driver has the luxury

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-06 Thread Jamie Strandboge
For the slot Permanent policy I think it is fine to allow the bluez interface access to /dev/ttyAMA0. ofono, ppp, et al are in similar situations. That said, if I understand this bug correctly, the most correct solution would seem to be for the pi gadget snap to declare the serial-port interface,

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-05 Thread Oliver Grawert
** Tags added: snapd-interface -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 To manage notifications about this bug go

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-05 Thread Oliver Grawert
@konrad: 5.44-1-dev from the edge channel works fine now as long as i use --devmode ... not using devmode gets me a denial: [ 48.909501] audit: type=1400 audit(1491387062.644:27): apparmor="DENIED" operation="open" profile="snap.bluez.hciattach" name="/dev/ttyAMA0" pid=1501 comm="hciattach" requ

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-04 Thread Nikolay
@ogra, yes, sure, I created report here - https://bugs.launchpad.net/snappy/+bug/1679747 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 running

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-04 Thread Konrad Zapałowicz
@ogra, changes pushed to snappy-hwe-snaps/+git/bluez -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 To manage notificati

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-04 Thread Konrad Zapałowicz
@ogra, yes I will include -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 To manage notifications about this bug go to: h

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-04 Thread Oliver Grawert
@Nikolay: this bug is about generally making BT work on the pi images by default, your problem is very specific, would you file a new bug for it instead (so we can close this one once the driver works at all) -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-04 Thread Nikolay
And I experiences quite similar issue, that I fill here - https://bugs.launchpad.net/snappy/+bug/1679432 RPi establish SCO connection with my headset and I can send SCO packets to it (with dragonboard I can not even send them), and actually here sound from headset. But I cannot read SCO packets fr

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-04 Thread Nikolay
oops, I forget the attachment that I promised. It's here.?field.comment=oops, I forget the attachment that I promised. It's here. ** Attachment added: "bluez.tar.xz" https://bugs.launchpad.net/snappy/+bug/1674509/+attachment/4854099/+files/bluez.tar.xz -- You received this bug notification b

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-04 Thread Nikolay
I did the same patch - modify firmware patch and speed initialization patch... and I got bluetooth working on RPi! I used my own app to test it - https://github.com/Nikolay-Kha/BluetoothAudio hcitool scan also works fine. bluetoothctl starts, but I cannot type anything there, don't know why. Pat

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-04 Thread Oliver Grawert
note: this is without any overlay dtb loaded, using the standard Ubuntu Core config.txt so we need the patched hciattach and a systemd unit that calls it like above to initialize the controller. @konrad: can you include: https://github.com/OpenELEC/OpenELEC.tv/blob/6b9e7aaba7b3f1e7b69c8deb1558ef

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-04 Thread Oliver Grawert
WHEEE ! ogra@pi3:~$ sudo mount --bind /home/ogra/hciattach /snap/bluez/current/usr/bin/hciattach ogra@pi3:~$ sudo hciattach /dev/ttyAMA0 bcm43xx 921600 noflow - bcm43xx_init Flash firmware /lib/firmware/BCM43430A1.hcd Set Controller UART speed to 921600 bit/s Device setup complete ogra@pi3:~$ sud

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-04 Thread Konrad Zapałowicz
@ogra [bluetooth]# scan on Failed to start discovery: org.bluez.Error.NotReady [bluetooth]# Try 'power on' before you 'scan on' -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-04 Thread Paolo Pisati
Can you try with hcitool? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 To manage notifications about this bug go to: h

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-03 Thread Oliver Grawert
using a patched hciattch (with the speed setting patch from above as well as a fixed FIRMWARE_DIR pointing to /lib/firmware): ogra@pi3:~$ sudo hciattach /dev/ttyAMA0 bcm43xx 921600 noflow - bcm43xx_init Flash firmware /lib/firmware/BCM43430A1.hcd Set Controller UART speed to 921600 bit/s Device se

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-03 Thread Oliver Grawert
the respective lines from dmesg: [ 32.367423] Bluetooth: Core ver 2.21 [ 32.367486] NET: Registered protocol family 31 [ 32.367491] Bluetooth: HCI device and connection manager initialized [ 32.367509] Bluetooth: HCI socket layer initialized [ 32.367521] Bluetooth: L2CAP socket layer ini

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-03 Thread Oliver Grawert
seems the /etc/firmware dir is actually hardcoded in https://git.launchpad.net/~snappy-hwe-team/snappy-hwe- snaps/+git/bluez/tree/tools/hciattach_bcm43xx.c?h=bluez/5.37 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.laun

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-03 Thread Oliver Grawert
ok, i got a little further, seems the bluez snap doesnt really have access to ttyAMA0 so i had to re-install it in --devmode ... now i get (still without the dtoverlay though, since this does not boot at all): ogra@pi3:~$ sudo hciattach /dev/ttyAMA0 bcm43xx 921600 noflow - bcm43xx_init Cannot open

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-03 Thread Oliver Grawert
now i see bluetooth in lsmod right after boot when not changing anything in config.txt ... but still no working BT: ogra@pi3:~$ sudo bluez.bluetoothctl [bluetooth]# agent on Agent registered [bluetooth]# default-agent Default agent request successful [bluetooth]# scan on No default controller

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-04-03 Thread Paolo Pisati
@ogra: done, and i kicked a new build of the rpi2 kernel snap. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 To manage

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-03-31 Thread Oliver Grawert
@paolo: bluez--firmware is in the PPA now, can you add it to the: PACKAGE := line for pi2 in the Makefile ? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth d

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-03-31 Thread Paolo Pisati
Makes sense to include the bluetooth firmware files in the kernel snap. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 T

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-03-31 Thread Oliver Grawert
@paolo: this is all ancient bluez 4 stuff i fear ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 To manage notificati

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-03-31 Thread Oliver Grawert
could we just ship the fw files in the pi2-kernel snap ? i'll happily push the deb to the image PPA where the kernel snap Makefile could pull it from ... iirc there is already some special casing for pi2 in the Makefile code that installs the raspberrypi-wireless-firmware deb from the PPA. --

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-03-31 Thread Paolo Pisati
Here is the bluez package i tested: https://archive.raspberrypi.org/debian/pool/main/b/bluez/bluez_5.23-2+rpi2_armhf.deb -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-03-31 Thread Paolo Pisati
The kernel is fine, i've tested it on a xenial image: -add to config.txt: dtoverlay=pi3-miniuart-bt core_freq=250 -grab raspberry's bluez and bluez-firmware packages: https://archive.raspberrypi.org/debian/pool/main/b/bluez-firmware/bluez- firmware_1.2-3+rpi1_all.deb and install both -reboot

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-03-31 Thread Paolo Pisati
** Changed in: linux-raspi2 (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-03-29 Thread Paolo Pisati
** Changed in: linux-raspi2 (Ubuntu) Assignee: (unassigned) => Paolo Pisati (p-pisati) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 runni

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-03-29 Thread Simon Fels
** Changed in: linux-raspi2 (Ubuntu) Status: New => Confirmed ** Changed in: snappy Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to fin

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-03-29 Thread Konrad Zapałowicz
@ogra thanks for following up -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1674509 Title: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 To manage notifications about this bug go t

[Bug 1674509] Re: Unable to find bluetooth device on RPi3 running Ubuntu Core 16

2017-03-28 Thread Oliver Grawert
so digging deeper there are dtoverlay=pi3-miniuart-bt and dtoverlay=pi3 -disable-bt overlays but no matter which combo of enable_uart, core_freq and either overlay i use, as soon as i enable them no boot is possible at all anymore. (note that we use other overlays successfully in teh default setup)