i.MX8QM MEK and m4ctrl

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

i.MX8QM MEK and m4ctrl

797 Views
rkohli2000
Contributor III

Hi,

I'm running m4ctrl code on the i.MX8QM MEK with SDK2.5.2 (demo_apps) m4_images for core0/core1. I use insmod m4ctrl_dev.ko before starting the test on the MEK. I don't see nproc changes after I start/stop of M4 cores or any system logs on dmesg . I'm booting the i.MX8QM MEK board using a prebuilt sdcard image from NXP. It appears to boot fine showing 6 cores (4xA53, 2xA72) running initially. There is logging on /dev/ttyUSB1 when I deploy M4-Core0as follows (./m4ctrl --deploy=./m4_image_c0.bin --core=0):

  0 board_set_voltage(A53, 1000, 1000)
  1 board_set_voltage(A53, 1000, 1000)

Otherwise, /dev/ttyUSB1 is continuously printing:

board_get_control(PMIC_0, 0)

Can someone let me know if m4ctrl is really running?  Why are there just cortex-A cores showing up ?

Thanks in advance.

The /dev/ttyUSB0 logs are:

root@imx8qmmek:/tmp# dmesg
root@imx8qmmek:/tmp#  ./m4ctrl --deploy=./m4_image_c1.bin --core=1
Stop cortex M4, core 1
Poweron cortex M4, core 1
root@imx8qmmek:/tmp# dmesg | tail -5
[ 2296.086186] start core 1

[ 2296.086221] finish the operation

[ 2296.086224] starting the core
root@imx8qmmek:/tmp# dmesg | tail -10
[ 2296.062364] finish the operation

[ 2296.062368] starting the core
[ 2296.062373] pwron core 1

[ 2296.086186] start core 1

[ 2296.086221] finish the operation

[ 2296.086224] starting the core
root@imx8qmmek:/tmp# nproc
6
root@imx8qmmek:/tmp# cat /proc/cpuinfo | grep part
CPU part        : 0xd03
CPU part        : 0xd03
CPU part        : 0xd03
CPU part        : 0xd03
CPU part        : 0xd08
CPU part        : 0xd08
root@imx8qmmek:/tmp#  ./m4ctrl --stop --core=1
Stop cortex M4, core 1
root@imx8qmmek:/tmp# nproc
6
root@imx8qmmek:/tmp# cat /proc/cpuinfo | grep part
CPU part        : 0xd03
CPU part        : 0xd03
CPU part        : 0xd03
CPU part        : 0xd03
CPU part        : 0xd08
CPU part        : 0xd08
root@imx8qmmek:/tmp# dmesg | tail -10
[ 2296.062368] starting the core
[ 2296.062373] pwron core 1
[ 2296.086186] start core 1

[ 2296.086221] finish the operation

[ 2296.086224] starting the core
[ 2435.440963] stop core 1

0 Kudos
1 Reply

745 Views
igorpadykov
NXP Employee
NXP Employee

Hi rkohli2000

reason may be in versions as both m4ctrl and SDK use the same scfw api.

One can try latest SDK_2.8.0_MEK-MIMX8QM : https://mcuxpresso.nxp.com/en/dashboard 

and linux :

Embedded Linux for i.MX Applications Processors | NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos