Why can't I set my cpu type in kernel config ?

Polytropon freebsd at edvax.de
Wed Aug 8 00:32:08 UTC 2012


On Wed, 8 Aug 2012 01:04:49 +0100, RW wrote:
> On Tue, 7 Aug 2012 23:26:33 +0200
> Polytropon wrote:
> 
> > On Tue, 7 Aug 2012 14:14:30 -0500 (CDT), Robert Bonomi wrote:
> > > > From owner-freebsd-questions at freebsd.org  Tue Aug  7 02:44:36 2012
> > > > Date: Tue, 7 Aug 2012 09:41:41 +0200 (CEST)
> > > > From: Wojciech Puchar <wojtek at wojtek.tensor.gdynia.pl>
> > > > To: Chris Hill <chris at monochrome.org>
> > > > Cc: RW <rwmaillists at googlemail.com>, freebsd-questions at freebsd.org
> > > > Subject: Re: Why can't I set my cpu type in kernel config ?
> > > >
> > > > >> That's the amd64 (64-bit) GENERIC
> > > > >
> > > > > Jason: It looks like you may have installed the 64-bit
> > > > > distribution on your
> > > >
> > > > nonsense. 64-bit distribution doesn't run on 32-bit computer.
> > > 
> > > *PRECISELY* why the OP is having problems.   He _is_ trying to
> > > build amd64 kernel on 34-bit only processor.
> > > 
> > > Unlike "Wojciech the infallible" people _do_ get things wrong on
> > > occasion.
> > 
> > That's why the statement "you may have installed the 64-bit
> > distribution" Wojciech refered to as "nonsense": On a 32 bit
> > system, the 64 bis OS version should not run. So the OP seems
> > to be using the (correct!) 32 bit OS version, but trying to
> > compile the 64 bit kernel (from /sys/amd64/conf instead of
> > from /sys/i386/conf). Therefore, it's a matter of having
> > chosen the wrong kernel config, not the wrong OS version. :-)
> 
> The architecture isn't defined in GENERIC, it defaults to what's
> already installed.

Yes, I think this is done in /usr/src/Makefile.inc1 where
the correct GENERIC file in /usr/src/sys/i386/conf or
/usr/src/sys/amd64/conf is then selected.



> You have to explicitly set it to cross-build, and I
> find it hard to believe that someone would set TARGET/TARGET_ARCH to
> amd64 by mistake

In case of a crossbuild, I assume the system would also do
the proper "TARGET magic" to use the GENERIC corresponding
to the requested architecture.



> I think it's likely that it is a 64-bit installation.

Not sure about that. How could the amd64 OS be installed
and run on a i386 machine?



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list