RE: Question on order and targets of kernel and world builds
"make buildworld" -- builds the kernel and the libraries (both kernel and user level) "make buildkernel" -- builds only the kernel You can build kernels with different configuration files using "make buildkernel KERNCONF=". Once you do the 'build', the kernel image is stored as /kernel More information in the FreeBSD Handbook. http://www.freebsd.org Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: John Mills [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 10:04 PM > To: FreeBSD-questions > Subject: Question on order and targets of kernel and world builds > > > Hello - > > I would appreciate a bit more information on the 'world' and 'kernel' > building process. Please point me at the right section of the > Handbook or > Greg's book if there is a succinct description. > > I have been doing 'CVSUP' followed by: > > # make buildworld > # make installworld > # make buildkernel > # make installkernel > > without really knowing if this was a useful order or exactly > what I was > accomplishing with each target. My question is: > > 1) Can I 'make buildworld' to create my tools and supporting > files, then > 2) Use the newly made "world" to 'make buildkernel', and then > 3) 'make installworld; make installkernel' to install these > new filesets > for general use? > > I would like to know if this is an acceptable and > conservative way to do a > rebuild, and to better understand what I get at each step. > > TIA for any guidance. > > - John Mills > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Question on order and targets of kernel and world builds
Title: Re: Question on order and targets of kernel and world I would appreciate a bit more information on the 'world' and 'kernel' building process. Please point me at the right section of the Handbook or Greg's book if there is a succinct description. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html I have been doing 'CVSUP' followed by: # make buildworld # make installworld # make buildkernel # make installkernel without really knowing if this was a useful order or exactly what I was accomplishing with each target. My question is: 1) Can I 'make buildworld' to create my tools and supporting files, then 2) Use the newly made "world" to 'make buildkernel', and then 3) 'make installworld; make installkernel' to install these new filesets for general use? I would like to know if this is an acceptable and conservative way to do a rebuild, and to better understand what I get at each step. Here are the steps I follow. Note that I previously built a custom kernel and I am using that below. Replace "CUSTOM" with whatever you named your kernel. Please *read the handbook* as things can get confusing. Not something you want to fubar at 2 am. Mergemaster especially can be tricky until you figure out what's going on. Good luck. 1. # cd /usr/obj # chflags -R noschg * # rm -rf * 2. #make buildworld 3. #make buildkernel KERNCONF=CUSTOM 4. #make installkernel KERNCONF=CUSTOM 5. boot into single user mode 6. #make installworld 7. # cp -Rp /etc /etc.old 8. # mergemaster -cv 9. reboot -- Jim Arnold - Ohio.com - [EMAIL PROTECTED] Cell: 330.730.0797 Voice: 330.572.2822 AOL IM: instantjim / Yahoo: jim0266
Re: Question on order and targets of kernel and world builds
At 11:04 PM -0400 7/16/02, John Mills wrote: >Hello - > >I would appreciate a bit more information on the 'world' and 'kernel' >building process. Please point me at the right section of the Handbook >or Greg's book if there is a succinct description. > >I have been doing 'CVSUP' followed by: > ># make buildworld ># make installworld ># make buildkernel ># make installkernel > >without really knowing if this was a useful order or exactly what >I was accomplishing with each target. You should check: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html for more details that you probably even need to know (because it includes information for older releases of freebsd). If you are fairly up-to-date with freebsd-stable, the preferred order would be more like: *READ* /usr/src/UPDATING [every time, just to make sure there are no special issues with this specific snapshot of freebsd] mergemaster -p make buildworld make buildkernel make installkernel [reboot, to make sure the kernel at least boots up] get into single user mode [usually by booting into it in the above step, although I often cheat on that...] make installworld mergemaster [go thru all the questions from mergemaster] reboot into your new world. You do not want to install the new world before you know whether the kernel that matches it will work on your hardware. If the kernel does *not* work (and I have had cases where this happens, although not very often on freebsd-stable), then you can easily back out by just renaming the kernel-related files in '/'. If you have done the installworld and *then* find out the new kernel does not work, well, you'll be in a world of hurt. Many people will try things in a different order, and will happen to have it work, and will thus insist that their order is the correct order (and usually "that it saves them a lot of time"). Their order may even work for six to eight months at a stretch, which they consider "proof" that it is a perfectly correct order. The documented order is the order you should stick with, because it's the only order that we actively *try* to keep working. If some other order happens to work, feel free to use it, but do not come complaining to us for the update where that alternate order does NOT happen to work... -- Garance Alistair Drosehn= [EMAIL PROTECTED] Senior Systems Programmer or [EMAIL PROTECTED] Rensselaer Polytechnic Instituteor [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Question on order and targets of kernel and world builds
Pavan - On Tue, 16 Jul 2002, Balaji, Pavan wrote: > "make buildworld" -- builds the kernel and the libraries (both kernel and > user level) > "make buildkernel" -- builds only the kernel Thanks - I didn't realize 'buildkernel' was redundant to 'buildworld'. > You can build kernels with different configuration files using "make > buildkernel KERNCONF=". Once you do the 'build', the kernel image > is stored as /kernel Actually I do that. Does it work for a kernel built as part of 'buildworld'? > More information in the FreeBSD Handbook. http://www.freebsd.org I'll go back and look. I found general instructions which worked, but missed the details. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Question on order and targets of kernel and world builds
Garance - Thanks for the information and for replying. On Tue, 16 Jul 2002, Garance A Drosihn wrote: > You should check: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html Will do. > If you are fairly up-to-date with freebsd-stable, the preferred order > would be more like: I presume this follows my 'cvsup', and expect this is true for freebsd-release as well? > *READ* /usr/src/UPDATING > [every time, just to make sure there are no special > issues with this specific snapshot of freebsd] > mergemaster -p ^^-- This is new to me - thanks. > make buildworld > make buildkernel > make installkernel > [reboot, to make sure the kernel at least boots up] > get into single user mode > [usually by booting into it in the above step, > although I often cheat on that...] > make installworld > mergemaster > [go thru all the questions from mergemaster] > reboot into your new world. That's exactly what I wanted to know. > You do not want to install the new world before you know whether > the kernel that matches it will work on your hardware. If the > kernel does *not* work (and I have had cases where this happens, > although not very often on freebsd-stable), then you can easily > back out by just renaming the kernel-related files in '/'. > > If you have done the installworld and *then* find out the new > kernel does not work, well, you'll be in a world of hurt. and that's a _bad_thing(TM)_ in my book. ... > The documented order is the order you should stick with, because > it's the only order that we actively *try* to keep working. If > some other order happens to work, feel free to use it, but do not > come complaining to us for the update where that alternate order > does NOT happen to work... Exactly what I wanted to know. Thanks again. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Question on order and targets of kernel and world builds
Thanks Jim, Garance, and Pavan - I think I have the information and references now. I also think I had didn't have trouble before because I was basically moving only by very small steps in my rebuilds: bugfixes rather than any changes of APIs. _Much_ better to do this a bit more knowledgably. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Question on order and targets of kernel and world builds
in message <[EMAIL PROTECTED]>, wrote John Mills thusly... > > Pavan - > > On Tue, 16 Jul 2002, Balaji, Pavan wrote: > > > "make buildworld" -- builds the kernel and the libraries (both kernel and > > user level) > > > "make buildkernel" -- builds only the kernel > > Thanks - I didn't realize 'buildkernel' was redundant to 'buildworld'. since when buildworld target starts building actual kernels? or, is there a communication problem either on my part or pavan's? -- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Question on order and targets of kernel and world builds
I'm pretty sure that that buildworld does *not* build kernels. If anybody has definitive information (like, proof) to the contrary I'd be interested in knowing. On Wednesday 17 July 2002 10:28 am, parv wrote: | in message <[EMAIL PROTECTED]>, | wrote John Mills thusly... | | > Pavan - | > | > On Tue, 16 Jul 2002, Balaji, Pavan wrote: | > > "make buildworld" -- builds the kernel and the libraries (both kernel | > > and user level) | > > | > > "make buildkernel" -- builds only the kernel | > | > Thanks - I didn't realize 'buildkernel' was redundant to 'buildworld'. | | since when buildworld target starts building actual kernels? or, is | there a communication problem either on my part or pavan's? -- Brian, the man from Babble-On . . . . [EMAIL PROTECTED] (personal) http://www.babbleon.org http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Question on order and targets of kernel and world builds
He's either quite wrong, or he meant to say that buildworld builds "kernel source", meaning ~'files needed to build kernel' ?? If you interpret "libraries" as I did, that's what he meant "make buildworld" != "make buildkernel" KDK From: "Brian T.Schellenberger" <[EMAIL PROTECTED]> To: "parv" <[EMAIL PROTECTED]>; "John Mills" <[EMAIL PROTECTED]> Cc: "Balaji, Pavan" <[EMAIL PROTECTED]>; "FreeBSD-questions" <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 9:59 AM Subject: Re: Question on order and targets of kernel and world builds > > I'm pretty sure that that buildworld does *not* build kernels. > > If anybody has definitive information (like, proof) to the contrary I'd be > interested in knowing. > > On Wednesday 17 July 2002 10:28 am, parv wrote: > | in message <[EMAIL PROTECTED]>, > | wrote John Mills thusly... > | > | > Pavan - > | > > | > On Tue, 16 Jul 2002, Balaji, Pavan wrote: > | > > "make buildworld" -- builds the kernel and the libraries (both kernel > | > > and user level) > | > > > | > > "make buildkernel" -- builds only the kernel > | > > | > Thanks - I didn't realize 'buildkernel' was redundant to 'buildworld'. > | > | since when buildworld target starts building actual kernels? or, is > | there a communication problem either on my part or pavan's? To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Question on order and targets of kernel and world builds
Nope. buildworld != builkernel. But buildworld does link the libraries. For example if you have a system call and a corresponding library, buildkernel will not be sufficient for you to allow the library call to invoke the corresponding system call -- however a buildworld would do that. Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: Kevin Kinsey, DaleCo, S.P. [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 17, 2002 10:51 AM > To: Brian T.Schellenberger; parv; John Mills > Cc: Balaji, Pavan; FreeBSD-questions > Subject: Re: Question on order and targets of kernel and world builds > > > He's either quite wrong, or he meant to say > that buildworld builds "kernel source", meaning > ~'files needed to build kernel' ?? If you interpret > "libraries" as I did, that's what he meant > > "make buildworld" != "make buildkernel" > > KDK > > From: "Brian T.Schellenberger" <[EMAIL PROTECTED]> > To: "parv" <[EMAIL PROTECTED]>; "John Mills" <[EMAIL PROTECTED]> > Cc: "Balaji, Pavan" <[EMAIL PROTECTED]>; "FreeBSD-questions" > <[EMAIL PROTECTED]> > Sent: Wednesday, July 17, 2002 9:59 AM > Subject: Re: Question on order and targets of kernel and world builds > > > > > > I'm pretty sure that that buildworld does *not* build kernels. > > > > If anybody has definitive information (like, proof) to the > contrary I'd be > > interested in knowing. > > > > On Wednesday 17 July 2002 10:28 am, parv wrote: > > | in message > <[EMAIL PROTECTED]>, > > | wrote John Mills thusly... > > | > > | > Pavan - > > | > > > | > On Tue, 16 Jul 2002, Balaji, Pavan wrote: > > | > > "make buildworld" -- builds the kernel and the libraries (both > kernel > > | > > and user level) > > | > > > > | > > "make buildkernel" -- builds only the kernel > > | > > > | > Thanks - I didn't realize 'buildkernel' was redundant > to 'buildworld'. > > | > > | since when buildworld target starts building actual > kernels? or, is > > | there a communication problem either on my part or pavan's? > > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Question on order and targets of kernel and world builds
in message <[EMAIL PROTECTED]>, wrote Balaji, Pavan thusly... > > Nope. buildworld != builkernel. But buildworld does link the > libraries. thanks for clearing that up. for a moment you had me in utter amazement. -- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message