OpenWrt Forum Archive

Topic: How to disable SMP as part of compilation in openWRT 16.02

The content of this topic has been archived on 18 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I wants to disable SMP as part of compilation in openWRT 16.02. Can anyone could tell me how can I disable SMP as part of compilation.

I have commented the below options and compiled and flashed the image..

CONFIG_BUSYBOX_CONFIG_FEATURE_TOP_SMP_CPU
CONFIG_BUSYBOX_CONFIG_FEATURE_TOP_SMP_PROCESS

But still I could see SMP is compiled in uname -a

root@OpenWrt:/# uname -a
Linux OpenWrt 4.4.0 #1 SMP Wed Jul 6 05:25:22 UTC 2016 armv6l GNU/Linux


Could anyone please give me some suggestions..?

Thanks,
Ramesh

Busybox is a set of tools for user space, it has nothing to do with hardware initialization. You need to modify kernel (disable SMP support in it).

Zajec,

Thanks for your response... Could you please tell me how to modify the kernel to disable SMP support..?

rameshbabu.p wrote:

Zajec,

Thanks for your response... Could you please tell me how to modify the kernel to disable SMP support..?

make kernel_menuconfig

Kernel Type

 Prompt: Multi-Processing support

Unset it.

If there is not this feature, your selected sys does not support SMP

(Last edited by milankocvara on 7 Jul 2016, 07:17)

milankocvara,

Thanks for your quick response.. Let me try this and then I will update you...

Thanks for your great suggestion .. It worked for me.. Now in uname and cpuinfo it is showing only one processor...Thank you so much...

Steps which I followed is,

1. make kernel_menuconfig
2. Then Kernel Features->
3. Disabled Symmetric Multi Processing.
4. Then saved the configuration and compiled it


Thanks,
Ramesh

The discussion might have continued from here.