Date: Fri, 9 Mar 2001 10:15:20 -0600 From: Mike Meyer <mwm@mired.org> To: Andrew Hesford <ajh3@cec.wustl.edu> Cc: questions@freebsd.org Subject: Building kernels (Was: Mounting Linux EXT2FS to a FreeBSD Filesystem) Message-ID: <15017.408.982281.171624@guru.mired.org> In-Reply-To: <12274019@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
Andrew Hesford <ajh3@cec.wustl.edu> 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. <mike > 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 <mwm@mired.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15017.408.982281.171624>