Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2005 09:07:49 +0100
From:      Christian Hiris <4711@chello.at>
To:        freebsd-questions@freebsd.org
Cc:        "Scott C. MacCallum" <scm@pearlyfreepress.com>
Subject:   Re: Custom Kernel 'make depend' Failure
Message-ID:  <200501190907.49299.4711@chello.at>
In-Reply-To: <20050119041411.GA708@pearlyfreepress.com>
References:  <20050119041411.GA708@pearlyfreepress.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 19 January 2005 05:14, Scott C. MacCallum wrote:
> Greetings,
>
> I am running FreeBSD 5.3 Stable.
>
> I had been following the steps found in the handbook to make a custom
> kernel:
>
> /usr/sbin/config MYKERNEL
> cd ../compile/MYKERNEL
> make depend

You run the old, traditional way to build a kernel. Did you rebuild world 
after you have cvsuped your sources? I would recommend that you do some 
cleanup and then build world and kernel the new way. 

Clean up /usr/obj (if exists):
# cd /usr/obj 
# chflags -R noschg *
# rm -rf *

Clean up sources:
# cd /usr/src
# make cleandir ; make cleandir  

Read /usr/src/UPDATING.

Build world and kernel:
# make buildworld
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL

Reboot into single user mode and install world.

# adjkerntz -i
# fsck -p
# mount -u /
# mount -a -t ufs
# swapon -a

# mergemaster -p
# cd /usr/src
# make installworld
# mergemaster
# reboot

For the details please read  
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html

Good luck!

-- 
Christian Hiris <4711@chello.at> | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu



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