Date: Sun, 14 Jan 2007 21:07:49 +0100 From: Frank Staals <frankstaals@gmx.net> To: Dino Vliet <dino_vliet@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: advice on compiling a new kernel & upgrading to the latest sources Message-ID: <45AA8D95.4080900@gmx.net> In-Reply-To: <73161.84816.qm@web51108.mail.yahoo.com> References: <73161.84816.qm@web51108.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45AA8D95.4080900>