Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

buildkernel KERNCONF=MACHINE builds GENERIC

 
   FreeBSD Hosting (Home) -> FreeBSD Handbook RSS
Next:  Can't get ntp 4.2.0 running  
Author Message
EmeraldShield

External


Since: Jan 08, 2004
Posts: 5



(Msg. 1) Posted: Thu Jan 08, 2004 5:24 pm
Post subject: buildkernel KERNCONF=MACHINE builds GENERIC
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

I have always built the kernel using the conf method that now seems to be
deprecated according the the FreeBSD Handbook online. So I decided to try
the "new" and improved way to build the kernel...

\usr\src
make buildkernel KERNCONF=QUADXEON

QUADXEON is a file that I copied from GENERIC and edited to turn on SMP and
comment out some other options. I left it in the same location as GENERIC,
and I did not run config (the new way doesn't say to do this).

The problem is that I still get a GENERIC kernel. Why? Is the
documentation wrong, or did I leave the file in the wrong location
(/usr/src/sys/i386/conf)?

Thanks.

 >> Stay informed about: buildkernel KERNCONF=MACHINE builds GENERIC 
Back to top
Login to vote
EmeraldShield

External


Since: Jan 08, 2004
Posts: 5



(Msg. 2) Posted: Thu Jan 08, 2004 6:00 pm
Post subject: Re: buildkernel KERNCONF=MACHINE builds GENERIC [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> > \usr\src
> > make buildkernel KERNCONF=QUADXEON
> >
>
> Did you set KERNCONF in make.conf by any chance?

The online manual says to pass it on the command line like above.

So I should edit the make.conf?

 >> Stay informed about: buildkernel KERNCONF=MACHINE builds GENERIC 
Back to top
Login to vote
Lars Eighner

External


Since: Jan 08, 2004
Posts: 1



(Msg. 3) Posted: Thu Jan 08, 2004 6:00 pm
Post subject: Re: buildkernel KERNCONF=MACHINE builds GENERIC [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In our last episode,
,
the lovely and talented EmeraldShield
broadcast on comp.unix.bsd.freebsd.misc:

>> > \usr\src
>> > make buildkernel KERNCONF=QUADXEON
>> >
>>
>> Did you set KERNCONF in make.conf by any chance?

> The online manual says to pass it on the command line like above.

> So I should edit the make.conf?

Did you change the name of the kernel in the ident line of
the kernel conf?

i.e.

ident GENERIC
to
ident QUADXEON

--
Lars Eighner -finger for geek code- eighner RemoveThis @io.com http://www.io.com/~eighner/
When the time comes to hang the American Historical Society
someone will be there selling commemorative rope.
 >> Stay informed about: buildkernel KERNCONF=MACHINE builds GENERIC 
Back to top
Login to vote
EmeraldShield

External


Since: Jan 08, 2004
Posts: 5



(Msg. 4) Posted: Thu Jan 08, 2004 6:21 pm
Post subject: Re: buildkernel KERNCONF=MACHINE builds GENERIC [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>
> Did you change the name of the kernel in the ident line of
> the kernel conf?
>
> i.e.
>
> ident GENERIC
> to
> ident QUADXEON
>

Yes I did. When I do a config QUADXEON and build the old way I do see
QUADXEON in uname -a after a reboot. Now I see GENERIC again (without SMP
also).
 >> Stay informed about: buildkernel KERNCONF=MACHINE builds GENERIC 
Back to top
Login to vote
EmeraldShield

External


Since: Jan 08, 2004
Posts: 5



(Msg. 5) Posted: Thu Jan 08, 2004 6:25 pm
Post subject: Re: buildkernel KERNCONF=MACHINE builds GENERIC [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>
> >> > \usr\src
> >> > make buildkernel KERNCONF=QUADXEON
> >> >

Looking in Makefile.incl I have found:

..if !defined(KERNCONF) && defined(KERNEL)
KERNCONF= ${KERNEL}
KERNWARN= yes
..else
KERNCONF?= GENERIC
..endif
INSTKERNNAME?= kernel


Should I then be using KERNEL= instead of KERNELCONF=?
I also tried setting KERNELCONF=QUADXEON in the make.conf and it made no
difference.
 >> Stay informed about: buildkernel KERNCONF=MACHINE builds GENERIC 
Back to top
Login to vote
EmeraldShield

External


Since: Jan 08, 2004
Posts: 5



(Msg. 6) Posted: Thu Jan 08, 2004 6:31 pm
Post subject: Re: buildkernel KERNCONF=MACHINE builds GENERIC [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I found it... I was spelling out KERNEL in KERNCONF (note the EL)

===========================================
gunslinger# make buildkernel KERNEL=QUADXEON
--------------------------------------------------------------
>>> WARNING: KERNEL= setting should be changed to KERNCONF=
--------------------------------------------------------------

gunslinger# make buildkernel KERNCONF=QUADXEON

--------------------------------------------------------------
>>> Kernel build for QUADXEON started on Thu Jan 8 18:29:54 EST 2004
--------------------------------------------------------------
===> QUADXEON


Never mind! Thanks for pointing me in the right direction though guys!
 >> Stay informed about: buildkernel KERNCONF=MACHINE builds GENERIC 
Back to top
Login to vote
Robert Downes

External


Since: Jan 09, 2004
Posts: 2



(Msg. 7) Posted: Fri Jan 09, 2004 12:17 pm
Post subject: Re: buildkernel KERNCONF=MACHINE builds GENERIC [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

EmeraldShield wrote:
> I have always built the kernel using the conf method that now seems to be
> deprecated according the the FreeBSD Handbook online. So I decided to try
> the "new" and improved way to build the kernel...
>
> \usr\src
> make buildkernel KERNCONF=QUADXEON
>
> QUADXEON is a file that I copied from GENERIC and edited to turn on SMP and
> comment out some other options. I left it in the same location as GENERIC,
> and I did not run config (the new way doesn't say to do this).
>
> The problem is that I still get a GENERIC kernel. Why? Is the
> documentation wrong, or did I leave the file in the wrong location
> (/usr/src/sys/i386/conf)?

This is gonna sound insulting, but...

Have you done a `make installkernel KERNCONF=QUADXEON` to actually
install the kernel into the correct place once it's built?

Are you building and installing the whole world specially for the
kernel? (I don't think that not building a new world would cause the
problem you're seeing, but it might cause other problems later.)
--
Bob
London, UK
echo Mail fefsensmrrjyaheeoceoq\! | tr "jefroq\!" "@obe.uk"
 >> Stay informed about: buildkernel KERNCONF=MACHINE builds GENERIC 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Installation & fdisk partitioning (slices) - I picked up a copy of the "FreeBSD Handbook 2nd Ed" the other day, it came with a installation disk for version 5.1 Current and that is what I am trying to install. This is my first attempt to do anything with FreeBSD. First let me describe my...

CVSup vs. portupgrade - Reading from the FreeBSD handbook on "Using the Ports Collection" leaves me a bit confused wrt CVSup and portupgrade... do these utilities accomplish the same thing? Thanks, Jay _______________________________________________..

configuring freebsd dhcp server/router to listen on device - Hello, Im trying to move away from my linksys wireless router and move onto an old Pentium 200 Mhz I have. It will be the gateway between my modem and my network. I installed isc-dhcp3 on the box and took the sample dhcp.conf file in the freebsd..

PPP - Hi! I'm french and don't understand the chapter 18.2.1.2 (Creating PPP device Nodes) in the freeBSD handbook. Precicely I don't understand what is N in the first paragraph. Is it necessary to change the tun0? I have an other question.(I'm sorry if it..

PPP - Hi!! In the FreeBSD handbook, the chapter 18.3.3 talk about the file /etc/ppp/options. I think I must create it and copy that it's written in the handbook concerning this file but I'm not sure. Xavier --------------------------------- Yahoo! Mail...
   FreeBSD Hosting (Home) -> FreeBSD Handbook All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]