Hi.
I can't get cpu frequency on imx8mm with /proc/cpuinfo etc.
How do i get it?
■conditions
BSP = i.MX Linux Yocto Project BSP 6.1.55_2.2.0
image = image based core-image-full-cmdline-imx8mm-lpddr4-evk
hardware = custom board with imx8mm
■log(cpu info)
Solved! Go to Solution.
I resolved this problem by fixing device tree.
Pending of cpufreq-dt was happend.
The cause of it was incorrect configuration of the PMIC in device tree.
The PMIC of the custom board and evk are different, and the I2C line to which they belong is also different.
■log
root@XXX:~# journalctl -b | grep cpufreq
Mar 03 09:49:19 XXX kernel: imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 3 mkt segment 0 supported-hw 0x8 0x1
Mar 03 11:38:17 XXX kernel: platform cpufreq-dt: deferred probe pending
■reference
・https://www.reddit.com/r/linux4noobs/comments/1brkjja/trying_to_get_cpufreqdt_functioning_on_arm/
・https://community.nxp.com/t5/i-MX-Processors/How-to-enable-cpufreq-in-Linux-imx8mmevk-5-10-35-lts-Ha...
Hi @takeshi100!
Thank you for contacting NXP Support!
The command should be:
cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq
You can see all the available options in our Linux User Guide on chapter "6.2 CPU frequency scaling"
https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf
Best Regards!
Chavira
Hi, Chavira.
Thanks for replying.
There aren't cpufreq directories.
Is there anything I need to configure?
■log
root@XXX:~# ls /sys/devices/system/cpu/cpu0/
cache cpu_capacity cpuidle crash_notes crash_notes_size hotplug node0 of_node online power regs subsystem topology uevent
Best Regards.
I resolved this problem by fixing device tree.
Pending of cpufreq-dt was happend.
The cause of it was incorrect configuration of the PMIC in device tree.
The PMIC of the custom board and evk are different, and the I2C line to which they belong is also different.
■log
root@XXX:~# journalctl -b | grep cpufreq
Mar 03 09:49:19 XXX kernel: imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 3 mkt segment 0 supported-hw 0x8 0x1
Mar 03 11:38:17 XXX kernel: platform cpufreq-dt: deferred probe pending
■reference
・https://www.reddit.com/r/linux4noobs/comments/1brkjja/trying_to_get_cpufreqdt_functioning_on_arm/
・https://community.nxp.com/t5/i-MX-Processors/How-to-enable-cpufreq-in-Linux-imx8mmevk-5-10-35-lts-Ha...