Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 May 2001 11:54:45 -0600 (MDT)
From:      Sean Broestl <broestls@holly.ColoState.EDU>
To:        Thomas <true@vol.at>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: kernel compiling problem
Message-ID:  <Pine.A41.4.10.10105011135220.172672-100000@holly.ColoState.EDU>
In-Reply-To: <003d01c0d262$e19c51c0$0202000a@katmai>

next in thread | previous in thread | raw e-mail | index | archive | help
Ok, then you are actually missing the sources you need to do this
properly. Probably the best way to do this is cvsup, or install the
sources from the cd. 

If you're going to install from the cd,

run /stand/sysinstall
Choose "Configure" from the menu, then choose "Distributions".
On the next menu, you can choose which packages to add to your existing
installation. you want at least "src", and "ports" is worth grabbing as
well. After those are installed, you should be able to compile a kernel.

Using cvsup,

Hopefully you have cvsup already installed. If not, contact me again, and
I can tell you how to install it (I'd like to keep it seperate, this is
going to be a bit more complicated to begin with).

All of this will have to be done as root.

cp /usr/src/share/examples/cvsup/stable-supfile ~/
edit stable-supfile according to the instructions in the file. At the
minimum, you want to have the following specified in the file:

*default host=cvsup1.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_4
*default delete use-rel-suffix
*default compress
src-sys

Save the file, then type:

cvsup -g -L 2 ~/stable-supfile

This will begin downloading all the sources you'll need. This can take a
very long time over a slow connection, and you're definitely going to want
to change the "*default host=" to something close to you. (see the
handbook for more information on the locations of mirrors).

Hopefully after that you'll be able to compile your kernel properly. Make
sure you have a backup of any important info, in case things somehow go
horribly wrong. 

-Sean Broestl
http://www.counterstricken.org


On Tue, 1 May 2001, Thomas wrote:

> Thank you for your help but i wasn't able do compile my kernel.
> The only subdirectory in the /usr/src directory is sys.
> 
> When I try
> "cd /usr/sys"
> "make buildkernel KERNCONF=KERNELNAME" or "make buildkernel
> KERNEL=KERNELNAME"
> there's an error: "Don't know how to make buildkernel."
> 
> The description in the handbook doesn't help me much because I'm new to
> FreeBSD and do not understand how to "make the world" etc.
> 
> What do I have to do when I just have installed the 4.3release with /bin and
> /src/sys and want to compile a kernel?
> 
> Thanks
> 
> Thomas
> 
> 
> 
> 
> ----- Original Message -----
> From: "Sean Broestl" <broestls@holly.ColoState.EDU>
> To: "Thomas" <true@vol.at>
> Cc: <freebsd-questions@FreeBSD.ORG>
> Sent: Tuesday, May 01, 2001 5:18 PM
> Subject: Re: kernel compiling problem
> 
> 
> > Hi Thomas,
> >
> > This is a mistake I made at first too. The FreeBSD Handbook tries to cover
> > all the current versions of FreeBSD, and the kernel compilation section
> > can be kind of confusing in that regard. To properly compiler a kernel in
> > FBSD 4.x, do this:
> >
> > cd /usr/src
> > make buildkernel KERNCONF=<your kernel config>
> > make installkernel KERNCONF=<your kernel config>
> >
> > That should be all you need to do.
> >
> > Good luck on your FreeBSD rite of passage :)
> >
> > -Sean Broestl
> > http://www.counterstricken.org
> >
> > On Tue, 1 May 2001, Thomas wrote:
> >
> > > Hi,
> > >
> > > I'm new to FreeBSD and tried to compile a new kernel as it is described
> in
> > > the FreeBSD-handbook.
> > > But when i try "make depent" after "config KERNELNAME" (works correctly)
> > > there are several errors like perl5 ... /u not found,...
> > > I have installed FreeBSD 4.3 RELEASE with /bin and /usr/src/sys.
> > >
> > > I tried to compile a kernel with a copy of unmodified GENERIC but it
> doesn't
> > > work, same error at "make depend".
> > >
> > > What can/should I do?
> > >
> > > Thomas
> > >
> > >
> > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > with "unsubscribe freebsd-questions" in the body of the message
> > >
> >
> >
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.A41.4.10.10105011135220.172672-100000>