disabling 2 cores on the iMX6 quad core sabresd board?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

disabling 2 cores on the iMX6 quad core sabresd board?

跳至解决方案
8,050 次查看
abraham_v
Contributor IV

We are planning to use the dual core iMX6 chip on our target board (end product will be running android OS). For development we got the quad core iMX6 sabresd board. Is there any way to disable 2 processor cores on that board?

On another matter - with the exception of the extra cores, can I assume that the iMX6 dual and quad core processors are identical? Or is there anything specific I need to watch out for? From the wording in the reference manual, they look identical to me.

标签 (4)
1 解答
3,031 次查看
AnsonHuang
NXP Employee
NXP Employee

When you boot up kernel, just add maxcpus=2 in command line, kernel will only boot two CPUs.

Also, you can cut the VDDARM23_IN, and config the menu config to support two cores and rebuild kernel.

在原帖中查看解决方案

8 回复数
3,031 次查看
abraham_v
Contributor IV

Thanks guys! I'll checkout your suggestions tomorrow and report back afterwards. :smileyhappy:

0 项奖励
回复
3,031 次查看
AnsonHuang
NXP Employee
NXP Employee

OK, these cores are identical, I think for your experiment, you can just add "maxcpus=2" in command line for testing. And for you product, you can get our Dual core version i.MX6D.

Also, you can "echo 0 > /sys/device/system/cpu/cpuX/online" (X is 2 or 3) to remove one core. echo "1" is to add them back.

BTW, if you think this question is answered, please help close it, thanks in advanced!

3,031 次查看
abraham_v
Contributor IV

Took me awhile to find the exact location were the kernel command line arguments were being set. But, yes, your suggestion of 'maxcpus=2' works. Thanks AnsonHuang ! :smileyhappy:

-Abraham V.

0 项奖励
回复
3,031 次查看
santhoshbatthin
Contributor I

Hi Abraham,

Can you tell where is the location for kernel command line arguments.

--Santhosh B

0 项奖励
回复
3,032 次查看
AnsonHuang
NXP Employee
NXP Employee

When you boot up kernel, just add maxcpus=2 in command line, kernel will only boot two CPUs.

Also, you can cut the VDDARM23_IN, and config the menu config to support two cores and rebuild kernel.

3,031 次查看
krishnanair
Contributor I

AnsonHuang

Hi,

We are also having a similar issue of VDDARM23_IN leakage current for Dual core. While going through the reference manual, we saw an option to Power-Gate the cores 2,3 by setting fusemap configurations (Fuse address: 0x4D0[31]). 

Is it possible to disable the 2 cores in this manner also? Or do we need to additionally run the maxcpus=2 command in the kernel. ?

0 项奖励
回复
3,031 次查看
santhoshbatthin
Contributor I

Hi Yongsai,

I am a newbie to linux. Could you please guide me how to set maxcpus=2 in kernel command line arguments and also where to cut VDDARM23_IN.

My requirement is to load one OS in each core. Could you please guide how to do this?

Thanks in advance.

Regards,

Santhosh B

0 项奖励
回复
3,031 次查看
RandyKrakora
NXP Employee
NXP Employee

I got this info a while back:

On a Linux machine you can get the CPU information from /proc/cpuinfo file. On a dual core machine, you will get the output like this:

$ cat /proc/cpuinfo

processor : 0

vendor_id : GenuineIntel

........

.....

processor : 1

vendor_id : GenuineIntel

........

.....

To disable a core run the following command on a Ubuntu machine:

$ sudo sh -c "echo 'n' > /sys/devices/system/cpu/cpu1/online"

Test if the core is disabled or not, check the /proc/cpuinfo file.

$ cat /proc/cpuinfo

processor : 0

vendor_id : GenuineIntel

0 项奖励
回复