Booting < 4 SMP cores on Wandboard-Quad?

Sven Brehmer sven.brehmer at polycoresoftware.com
Sun Mar 22 16:37:32 UTC 2015


Ian,

Great, thank you!

Regards,
Sven

-----Original Message-----
From: Ian Lepore [mailto:ian at freebsd.org] 
Sent: Sunday, March 22, 2015 08:51
To: Sven Brehmer
Cc: freebsd-arm at freebsd.org
Subject: Re: Booting < 4 SMP cores on Wandboard-Quad?

On Sat, 2015-03-21 at 16:32 -0700, Sven Brehmer wrote:
> Hello,
> 
>  
> 
> We are working with FreeBSD on the Wandboard and we are trying to boot 
> less than 4 cores in SMP mode. We have tried a number of way's with 
> settings in sysctl.conf, loader.conf and  customizing the kernel build 
> with "options MAXCPU=2", but without success.
> 
>  
> 
> Any advice would be appreciated.

Set the hw.ncpu tunable to the number you want.  If you have forth enabled
add to loader.conf:

  hw.ncpu=2

otherwise (no forth) add to loader.rc:

  set hw.ncpu=2

I'm not sure there's good error checking, so don't set it to more cores than
you actually have. :)

-- Ian





More information about the freebsd-arm mailing list