Re: How to disable Bluetooth of Raspberry Pi from Yocto?
I have a question regarding disabling bluetooth of my Raspberry Pi Compute Module 4. I know that we need to set "dtoverlay=disable-bt" in config.txt
But how to do it from Yocto? Should I include this in conf/local.conf?
meta-raspberrypi provide recipe just for the `config.txt` file. I don't know which Yocto version you are using
but on master it looks like this https://github.com/agherzan/meta-raspberrypi/blob/master/recipes-bsp/bootfiles/rpi-config_git.bb#L1
You will need some bbappend in your custom recipe to extend config.txt wtih `dtoverlay=disable-bt`.
E.g. the bbappend should have the following
echo "dtoverlay=disable-bt" >> $CONFIG
While booting my serial console is stuck here:
OpenEmbedded nodistro.0 raspberrypi4-64 ttyS0
raspberrypi4-64 login: [ 14.718847] Bluetooth: HCI UART driver ver 2.3
[ 14.723478] Bluetooth: HCI UART protocol H4 registered
[ 14.728877] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 14.735632] Bluetooth: HCI UART protocol Broadcom registered
[ 14.985386] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 14.990829] Bluetooth: BNEP filters: protocol multicast
[ 14.996781] Bluetooth: BNEP socket layer initialized
[ 15.016364] NET: Registered protocol family 38
[ 15.024632] audit: type=1334 audit(1646676238.549:6): prog-id=9 op=LOAD
[ 15.031791] audit: type=1334 audit(1646676238.549:7): prog-id=10 op=LOAD
[ 15.103792] Bluetooth: RFCOMM TTY layer initialized
[ 15.108976] Bluetooth: RFCOMM socket layer initialized
[ 15.114255] Bluetooth: RFCOMM ver 1.11
Can anyone please let me know whether disabling Bluetooth will solve this?
To be honest, it doesn't look like it hangs. There is a login prompt
Did you try to hit an enter couple of times and then maybe log in?
Your help will be much appreciated.
Thanks in advance.
Embedded Systems Engineer
https://3mdeb.com | @3mdeb_com