This is really frustrating. Not expecting a definitive answer... but I can hope ;) Just some more troubleshooting ideas would be great. Clearly this has something to do with serial ports. But what??? I did a dist-upgrade to get my image working with the RPi 3. Wireless works great but bluetooth.... This is what I've done so far:
apt-get install pi-bluetooth bluez bluez-firmware
Modified /boot/config.txt to add:
dtoverlay=pi3-miniuart-bt
Added root user (which I'm logged in as) to bluetooth group:
usermod -G bluetooth -a root
This is the output from systemctl status hciuart.service on a WORKING RPi 3 system using the latest Raspian jessie:
sudo systemctl status hciuart.service
● hciuart.service - Configure Bluetooth Modems connected by UART
Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
Active: active (running) since Fri 2016-07-22 21:17:08 UTC; 24h ago
Process: 450 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow - (code=exited, status=0/SUCCESS)
Main PID: 775 (hciattach)
CGroup: /system.slice/hciuart.service
└─775 /usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow -
Jul 22 21:17:08 pidev2lcd hciattach[450]: bcm43xx_init
Jul 22 21:17:08 pidev2lcd hciattach[450]: Flash firmware /lib/firmware/BCM43430A1.hcd
Jul 22 21:17:08 pidev2lcd hciattach[450]: Set Controller UART speed to 921600 bit/s
Jul 22 21:17:08 pidev2lcd hciattach[450]: Device setup complete
Jul 22 21:17:08 pidev2lcd systemd[1]: Started Configure Bluetooth Modems connected by UART.
This is the output from my BROKEN system:
● hciuart.service - Configure Bluetooth Modems connected by UART
Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
Active: failed (Result: exit-code) since Sat 2016-07-23 17:33:56 EDT; 14min ago
Process: 290 ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow - (code=exited, status=1/FAILURE)
Jul 23 17:33:55 minibian hciattach[290]: Can't open serial port: No such file or directory
Jul 23 17:33:55 minibian hciattach[290]: Can't initialize device: No such file or directory
Jul 23 17:33:56 minibian systemd[1]: hciuart.service: control process exited, code=exited status=1
Jul 23 17:33:56 minibian systemd[1]: Failed to start Configure Bluetooth Modems connected by UART.
Jul 23 17:33:56 minibian systemd[1]: Unit hciuart.service entered failed state.
/lib/systemd/system/hciuart.service is the same on both machines:
[Unit]
Description=Configure Bluetooth Modems connected by UART
ConditionPathIsDirectory=/proc/device-tree/soc/gpio@7e200000/bt_pins
Before=bluetooth.service
After=dev-serial1.device
[Service]
Type=forking
ExecStart=/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow -
[Install]
WantedBy=multi-user.target
This is /boot/cmdline.txt on the WORKING system:
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
This is /boot/cmdline.txt on the BROKEN system:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext4 fsck.repair=yes rootwait
Modifying cmdline.txt on the broken system didn't help.
pi-bluetooth
is the only package needed. Dependencies should be automatically loaded. Your question impliedRaspbian
I can't say whatMinibian
needs. This was a generic response - it is almost impossible to debug when so many things change. On the latest firmware/dev/serial1
is the default secondary UART – Milliways Jul 23 '16 at 23:47