i.MX 8M Mini has 3 configurations with regards to the number of ARM Cortex-A53 cores. In "imx8mm.dtsi", there are 4 "cpu" nodes under "cpus" node, assuming the device tree file is catered for the quad-core configuration of i.MX 8M Mini. However, there is no other information provided as for how to tailor the device tree for the dual-core or solo-core configuration. Could anyone please shed some light on this? Thanks!
Solved! Go to Solution.
#elif defined(CONFIG_IMX8MM)
if (is_imx8mml() || is_imx8mmdl() || is_imx8mmsl())
disable_vpu_nodes(blob);
if (is_imx8mmd() || is_imx8mmdl())
disable_cpu_nodes(blob, 2);
else if (is_imx8mms() || is_imx8mmsl())
disable_cpu_nodes(blob, 3);
Hi, could anyone please help? Thanks!
#elif defined(CONFIG_IMX8MM)
if (is_imx8mml() || is_imx8mmdl() || is_imx8mmsl())
disable_vpu_nodes(blob);
if (is_imx8mmd() || is_imx8mmdl())
disable_cpu_nodes(blob, 2);
else if (is_imx8mms() || is_imx8mmsl())
disable_cpu_nodes(blob, 3);
Thank you so much! I've got it.
这个自己改一下就可以了。
1. uboot bootargs pass kernel parameters
maxcpus=2 就是2个核
linux-imx\Documentation\admin-guide\kernel-parameters.txt
imx8mmevk login: root
root@imx8mmevk:~# cat /proc/cmdline
console=ttymxc1,115200 root=/dev/mmcblk2p2 rootwait rw maxcpus=2
root@imx8mmevk:~# cat /proc/cpuinfo
processor : 0
BogoMIPS : 16.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
BogoMIPS : 16.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright 2019-2020 NXP
*/
/* lf-5.15.71-2.2.0 */
/dts-v1/;
#include "imx8mm-evk.dts"
/ {
cpus {
/delete-node/ cpu@2;
/delete-node/ cpu@3;
};
thermal-zones {
cpu-thermal {
cooling-maps {
map0 {
cooling-device =
<&A53_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&A53_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
};
};
};
root@imx8mmevk:~# cat /proc/cpuinfo
processor : 0
BogoMIPS : 16.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
BogoMIPS : 16.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
Thank you so much for your advice!