Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2003 10:13:57 -0500 (EST)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        valerian_ro@yahoo.com (Valerian Galeru)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Compiling the kernel
Message-ID:  <200312011513.hB1FDwK01583@clunix.cl.msu.edu>
In-Reply-To: <20031201141253.5363.qmail@web12503.mail.yahoo.com> from "Valerian Galeru" at Dec 01, 2003 06:12:53 AM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> I want to build a new kernel. I have edit the GENERIC
> file (like is written into the documentation). And
> when i run /usr/sbin/config
> /root/kernels/MYKERNEL(this is my kernel) i get a lot
> of errors Command not found. What is made wrong???

First of all, I presume you really used one line as

  /usr/sbin/config /root/kernels/MYKERNEL

Not two separate command lines as it appears in your message.

Secondly, did you make your copy of GENERIC in to the
same directory as GENERIC?    That is the best idea.

Third, on any of the FreeBSD systems I have worked on there is
no /root/kernels directory.   (If this is something new with 5.x I
am off on this as I haven't built a 5.x yet)  The kernel
config files are in:  /usr/src/sys/i386/conf  (or did you set up
some homebrew link?)   So, I would expect that there is a file:
  /usr/src/sys/i386/conf/MYKERNEL

and the best way to run things is to
  cd /usr/src/sys/i386/conf
  cp GENERIC MYKERNEL
  vi MYKERNEL        (make whatever changes you need and write+exit vi)
  /usr/sbin/config MYKERNEL
  cd ../../compile/MYKERNEL
  make depend
  make
  [make install]   Only if you want the present kernel replaced

Now if you have CVSUPed and etc, then you will want to follow those
instructions instead of merely building a kernel.   Doing it
the above way is only if you are just changing the kernel config 
and then recompiling.

////jerry



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312011513.hB1FDwK01583>