Bluetooth and WiFi on iMx8mqevk Android 12.1.0_1.0.0 not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bluetooth and WiFi on iMx8mqevk Android 12.1.0_1.0.0 not working

34,866件の閲覧回数
rmani0029
Contributor I

I downloaded the android source 12.1.0_1.0.0, compiled it on my Linux computer, and then flashed the resulting images to the SD card.

SD card that has been flashed is used to start the imx8mqevk device. The default UI and applications of the Android image are loaded correctly. However, the Bluetooth and WiFi don't work when I attempt to activate them. The following Bluetooth and Wifi configuration was added to the kernel, but it still won't switch on.

 CONFIG_SERIAL_IMX
 CONFIG_TTY
 CONFIG_BT_HCIUART
 CONFIG_BT_HCIUART_H4
 CONFIG_BT
 CONFIG_BT_RFCOMM
 CONFIG_BT_RFCOMM_TTY
 CONFIG_BT_BNEP
 CONFIG_BT_BNEP_MC_FILTER
 CONFIG_BT_BNEP_PROTO_FILTER
 CONFIG_BT_HIDP

 CONFIG_MAC80211

Logs from Android:

-------------------------------

evk_8mq:/ # logcat -s Bluetooth
--------- beginning of kernel
01-01 00:00:00.154 1 1 I Bluetooth: Core ver 2.22
01-01 00:00:00.154 1 1 I Bluetooth: HCI device and connection manager initialized
01-01 00:00:00.154 1 1 I Bluetooth: HCI socket layer initialized
01-01 00:00:00.154 1 1 I Bluetooth: L2CAP socket layer initialized
01-01 00:00:00.154 1 1 I Bluetooth: SCO socket layer initialized
01-01 00:00:00.354 1 1 I Bluetooth: HCI UART driver ver 2.3
01-01 00:00:00.354 1 1 I Bluetooth: HCI UART protocol H4 registered
01-01 00:00:00.354 1 1 I Bluetooth: HCI UART protocol LL registered
01-01 00:00:00.354 1 1 I Bluetooth: HCI UART protocol Broadcom registered
01-01 00:00:00.354 1 1 I Bluetooth: HCI UART protocol QCA registered
01-01 00:00:00.368 1 1 I Bluetooth: RFCOMM TTY layer initialized
01-01 00:00:00.368 1 1 I Bluetooth: RFCOMM socket layer initialized
01-01 00:00:00.368 1 1 I Bluetooth: RFCOMM ver 1.11
01-01 00:00:00.368 1 1 I Bluetooth: HIDP (Human Interface Emulation) ver 1.2
01-01 00:00:00.368 1 1 I Bluetooth: HIDP socket layer initialized

For more details please see the attached log files.

Regards,

Manikandan

0 件の賞賛
返信
10 返答(返信)

34,835件の閲覧回数
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @rmani0029 

I hope you are doing well.

->Please check with the pre-built image, it has in-built wifi & Bluetooth driver.
https://www.nxp.com/design/software/embedded-software/i-mx-software/android-os-for-i-mx-applications...

->By default, they are set to m but one can load them manually and if not then one can load them into init.rc which will load these drivers on every boot.

Thanks & Regards.

Sanket Parekh

0 件の賞賛
返信

34,821件の閲覧回数
rmani0029
Contributor I

Hi @Sanket_Parekh ,

I downloaded and flashed the android-13.0.0_1.0.0_image_8mqevk demo image on the imx8mq board, but the wifi and bluetooth did not function.

# dmesg | grep bluetooth
[ 260.685555] init: Service 'vendor.bluetooth-1-0' (pid 421) received signal 6
[ 260.700458] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 421) process group...
[ 265.731160] init: starting service 'vendor.bluetooth-1-0'...
[ 270.363861] init: Service 'vendor.bluetooth-1-0' (pid 2301) received signal 6
[ 270.372011] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 2301) process group...
[ 270.741996] init: starting service 'vendor.bluetooth-1-0'...
[ 275.601160] init: Service 'vendor.bluetooth-1-0' (pid 2371) received signal 6
[ 275.751995] init: starting service 'vendor.bluetooth-1-0'...
[ 280.902389] init: Service 'vendor.bluetooth-1-0' (pid 2441) received signal 6
[ 280.917659] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 2441) process group...
[ 280.938071] init: process with updatable components 'vendor.bluetooth-1-0' exited 4 times in 4 minutes
[ 296.265290] init: Service 'vendor.bluetooth-1-0' (pid 2704) received signal 6
[ 296.280994] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 2704) process group...
[ 296.307381] init: process with updatable components 'vendor.bluetooth-1-0' exited 4 times in 4 minutes
[ 301.652721] init: Service 'vendor.bluetooth-1-0' (pid 2822) received signal 6
[ 301.668137] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 2822) process group...
[ 301.694806] init: process with updatable components 'vendor.bluetooth-1-0' exited 4 times in 4 minutes
[ 308.522396] init: Service 'vendor.bluetooth-1-0' (pid 2909) received signal 6
[ 308.530526] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 2909) process group...
[ 308.549932] init: process with updatable components 'vendor.bluetooth-1-0' exited 4 times in 4 minutes

I attempted using the compiled source but encountered same problems. Although the .ko files can be manually loaded, the insmod is unable to load it; it appears that some dependent files are missing. If the wifi and bluetooth modules' kernel configurations are set to "m" by default, could you please tell me how to change them to "y"?

I tried changing them to "y," but the changes weren't reflected in the output image.

Could you give guidance on how to install the necessary device driver for enabling bluetooth and wifi on android image.

0 件の賞賛
返信

34,798件の閲覧回数
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @rmani0029 ,

I hope you are doing well.

If the wifi and Bluetooth modules' kernel configurations are set to "m" by default, could you please tell me how to change them to "y"?
Please check it at android_build/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/*defconfig file.

for Bluetooth:-

CONFIG_BT=y
CONFIG_BT_RFCOMM=y
CONFIG_BT_RFCOMM_TTY=y
CONFIG_BT_BNEP=y
CONFIG_BT_BNEP_MC_FILTER=y
CONFIG_BT_BNEP_PROTO_FILTER=y
CONFIG_BT_HIDP=y
CONFIG_BT_LEDS=y
CONFIG_BT_HCIBTUSB=m
CONFIG_BT_HCIUART=y
CONFIG_BT_HCIUART_BCSP=y
CONFIG_BT_HCIUART_ATH3K=y
CONFIG_BT_HCIUART_LL=y
CONFIG_BT_HCIUART_3WIRE=y
CONFIG_BT_HCIUART_BCM=y
CONFIG_BT_HCIUART_QCA=y
CONFIG_BT_HCIVHCI=y

for wifi:-

CONFIG_CFG80211=y
CONFIG_CFG80211_WEXT=y
CONFIG_MAC80211=y

Please make sure if one is using another vendor's wifi chipset and not nxp then make sure to set it y
for example:- CONFIG_WLAN_VENDOR_BROADCOM=y

Please check the rest kernel configurations options are set in a proper manner.

Further More

Please check with the Drivers that are loaded then also make sure that firmware is available at the spot or not.
Basically, Drivers can be loaded but the chipset also requests for firmware at a specific location. So please make sure that the firmware is there.

and about the required device driver, so all the device drivers are already taken care of in the pre-built image.
Just one can cross-compile those wifi or bt driver and put those .ko files into the /lib/modules section and the same with the bt also. then one can add this insmod or modprobe command into init.rc file so that they are loaded on every boot up.

from the logs, it is seen that the configurations for Bluetooth are already correct and its service also starts but still check if the module which is being used is well-connected or not.

one can check the dmesg logs the same if the chipset is detected correctly or not and then the firmware and drivers are installed or not.

Thanks & Regards
Sanket Parekh

0 件の賞賛
返信

34,742件の閲覧回数
rmani0029
Contributor I

Hi @Sanket_Parekh ,

According to your previous post, I included all kernel configurations for WiFi and Bluetooth.

It throws the following issues related the cfg80211 module while booting the compiled android image.

Error Logs :

[ 5.635684][ T1] init: Loading module /lib/modules/cfg80211.ko with args ''
[ 5.677433][ T1] cfg80211: disagrees about version of symbol wireless_send_event
[ 5.685254][ T1] cfg80211: Unknown symbol wireless_send_event (err -22)
[ 5.692622][ T1] cfg80211: Unknown symbol rfkill_set_sw_state (err -2)
[ 5.760850][ T1] init: Failed to insmod '/lib/modules/cfg80211.ko' with args '': No such file or directory
[ 5.770927][ T1] init: LoadWithAliases was unable to load cfg80211
[ 5.778251][ T1] init: Failed to load kernel modules
[ 5.785513][ T1] init: InitFatalReboot: signal 6
[ 5.804421][ T1] init: #00 pc 000000000039d350 /init (UnwindStackCurrent::UnwindFromContext(unsigned long, void*)+96)
[ 5.815567][ T1] init: #01 pc 00000000002f54fc /init (android::init::InitFatalReboot(int)+108)
[ 5.824745][ T1] kvm: exiting hardware virtualization
[ 5.900908][ T1] reboot: Restarting system with command 'bootloader'

Can you give some guidance on how to solve this issues.

0 件の賞賛
返信

34,712件の閲覧回数
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @rmani0029 ,

I hope you are doing well.

->It is seen from the logs that there is a version mismatch problem occurs for cfg80211.
->Clearly it is trying to load them from the location but it is not there.

->Please try to cross-compile the cfg80211 drivers for the arm64 Linux kernel you are using and put them at the location they are getting requested to load from.
->Please make sure in the .config file when one builds the kernel there is config_cfg80211=y set.
->It will help.

Thanks & Regards,

Sanket Parekh

0 件の賞賛
返信

34,708件の閲覧回数
rmani0029
Contributor I

Hi @Sanket_Parekh ,

IMx8 MQEVK prebuilt images also WiFi and Bluetooth are not working , I tried android 10, 11, 12 and 13 also. What is the exact root cause for this issues?

0 件の賞賛
返信

34,683件の閲覧回数
rmani0029
Contributor I

Hi,

I included required bluetooth and wifi kernel configurations and built the android image, final .config file also included the wifi and bluetooth related configurations.

For Bluetooth required kernel modules are initialized see the following logs for your reference,

[ 0.152356][ T1] Bluetooth: Core ver 2.22
[ 0.152391][ T1] NET: Registered PF_BLUETOOTH protocol family
[ 0.152400][ T1] Bluetooth: HCI device and connection manager initialized
[ 0.152415][ T1] Bluetooth: HCI socket layer initialized
[ 0.152426][ T1] Bluetooth: L2CAP socket layer initialized
[ 0.152447][ T1] Bluetooth: SCO socket layer initialized

[ 0.348887][ T1] Bluetooth: HCI UART driver ver 2.3
[ 0.348904][ T1] Bluetooth: HCI UART protocol H4 registered
[ 0.348936][ T1] Bluetooth: HCI UART protocol LL registered
[ 0.349029][ T1] Bluetooth: HCI UART protocol Broadcom registered
[ 0.349059][ T1] Bluetooth: HCI UART protocol QCA registered

[ 0.362618][ T1] Bluetooth: RFCOMM TTY layer initialized
[ 0.362643][ T1] Bluetooth: RFCOMM socket layer initialized
[ 0.362677][ T1] Bluetooth: RFCOMM ver 1.11
[ 0.362695][ T1] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 0.362708][ T1] Bluetooth: HIDP socket layer initialized

But bluetooth qca module not loaded in the android image, I checked using the lsmod command.

evk_8mq:/ $ lsmod


Module Size Used by
fec 90112 0
at803x 28672 2
pci_imx6 36864 0 [permanent]
rtc_snvs 20480 1
vsiv4l2 147456 2
hantrodec 65536 0
snd_soc_simple_card 20480 0
snd_soc_bt_sco 16384 1
snd_soc_ak4458 28672 0
snd_soc_ak5558 32768 1
snd_soc_wm8524 16384 1
snd_soc_imx_card 20480 0
snd_soc_simple_card_utils 28672 2 snd_soc_simple_card,snd_soc_imx_card
snd_soc_imx_spdif 16384 0
snd_soc_fsl_spdif 32768 4
snd_soc_imx_hdmi 16384 0
snd_soc_hdmi_codec 24576 1
snd_soc_fsl_sai 49152 8
snd_soc_fsl_aud2htx 20480 0
imx_pcm_dma 16384 2 snd_soc_fsl_spdif,snd_soc_fsl_sai
ov5640_camera_mipi_v2 36864 0
mxc_mipi_csi 32768 0
mx6s_capture 53248 0
mxc_mipi_csi2_yav 24576 2
qoriq_thermal 20480 0
galcore 548864 83 qoriq_thermal
mlan 933888 0
imx_sdma 53248 14
imx8_media_dev 20480 0
imx8_mipi_csi2_sam 53248 0
imx8_isi_mem2mem 36864 0
imx8_isi_capture 49152 0
imx8_isi_hw 28672 2 imx8_isi_mem2mem,imx8_isi_capture
v4l2_fwnode 24576 2 mxc_mipi_csi2_yav,imx8_media_dev
v4l2_async 28672 6 ov5640_camera_mipi_v2,mxc_mipi_csi,mx6s_capture,mxc_mipi_csi2_yav,imx8_media_dev,v4l2_fwnode
gpio_ir_recv 16384 0
dummy_battery 16384 0
gpio_switch 16384 1
dwc3_imx8mp 20480 0
mux_mmio 16384 0
nwl_dsi 45056 0
mux_core 20480 2 mux_mmio,nwl_dsi
mxsfb 32768 0
imx_lcdif_crtc 28672 0
imxdrm 20480 0
cdns_mhdp_imx 53248 0
cdns_mhdp_drmcore 102400 1 cdns_mhdp_imx
adv7511 40960 0
imx_lcdif_core 36864 1 imx_lcdif_crtc
imx_dcss 143360 1
panel_raydium_rm67191 24576 0
synaptics_dsx_i2c 49152 0
goodix 32768 0
snvs_pwrkey 16384 0
phy_fsl_imx8mq_usb 24576 6
phy_fsl_imx8_mipi_dphy 20480 0
reset_imx7 16384 0
gpio_reset 16384 0
dma_buf_imx 20480 0
secure_heap 28672 0 [permanent]
cma_heap 24576 0 [permanent]
system_heap 28672 0 [permanent]
imx_mailbox 40960 0 [permanent]
mxs_dma 28672 0
stmp_device 16384 1 mxs_dma
spi_imx 49152 0
spi_bitbang 20480 1 spi_imx
spi_fsl_qspi 24576 0
i2c_imx 40960 0
sdhci_esdhc_imx 53248 0
cqhci 40960 1 sdhci_esdhc_imx
pwm_imx27 16384 0
nvmem_imx_ocotp 16384 0
imx_cpufreq_dt 16384 0
cpufreq_dt 20480 0
fsl_imx8_ddr_perf 36864 0
device_cooling 16384 2 qoriq_thermal,galcore
gpio_mxc 24576 11 [permanent]
pfuze100_regulator 45056 3
gpio_regulator 16384 1
pca9450_regulator 28672 0
imx2_wdt 24576 1
imx 53248 0
pinctrl_imx8mq 20480 0 [permanent]
pinctrl_imx 24576 96 pinctrl_imx8mq
irq_imx_irqsteer 24576 0
trusty_virtio 28672 0
trusty_log 24576 0
trusty_irq 28672 0
trusty_ipc 57344 0
trusty_core 36864 10 rtc_snvs,hantrodec,imx_lcdif_core,imx_dcss,snvs_pwrkey,irq_imx_irqsteer,trusty_virtio,trusty_log,trusty_irq,trusty_ipc
busfreq_imx8mq 36864 12 fec,pci_imx6,snd_soc_fsl_spdif,snd_soc_fsl_sai,mx6s_capture,dwc3_imx8mp,mxsfb,imx_lcdif_core,imx_dcss,sdhci_esdhc_imx,nvmem_imx_ocotp,imx
timer_imx_sysctr 16384 0
gpcv2_imx 36864 0
gpcv2 16384 0
clk_imx8mq 45056 0
mxc_clk 106496 1 clk_imx8mq
soc_imx8m 16384 2 clk_imx8mq,mxc_clk,[permanent]
zram 49152 2
zsmalloc 57344 1 zram

But while trying to enable the bluetooth from UI side , I am getting following error logs,

Bluetooth Logs :

evk_8mq:/ $ [ 198.997477][ T398] healthd: battery l=85 v=3600 t=35.0 h=2 st=2 c=400000 fc=4000000 cc=32 chg=a
[ 205.605045][ T264] logd: logdr: UID=1002 GID=1002 PID=1891 n tail=0 logMask=8 pid=390 start=0ns deadline=0ns
[ 205.625275][ T264] logd: logdr: UID=1002 GID=1002 PID=1891 n tail=0 logMask=1 pid=390 start=0ns deadline=0ns
[ 205.662673][ T1] init: Untracked pid 1891 exited with status 0
[ 205.664048][ T37] binder: release 390:390 transaction 130413 in, still active
[ 205.669498][ T1] init: Service 'vendor.bluetooth-1-0' (pid 390) received signal 6
[ 205.676444][ T37] binder: send failed reply for transaction 130413 to 1843:1869
[ 205.684538][ T1] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 390) process group...
[ 205.692436][ T37] binder: release 390:426 transaction 128521 in, still active
[ 205.702007][ T1] libprocessgroup: Successfully killed process cgroup uid 1002 pid 390 in 0ms
[ 205.709908][ T37] binder: send failed reply for transaction 128521 to 1843:1886
[ 205.718721][ T1] init: Untracked pid 1893 exited with status 0
[ 205.732437][ T1] init: starting service 'vendor.bluetooth-1-0'...
[ 207.030783][ T264] logd: logdr: UID=1002 GID=1002 PID=1899 n tail=0 logMask=8 pid=1843 start=0ns deadline=0ns
[ 207.049107][ T264] logd: logdr: UID=1002 GID=1002 PID=1899 n tail=0 logMask=1 pid=1843 start=0ns deadline=0ns
[ 207.186374][ T1] init: Untracked pid 1899 exited with status 0
[ 207.203690][ T1] init: Untracked pid 1903 exited with status 0
[ 210.958775][ T264] logd: logdr: UID=1002 GID=1002 PID=1957 n tail=0 logMask=8 pid=1898 start=0ns deadline=0ns
[ 210.978121][ T264] logd: logdr: UID=1002 GID=1002 PID=1957 n tail=0 logMask=1 pid=1898 start=0ns deadline=0ns
[ 211.015466][ T1] init: Untracked pid 1957 exited with status 0
[ 211.023267][ T1] init: Untracked pid 1959 exited with status 0
[ 211.023349][ T19] binder: release 1898:1898 transaction 134932 in, still active
[ 211.030142][ T1] init: Service 'vendor.bluetooth-1-0' (pid 1898) received signal 6
[ 211.037371][ T19] binder: send failed reply for transaction 134932 to 1911:1935
[ 211.045202][ T1] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 1898) process group...
[ 211.052959][ T19] binder: release 1898:1902 transaction 133175 in, still active
[ 211.064169][ T1] libprocessgroup: Successfully killed process cgroup uid 1002 pid 1898 in 0ms
[ 211.070050][ T19] binder: send failed reply for transaction 133175 to 1911:1952
[ 211.085789][ T1] init: starting service 'vendor.bluetooth-1-0'...
[ 211.686140][ T264] logd: logdr: UID=1002 GID=1002 PID=1965 n tail=0 logMask=8 pid=1911 start=0ns deadline=0ns
[ 211.704655][ T264] logd: logdr: UID=1002 GID=1002 PID=1965 n tail=0 logMask=1 pid=1911 start=0ns deadline=0ns
[ 211.839921][ T1] init: Untracked pid 1965 exited with status 0
[ 211.858490][ T1] init: Untracked pid 1967 exited with status 0
[ 215.985380][ T264] logd: logdr: UID=1002 GID=1002 PID=2021 n tail=0 logMask=8 pid=1964 start=0ns deadline=0ns
[ 216.005997][ T264] logd: logdr: UID=1002 GID=1002 PID=2021 n tail=0 logMask=1 pid=1964 start=0ns deadline=0ns
[ 216.048186][ T1] init: Untracked pid 2021 exited with status 0
[ 216.049328][ T40] binder: release 1964:1964 transaction 136775 in, still active
[ 216.054688][ T1] init: Service 'vendor.bluetooth-1-0' (pid 1964) received signal 6
[ 216.061990][ T40] binder: send failed reply for transaction 136775 to 1974:2014
[ 216.070517][ T1] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 1964) process group...
[ 216.077422][ T40] binder: release 1964:2017 transaction 138875 in, still active
[ 216.088012][ T1] libprocessgroup: Successfully killed process cgroup uid 1002 pid 1964 in 1ms
[ 216.095453][ T40] binder: send failed reply for transaction 138875 to 1974:1998
[ 216.107688][ T1] init: Untracked pid 2023 exited with status 0
[ 216.118240][ T1] init: starting service 'vendor.bluetooth-1-0'...
[ 216.741913][ T264] logd: logdr: UID=1002 GID=1002 PID=2029 n tail=0 logMask=8 pid=1974 start=0ns deadline=0ns
[ 216.758437][ T264] logd: logdr: UID=1002 GID=1002 PID=2029 n tail=0 logMask=1 pid=1974 start=0ns deadline=0ns
[ 216.892086][ T1] init: Untracked pid 2029 exited with status 0
[ 216.908153][ T1] init: Untracked pid 2033 exited with status 0
[ 221.239106][ T264] logd: logdr: UID=1002 GID=1002 PID=2084 n tail=0 logMask=8 pid=2028 start=0ns deadline=0ns
[ 221.256181][ T264] logd: logdr: UID=1002 GID=1002 PID=2084 n tail=0 logMask=1 pid=2028 start=0ns deadline=0ns
[ 221.298374][ T1] init: Untracked pid 2084 exited with status 0
[ 221.305441][ T1] init: Untracked pid 2086 exited with status 0
[ 221.313598][ T40] binder: release 2028:2028 transaction 142646 in, still active
[ 221.313870][ T1] init: Service 'vendor.bluetooth-1-0' (pid 2028) received signal 6
[ 221.321281][ T40] binder: send failed reply for transaction 142646 to 2039:2063
[ 221.329579][ T1] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 2028) process group...
[ 221.338482][ T40] binder: release 2028:2032 transaction 140898 in, still active
[ 221.347298][ T1] libprocessgroup: Successfully killed process cgroup uid 1002 pid 2028 in 0ms
[ 221.355301][ T40] binder: send failed reply for transaction 140898 to 2039:2079
[ 221.365090][ T1] init: starting service 'vendor.bluetooth-1-0'...
[ 221.983920][ T264] logd: logdr: UID=1002 GID=1002 PID=2092 n tail=0 logMask=8 pid=2039 start=0ns deadline=0ns
[ 222.001721][ T264] logd: logdr: UID=1002 GID=1002 PID=2092 n tail=0 logMask=1 pid=2039 start=0ns deadline=0ns
[ 222.133499][ T1] init: Untracked pid 2092 exited with status 0
[ 222.150498][ T1] init: Untracked pid 2096 exited with status 0
[ 226.496651][ T264] logd: logdr: UID=1002 GID=1002 PID=2148 n tail=0 logMask=8 pid=2091 start=0ns deadline=0ns
[ 226.514319][ T264] logd: logdr: UID=1002 GID=1002 PID=2148 n tail=0 logMask=1 pid=2091 start=0ns deadline=0ns
[ 226.549790][ T1] init: Untracked pid 2148 exited with status 0
[ 226.556557][ T1] init: Untracked pid 2150 exited with status 0
[ 226.565111][ T37] binder: release 2091:2091 transaction 146796 in, still active
[ 226.566303][ T1] init: Service 'vendor.bluetooth-1-0' (pid 2091) received signal 6
[ 226.573068][ T37] binder: send failed reply for transaction 146796 to 2103:2127
[ 226.580842][ T1] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 2091) process group...
[ 226.595895][ T37] binder: release 2091:2095 transaction 144679 in, still active
[ 226.598370][ T1] libprocessgroup: Successfully killed process cgroup uid 1002 pid 2091 in 0ms
[ 226.605297][ T37] binder: send failed reply for transaction 144679 to 2103:2143
[ 226.622571][ T1] init: process with updatable components 'vendor.bluetooth-1-0' exited 4 times in 4 minutes
[ 226.637098][ T1] init: processing action (sys.init.updatable_crashing=1) from (/system/etc/init/flags_health_check.rc:10)
[ 226.649470][ T1] init: starting service 'exec 20 (/system/bin/flags_health_check UPDATABLE_CRASHING)'...
[ 226.664697][ T1] init: SVC_EXEC service 'exec 20 (/system/bin/flags_health_check UPDATABLE_CRASHING)' pid 2155 (uid 1000 gid 1000+0 context default) started; waiting...
[ 226.680862][ T1] init: starting service 'vendor.bluetooth-1-0'...
[ 227.274482][ T264] logd: logdr: UID=1002 GID=1002 PID=2156 n tail=0 logMask=8 pid=2103 start=0ns deadline=0ns
[ 227.292197][ T264] logd: logdr: UID=1002 GID=1002 PID=2156 n tail=0 logMask=1 pid=2103 start=0ns deadline=0ns
[ 232.779075][ T264] logd: logdr: UID=1002 GID=1002 PID=2212 n tail=0 logMask=8 pid=2157 start=0ns deadline=0ns
[ 232.797214][ T264] logd: logdr: UID=1002 GID=1002 PID=2212 n tail=0 logMask=1 pid=2157 start=0ns deadline=0ns
[ 232.834619][ T1] init: Untracked pid 2212 exited with status 0
[ 232.835791][ T40] binder: release 2157:2157 transaction 151769 in, still active
[ 232.841175][ T1] init: Untracked pid 2214 exited with status 0
[ 232.848818][ T40] binder: send failed reply for transaction 151769 to 2167:2191
[ 232.855014][ T1] init: Service 'vendor.bluetooth-1-0' (pid 2157) received signal 6
[ 232.862121][ T40] binder: release 2157:2161 transaction 149677 in, still active
[ 232.870472][ T1] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 2157) process group...
[ 232.877824][ T40] binder: send failed reply for transaction 149677 to 2167:2207
[ 232.890267][ T1] libprocessgroup: Successfully killed process cgroup uid 1002 pid 2157 in 0ms
[ 232.904321][ T1] init: process with updatable components 'vendor.bluetooth-1-0' exited 4 times in 4 minutes
[ 232.916418][ T1] init: processing action (sys.init.updatable_crashing=1) from (/system/etc/init/flags_health_check.rc:10)
[ 232.928481][ T1] init: starting service 'exec 21 (/system/bin/flags_health_check UPDATABLE_CRASHING)'...
[ 232.946748][ T1] init: SVC_EXEC service 'exec 21 (/system/bin/flags_health_check UPDATABLE_CRASHING)' pid 2220 (uid 1000 gid 1000+0 context default) started; waiting...
[ 232.963025][ T1] init: starting service 'vendor.bluetooth-1-0'...
[ 233.554880][ T264] logd: logdr: UID=1002 GID=1002 PID=2219 n tail=0 logMask=8 pid=2167 start=0ns deadline=0ns
[ 233.574080][ T264] logd: logdr: UID=1002 GID=1002 PID=2219 n tail=0 logMask=1 pid=2167 start=0ns deadline=0ns
[ 238.082310][ T264] logd: logdr: UID=1002 GID=1002 PID=2276 n tail=0 logMask=8 pid=2221 start=0ns deadline=0ns
[ 238.098944][ T264] logd: logdr: UID=1002 GID=1002 PID=2276 n tail=0 logMask=1 pid=2221 start=0ns deadline=0ns
[ 238.142753][ T1] init: Untracked pid 2276 exited with status 0
[ 238.149200][ T1] init: Untracked pid 2278 exited with status 0
[ 238.150978][ T37] binder: release 2221:2221 transaction 155920 in, still active
[ 238.155867][ T1] init: Service 'vendor.bluetooth-1-0' (pid 2221) received signal 6
[ 238.163278][ T37] binder: send failed reply for transaction 155920 to 2231:2255
[ 238.173061][ T1] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 2221) process group...
[ 238.178389][ T37] binder: release 2221:2225 transaction 153806 in, still active
[ 238.190037][ T1] libprocessgroup: Successfully killed process cgroup uid 1002 pid 2221 in 0ms
[ 238.206726][ T1] init: process with updatable components 'vendor.bluetooth-1-0' exited 4 times in 4 minutes
[ 238.208364][ T37] binder: send failed reply for transaction 153806 to 2231:2271
[ 238.221663][ T1] init: processing action (sys.init.updatable_crashing=1) from (/system/etc/init/flags_health_check.rc:10)
[ 238.236525][ T1] init: starting service 'exec 22 (/system/bin/flags_health_check UPDATABLE_CRASHING)'...
[ 238.252235][ T1] init: SVC_EXEC service 'exec 22 (/system/bin/flags_health_check UPDATABLE_CRASHING)' pid 2284 (uid 1000 gid 1000+0 context default) started; waiting...
[ 238.268707][ T1] init: starting service 'vendor.bluetooth-1-0'...
[ 238.859371][ T264] logd: logdr: UID=1002 GID=1002 PID=2283 n tail=0 logMask=8 pid=2231 start=0ns deadline=0ns
[ 238.875445][ T264] logd: logdr: UID=1002 GID=1002 PID=2283 n tail=0 logMask=1 pid=2231 start=0ns deadline=0ns
[ 239.040376][ T601] binder: 583:601 transaction failed 29189/-22, size 76-0 line 2920

For WiFi cfg80211 module loading failed at boot time, see the following error logs for your reference.

WiFi Logs :

[ 8.884347][ T253] moal: Unknown symbol cfg80211_remain_on_channel_expired (err -2)
[ 8.892232][ T253] moal: Unknown symbol wiphy_unregister (err -2)
[ 8.898442][ T253] moal: Unknown symbol wiphy_free (err -2)
[ 8.904457][ T253] moal: disagrees about version of symbol wireless_send_event
[ 8.911802][ T253] moal: Unknown symbol wireless_send_event (err -22)
[ 8.918434][ T253] moal: Unknown symbol cfg80211_disconnected (err -2)
[ 8.925207][ T253] moal: Unknown symbol cfg80211_sched_scan_stopped (err -2)
[ 8.932431][ T253] moal: Unknown symbol cfg80211_classify8021d (err -2)
[ 8.939178][ T253] moal: Unknown symbol cfg80211_mgmt_tx_status (err -2)
[ 8.946076][ T253] moal: Unknown symbol cfg80211_rx_mlme_mgmt (err -2)
[ 8.953005][ T253] moal: Unknown symbol cfg80211_tdls_oper_request (err -2)
[ 8.960087][ T253] moal: Unknown symbol cfg80211_scan_done (err -2)
[ 8.966666][ T253] moal: Unknown symbol cfg80211_michael_mic_failure (err -2)
[ 8.973902][ T253] moal: Unknown symbol cfg80211_cqm_rssi_notify (err -2)
[ 8.980793][ T253] moal: Unknown symbol cfg80211_get_bss (err -2)
[ 8.986986][ T253] moal: Unknown symbol cfg80211_unlink_bss (err -2)
[ 8.993441][ T253] moal: Unknown symbol cfg80211_put_bss (err -2)
[ 8.999635][ T253] moal: Unknown symbol cfg80211_cac_event (err -2)
[ 9.006000][ T253] moal: Unknown symbol cfg80211_ch_switch_notify (err -2)
[ 9.012976][ T253] moal: Unknown symbol cfg80211_new_sta (err -2)
[ 9.019171][ T253] moal: Unknown symbol cfg80211_ft_event (err -2)
[ 9.025453][ T253] moal: Unknown symbol cfg80211_roamed (err -2)
[ 9.031602][ T253] moal: Unknown symbol ieee80211_hdrlen (err -2)
[ 9.037805][ T253] moal: Unknown symbol ieee80211_channel_to_freq_khz (err -2)
[ 9.045148][ T253] moal: Unknown symbol __cfg80211_radar_event (err -2)
[ 9.051884][ T253] moal: Unknown symbol cfg80211_del_sta_sinfo (err -2)
[ 9.058596][ T1] Registered swp emulation handler
[ 9.063656][ T253] moal: Unknown symbol ieee80211_get_channel_khz (err -2)
[ 9.070731][ T253] moal: Unknown symbol cfg80211_rx_mgmt_khz (err -2)
[ 9.077375][ T253] moal: Unknown symbol regulatory_hint (err -2)
[ 9.083702][ T253] moal: Unknown symbol cfg80211_sched_scan_results (err -2)
[ 9.090953][ T253] moal: Unknown symbol ieee80211_freq_khz_to_channel (err -2)
[ 9.098397][ T253] moal: Unknown symbol __cfg80211_alloc_event_skb (err -2)
[ 9.105562][ T253] moal: Unknown symbol __cfg80211_send_event_skb (err -2)
[ 9.112659][ T253] moal: Unknown symbol cfg80211_vendor_cmd_reply (err -2)
[ 9.119788][ T253] moal: Unknown symbol __cfg80211_alloc_reply_skb (err -2)
[ 9.126970][ T253] moal: Unknown symbol cfg80211_rx_assoc_resp (err -2)
[ 9.133787][ T253] moal: Unknown symbol cfg80211_report_wowlan_wakeup (err -2)
[ 9.141196][ T253] moal: Unknown symbol cfg80211_pmksa_candidate_notify (err -2)
[ 9.148834][ T253] moal: Unknown symbol wiphy_apply_custom_regulatory (err -2)
[ 9.154288][ T260] watchdogd: watchdogd started (interval 10, margin 20)!
[ 9.156253][ T253] moal: Unknown symbol wiphy_register (err -2)
[ 9.169111][ T253] moal: Unknown symbol cfg80211_inform_bss_data (err -2)
[ 9.176035][ T253] moal: Unknown symbol ieee80211_bss_get_elem (err -2)
[ 9.182801][ T253] moal: Unknown symbol regulatory_set_wiphy_regd_sync (err -2)
[ 9.190320][ T253] moal: Unknown symbol cfg80211_connect_done (err -2)
[ 9.197047][ T253] moal: Unknown symbol wiphy_new_nm (err -2)
[ 9.203025][ T253] moal: Unknown symbol cfg80211_ready_on_channel (err -2)
[ 9.210108][ T253] moal: Unknown symbol cfg80211_unregister_wdev (err -2)
[ 9.217041][ T253] moal: Unknown symbol cfg80211_register_netdevice (err -2)
[ 9.224218][ T253] moal: Unknown symbol cfg80211_find_elem_match (err -2)

I don't know where is the exact issues, could you help me how to enable the bluetooth and wifi on imx8mqevk android image.

Regards,

Manikandan.R

0 件の賞賛
返信

34,638件の閲覧回数
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @rmani0029 ,

I hope you are doing well.

->According to the android version one is using, Please cross-compile the wifi driver based on the Linux kernel version.
->Then copy that mlan.ko & moal.ko (cross-compiled driver) to the /vendor/lib/modules as shown in the commands.

--> adb push <from> <where>
--> adb pull <from> <where>
Kindly follow the above commands to copy those drivers.
->insert the mlan and PCIe modules as per the below command
-->insmod /vendor/lib/modules/mlan.ko && insmod /vendor/lib/modules/pcie8xxx.ko fw_name=pcieuart8997_combo_v4.bin host_mlme=1 cal_data_cfg=none cfg80211_wext=0xf drvdbg=0x20037
->lsmod | grep mlan
->dmesg | grep <chipset> (for example if chipset is 88w9098 then 9098).
->ifconfig wlan0 up
->Ifconfig -a
->iw dev wlan0 scan

->If one wants to get rid of this every time load, unload then simply put this insmod command into init.rc file.
->It will help!

Thanks & Regards,
Sanket Parekh
0 件の賞賛
返信

34,449件の閲覧回数
rmani0029
Contributor I

Hi @Sanket_Parekh ,

Thanks for your reply.

I could see the mlan driver loaded on lsmod.

evk_8mq:/ # lsmod | grep mlan
mlan 933888 0

However, the moal driver was not loaded due to cfg80211 dependencies.Please see the below dmesg logs.

Logs:

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.15.41-android13-8-00055-g4f5025129fe8-ab8949913 (build-user@build-host) (Android (8508608, based on r450784e) clang version 14.0.7 (https://android.googlesource.com/toolchain/llvm-project 4c603efb0cca074e9238af8b4106c30add4418f6), LLD 14.0.7) #1 SMP PREEMPT Mon Aug 15 18:33:14 UTC 2022
[ 0.000000] Machine model: NXP i.MX8MQ EVK

[ 0.155178] Bluetooth: Core ver 2.22
[ 0.155214] NET: Registered PF_BLUETOOTH protocol family
[ 0.155223] Bluetooth: HCI device and connection manager initialized
[ 0.155238] Bluetooth: HCI socket layer initialized
[ 0.155249] Bluetooth: L2CAP socket layer initialized
[ 0.155291] Bluetooth: SCO socket layer initialized

[ 0.349342] Bluetooth: HCI UART driver ver 2.3
[ 0.349358] Bluetooth: HCI UART protocol H4 registered
[ 0.349388] Bluetooth: HCI UART protocol LL registered
[ 0.349489] Bluetooth: HCI UART protocol Broadcom registered
[ 0.349525] Bluetooth: HCI UART protocol QCA registered
[ 0.363376] Bluetooth: RFCOMM TTY layer initialized
[ 0.363394] Bluetooth: RFCOMM socket layer initialized
[ 0.363427] Bluetooth: RFCOMM ver 1.11
[ 0.363444] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 0.363457] Bluetooth: HIDP socket layer initialized

[ 8.133767] cat (251) used greatest stack depth: 10432 bytes left
[ 8.166029] mlan: loading out-of-tree module taints kernel.
[ 8.225733] moal: Unknown symbol cfg80211_remain_on_channel_expired (err -2)
[ 8.233590] moal: Unknown symbol wiphy_unregister (err -2)
[ 8.239809] moal: Unknown symbol wiphy_free (err -2)
[ 8.245640] moal: disagrees about version of symbol wireless_send_event
[ 8.252956] moal: Unknown symbol wireless_send_event (err -22)
[ 8.259515] moal: Unknown symbol cfg80211_disconnected (err -2)
[ 8.266145] moal: Unknown symbol cfg80211_sched_scan_stopped (err -2)
[ 8.273304] moal: Unknown symbol cfg80211_classify8021d (err -2)
[ 8.280032] moal: Unknown symbol cfg80211_mgmt_tx_status (err -2)
[ 8.286935] moal: Unknown symbol cfg80211_rx_mlme_mgmt (err -2)
[ 8.293854] moal: Unknown symbol cfg80211_tdls_oper_request (err -2)
[ 8.300937] moal: Unknown symbol cfg80211_scan_done (err -2)
[ 8.307513] moal: Unknown symbol cfg80211_michael_mic_failure (err -2)
[ 8.314753] moal: Unknown symbol cfg80211_cqm_rssi_notify (err -2)
[ 8.321643] moal: Unknown symbol cfg80211_get_bss (err -2)
[ 8.327840] moal: Unknown symbol cfg80211_unlink_bss (err -2)
[ 8.334304] moal: Unknown symbol cfg80211_put_bss (err -2)
[ 8.340504] moal: Unknown symbol cfg80211_cac_event (err -2)
[ 8.346871] moal: Unknown symbol cfg80211_ch_switch_notify (err -2)
[ 8.353858] moal: Unknown symbol cfg80211_new_sta (err -2)
[ 8.360054] moal: Unknown symbol cfg80211_ft_event (err -2)
[ 8.366334] moal: Unknown symbol cfg80211_roamed (err -2)
[ 8.372475] moal: Unknown symbol ieee80211_hdrlen (err -2)
[ 8.378670] moal: Unknown symbol ieee80211_channel_to_freq_khz (err -2)
[ 8.386003] moal: Unknown symbol __cfg80211_radar_event (err -2)
[ 8.392719] moal: Unknown symbol cfg80211_del_sta_sinfo (err -2)
[ 8.399432] moal: Unknown symbol ieee80211_get_channel_khz (err -2)
[ 8.406409] moal: Unknown symbol cfg80211_rx_mgmt_khz (err -2)
[ 8.412954] moal: Unknown symbol regulatory_hint (err -2)
[ 8.419155] moal: Unknown symbol cfg80211_sched_scan_results (err -2)
[ 8.426304] moal: Unknown symbol ieee80211_freq_khz_to_channel (err -2)
[ 8.433637] moal: Unknown symbol __cfg80211_alloc_event_skb (err -2)
[ 8.440702] moal: Unknown symbol __cfg80211_send_event_skb (err -2)
[ 8.447691] moal: Unknown symbol cfg80211_vendor_cmd_reply (err -2)
[ 8.454691] moal: Unknown symbol __cfg80211_alloc_reply_skb (err -2)
[ 8.461788] moal: Unknown symbol cfg80211_rx_assoc_resp (err -2)
[ 8.468533] moal: Unknown symbol cfg80211_report_wowlan_wakeup (err -2)
[ 8.475887] moal: Unknown symbol cfg80211_pmksa_candidate_notify (err -2)
[ 8.483425] moal: Unknown symbol wiphy_apply_custom_regulatory (err -2)
[ 8.490758] moal: Unknown symbol wiphy_register (err -2)
[ 8.496784] moal: Unknown symbol cfg80211_inform_bss_data (err -2)
[ 8.503685] moal: Unknown symbol ieee80211_bss_get_elem (err -2)
[ 8.510408] moal: Unknown symbol regulatory_set_wiphy_regd_sync (err -2)
[ 8.517834] moal: Unknown symbol cfg80211_connect_done (err -2)
[ 8.524465] moal: Unknown symbol wiphy_new_nm (err -2)
[ 8.530321] moal: Unknown symbol cfg80211_ready_on_channel (err -2)
[ 8.537302] moal: Unknown symbol cfg80211_unregister_wdev (err -2)
[ 8.544192] moal: Unknown symbol cfg80211_register_netdevice (err -2)
[ 8.551340] moal: Unknown symbol cfg80211_find_elem_match (err -2)

For enabling Bluetooth and WiFi on the Android side, I am totally blocked from doing so. Would you kindly assist me in setting up the wifi and bluetooth?

Regards,

Manikandan.R

0 件の賞賛
返信

34,428件の閲覧回数
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @rmani0029 ,

I hope you are doing well.

Please follow the section 9 Bring-up of Bluetooth & Section 10 Bluetooth features and Configuration & Section 6.1 Bring-up of Wi-Fi with the latest Android 13.1.0
as mentioned in the below document.
https://www.nxp.com/webapp/Download?colCode=UM11558

This may help!

Thanks & Regards,

Sanket Parekh

0 件の賞賛
返信