possible error in handbook on kernelcompiling
Giorgos Keramidas
keramida at freebsd.org
Sat Mar 19 02:48:32 UTC 2005
On 2005-03-18 23:24, mailinglists at mindrules.net wrote:
> Anyway, yesterday I recompiled my kernel, I did that before, but as
> always I kept the handbook open to check that I wouldn't forget some
> important part. After making the altered kernel configuration file I
> had to do some other things on the machine, something happened.
What does `something happened' refer to?
> Then I continued, using "Procedure 1. Building a Kernel the
> ``Traditional'' Way".
Why? The `buildkernel' process should work too. The traditional way is
these days pretty much the `obsolete way', and is useful only in limited
cases (i.e. a kernel developer who wants to do many builds of the kernel
but hasn't touched anything in the userland sources).
> When I issued # /usr/sbin/config MYKERNEL I received an error, but
> after I navigated to the directory MYKERNEL was in, everything worked.
It would be nice if you posted the exact error message too. I've used
the `traditional way' of building kernels a lot of times, and it did
work. The invocation of config(8) was a bit tricky, as I wanted to keep
using the /usr/obj hierarchy for compiled files:
# cd /usr/src/sys/i386/conf
# config -g -d /usr/obj/usr/src/sys/MYKERNEL MYKERNEL
# cd /usr/obj/usr/src/sys/MYKERNEL
# make
# make install
> So, maybe there should be a sidenote that you either have to be in the
> right directory or give the full path.
This is pretty much implied if you use config(8). It would be nice if
you could repeat the process, keep a log file with script(1) or
something and post any errors you see. Then we would be able to tell
you if this is indeed a bug in the Handbook instructions or something
entirely different.
Regards,
Giorgos
More information about the freebsd-doc
mailing list