i.MX8 M Quad EVK - Dual Display and WiFi/BT support

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

i.MX8 M Quad EVK - Dual Display and WiFi/BT support

3,864 Views
rutvij_trivedi
Contributor II

Hi Folks,

I have got I.MK8Mq EVK and below are my related queries,

1) Is dual display configuration is possible for HDMI and MX8-DSI-OLED display. As I found that it uses the fsl-imx8mq-evk-dcss-rm67191.dts, which disable the hdmi output by default. If its possible, you please provide steps or patch.

2) Unable to up bluetooth and wifi module. Loading wifi module gives following error message.

root@imx8mqevk:~# [  363.614928] INFO: task systemd-udevd:2407 blocked for more than 120 seconds.
[  363.622001]       Tainted: G           O    4.9.88-imx_4.9.88_2.0.0_ga+g5e23f9d #1
[  363.629703] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  363.637652] systemd-udevd   D    0  2407   1727 0x0000020d
[  363.643276] Call trace:
[  363.645736] [<ffff000008085e98>] __switch_to+0x90/0xc0
[  363.651001] [<ffff000008c653f0>] __schedule+0x178/0x590
[  363.656349] [<ffff000008c65844>] schedule+0x3c/0xa8
[  363.661349] [<ffff000008c688e4>] schedule_timeout+0x174/0x248
[  363.667414] [<ffff000008c67680>] __down+0x58/0x90
[  363.672234] [<ffff000008102e74>] down+0x4c/0x68
[  363.677574] [<ffff000000f4155c>] HIFExchangeBMIMsg+0x20c/0x330 [wlan]
[  363.684774] [<ffff000000f47ac4>] bmi_download_firmware+0x64/0x130 [wlan]
[  363.692207] [<ffff000000edff9c>] vos_open+0x174/0x6c0 [wlan]
[  363.698572] [<ffff000000d9bca4>] hdd_wlan_startup+0x5ac/0x12e0 [wlan]
[  363.705740] [<ffff000000f45cc8>] hif_pci_probe+0x5f8/0x858 [wlan]
[  363.711956] [<ffff000008486c4c>] pci_device_probe+0x9c/0x140
[  363.717734] [<ffff000008649a40>] driver_probe_device+0x1d0/0x2c8
[  363.723852] [<ffff000008649bf4>] __driver_attach+0xbc/0xc0
[  363.729532] [<ffff000008647b34>] bus_for_each_dev+0x4c/0x98
[  363.735223] [<ffff0000086493b8>] driver_attach+0x20/0x28
[  363.740648] [<ffff000008648fa8>] bus_add_driver+0x1b8/0x228
[  363.746334] [<ffff00000864a578>] driver_register+0x60/0xf8
[  363.751933] [<ffff0000084857a8>] __pci_register_driver+0x38/0x40
[  363.758669] [<ffff000000f45630>] hif_register_driver+0x18/0x38 [wlan]
[  363.765822] [<ffff000000d93d80>] hdd_hif_register_driver+0x30/0x78 [wlan]
[  363.773334] [<ffff0000011fa0b4>] hdd_module_init+0xb4/0x1000 [wlan]
[  363.779722] [<ffff000008083a50>] do_one_initcall+0x38/0x130
[  363.785411] [<ffff0000081767d8>] do_init_module+0x5c/0x1bc
[  363.791088] [<ffff000008139650>] load_module+0x1c50/0x20f8
[  363.796688] [<ffff000008139d78>] SyS_finit_module+0xa8/0xc0
[  363.802378] [<ffff0000080838d8>] __sys_trace_return+0x0/0x4


3) With Bluetooth I'm getting below logs in dmesg

[    3.184993] Bluetooth: RFCOMM TTY layer initialized
[    3.189898] Bluetooth: RFCOMM socket layer initialized
[    3.195111] Bluetooth: RFCOMM ver 1.11
[    3.198877] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    3.204429] Bluetooth: BNEP filters: protocol multicast
[    3.209694] Bluetooth: BNEP socket layer initialized
[    3.214804] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    3.220776] Bluetooth: HIDP socket layer initialized

Then from terminal i executed below commands

root@imx8mqevk:~# systemctl start bluetooth.service
root@imx8mqevk:~# bluetoothctl
Agent registered
[bluetooth]# power on
No default controller available

Found imx6ul board with Murata wifi/bt dev kits for NXP imx.  post but not able to map with i.MX8 Mq EVK
Kernel version : NXP i.MX Release Distro 4.9.88-2.0.0 (rocko)


Your suggestions are greatly appreciated. Thank You

Regards,
Rutvij Trivedi.

Labels (1)
0 Kudos
12 Replies

2,018 Views
mablett
Contributor III

Not sure if you got an acceptable answer to your original question about WiFi / Bluetooth not working.  Discussing the DTB and display options may be a misleading path.

I find that with the pre-packaged basic 4.9.88 EVK rootfs / DTB (contained within the mfgtools-with-rootfs-mx8.zip setup), I get the same error / crash as you.  If I install the equivalent pre-packaged EVK rootfs build for 4.9.51 (from the earlier mfgtools setup), there is no crash and the WiFi works properly.

I conclude that the basic WiFi driver / support components in the 4.9.88 image are failing.  Any one else worked this out yet?

2,018 Views
rutvij_trivedi
Contributor II

Hi Diego,
Thanks for you quick reply.

I've tried fsl-imx8mq-evk-dual-display.dtb  HDMI & DSI (LCDIF - MIPI to HDMI).
HDMI (Main primary one) shows booting process then DSI-HDMI (Secondary one)shows gray design pattern (with date and other info on display).

Below is my video entry list

root@imx8mqevk:~# ls /dev/v*
/dev/vcs   /dev/vcs4  /dev/vcsa   /dev/vcsa4  /dev/vga_arbiter
/dev/vcs1  /dev/vcs5  /dev/vcsa1  /dev/vcsa5  /dev/vhci
/dev/vcs2  /dev/vcs6  /dev/vcsa2  /dev/vcsa6  /dev/video0
/dev/vcs3  /dev/vcs7  /dev/vcsa3  /dev/vcsa7

I tried below commands

gst-launch-1.0 filesrc location=big_buck_bunny.mp4 ! video/quicktime ! qtdemux ! queue ! vpudec ! queue ! kmssink force-hantrotile=true

gst-launch-1.0 playbin uri=file:///home/root/big_buck_bunny.mp4

In both the above case it plays video on primary HDMI (Main) Display.

Now here I'm not able to play videos simultaneous on both the displays.

Regards,
Rutvij Trivedi.

0 Kudos

2,018 Views
diegoadrian
NXP Employee
NXP Employee

Hello, 

I apologize for the late answer.

Which is your fb entry list?

Best Regards,

Diego.

0 Kudos

2,018 Views
rutvij_trivedi
Contributor II

Hi I've tried fsl-imx8mq-evk-dual-display.dts and its not working.

I analyzed mentioned dts and realize that it uses LCDIF controller for MIPI-DSI LCD.
I found another dts fsl-imx8mq-evk-lcdif-rm67191.dts which also uses LCDIF but it also didn't work.
There is one other dts file but it uses DCSS controller for LCD and it can be used for either HDMI or MIPI-DSI and its working in both the cases separately(I've validated with manipulation ) i.e for HDMI and MIPI.

So do i need to change anything to make LCDIF work i am missing anything here ?

Regards.

0 Kudos

2,018 Views
Lorac
Contributor III

Finally, Did you find a solution to use simultaneously DCSS (HDMI1920x1080) an LCDIF(OLED 1080x1920) on the iMX8MQ-evk?  

Regards

CD

0 Kudos

2,018 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

The dts that you are mentioning is just to use the MIPI-DSI LCD screen.

If you use the  fsl-imx8mq-evk-dual-display.dtb device tree, you won't see a mirror image, you need to reproduce a video to use the other display.

Best Regards,

Diego.

0 Kudos

2,018 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

To use the Bluetooth, try setting up the ttymxc2 device with the below command:

hciattach /dev/ttymxc2 qca

After that, use the hcitool Linux tool to set up the Bluetooth connection between two devices.

Hope this information can help you.

Best Regards,

Diego.

0 Kudos

2,018 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

I apologize for the late answer.

If you want to use the dual display, you need to set the fsl-imx8mq-evk-dual-display.dtb device tree in the u-boot terminal. But take note that this display will only work with the MIPI-DSI to HDMI adapter and the HDMI output.

To set WiFi. Please run the below shell commands

ifconfig wlan0 down

ifconfig wlan0 up

$nano /etc/wpa_supplicant.conf

 

            ctrl_interface=/var/run/wpa_supplicant

            ctrl_interface_group=0

            update_config=1

 

            network={

                                    ssid="</ the name of your internet acces point>"

                                    key_mgmt=WPA-PSK

                                    psk="</ the password of your internet access point>"

                                    proto=WPA2

            }

 

$wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211

$udhcpc -i wlan0  

For the Bluetooth configuration, please let me verify how I can set it.

Best Regards,

Diego.

2,018 Views
zhangweikanghus
Contributor III

Hi,expert

    Could you tell me how to use the wlan?

    I couldn't find the dev node wlan0 in my evk board.

    Here is the log:

root@imx8mqevk:~#
root@imx8mqevk:~# ifconfig wlan0 down
wlan0: ERROR while getting interface flags: No such device
root@imx8mqevk:~# ifconfig wlan0 up
wlan0: ERROR while getting interface flags: No such device
root@imx8mqevk:~# [ 967.646783] INFO: task systemd-udevd:2820 blocked for more than 120 seconds.
[ 967.653857] Tainted: G O 4.9.88-imx_4.9.88_2.0.0_ga+g5e23f9d #1
[ 967.661561] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 967.669513] systemd-udevd D 0 2820 2802 0x0000020d
[ 967.675138] Call trace:
[ 967.677597] [<ffff000008085e98>] __switch_to+0x90/0xc0
[ 967.682864] [<ffff000008c653f0>] __schedule+0x178/0x590
[ 967.688211] [<ffff000008c65844>] schedule+0x3c/0xa8
[ 967.693210] [<ffff000008c688e4>] schedule_timeout+0x174/0x248
[ 967.699276] [<ffff000008c67680>] __down+0x58/0x90
[ 967.704098] [<ffff000008102e74>] down+0x4c/0x68
[ 967.709437] [<ffff000000f4155c>] HIFExchangeBMIMsg+0x20c/0x330 [wlan]
[ 967.716639] [<ffff000000f47ac4>] bmi_download_firmware+0x64/0x130 [wlan]
[ 967.724074] [<ffff000000edff9c>] vos_open+0x174/0x6c0 [wlan]
[ 967.730446] [<ffff000000d9bca4>] hdd_wlan_startup+0x5ac/0x12e0 [wlan]
[ 967.737609] [<ffff000000f45cc8>] hif_pci_probe+0x5f8/0x858 [wlan]
[ 967.743825] [<ffff000008486c4c>] pci_device_probe+0x9c/0x140
[ 967.749602] [<ffff000008649a40>] driver_probe_device+0x1d0/0x2c8
[ 967.755721] [<ffff000008649bf4>] __driver_attach+0xbc/0xc0
[ 967.761402] [<ffff000008647b34>] bus_for_each_dev+0x4c/0x98
[ 967.767097] [<ffff0000086493b8>] driver_attach+0x20/0x28
[ 967.772523] [<ffff000008648fa8>] bus_add_driver+0x1b8/0x228
[ 967.778208] [<ffff00000864a578>] driver_register+0x60/0xf8
[ 967.783809] [<ffff0000084857a8>] __pci_register_driver+0x38/0x40
[ 967.790556] [<ffff000000f45630>] hif_register_driver+0x18/0x38 [wlan]
[ 967.797715] [<ffff000000d93d80>] hdd_hif_register_driver+0x30/0x78 [wlan]
[ 967.805236] [<ffff0000011f90b4>] hdd_module_init+0xb4/0x1000 [wlan]
[ 967.811625] [<ffff000008083a50>] do_one_initcall+0x38/0x130
[ 967.817313] [<ffff0000081767d8>] do_init_module+0x5c/0x1bc
[ 967.822989] [<ffff000008139650>] load_module+0x1c50/0x20f8
[ 967.828594] [<ffff000008139d78>] SyS_finit_module+0xa8/0xc0
[ 967.834285] [<ffff0000080838d8>] __sys_trace_return+0x0/0x4

0 Kudos

2,018 Views
lingguan
Contributor II

Hi

  Could you tell me how to use PCIE1?

Sincerely

0 Kudos

2,018 Views
lingguan
Contributor II

Hi,
Any updates ?

0 Kudos

2,018 Views
rutvij_trivedi
Contributor II

Hi,
Any updates ?


Regards.

0 Kudos