pkfox Posted June 6, 2019 Posted June 6, 2019 l used armbian-config to activate Bluetooth but get this message when I check the status root@nanopim4:~# /etc/init.d/bluetooth status ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled) Active: inactive (dead) Condition: start condition failed at Thu 2019-06-06 07:17:58 BST; 11s ago └─ ConditionPathIsDirectory=/sys/class/bluetooth was not met Docs: man:bluetoothd(8) any ideas chaps ?
Igor Posted June 6, 2019 Posted June 6, 2019 On 6/6/2019 at 6:21 AM, pkfox said: l used armbian-config to activate Bluetooth Expand That only installs user land Bluetooth scripts and utilities. Low level driver must be present and it used to be for this board. I noticed few days ago that its not working any more. This means investigation has to be done. Without its hard to tell where is the problem.
pkfox Posted June 8, 2019 Author Posted June 8, 2019 On 6/6/2019 at 7:13 AM, Igor said: That only installs user land Bluetooth scripts and utilities. Low level driver must be present and it used to be for this board. I noticed few days ago that its not working any more. This means investigation has to be done. Without its hard to tell where is the problem. Expand Investigation by who ?
Igor Posted June 8, 2019 Posted June 8, 2019 On 6/8/2019 at 10:38 AM, pkfox said: Investigation by who ? Expand Armbian is free and support and R&D is 99% sponsored by Armbian contributors. We all already have 1000+ small tasks as such on the task list(s) and we deal with them whenever we find time. Each new task that is brought up can easily take several years before its resolved. If its not lost or resolved by someone else in the mean time. By anyone that is willing/happy with donating his time and understand how things are made?
pkfox Posted June 9, 2019 Author Posted June 9, 2019 On 6/8/2019 at 11:16 AM, Igor said: Armbian is free and support and R&D is 99% sponsored by Armbian contributors. We all already have 1000+ small tasks as such on the task list(s) and we deal with them whenever we find time. Each new task that is brought up can easily take several years before its resolved. If its not lost or resolved by someone else in the mean time. By anyone that is willing/happy with donating his time and understand how things are made? Expand Ok I thought you meant I needed to do more investigating
Igor Posted June 9, 2019 Posted June 9, 2019 On 6/9/2019 at 7:38 AM, pkfox said: Ok I thought you meant I needed to do more investigating Expand I am sure you will be able to solve this if you did. It's not that complex and there are many working examples. I just spent 2 hours to make BT work on Rockpi4. Spent your 2h for a start.
pkfox Posted June 9, 2019 Author Posted June 9, 2019 On 6/9/2019 at 7:52 AM, Igor said: I am sure you will be able to solve this if you did. It's not that complex and there are many working examples. I just spent 2 hours to make BT work on Rockpi4. Spent your 2h for a start. Expand Thanks for your vote of confidence but where do I start ?
Igor Posted June 9, 2019 Posted June 9, 2019 apt install bluez reboot and BT will work. If you have (build) latest image. The same would be installed via armbian-config ... which means you have some older build, where some things might be missing.
pkfox Posted June 9, 2019 Author Posted June 9, 2019 On 6/9/2019 at 11:47 AM, Igor said: apt install bluez reboot and BT will work. If you have (build) latest image. The same would be installed via armbian-config ... which means you have some older build, where some things might be missing. Expand I actually downloaded the code and built it and I think it's working but I haven't connected anything yet root@nanopim4:~# service bluetooth status ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2019-06-09 12:47:02 BST; 43min ago Docs: man:bluetoothd(8) Main PID: 4299 (bluetoothd) Status: "Running" Tasks: 1 (limit: 4915) CGroup: /system.slice/bluetooth.service └─4299 /usr/libexec/bluetooth/bluetoothd --experimental Jun 09 12:47:02 nanopim4 systemd[1]: Starting Bluetooth service... Jun 09 12:47:02 nanopim4 bluetoothd[4299]: Bluetooth daemon 5.50 Jun 09 12:47:02 nanopim4 bluetoothd[4299]: Starting SDP server Jun 09 12:47:02 nanopim4 bluetoothd[4299]: kernel lacks bnep-protocol support Jun 09 12:47:02 nanopim4 bluetoothd[4299]: System does not support network plugin Jun 09 12:47:02 nanopim4 bluetoothd[4299]: Bluetooth management interface 1.10 initialized Jun 09 12:47:02 nanopim4 systemd[1]: Started Bluetooth service.
Igor Posted June 9, 2019 Posted June 9, 2019 On 6/9/2019 at 12:32 PM, pkfox said: I actually downloaded the code and built it and I think it's working but I haven't connected anything yet Expand It is but it looks this method is not very stable. Another one is already in the works. Need to do more tests ...
pkfox Posted June 9, 2019 Author Posted June 9, 2019 On 6/9/2019 at 1:50 PM, Igor said: It is but it looks this method is not very stable. Another one is already in the works. Need to do more tests ... Expand So you think I have it working ?
Igor Posted June 9, 2019 Posted June 9, 2019 Yes, if you have a device up: hcitool dev I have a better solution anyway and it (seems to) work, but need to do more tests.
pkfox Posted June 9, 2019 Author Posted June 9, 2019 On 6/9/2019 at 2:00 PM, Igor said: Yes, if you have a device up: hcitool dev I have a better solution anyway and it (seems to) work, but need to do more tests. Expand This is what I get root@nanopim4:~# hcitool dev Devices: hci0 00:1A:7D:DA:71:13
Igor Posted June 9, 2019 Posted June 9, 2019 That's a good sign. After this commit, things works as expected. I could find and pair my mobile phone with Nanopi M4 without issues.
pkfox Posted June 10, 2019 Author Posted June 10, 2019 On 6/9/2019 at 3:19 PM, Igor said: That's a good sign. After this commit, things works as expected. I could find and pair my mobile phone with Nanopi M4 without issues. Expand Hi Igor, will the fix be in the nightly build yet ?
Igor Posted June 10, 2019 Posted June 10, 2019 On 6/10/2019 at 12:48 PM, pkfox said: Hi Igor, will the fix be in the nightly build yet ? Expand No, its part of the image and we only rebuild kernel packages for this board. You need to rebuild it or wait on next update which is not even due.
pkfox Posted June 10, 2019 Author Posted June 10, 2019 On 6/10/2019 at 12:58 PM, Igor said: No, its part of the image and we only rebuild kernel packages for this board. You need to rebuild it or wait on next update which is not even due. Expand Ok thanks is there a howto for building an image ?
Igor Posted June 10, 2019 Posted June 10, 2019 On 6/10/2019 at 2:21 PM, pkfox said: Ok thanks is there a howto for building an image ? Expand https://docs.armbian.com/Developer-Guide_Build-Preparation/
Recommended Posts