From owner-freebsd-questions@FreeBSD.ORG Sun Jan 14 20:34:11 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C909516A407 for ; Sun, 14 Jan 2007 20:34:11 +0000 (UTC) (envelope-from frankstaals@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id BFCC913C442 for ; Sun, 14 Jan 2007 20:34:10 +0000 (UTC) (envelope-from frankstaals@gmx.net) Received: (qmail invoked by alias); 14 Jan 2007 20:07:28 -0000 Received: from ip176-173-59-62.adsl.versatel.nl (EHLO [192.168.2.5]) [62.59.173.176] by mail.gmx.net (mp010) with SMTP; 14 Jan 2007 21:07:28 +0100 X-Authenticated: #25365336 Message-ID: <45AA8D95.4080900@gmx.net> Date: Sun, 14 Jan 2007 21:07:49 +0100 From: Frank Staals User-Agent: Thunderbird 1.5.0.8 (X11/20061119) MIME-Version: 1.0 To: Dino Vliet References: <73161.84816.qm@web51108.mail.yahoo.com> In-Reply-To: <73161.84816.qm@web51108.mail.yahoo.com> Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-questions@freebsd.org Subject: Re: advice on compiling a new kernel & upgrading to the latest sources X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jan 2007 20:34:11 -0000 Dino Vliet wrote: > Hi folks, > >from different sources I have written my steps to > compile a new kernel & upgrade to the latest sources. > Can anyone have a look into them and tell me if I > won't run into troubles or if there are better ways to > achieve the same? > > Upgrade procedure to the newest freebsd kernel and > userland. > > 1.Make sure that the cvsup file (src-supfile) is > adjusted in the right way. > 2.Cd /usr/src/sys/amd64/conf which contains the file > MYKERNEL > 3.MYKERNEL is then adjusted, if necessary and copied > to root/kernels/MYKERNEL > 4.Copy everything under /etc to /root/etc > 5.cvsup -g -L 2 src-supfile > 6.cd /usr/src > so far so good > 7.make cleanworld The handbook suggest: rm -rf /usr/obj/* , the cleanworld might do the same you might check that > > 8.make buildworld > 9.make buildkernel KERNCONF=MYKERNEL > 10.Go into single user mode > OK > 11.If the new kernel doesn't boot reboot and hit the > space bar at the boot prompt and boot kernel.old If > the new kernel boots OK mount -a > You have to install your kernel first, step 13 is next now. Also when allready running in the 'multi'-user mode a 'shutdown now' will bring you in single user mode > 12.cd /usr/src > > 13.make installkernel KERNCONF=MYKERNEL > asuming you still are in single user mode you now have to do 'make installworld' ( your step 17 ), after you've done that run a 'mergemaster' and you are finished. Basically everything you have to do is documented perfectly in the FreeBSD Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html I suggest reading it (again?) and if possible open the page on a 2nd computer or something so you can read whatever step is next when rebuilding world. Also you might want to run 'script >/path/to/logfile/' as also described in the handbook . > 14.Go into single user mode > 15.cd /usr/src > 16.mergemaster -p > 17.make installworld > 18.mergemaster -i > 19.exit and reboot > > Is this ok? Or have I forgot about something? > I'm running a freebsd 6.1 machine on a amd64 system > with an adjusted kernel called MYKERNEL. > > Thanks inadvanced, > Dino > > > > ____________________________________________________________________________________ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail beta. > http://new.mail.yahoo.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > -- -Frank Staals