Subject: Re: running NetBSD/sparc binaries on NetBSD/sparc64
To: None <port-sparc64@NetBSD.org>
From: Vicky Staubly <vicky@steeds.com>
List: port-sparc64
Date: 03/17/2004 19:00:52
On Wed, 17 Mar 2004, Vicky Staubly wrote:
> On Wed, 17 Mar 2004, Sean Davis wrote:
> > What is the proper method for setting up a NetBSD/sparc64 machine so that
> > one can run NetBSD/sparc binaries on it? I saw a post (I believe by mrg@)
> > that said that all you need is COMPAT_NETBSD32 in the kernel and the
> > necessary libraries under /emul/netbsd32... I untarred (preserving
> > permissions/owners of course) base.tgz from NetBSD/sparc under
> > /emul/netbsd32, but nothing 32-bit runs. I'm pretty sure I've missed
> > something... anybody know what? :-)
> 
> Sorry if this is too obvious, but I find the obvious part is what
> I always forget. :-) Did you check to see if your kernel is built
> with the COMPAT_NETBSD32 flag enabled? I'm not sure if it's enabled
> in the pre-built ("GENERIC") kernel, I'm just now downloading the
> kernel source myself (I've customized my FreeBSD kernel, but haven't
> yet messed with either of my NetBSD sparc kernels - 1 32-bit and 1
> 64-bit).

Ok, to answer my own question, /usr/src/sys/arch/sparc64/conf/GENERIC
(for the 1.6.1 release, which is what I have on my Ultra1) _does_
have COMPAT_NETBSD32 included. And strangely GENERIC32 does _not_.
So, unless you've compiled your own kernel _without_ that option,
I'm sorry for wasting your time.

-- 
Vicky Staubly        http://www.steeds.com/vicky/         vicky@steeds.com