Hi.
I would like to use bluetooth in imx8mm evk board.
But There is not the uart device file, I think ttymxc0 is connected to bluetooth module.
----------
root@imx8mmevk:~# hciattach /dev/ttymxc0 any 115200 flow
Can't open serial port: No such file or directory
Can't initialize device: No such file or directory
root@imx8mmevk:~# ls /dev/ttymxc*
/dev/ttymxc1 /dev/ttymxc2
----------
■ Question
1. What image should i use?
Now, I use imx-image-multimedia-imx8mmevk.wic.
2. What dtb should i use?
Now, I use imx8mm-evk.dtb.
----------
u-boot=> printenv fdtfile
fdtfile=imx8mm-evk.dtb
----------
■ additional explaination
1. Image and dtb is installed from https://www.nxp.jp/webapp/Download?colCode=L6.6.3_1.0.0_MX8MM&appType=license
已解决! 转到解答。
I resolved this problem.
I didn't need to execute command [hciattach /dev/ttymxc0 any 115200 flow].
I execute only following command.
-------------------
modprobe moal mod_para=nxp/wifi_mod_para.conf
modprobe btnxpuart
hciconfig hci0 up
-------------------
I refered https://community.nxp.com/t5/i-MX-Processors-Knowle\dge-Base/Bluetooth-NXP-UART-Driver-Linux-BSP-6-1-22-btnxpuart/ta-p/1708588.
Thanks for a lot!!
root@imx8mmevk:~# modprobe moal mod_para=nxp/wifi_mod_para.conf
[ 27.768236] mlan: loading out-of-tree module taints kernel.
[ 27.795457] wlan: Loading MWLAN driver
[ 27.799940] wlan: Register to Bus Driver...
[ 27.804727] vendor=0x02DF device=0x9149 class=0 function=1
[ 27.810375] Attach moal handle ops, card interface type: 0x105
[ 27.816254] rps set to 0 from module param
[ 27.821212] SD8987: init module param from usr cfg
[ 27.826064] card_type: SD8987, config block: 0
[ 27.830536] cfg80211_wext=0xf
[ 27.833516] max_vir_bss=1
[ 27.836150] cal_data_cfg=none
[ 27.839131] ps_mode = 1
[ 27.841578] auto_ds = 1
[ 27.844058] host_mlme=enable
[ 27.846942] fw_name=nxp/sdiouart8987_combo_v0.bin
[ 27.851687] SDIO: max_segs=128 max_seg_size=65535
[ 27.856417] rx_work=1 cpu_num=4
[ 27.859572] Enable moal_recv_amsdu_packet
[ 27.863615] Attach mlan adapter operations.card_type is 0x105.
[ 27.870177] wlan: Enable TX SG mode
[ 27.873695] wlan: Enable RX SG mode
[ 27.879200] Request firmware: nxp/sdiouart8987_combo_v0.bin
[ 28.177461] Wlan: FW download over, firmwarelen=624672 downloaded 615972
[ 29.044466] WLAN FW is active
[ 29.047470] on_time is 29044377875
[ 29.102139] VDLL image: len=8700
[ 29.105486] FW country code WW does not match with US
[ 29.110774] fw_cap_info=0x181d6f03, dev_cap_mask=0xffffffff
[ 29.116396] max_p2p_conn = 8, max_sta_conn = 8
[ 29.121185] SDIO rx aggr: 1 block_size=512
[ 29.125332] wlan: Enable RX SG mode
[ 29.128837] mpa_rx_buf_size=65280
[ 29.151229] Register NXP 802.11 Adapter mlan0
[ 29.157846] Register NXP 802.11 Adapter uap0
[ 29.166488] Register NXP 802.11 Adapter wfd0
[ 29.171075] wlan: version = SD8987----16.92.21.p119.2-MM6X16437.p3-GPL-(FP92)
[ 29.183363] wlan: Register to Bus Driver Done
[ 29.187791] wlan: Driver loaded successfully
root@imx8mmevk:~#
root@imx8mmevk:~#
root@imx8mmevk:~#
root@imx8mmevk:~# hciattach /dev/ttymxc0 any 115200 flow
Can't open serial port: No such file or directory
Can't initialize device: No such file or directory
Why does it use Linux Open Source UART driver?
[6 Bring-up of Bluetooth] section is described as follows.
• Bring up using NXP Bluetooth UART driver on the i.MX Linux BSP version L6.1.22 and later.
• Bring up using Linux Open Source UART driver on i.MX Linux BSP version earlier than L6.1.22.
I downloaded image from following url. I maybe use version 6.6.3.
So I guess that I should refer 6.1 Bring-up using NXP Bluetooth UART driver.
https://www.nxp.jp/webapp/Download?colCode=L6.6.3_1.0.0_MX8MM&appType=license
I resolved this problem.
I didn't need to execute command [hciattach /dev/ttymxc0 any 115200 flow].
I execute only following command.
-------------------
modprobe moal mod_para=nxp/wifi_mod_para.conf
modprobe btnxpuart
hciconfig hci0 up
-------------------
I refered https://community.nxp.com/t5/i-MX-Processors-Knowle\dge-Base/Bluetooth-NXP-UART-Driver-Linux-BSP-6-1-22-btnxpuart/ta-p/1708588.
Thanks for a lot!!