[CuBox i4Pro] get integrated bluetooth working

This forum is for supported devices using an ARMv7 Freescale SoC.

[CuBox i4Pro] get integrated bluetooth working

Postby akoy » Thu Aug 28, 2014 2:16 pm

Like in object: how can I get the bluetooth of CuBox i4Pro works.
Thanks!
Addamm Koy
akoy
 
Posts: 8
Joined: Thu Aug 07, 2014 8:08 pm
Location: in front of A

Re: [CuBox i4Pro] get integrated bluetooth working

Postby WarheadsSE » Thu Aug 28, 2014 2:18 pm

What?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [CuBox i4Pro] get integrated bluetooth working

Postby pepedog » Thu Aug 28, 2014 2:30 pm

I used to know this, but someone hacked package to work on wandboard too
It should be
$this->bbcode_second_pass_code('', 'pacman -S linux-firmware firmware-brcm43xx bluez-utils
reboot or modprobe brcmfmac
systemctl start brcm43xx
hciconfig -a')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [CuBox i4Pro] get integrated bluetooth working

Postby akoy » Thu Aug 28, 2014 2:45 pm

Great pepedog!!! One more question: why do I need to enable the service after every (re)boot?
$this->bbcode_second_pass_code('', 'systemctl enable brcm43xx
Created symlink from /etc/systemd/system/bluetooth.target.wants/brcm43xx.service to /usr/lib/systemd/system/brcm43xx.service.

--REBOOT--

[root@cubox-nas ~]# systemctl status brcm43xx
brcm43xx-firmware.service brcm43xx.service
[root@cubox-nas ~]# systemctl status brcm43xx
* brcm43xx.service - Broadcom 43xx bluetooth HCI
Loaded: loaded (/usr/lib/systemd/system/brcm43xx.service; enabled)
Active: inactive (dead)
[root@cubox-nas ~]# hciconfig -a
[root@cubox-nas ~]# systemctl start brcm43xx
[root@cubox-nas ~]# hciconfig -a
hci0: Type: BR/EDR Bus: UART
BD Address: 43:29:B1:11:0A:FE ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:567 acl:0 sco:0 events:26 errors:0
TX bytes:407 acl:0 sco:0 commands:26 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
Name: 'Proxima-Verizon-extLNA BT4.0- BCM4330B1 37.4 MHz Class 1.5 ExtLNA'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Version: 4.0 (0x6) Revision: 0x11e1
LMP Version: 4.0 (0x6) Subversion: 0x4103
Manufacturer: Broadcom Corporation (15)')

Thank you!
Addamm Koy
akoy
 
Posts: 8
Joined: Thu Aug 07, 2014 8:08 pm
Location: in front of A

Re: [CuBox i4Pro] get integrated bluetooth working

Postby pepedog » Thu Aug 28, 2014 2:50 pm

I assumed you knew about systemctl enable brcm43xx bluetooth, and wanted to test.
If all ok, bluetoothctl is your friend, let me know if all ok as I'm not in position to do a clean install
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [CuBox i4Pro] get integrated bluetooth working

Postby akoy » Thu Aug 28, 2014 3:02 pm

As you can see everything is enabled on boot:$this->bbcode_second_pass_code('', '[root@cubox-nas ~]# systemctl status bluetooth brcm43xx brcm43xx-firmware.service
* bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)

* brcm43xx.service - Broadcom 43xx bluetooth HCI
Loaded: loaded (/usr/lib/systemd/system/brcm43xx.service; enabled)
Active: inactive (dead)

* brcm43xx-firmware.service - Broadcom 43xx firmware update
Loaded: loaded (/usr/lib/systemd/system/brcm43xx-firmware.service; enabled)
Active: active (exited) since Thu 2014-08-28 14:56:28 UTC; 1min 53s ago
Process: 230 ExecStart=/usr/lib/systemd/scripts/brcm43xx-firmware-update (code=exited, status=0/SUCCESS)
Main PID: 230 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/brcm43xx-firmware.service

Aug 28 14:56:29 cubox-nas brcm43xx-firmware-update[230]: Warning: Using self generated MAC address! MAC_ADDR should be defined in /etc/conf.d/bcm43xx.
Aug 28 14:56:29 cubox-nas brcm43xx-firmware-update[230]: Updating bluetooth firmware via /dev/ttymxc3 from /lib/firmware/brcm/bcm4330.hcd.')


But if I don't manually start brcm43xx.service the bluetooth isn't working:$this->bbcode_second_pass_code('', '[root@cubox-nas ~]# rfkill list && hciconfig -a && bluetoothctl
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
[bluetooth]# devices
[bluetooth]# list
[bluetooth]# power on
No default controller available
[bluetooth]#')
Addamm Koy
akoy
 
Posts: 8
Joined: Thu Aug 07, 2014 8:08 pm
Location: in front of A

Re: [CuBox i4Pro] get integrated bluetooth working

Postby PLyttle » Thu Aug 28, 2014 3:18 pm

I will venture an answer.

systemctl enable brcm43xx | bluetooth links the .service files to the etc/systemd/system/bluetooth.target.wants directory. This is not started on boot.
When you place the links in /etc/systemd/system/multi-user.target.wants instead they are.

at least, it will using a wandboard, (sorry pepedog, could't resist)

$this->bbcode_second_pass_code('', 'cd /etc/systemd/system/multi-user.target.wants/
sudo ln -s /usr/lib/systemd/system/bluetooth.service
sudo ln -s /usr/lib/systemd/system/brcm43xx.service
')

LP
PLyttle
 
Posts: 120
Joined: Mon Jun 10, 2013 6:52 am

Re: [CuBox i4Pro] get integrated bluetooth working

Postby pepedog » Thu Aug 28, 2014 3:20 pm

It has been suggested a timer file might help, I don't have time though (no pun intended)
$this->bbcode_second_pass_code('', 'cat /usr/lib/systemd/system/brcm43xx.timer
[Unit]
Description=brcm43xx Delayed Startup
Before=bluetooth.service

[Timer]
OnBootSec=15s

[Install]
WantedBy=timers.target')
http://www.freedesktop.org/software/systemd/man/systemd.timer.html
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [CuBox i4Pro] get integrated bluetooth working

Postby akoy » Mon Sep 01, 2014 4:43 am

Thanks guys! As soon I'll have enough time I'll give it a try. I'll let you know.
Bye
Addamm Koy
akoy
 
Posts: 8
Joined: Thu Aug 07, 2014 8:08 pm
Location: in front of A


Return to Freescale

Who is online

Users browsing this forum: No registered users and 1 guest