how to enable rfkill.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to enable rfkill.

2,293 Views
yongha_yu
Contributor II

I am trying to bring-up Bluetooth.

SoC is imx8mq, Bluetooth IC is Cypress CYW89072, and UART is used as an interface.

Cypress said it needed rfkill, I've enabled rfkill using kernel menuconfig, but there is nothing in the rfkill list.

Please let me know how can I connect rfkill with Bluetooth.

 

shell (current state)
root@imx8mqevk:~# ls -al /dev/rfkill
crw-rw-r-- 1 root root 10, 242 Dec 31 1969 /dev/rfkill
root@imx8mqevk:~#
root@imx8mqevk:~# rfkill list
root@imx8mqevk:~#
root@imx8mqevk:~# ls -al /sys/class/rfkill/
total 0
drwxr-xr-x 2 root root 0 Dec 31 1969 .
drwxr-xr-x 82 root root 0 Dec 31 1969 ..
root@imx8mqevk:~#

 

Cypress Guide
The rfkill driver is a must on the target platform to control Bluetooth on/off.
− When BT stack attempts to turn BT on/off, the system will execute to toggle RST_N or REG_ON
pin on Bluetooth Controller via rfkill Linux kernel driver.
−Work with your system source provider to ensure a rfkill Linux kernel driver had already
been implemented on your platform for Bluetooth on/off control.
− Platform BSP should implement a rfkill driver to allow Android BT stack to control
Bluetooth on/off through /sys/class/rfkill/rfkill<id>/state.
− The type of rfkill<id> should be "bluetooth" to indicate that it is for Bluetooth (on/off)

 

 

 

 

 

 

Tags (3)
0 Kudos
Reply
1 Reply

2,266 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @yongha_yu 

Please try to add it to rootfs:

IMAGE_INSTALL_append = "rfkill"

 

0 Kudos
Reply