Re: bsd.sp and bsd.mp kernels, how to compile?

2012-12-11 Thread John Long
Thanks alot for the info Norman.

On Mon, Dec 10, 2012 at 08:26:56PM +0059, Norman Golisz wrote:
> On Sun Dec  9 2012 11:59, John Long wrote:
> > On Sun, Dec 09, 2012 at 12:21:34PM +0100, Paul de Weerd wrote:
> > > Alternatively, you can `make` GENERIC and `make install` GENERIC.MP.
> > > Or just skip making the SP kernel, you don't need to have it around
> > > per se ;)
> > 
> > I didn't know if make generic would leave a finished bsd.sp kernel in /
> > Not sure what the kernel make install target does, since I wasn't paying
> > attention after building the kernel a bunch of times on my Fuloong box.
> 
> In both cases, whether it's GENERIC or GENERIC.MP, `make install` installs
> the kernel to /bsd:
> 
> rm -f /obsd
> ln /bsd /obsd
> cp bsd /nbsd
> mv /nbsd /bsd
> 
> > If make builds a kernel and leaves it in / and just doesn't point the
> > bootloader at it that will be enough and I'll just make install the mp
> > kernel like I think you are saying.
> 
> The bootloader loads /bsd by default. So, if you're about to provide
> both versions, and you generally want GENERIC.MP to be loaded, you'd
> `make install` GENERIC.MP, and than manually copy the binary from
> GENERIC to /bsd.sp.
> 
> At the boot prompt, you may choose the SP kernel by typing `boot bsd.sp`.

-- 
ASCII ribbon campaign ( ) Powered by Lemote Fuloong
 against HTML e-mail   X  Loongson MIPS and OpenBSD
   and proprietary/ \http://www.mutt.org
 attachments /   \  Code Blue or Go Home!
 Encrypted email preferred  PGP Key 2048R/DA65BC04 



Re: bsd.sp and bsd.mp kernels, how to compile?

2012-12-10 Thread Norman Golisz
On Sun Dec  9 2012 11:59, John Long wrote:
> On Sun, Dec 09, 2012 at 12:21:34PM +0100, Paul de Weerd wrote:
> > Alternatively, you can `make` GENERIC and `make install` GENERIC.MP.
> > Or just skip making the SP kernel, you don't need to have it around
> > per se ;)
> 
> I didn't know if make generic would leave a finished bsd.sp kernel in /
> Not sure what the kernel make install target does, since I wasn't paying
> attention after building the kernel a bunch of times on my Fuloong box.

In both cases, whether it's GENERIC or GENERIC.MP, `make install` installs
the kernel to /bsd:

rm -f /obsd
ln /bsd /obsd
cp bsd /nbsd
mv /nbsd /bsd

> If make builds a kernel and leaves it in / and just doesn't point the
> bootloader at it that will be enough and I'll just make install the mp
> kernel like I think you are saying.

The bootloader loads /bsd by default. So, if you're about to provide
both versions, and you generally want GENERIC.MP to be loaded, you'd
`make install` GENERIC.MP, and than manually copy the binary from
GENERIC to /bsd.sp.

At the boot prompt, you may choose the SP kernel by typing `boot bsd.sp`.



Re: bsd.sp and bsd.mp kernels, how to compile?

2012-12-09 Thread John Long
On Sun, Dec 09, 2012 at 12:21:34PM +0100, Paul de Weerd wrote:
> On Sun, Dec 09, 2012 at 10:58:09AM +, John Long wrote:
> | Thanks Paul. In that case I guess it would be simpler to do the sp kernel
> | first since the make install causes it to get booted. Then when I do the mp
> | kernel and install it everything will be ready to build the rest with the mp
> | kernel.
> 
> Or don't make install GENERIC.  Why do you want to build the SP kernel
> if you're not going to use it ?

If I didn't stumble upon it I probably wouldn't even think about it. Now
that I did I figured it would be good for testing once in a while if
anything that appears to possibly be timing-related happens with the mp
kernel. It only takes a few minutes to compile.

>  If you're following stable, you may want to make a release and then use
> the kernels so produced. 

At this point this is the only AMD64 box I have OpenBSD on.

> Alternatively, you can `make` GENERIC and `make install` GENERIC.MP.
> Or just skip making the SP kernel, you don't need to have it around
> per se ;)

I didn't know if make generic would leave a finished bsd.sp kernel in /
Not sure what the kernel make install target does, since I wasn't paying
attention after building the kernel a bunch of times on my Fuloong box.

If make builds a kernel and leaves it in / and just doesn't point the
bootloader at it that will be enough and I'll just make install the mp
kernel like I think you are saying.

Thanks,

/jl

-- 
ASCII ribbon campaign ( ) Powered by Lemote Fuloong
 against HTML e-mail   X  Loongson MIPS and OpenBSD
   and proprietary/ \http://www.mutt.org
 attachments /   \  Code Blue or Go Home!
 Encrypted email preferred  PGP Key 2048R/DA65BC04 



Re: bsd.sp and bsd.mp kernels, how to compile?

2012-12-09 Thread Paul de Weerd
On Sun, Dec 09, 2012 at 10:58:09AM +, John Long wrote:
| Thanks Paul. In that case I guess it would be simpler to do the sp kernel
| first since the make install causes it to get booted. Then when I do the mp
| kernel and install it everything will be ready to build the rest with the mp
| kernel.

Or don't make install GENERIC.  Why do you want to build the SP kernel
if you're not going to use it ?  If you're following stable, you may
want to make a release and then use the kernels so produced.
Alternatively, you can `make` GENERIC and `make install` GENERIC.MP.
Or just skip making the SP kernel, you don't need to have it around
per se ;)

Cheers,

Paul 'WEiRD' de Weerd

-- 
>[<++>-]<+++.>+++[<-->-]<.>+++[<+
+++>-]<.>++[<>-]<+.--.[-]
 http://www.weirdnet.nl/ 



Re: bsd.sp and bsd.mp kernels, how to compile?

2012-12-09 Thread John Long
Thanks Paul. In that case I guess it would be simpler to do the sp kernel
first since the make install causes it to get booted. Then when I do the mp
kernel and install it everything will be ready to build the rest with the mp
kernel.

/jl

On Sun, Dec 09, 2012 at 11:45:03AM +0100, Paul de Weerd wrote:
> On Sun, Dec 09, 2012 at 10:04:04AM +, John Long wrote:
> | The last time I followed the FAQ compiling kernels was on single processor
> | machines. I just installed OpenBSD on my daily driver dual core Intel
> | box. The kernel, userland, and xenocara compiles ran fine as usual. Then I
> | realized DOH! I was running the sp kernel since I never had a machine where
> | I needed the MP kernel before. I built the MP kernel and installed it. 
> | 
> | If I am following stable and want to have sp and mp kernels what order
> | should I compile them in, does it matter? 
> 
> Doesn't matter.  They're built in separate directories and do not
> interact (unlike the config file for them, where GENERIC.MP sets some
> MP stuff and otherwise simply includes GENERIC, see [1]).
> 
> Cheers,
> 
> Paul 'WEiRD' de Weerd
> 
> [1]: 
> http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/arch/amd64/conf/GENERIC.MP?rev=1.10;content-type=text%2Fplain
> 
> -- 
> >[<++>-]<+++.>+++[<-->-]<.>+++[<+
> +++>-]<.>++[<>-]<+.--.[-]
>  http://www.weirdnet.nl/ 
> 

-- 
ASCII ribbon campaign ( ) Powered by Lemote Fuloong
 against HTML e-mail   X  Loongson MIPS and OpenBSD
   and proprietary/ \http://www.mutt.org
 attachments /   \  Code Blue or Go Home!
 Encrypted email preferred  PGP Key 2048R/DA65BC04 



Re: bsd.sp and bsd.mp kernels, how to compile?

2012-12-09 Thread Paul de Weerd
On Sun, Dec 09, 2012 at 10:04:04AM +, John Long wrote:
| The last time I followed the FAQ compiling kernels was on single processor
| machines. I just installed OpenBSD on my daily driver dual core Intel
| box. The kernel, userland, and xenocara compiles ran fine as usual. Then I
| realized DOH! I was running the sp kernel since I never had a machine where
| I needed the MP kernel before. I built the MP kernel and installed it. 
| 
| If I am following stable and want to have sp and mp kernels what order
| should I compile them in, does it matter? 

Doesn't matter.  They're built in separate directories and do not
interact (unlike the config file for them, where GENERIC.MP sets some
MP stuff and otherwise simply includes GENERIC, see [1]).

Cheers,

Paul 'WEiRD' de Weerd

[1]: 
http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/arch/amd64/conf/GENERIC.MP?rev=1.10;content-type=text%2Fplain

-- 
>[<++>-]<+++.>+++[<-->-]<.>+++[<+
+++>-]<.>++[<>-]<+.--.[-]
 http://www.weirdnet.nl/ 



bsd.sp and bsd.mp kernels, how to compile?

2012-12-09 Thread John Long
The last time I followed the FAQ compiling kernels was on single processor
machines. I just installed OpenBSD on my daily driver dual core Intel
box. The kernel, userland, and xenocara compiles ran fine as usual. Then I
realized DOH! I was running the sp kernel since I never had a machine where
I needed the MP kernel before. I built the MP kernel and installed it. 

If I am following stable and want to have sp and mp kernels what order
should I compile them in, does it matter? 

/jl

-- 
ASCII ribbon campaign ( ) Powered by Lemote Fuloong
 against HTML e-mail   X  Loongson MIPS and OpenBSD
   and proprietary/ \http://www.mutt.org
 attachments /   \  Code Blue or Go Home!
 Encrypted email preferred  PGP Key 2048R/DA65BC04