From owner-freebsd-questions Fri Mar 9 8:15:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 7C6C537B719 for ; Fri, 9 Mar 2001 08:15:22 -0800 (PST) (envelope-from mwm@mired.org) Received: (qmail 38225 invoked by uid 100); 9 Mar 2001 16:15:21 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15017.408.982281.171624@guru.mired.org> Date: Fri, 9 Mar 2001 10:15:20 -0600 To: Andrew Hesford Cc: questions@freebsd.org Subject: Building kernels (Was: Mounting Linux EXT2FS to a FreeBSD Filesystem) In-Reply-To: <12274019@toto.iv> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andrew Hesford types: > If I understand correctly, this method for building the kernel is > becoming deprecated. I don't think it even works in -current. No, it's not depreciated. It works in -current. That not working would make kernel development much more painful. > In order to remain consistent with the process of building a new kernel > when you rebuild the world, the proper method for compiling a kernel is > now: > > 1) Edit the config files, for instance /sys/i386/conf/MYHOST > 2) Go into /usr/src > 3) Run `make buildkernel KERNCONF=MYHOST` > 4) Run `make installkernel KERNCONF=MYHOST` > > It would be better for new users just to start learning the new method, > since no retraining will be necessary later. This method uses the > programs in /usr/obj if they are available, ensuring that the kernel and > userland are always in sync and built correctly (especially when you > build a new kernel after rebuilding the world, but you haven't installed > the world yet). Not quite. The only time it makes a difference is if you have source that's newer than the running system and have done a buildworld, but not an installworld. Under those conditions, the "make buildkernel" method is what's supported. If the source is for the running system, either will work. If the source is newer than the running system but you haven't done a "make buildworld", then both will break the same way. That said - if you don't do a lot of kernel work, forget about config et al., and just do "make kernel" (which is buildkernel and installkernel in one go). Just make sure you've done a "make buildworld" after updating the sources. After you install the built sources, you can clean up and still be fine. On Fri, Mar 09, 2001 at 09:39:56AM +0100, Edwin Groothuis wrote: > > On Fri, Mar 09, 2001 at 12:46:30AM -0500, Rory Savage wrote: > > > as ad1, and that's okay. But my problem is when I run fsck on /dev/ad1 or > > > /dev/wd1 all I see is an entry for Partiotion 1 (EXT2FS), and Partion 2 > > > wich reports as an MSDOS Extneded partion. I can't seem to mount this or > > > any of the existing partitions to BSD. > > > > Did you recompile your kernel with the EXT2FS option? > > See /sys/i386/conf for the kernel-config, and the handbook on how > > to make a new kernel (shortcut, copy GENERIC to MYHOST, add "option > > EXT2FS" to MYHOST, "config MYHOST", "cd ../../compile/MYHOST", > > "make depend", "make", "make install", "reboot now" :-) > -- > Andrew Hesford > ajh3@cec.wustl.edu > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Mike Meyer http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message