Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Is there a document for setting up Bluetooth on a Raspberry Pi 3B?



Hello Rui-Xiang,

Thanks for your reply. It took a very long time to fetch the src from
cvs - so I could use find to look for the  missing "bth5" in the boot
message

On Tue, 21 May 2024 16:52:36 +0800, Rui-Xiang Guo <rxg%lavabit.com@localhost>
wrote:

> On Sun, May 19, 2024 at 03:48:40PM +0800, Christopher Hall wrote:
> > Hello port-arm,
> > 
> > So far I have not found much information about this.
> > 
> > I see a commented out line in /etc/bluetooth/btattach.conf
> > referencing /dev/dplcom0, which I have uncommented. I also added a
> > device "speaker" along with its address for testing.  
> 
> This config file is for setting a bluetooth device as a serial device.

As far as I can tell from the source code of btattach the bcmxx-3wire
line triggers the firmware upload to the bluetooth chip then tries to
connect the "bth5" driver

> 
> > I did find a reference to needing the file
> > /libdata/firmware/bcm43xx/BCM43430A1.hcd which I found and have
> > installed.  
> 
> On my rpi3b+, the device is BCM43455 and firmware is
> brcmfmac43455-sdio.bin which is shared with bwfm wireless driver.
> [     5.059198] bwfm0: Found Firmware file: brcmfmac43455-sdio.bin
> [     5.099202] bwfm0: NVRAM file default:    brcmfmac43455-sdio.txt
> [     5.099202] bwfm0: NVRAM file model-spec:
> brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt [     5.099202]
> bwfm0: Found NVRAM file:
> brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt [     5.099202]
> bwfm0: CLM file default:    brcmfmac43455-sdio.clm_blob [
> 5.099202] bwfm0: CLM file model-spec:
> brcmfmac43455-sdio.raspberrypi,3-model-b-plus.clm_blob [
> 7.159408] bwfm0: CHIPACTIVE
> 
> > The Gentoo wiki also suggested adding dtparam=krnbt=on to
> > /boot/config.txt but this had no effect.
> > 
> > This is NetBSD 10.0 arm64 image, a few boot message lines:
> >   simplebus0 at armfdt0: Raspberry Pi 3 Model B Rev 1.2
> >   plcom0 at simplebus1: ARM PL011 UART
> >   plcom0: txfifo disabled
> >   plcom0: interrupting on icu irq 57
> > 
> > When the rc.d/bluetooth runs, it shows:
> >   attaching Bluetooth controller to dplcom0
> >   btattach: bth5: Device not configured
> >   configuring Bluetooth controllers:.
> >   starting Bluetooth Link Key/PIN Code manager
> >   attaching Bluetooth HSET service from "speaker"
> >   btdevctl: sbt0: Device not configured
> >   attaching Bluetooth HSET service from "speaker"
> >   btdevctl: ubt0: Device not configured
> >   starting Bluetooth Service Discovery server
> > 
> > 
> > I find man pages for ubt and sbt, but nothing about bth.
> > also "btconfig" command returns nothing,   
> 
> I think there is no suitable bluetooth driver for bultin

This is what I suspect, though btattach seems to expect the "bth5"
driver. After downloading the NetBSD source I find that there is a
bth5.c driver file, but internally it appears to be called "bthfive"
and has a reference in src/sys/dev/bluetooth/bluetoothdevices.config as:

pseudo-device   bthfive                 # Bluetooth HCI UART (H5)

so I am wondering if the "bth5" reference in btattach.c needs to be
changed to "bthfive". I tried to see if any bt pseudo device is
currently configured by: config -x /netbsd | grep bt
but nothing shows up.

I will try to build the netbsd tools to see if I can try this change.

> BCM43455/BCM43438. However, you may try the bluetooth usb dongle,
> such as: [     3.990736] ubt0 at uhub2 port 2
> [     3.990736] ubt0: i.Tech Dynamic (0x13dd) BlueCON U2 (0x0001),
> rev 2.00/19.58, addr 4 Then see the guide:
> https://www.netbsd.org/docs/guide/en/chap-bluetooth.html
> 
> -rxg
> 

-- 
Best Regards.
Christopher Hall.


Home | Main Index | Thread Index | Old Index